F_ConvBK1120CouplerStateToString

F_ConvBK1120CouplerStateToString 1:

The function F_ConvBK1120CouplerStateToString supplies the coupler status of the BK1120/BK1250 as a string.

VAR_INPUT

VAR_INPUT
    nState : WORD;
END_VAR

nState: Coupler status (CouplerState) can be linked in the System Manager from the inputs of the BK1120/BK1250 to the PLC.

    0x0000 = No error
    0x0001 = K-Bus error
    0x0002 = Configuration error
    0x0010 = Outputs disabled
    0x0020 = K-Bus overrun
    0x0040 = Communication error (Inputs)
    0x0080 = Communication error (Outputs)

Requirements

Development environment

Target system type

PLC libraries to be linked

TwinCAT v2.10.0 or higher

PC or CX (x86)

TcEtherCAT.lib
( Standard.Lib; TcBase.Lib; TcSystem.Lib, TcUtilities.Lib are included automatically )

TwinCAT v2.10.0 Build >= 1301 or higher

CX (ARM)