Connection
| Item | Value |
|---|---|
| Protocol | Modbus TCP (Modbus application protocol over TCP/IP) |
| Role | The printer is the server (slave). The PLC is the client (master). |
| Address | The printer's host name or IP address. |
| Port | 502 |
| Unit identifier | Ignored. Any value is accepted, and echoed in the response. |
| Clients | Up to 50 at the same time. Further connections are closed immediately. |
The printer has no idle timeout, so a PLC can keep one connection open and reuse it for all requests.
The printer disables Nagle's algorithm on its connections, so responses are sent at once, even in short polling cycles.
A request with an invalid MBAP header, that is a protocol identifier other than 0 or an impossible length, makes the printer close the connection.
tip
Use Read Device Identification to test the connection before reading any mapped data. It works on every printer, regardless of the mappings.