Process interfacing via an automation system (PLC, PC)
9.6 Control via TCP/IP and RS232
SIMATIC MV500
200 Operating Instructions, 03/2021, C79000-G8976-C494-05
9.6.4 Query status
This command returns the status byte, the current program number and an error number in
the response string.
String: "MGST" (Machine command Get STate)
Response string
"RGST<statusbyte><aktuelleprogrammnr><fehlernr><endekennung>" (Reply Get STate)
Table 9- 55 Format of the response string
Non-printable ASCII character corresponding to the status byte.
You can find additional information in the section "Assignment of
the interfaces relevant to PROFINET IO (Page 172)".
Currently selected program number.
• Two printable ASCII characters with the value "0" to "9".
• Valid range of values: 00 ... 15.
Error code of the currently pending error
You can find additional information in the section "Error messag-
es (Page 224)".
• Coding corresponding to <current program number>
• There is no error if the value is "00".
- Non-printable ASCII character with the value "0x04".