Process interfacing via an automation system (PLC, PC)
9.6 Control via TCP/IP and RS232
SIMATIC MV500
Operating Instructions, 06/2018, C79000-G8976-C494-01
155
It is only possible to overwrite a match string if the optical reader is in processing mode and
matching was activated during program saving for the current program. If the match string
cannot be overwritten, an entry is made in the diagnostic data.
The following command must be sent to overwrite the match string:
Table 9- 54 Command for overwriting the match string
Command identifier More significant byte
of the length "m" of
the following match
Less significant byte
of the length "m" of
the following match
New match string with a
length "m"
M A T C H 0x00 ... 0xFF 0x00 ... 0xFF All printable characters
Note that saving the new match string is not persistent. If the reader exits processing mode,
for example by changing to STOP mode or to the group error status, the overwritten match
string is discarded. This also applies to a program change.
The characters of the command must be sent as a contiguous command. If the spacing
between the individual characters is too large, receipt of the new match string is aborted.
The characters 5 and 6 are interpreted as an unsigned 16-bit word and form the overall
length of the new match string starting at character 7.
Setting/resetting DISA bit
Set DISA bit
Use this command to set the DISA bit.
String: "MDIH" (Machine command set DIsable signal High)
Use this command to reset the DISA bit.
String: "MDIL" (Machine command set DIsable signal Low)
This command returns the status byte, the current program number and an error number in
the response string.
String: "MGST" (Machine command Get STate)