EasyManua.ls Logo

Siemens SIMATIC S7-1200 - Page 562

Siemens SIMATIC S7-1200
1614 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Technology instructions
10.1 Counting (High-speed counters)
S7-1200 Programmable controller
562 System Manual, V4.2, 09/2016, A5E02486680-AK
Table 10- 4 HSC_Count structure
Structure element
Declaration
Data type
Description
CurrentCount
OUT
Dint
Returns the HSC’s current count value
CapturedCount OUT Dint Returns the counter value captured on the specified input
event
SyncActive
OUT
Bool
Status bit: Sync input was activated
DirChange OUT Bool Status bit: Counting direction has changed
CmpResult1
OUT
Bool
Status bit: CurrentCount equals Reference1 event occured
CmpResult2
OUT
Bool
Status bit: CurrentCount equals Reference2 event occured
OverflowNeg
OUT
Bool
Status bit: CurrentCount reached the LowerLimit
OverflowPos
OUT
Bool
Status bit: CurrentCount reached the UpperLimit
EnHSC IN Bool Enables the HSC to count pulses when true; disables counting
when false
EnCapture IN Bool Enables the Capture input when true, Capture input has no
effect when false
EnSync IN Bool Enables the Sync input when true; Sync input has no effect
when false
EnDir
IN
Bool
Enables the NewDirection value to take effect
EnCV
IN
Bool
Enables the NewCurrentCount value to take effect
EnSV
IN
Bool
Enables the NewStartValue value to take effect
EnReference1
IN
Bool
Enables the NewReference1 value to take effect
EnReference2
IN
Bool
Enables the NewReference2 value to take effect
EnUpperLmt
IN
Bool
Enables the NewUpperLimit value to take effect
EnLowerLmt
IN
Bool
Enables the New_Lower_Limit value to take effect
EnOpMode IN Bool Enables the NewOpModeBehavior value to take effect
EnLmtBehavior
IN
Bool
Enables the NewLimitBehavior value to take effect
EnSyncBehavior IN Bool This value is not used.
NewDirection IN Int Counting direction: 1 = count up; -1 = count down; all other
values are reserved.
NewOpModeBe-
havior
IN Int HSC’s operation on overflow: 1 = HSC stops counting (HSC
must be disabled and re-enabled to continue counting); 2 =
HSC continues to operate; all other values are reserved.
NewLimitBehav-
ior
IN Int Result of the CurrentCount value on overflow: 1 = set Cur-
rentCount to opposite limit; 2 = set CurrentCount to StartValue;
all other values are reserved.
NewSyncBehav-
ior
IN Int This value is not used.
NewCurrentCount
IN
Dint
CurrentCount Value
NewStartValue
IN
Dint
StartValue: Initial value of the HSC
NewReference1
IN
Dint
Reference1 Value
NewReference2
IN
Dint
Reference2 Value
NewUpperLimit
IN
Dint
Upper counting limit value
New_Lower_Limit
IN
Dint
Lower counting limit value

Table of Contents

Other manuals for Siemens SIMATIC S7-1200

Related product manuals