Setting/Resetting Disa Bit; Query Status - Siemens SIMATIC MV550 S Operating Instructions Manual

Table of Contents

Advertisement

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
Structure / description
Character no.
0
1
Meaning
Command identifier
Val-
M
A
ue/character
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.
9.6.3

Setting/resetting DISA bit

Set DISA bit
Use this command to set the DISA bit.
String: "MDIH" (Machine command set DIsable signal High)
Reset DISA bit
Use this command to reset the DISA bit.
String: "MDIL" (Machine command set DIsable signal Low)
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)
SIMATIC MV500
Operating Instructions, 05/2019, C79000-G8976-C494-02
2
3
4
5
More significant byte
of the length "m" of
the following match
string
T
C
H
0x00 ... 0xFF
Process interfacing via an automation system (PLC, PC)
9.6 Control via TCP/IP and RS232
6
Less significant byte
of the length "m" of
the following match
string
0x00 ... 0xFF
7
...
n-1
n
New match string with a
length "m"
All printable characters
155

Advertisement

Table of Contents
loading

Table of Contents