HSCE_CFG
The HSCE_CFG instruction is used to configure high-speed counter.
Languages supported: Function block diagram, ladder diagram, structured text.
This instruction applies to the L20E, L50E, and L70E controllers.
HSCE_CFG

Parameter | Parameter Type | Data Type | Description |
---|---|---|---|
Execute | Input | BOOL | Rising edge initiates the HSC configuration (HSCE Enable should be equal to FALSE). A falling edge will clear all the output value. |
Channel | Input | HSCE_CHANNEL | The HSCE channel. |
InitAccumulator | Input | LINT | Accumulator initial value. |
OFSetting | Input | LINT | Counter overflow limit value. |
UFSetting | Input | LINT | Counter underflow limit value. |
HPSetting | Input | LINT | High Preset (HP) Value of HSCE. |
LPSetting | Input | LINT | Low Preset (LP) Value of HSCE. |
PLS_Offset | Input | USINT | Offset to start with in the PLS data array. |
OutputMask | Input | UDINT | Output mask for Programmable Limit Switch (PLS) functionality. |
HPOutput | Input | UDINT | High preset outputs state. |
LPOutput | Input | UDINT | Low preset outputs state. |
Done | Output | BOOL | HSC configuration action (initiated by this instruction) succeeds. |
Error | Output | BOOL | Indicates that an error occurred. |
HSCE_CGF examples
HSCE_CGF function block diagram example

HSCE_CGF ladder diagram example

HSCE_CGF structured text example

Provide Feedback