HSC_SET_STS (high-speed counter set status)

HSC_SET_STS manually sets or resets the HSC counting status.
Operation details: The HSC function block must be stopped (not counting) for the HSC_SET_STC function block to set or reset the HTS status. If the HSC function is not stopped, the input parameters continue to update and changes made using HSC_SET_STS are ignored.
Languages supported: Function block diagram, ladder diagram, structured text.
This instructions applies to the L50E and L70E controllers.
HSC_SET_STS
HSC_SET_STS
HSC_SET_STS parameters
Parameter
Parameter Type
Data Type
Description
Enable
Input
BOOL
Instruction block enable.
  • TRUE: Set/reset the HSC status.
  • FALSE: There is no HSC status change.
HscID
Input
UINT
Manually sets ore resets the HSC status.
Mode1Done
Input
BOOL
Mode 1A or 1B counting is done.
This bit can be set or reset when HSC is not counting.
HPReached
Input
BOOL
High preset reached.
This bit can be set or reset when HSC is not counting.
LPReached
Input
BOOL
Low preset reached.
This bit can be set or reset when HSC is not counting.
OFOccurred
Input
BOOL
Overflow occurred.
This bit can be set or reset when HSC is not counting.
UFOccurred
Input
BOOL
Underflow occurred.
This bit can be set or reset when HSC is not counting.
Sts
Output
UINT
Status codes are defined in HSC status codes (Sts).
ENO
Output
BOOL
Enables output. Applies to ladder diagram programs.

HSC status codes (Sts)

Status codes for the HSC function block
Status Code
Status Description
0x00
No action taken (not enabled).
0x01
HSC execution successful.
0x02
HSC command invalid.
0x03
HSC ID out of range.
0x04
HSC configuration error.

HSC_SET_STS examples

HSC_SET_STS function block diagram example
HSC_SET_STS function block diagram example
HSC_SET_STS ladder diagram example
HSC_SET_STS ladder diagram example
HSC_SET_STS structured text example
HSC_SET_STS structured text example
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal