F_ConvMasterDevStateToString
The function F_ConvMasterDevStateToString
converts the device status of the EtherCAT master to string.
For nState = 0 'OK' is returned, otherwise, 'Not OK – Link error', e.g. for nState = 1. If several errors are pending, they are separated by hyphens.
Inputs
VAR_INPUT
nState : WORD;
END_VAR
Name | Type | Description |
---|---|---|
nState | WORD | Device state of the EtherCAT master; can be linked as DevState in the System Manager from the inputs of the EtherCAT master to the PLC. 0x0001 = ‘Link error‘ |
Requirements
Development environment | Target platform | PLC libraries to include |
---|---|---|
TwinCAT v3.1.0 | PC or CX (x86, x64, ARM) | Tc2_EtherCAT |