Skip to main content

Addressing

The printer has two address spaces:

  • Coils. One table of single-bit items, addressed 0–65535. Functions 01 (Read Coils) and 02 (Read Discrete Inputs) read the same table, so every coil is also readable as a discrete input.
  • Registers. One table of 16-bit items, addressed 0–65535. Functions 03 (Read Holding Registers) and 04 (Read Input Registers) read the same table, so every register is also readable as an input register.

Address notation​

The mapping list gives every address in two forms:

  • Protocol address (Addr). The 0-based address sent in the request. This is also the address shown in the printer's settings.
  • Modicon reference (Ref). The 1-based convention used by many PLC programming tools, where the leading digit selects the table and the rest is a 1-based index. Protocol address n is coil reference n + 1 and holding register reference 40001 + n.
Protocol addressCoil referenceRegister reference
00000140001
990010040100
9999010000410000
65535065536465536

References above 9999 use the six-digit form: 010000–065536 for coils and 410000–465536 for registers.

Since both read functions serve the same table, a register is equally reachable as input register reference 3xxxx, and a coil as discrete input reference 1xxxx. The mapping list only shows the 0xxxx and 4xxxx forms.

tip

PLC tools differ in which notation they expect, and some silently subtract 1. Before implementing the rest, check with a single read of a known item, for example a counter whose value you can see in the printer's web UI. If the value is wrong or the read fails with exception 02, you are probably off by one.

Example​

In the example mapping list, the lot number is a STRING of 8 registers at protocol address 2. Depending on the tool, it is entered as:

Tool expectsEnter
0-based protocol address2, length 8
Modicon holding register40003, length 8
Modicon input register30003, length 8