
Process interfacing via an automation system (PLC, PC)
9.6 Control via TCP/IP and RS232
SIMATIC MV500
Operating Instructions, 03/2021, C79000-G8976-C494-05
197
9.6
Control via TCP/IP and RS232
You can control the optical reader using a TCP/IP or RS232 connection.
Note
Upload process not yet completed: Control commands are discarded
Note that all control commands are discarded until the optical reader completes power-up. To
determine whether the optical reader is ready for operation, you need to query the status
until the optical reader sends a response frame.
This applies even when you use a TCP/IP connection. In this case, an existing TCP/IP
connection does not mean that the optical reader has already completed the restart.
Requirement
To control the reader via TCP/IP or RS232, the respective transport connection in the WBM
must be configured as a trigger source. The appropriate transport connection must be
configured as a source for the controller for all other commands ("Settings >
Communication > Use > Connection").
When using the TCP/IP transport connection, the optical reader is either a client or server
("Settings > Communication > Interfaces > TCP").
•
As client, the optical reader actively establishes the connection to the partner. In this case,
the partner must be the server and accept an incoming connection at the configured port.
•
As server, the optical reader accepts an incoming connection of a client at the configured
port.
If the reader used has two Ethernet interfaces, the TCP connection is automatically
established to the interface which is located in the same subnet as the TCP client/ server.
Note
Restriction with identical transport connection for trigger and control
If an identical transport connection is configured as the source for trigger and control in the
WBM, the following restrictions apply:
•
When "M" is configured as trigger text, the remaining control commands can no longer be
used.
•
When "MATCH" is configured as trigger text, the command to overwrite the match string
can no longer be used.
Using the TCP/IP and RS232 connection, you can perform the following functions:
•
Trigger the reader.
•
Overwrite the match string of the current program (non-persistent).
•
Set and reset the DISA bit.
•
Query the status of the optical reader and acknowledge a group error.
•
Change the program.
Summary of Contents for SIMATIC MV500
Page 10: ...Preface SIMATIC MV500 10 Operating Instructions 03 2021 C79000 G8976 C494 05 ...
Page 16: ......
Page 28: ......
Page 32: ......
Page 92: ......
Page 114: ......
Page 148: ......
Page 244: ......
Page 254: ......
Page 260: ......
Page 292: ......
Page 294: ...Service Support SIMATIC MV500 294 Operating Instructions 03 2021 C79000 G8976 C494 05 ...