HSCE
The HSCE instruction is used for controlling and reading the HSC counter.
Languages supported: Function block diagram, ladder diagram, structured text.
This instruction applies to the L20E, L50E, and L70E controllers.
HSCE

Parameter | Parameter Type | Data Type | Description |
---|---|---|---|
Enable | Input | BOOL |
|
Channel | Input | HSCE_CHANNEL | The HSCE channel. |
Run | Input | BOOL | For HSCE to count the operational state.
|
Reset | Input | BOOL | TRUE: All outputs are cleared and accumulator. Rate1 and Rate2 are also cleared to 0. Plug-in HSC module status clear. The priority of Reset input is higher than the input of Run. |
Done | Output | BOOL |
|
Active | Output | BOOL |
|
Rate1 | Output | REAL | Current Pulse Rate in user unit per second (Per Pulse method). |
Rate2 | Output | REAL | Current Pulse Rate in user unit per second (Cyclic method). |
TPValue | Output | LINT | Accumulator Value capture when touch probe is triggered. |
OutputSts | Output | UINT | HSC plug-in Physical and Virtual Output status and is only applicable for HSC counter 0. Bit 0: Output 0 (Physical Output Status) Bit 1 to 15: Output 1 to Output 15 (Virtual Output Status) |
Status | Output | UINT | HSC status information. |
Error | Output | BOOL | Indicates an error occurred. |
HSCE examples
HSCE function block diagram example

HSCE ladder diagram example

HSCE text structure example

Provide Feedback