HSCE_SET_STS

The instruction manually sets and resets the HSC counting status flags. The HSC function block must be stopped for the HSCE_SET_STC function block to set or reset its HTS status. If the HSC function block is not stopped or the HSC channel is not configured, the HSC2_SET_STS function block will throw an error.
Languages supported: Function block diagram, ladder diagram, structured text.
This instruction applies to the L20E, L50E, and L70E controllers.
HSCE_SET_STS
HSCE_SET_STS
HSCE_SET_STS parameters
Parameter
Parameter Type
Data Type
Description
Enable
Input
BOOL
Function block enable.
  • TRUE: Set or reset the HSC status.
  • FALSE: There is no HSC status change.
Channel
Input
HSCE_CHANNEL
The HSCE channel.
HPReached
Input
BOOL
When the high preset value is reached, this bit will be set to TRUE by the plug-in module. Set or reset this bit by the HSCE_SET_STS function block.
LPReached
Input
BOOL
When the low preset value is reached, this bit will be set to TRUE by the plug-in module. Set or reset this bit by the HSCE_SET_STS function block.
OFOccurred
Input
BOOL
When overflow occurred, this bit will be set to TRUE by the plug-in module. Set or reset this bit by the HSCE_SET_STS function block.
UFOccurred
Input
BOOL
When underflow occurred, this bit will be set to TRUE by the plug-in module. Set or reset this bit by the HSCE_SET_STS function block.
TouchProbe
Input
BOOL
When the touch probe is triggered, this bit will be set to TRUE by the plug-in module.
Hold
Input
BOOL
When HSC hold is triggered, this bit will be set to TRUE by the plug-in module. Set or reset this bit by the HSCE_SET_STS function block. This input parameter is only effective for counter 0. Counter 1 is always reset
Preset
Input
BOOL
When Z ACC Reset is triggered, this bit will be set to TRUE by the plug-in module.
Set or reset this bit by the HSCE_SET_STS function block.
This input parameter is only effective for counter 0. Counter 1 is always reset.
Done
Output
BOOL
HSC configuration action (initiated by this instruction) succeeds.
Error
Output
BOOL
Indicates that an error occurred.
ErrorID
Output
UINT
When an error occurs, ErrorID contains the error codes.

HSCE_SET_STS examples

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