10.6.6
Query status
This command returns the status byte, the current program number and an error number in
the response string.
Character string
"MGST" (Machine command Get STate)
Response string
"RGST<statusbyte><currentprogramnumber><errornumber><endidentifier>" (Reply Get
STate)
<status byte> - Non-displayable ASCII characters that corresponds to the status byte (see
section "Assignment of the interfaces relevant to PROFINET IO (Page 270)").
<currentprogramnumber> - Currently selected program number.
<end identifier> - Non-displayable ASCII characters with the value 0x04.
● Two displayable ASCII characters with value "0" to "9".
● Valid range of values: 00 to 15.
<error no> - Error code of the currently pending error (see section "Error messages
(Page 334)").
● Coding as for <currentprogramnumber>.
● No error pending if the value is 00.
SIMATIC MV420 / SIMATIC MV440
Operating Instructions, 04/2013, A5E02371045-06
Process interfacing via an automation system (PLC, PC)
10.6 Control via TCP/IP and RS-232
305