F_ConvStateToString
The function F_ConvStateToString
returns the EtherCAT slave state as string. For nState = 0 ‘ ‘ is returned, otherwise, ‘INIT ‘ is returned, e.g. for nState = 1. If several messages are pending, they are separated by spaces.
Inputs
VAR_INPUT
nState : WORD;
END_VAR
Name | Type | Description |
---|---|---|
nState | WORD | EtherCAT slave state as WORD 0x___1 = 'INIT' |
Requirements
Development environment | Target platform | PLC libraries to include |
---|---|---|
TwinCAT v3.1.0 | PC or CX (x86, x64, ARM) | Tc2_EtherCAT |