xDiagnosticAvailable : BOOL; // TRUE if there is diagnostic
information
sDiagString : STRING; // Diagnostic string
xAcknowledge : BOOL := FALSE; // Approve diagnostic information
xReset : BOOL := FALSE; // Remote adapter reset
END_VAR
Implementation section (ST programming language)
eState := FP7CPU_UNIT_AFP7CPS41ES.eState;
xDiagnosticAvailable := FP7CPU_UNIT_AFP7CPS41ES.xDiagnosticAvailable;
sDiagString := FP7CPU_UNIT_AFP7CPS41ES.sDiagString;
FP7CPU_UNIT_AFP7CPS41ES.xAcknowledge := xAcknowledge;
FP7CPU_UNIT_AFP7CPS41ES.xReset := xReset;
Implementation section (LD programming language)
The current state of the remote adapter is stored in eState.
Exampl
e
When line is connected
normally:
When line is disconnected:
RUNNING
ENCAPSULA
TION_CONFIG
If an error occurs, xDiagnosticAvailable will be set to TRUE and a message will be found in
sDiagString.
If xAcknowledge is set to TRUE, xDiagnosticA
vailable will return to FALSE.
If xReset is set to TRUE, the line will be closed temporarily and then reconnected.
(To reset all remote adapters simultaneously, use xReaset of the EtherNet/IP scanner device.)
13.4 EtherNet/IP
13-50 WUME-GM1RTXOP-01