F_ConvExtStateToString

The F_ConvExtStateToString function returns the extended EtherCAT slave state as a string.
If bit nExtendedState.16 is set, the string “EMPTY” is returned.
If the nExtendedState.16 bit is not set (e.g., when nExtendedState = 0), “ ” is returned; otherwise (e.g., when nExtendedState = 1), “INIT ” is returned. If several messages are pending, they are separated by spaces.
Inputs
VAR_INPUT
nExtendedState : DWORD;
END_VARName | Type | Description |
|---|---|---|
nExtendedState | DWORD | Extended EtherCAT slave state as a DWORD 0x___1____ = 'EMPTY' |
Requirements
Development environment | Target platform | PLC libraries to include |
|---|---|---|
TwinCAT v3.1.4026.26 | PC or CX (x86, x64, Arm®) | Tc2_EtherCAT >= 3.8.1.0 |