F_ConvBK1120CouplerStateToString
The function F_ConvBK1120CouplerStateToString
returns the coupler state of the BK1120/BK1150/BK1250 as string. For nState = 0 'No error' is returned, otherwise 'K-bus error' is returned, e.g. for nState = 1. If several errors are pending, they are separated by commas.
Inputs
VAR_INPUT
nState : WORD;
END_VAR
Name | Type | Description |
---|---|---|
nState | WORD | Coupler state; can be linked in the System Manager from the inputs of the BK1120/BK1250 to the PLC. 0x0000 = ’No error’ |
Requirements
Development environment | Target platform | PLC libraries to include |
---|---|---|
TwinCAT v3.1.0 | PC or CX (x86, x64, ARM) | Tc2_EtherCAT |