F_ConvBK1120CouplerStateToString

F_ConvBK1120CouplerStateToString 1:

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.

F_ConvBK1120CouplerStateToString 2: 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҆
0x0001 = ҅K-Bus error҆
0x0002 = ҅Configuration error҆
0x0010 = ҅Outputs disabled҆
0x0020 = ҅K-Bus overrun҆
0x0040 = ҅Communication error (Inputs)҆
0x0080 = ҅Communication error (Outputs)҆

Prerequisites

Development environment

Target platform

PLC libraries to include

TwinCAT v3.1.0

PC or CX (x86, x64, Arm®)

Tc2_EtherCAT