Process interfacing via an automation system (PLC, PC)
9.6 Control via TCP/IP and RS232
SIMATIC MV500
156
Operating Instructions, 06/2018, C79000-G8976-C494-01
Response string
"RGST<statusbyte><aktuelleprogrammnr><fehlernr><endekennung>" (Reply Get STate)
Table 9- 55 Format of the response string
Characters
Description
<statusbyte>
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 126)".
<aktuelleprogrammnr>
Currently selected program number.
•
Two printable ASCII characters with the value "0" to "9".
•
Valid range of values: 00 ... 15.
<fehlernr>
Error code of the currently pending error
You can find additional information in the section "Error messag-
•
Coding corresponding to <current program number>
•
There is no error if the value is "00".
<endekennung>
- Non-printable ASCII character with the value "0x04".
9.6.5
Select program number
This command changes the program or switches to the processing mode with the specified
program number, provided this was assigned.
String
"MR<programnr>" (Machine command Run program <programnr>)
Table 9- 56 String structure
Characters
Description
<programnr>
Number of the program saved.
•
Two printable ASCII characters with the value "0" to "9".
•
Valid range of values: 00 ... 15.
This command returns no response string.
•
Using the "Query status" command, you then check if the
program change has been successful. If, for example, pro-
gram number "5" is selected and the status is queried, the
string "MR05MGST" can be sent.
•
Using <statusbyte> and <currentcodeno>, you can check
whether the optical reader is in processing mode with the
new program number.
If the DISA bit is not set already, the optical reader will set it
automatically to save the program and then reset it.