Skip to main content

Connection

ItemValue
ProtocolModbus TCP (Modbus application protocol over TCP/IP)
RoleThe printer is the server (slave). The PLC is the client (master).
AddressThe printer's host name or IP address.
Port502
Unit identifierIgnored. Any value is accepted, and echoed in the response.
ClientsUp 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.