Addressing
The Address of a tag tells the Site Runtime where the value is on the device. Every protocol has its own syntax. The Console checks the address while you type, but a correct form does not prove that the device has that address. Only a read proves it.
This page gives the syntax per family with examples. The generated protocol reference lists the exact pattern for each data type of each plugin.
How it works
- The address is one text of up to 128 characters.
- It is checked against the pattern of the plugin for the chosen Type. The same address can be right for UINT16 and wrong for FLOAT, because FLOAT takes two registers and may carry different suffixes.
- Some suffixes end with
#and set the byte order of the value:#B,#L,#BB,#BL,#LL,#LB. What they do depends on the family. See Byte order. - The dialog shows an example as placeholder and a hint under the field for Modbus, Siemens S7, HollySys and EtherNet/IP. For other plugins the runtime checks the address when it loads the tag, and a wrong address gives the tag quality
bad.
Quick reference
| Family | Pattern | Example | Section |
|---|---|---|---|
| Modbus TCP, RTU, ASCII | unit!reference[.bit] | 1!40002 | Modbus |
| Siemens S7 | DB1.DBW0, MW10, I0.1 | DB1.DBD4 | Siemens S7 |
| EtherNet/IP, Logix | symbolic tag name | Program:MainProgram.Counter | CIP |
| Omron FINS | D100, CIO10, EM0W10 | D100.3 | Omron FINS |
| Mitsubishi MC | D100, M10, X20 | D100.3 | Mitsubishi MC |
| Beckhoff ADS | indexGroup,indexOffset | 0x4020,100 | Beckhoff ADS |
| OPC UA | ns!identifier | 2!Filler.Temperature | OPC UA |
| BACnet/IP | AI1, BO3.Present_Value | AV10 | BACnet |
| IEC 60870-5-104 | IOA, or CA!IOA | 1001 | IEC 104 |
| DNP3 | group.variation.index | 30.5.0 | DNP3 |
| DL/T 645 | meter#DI | 123456789012#00-00-00-00 | DL/T 645 |
| MQTT | topics, not tag addresses | mii/uns/... | MQTT |
Modbus
Plugins: Modbus TCP, Modbus RTU, Modbus ASCII and the vendor variants.
<unit>!<reference>[#suffix]
<unit>!<reference>.<bit>
<unit>!<reference>.<length> (STRING, BYTES)
unitis the Modbus unit id (slave id), 0 to 255. Always write it, even if it is 1.referencehas a table digit and the register number. The first digit selects the table:
| First digit | Table | Typical types |
|---|---|---|
0 | Coil (read/write bit) | BOOL, BIT |
1 | Discrete input (read-only bit) | BOOL, BIT |
3 | Input register (read-only 16-bit) | INT16, UINT16, INT32, FLOAT ... |
4 | Holding register (read/write 16-bit) | the same |
- With the default Start Address PLC Addresses (Base 1),
40001is the first holding register. With Protocol Addresses (Base 0), the first holding register is40000. Check what your device manual means. - A 32-bit type takes two registers, a 64-bit type four, starting at the address.
.bitafter a holding or input register picks one bit, 0 to 15:1!40001.3.
| Address | Type | Meaning |
|---|---|---|
1!40002 | UINT16 | Unit 1, holding register 40002 (Filler speed) |
1!40003 | INT16 | Holding register 40003 with Decimal 0.1 (temperature in tenths of °C) |
1!40004 | FLOAT | Registers 40004 and 40005 (Filler pressure) |
4!40004 | FLOAT | The Compressor (unit 4) pressure |
1!40006 | UINT32 | Registers 40006 and 40007 (good count) |
1!30001 | UINT16 | Input register 30001 |
1!00001 | BOOL | Coil 1 (running) |
1!10001 | BOOL | Discrete input 1 |
1!40001.3 | BIT | Bit 3 of holding register 40001 |
Suffixes: see Byte order. In short, set the 32-bit order on the device (Endianess of 4-Byte Data), and use #BB, #LB, #LL, #BL on a single 64-bit tag.
The Modbus form accepts 1!40001.10 for STRING and BYTES, but the Modbus decoder of the Site Runtime does not read these types in this version. Use numeric types, or read the registers as integers.
More: Modbus TCP notes.
Siemens S7
Plugins: S7-200/1200/1500, S7-300/400.
| Form | Meaning | Types |
|---|---|---|
DB1.DBX0.0 | Bit 0 of byte 0 of data block 1 | BOOL, BIT |
DB1.DBB0 | Byte 0 of DB1 | INT8, UINT8 |
DB1.DBW0 | Word (16 bit) at byte 0 | INT16, UINT16, WORD |
DB1.DBD0 | Double word (32 bit) at byte 0 | INT32, UINT32, FLOAT, DWORD |
DB1.DBW0.10 | 10 bytes from byte 0 (length is even, 128 at most) | STRING |
IW0, I0 | Input word, input byte | INT16, UINT16 |
QW0, Q0 | Output word, output byte (O works like Q) | INT16, UINT16 |
MW0, M0 | Marker (flag) word, byte (F works like M) | INT16, UINT16 |
I0.1, Q0.2, M10.3 | Bit 1 of input byte 0, bit 2 of output byte 0, bit 3 of marker byte 10 | BOOL, BIT |
T0 | Timer 0 | INT32, UINT32 |
C0 | Counter 0 | INT16, UINT16 |
Examples: DB1.DBW0 UINT16, DB1.DBD4 FLOAT, DB10.DBX2.5 BOOL, MW20 INT16, DB5.DBB0 UINT8.
Rules:
- The number after
DBis the data block. The number afterDBW,DBD,DBB,DBXis the byte offset, not the word number. - The bit number after
.is 0 to 7 for a bit inside a byte. - Byte order suffixes
#B,#L(16 bit) and#BB,#BL,#LL,#LB(32 bit) are real for S7. See Byte order. - The connection form needs the rack and slot. Defaults: S7-1200/1500 rack 0 slot 1, S7-300/400 rack 0 slot 2.
CIP and Logix
Plugins: CIP EtherNet/IP, ControlLogix/CompactLogix, Omron NJ/NX, Allen-Bradley 5000.
The address is the symbolic tag name as it is in the controller. There is no register number.
| Address | Meaning |
|---|---|
Temperature | Controller-scoped tag |
Program:MainProgram.Counter | Program-scoped tag |
Motor1.Speed | Member of a structure (UDT) |
Recipe[3] | Array element 3 |
Matrix[1,2] | Element of a two-dimensional array (up to three indexes) |
tag:Temperature | The same as Temperature. The prefix tag: is removed. |
Rules: no spaces, at most 128 characters, no leading or trailing ., no .., and each name segment up to 40 characters. The type list has no STRING. Choose the type that matches the controller's data type (BOOL, SINT as INT8, INT, DINT as INT32, LINT, REAL as FLOAT, LREAL as DOUBLE).
The device form has the target IP, port 44818 and the PLC CPU Slot (0 by default; it is the CPU slot in the backplane for ControlLogix). For MicroLogix 1400 see the MicroLogix page (N7:0, B3:0/1).
Omron FINS
Plugins: FINS TCP, FINS UDP.
| Area | Prefix | Example | Notes |
|---|---|---|---|
| CIO | CIO | CIO10 | Word 10 of the CIO area |
| Auxiliary | A | A100 | Read only |
| Work | W | W5 | |
| Holding | H | H1 | |
| Data memory | D | D100 | |
| Timer/counter present value | P | P3 | No bit access |
| Extended memory | EM<bank>W | EM0W10 | Bank 0 to 255, word 10 |
| Flash | F | F5 | INT8, UINT8 only, read only |
- Bit:
D100.3(BIT, bit 0 to 15 on TCP). - 32-bit and 64-bit values take two and four words from the address.
- STRING:
D200.20(20 bytes, even, up to 128). AddHorLfor the byte order:D200.20L. - Suffixes
#B,#L,#BB,#BL,#LL,#LBare accepted and stripped. - Writing to
AandFareas is refused.
Examples: D100 UINT16, D110 FLOAT, CIO10 UINT16, W5.2 BIT, EM0W10 INT16.
Mitsubishi MC
Plugins: MC 3E, MC 1E, MC 4E, Keyence MC. All use the same device names.
<device><number>[.<bit>]
<device><number>.<length>[H|L] (STRING)
| Kind | Devices | Types |
|---|---|---|
| Word devices | D, SD, W, SW, R, ZR, Z, TN, STN, SN, CN | INT16, UINT16, INT32, UINT32, FLOAT, DOUBLE, STRING |
| Bit devices | X, Y, M, SM, L, F, V, S, B, SB, DX, DY, TS, TC, SS, STS, SC, CS, CC | BIT (BOOL) |
- The device number is decimal.
X20is device X, number 20. Write the number the way the runtime expects, not in the hexadecimal notation of some engineering tools. - A bit of a word device:
D100.3(BIT, 0 to 15). It is read only. - STRING:
D200.20(length in bytes, up to 255).
Examples: D100 UINT16, D102 FLOAT, M10 BIT, X20 BIT, W10 INT16, D100.3 BIT.
Beckhoff ADS
Plugin: Beckhoff ADS.
<indexGroup>,<indexOffset>
<indexGroup>,<indexOffset>.<length> (STRING)
Both numbers can be decimal or hexadecimal with 0x. The index group must be in the ranges 0x4020 to 0x4045 or 0xF000 to 0xF0FF.
| Address | Type | Meaning |
|---|---|---|
0x4020,0 | INT16 | Group 0x4020 (memory area), offset 0 |
0x4020,100 | FLOAT | Four bytes at offset 100 |
0x4020,200.20 | STRING | 20 characters at offset 200 |
16416,0 | UINT16 | The same as 0x4020,0 in decimal |
0xF020,0 | BOOL | A group in the 0xF000 range |
Symbolic TwinCAT names such as MAIN.Counter are not supported. Use the index group and offset from your TwinCAT project. Some groups are read only (0x4025, 0xF025, 0xF035) and one is write only (0xF006). The device needs the AMS net ids (see the notes of the protocol).
OPC UA
Plugin: OPC UA Client.
<namespace index>!<identifier>
OPC UA node id ns=2;s=Filler.Temperature is written 2!Filler.Temperature. The identifier can be:
| Form | Example | Node id kind |
|---|---|---|
| Plain text | 2!Filler.Temperature | String |
s= | 2!s=Filler.Temperature | String |
| Number | 0!2253 or 0!i=2253 | Numeric |
g= | 2!g=09087e75-8e5e-499b-954f-f2a9603db28a | GUID |
b= | 2!b=... | Opaque (byte string) |
- Array elements:
2[0]!Pump.Valuesor2[1,2]!Matrix(up to three indexes in brackets after the namespace). - Method call:
method:2!Pump.Reset. - Condition, alarm and event listener:
cond:,alarm:,event:. A bare prefix such asalarm:listens to all. - All numeric types, BOOL and STRING can be used. The demo plant publishes every value as DOUBLE.
The namespace index is not stable across servers. Read it from the server (for example with UaExpert) or from its namespace array. The demo plant uses 2.
BACnet
Plugin: BACnet/IP.
<object type><instance>[.<property>]
| Prefix | Object | Prefix | Object |
|---|---|---|---|
AI | Analog input | BI | Binary input |
AO | Analog output | BO | Binary output |
AV | Analog value | BV | Binary value |
MSI, MSO, MSV | Multi-state input, output, value | CSV, DV, TV | CharacterString, Date, Time value |
ACC, PIV, IV, LAV | Accumulator, positive integer, integer, large analog value | LO, BLO | Lighting output, binary lighting output |
- Without a property the Present_Value is read:
AI1,AV10,BO3. - A property by name:
AI1.Units,AV10.High_Limit,AI1.Object_Name. A numeric property id:AI1.custom.8. AO1.NULLandBO1.NULLwrite NULL to release a priority-array slot.- The device is one BACnet device. The device form takes its IP address and port 47808. Add network and MAC only for routed devices.
Examples: AI1 FLOAT, BI5 BIT, MSV2 UINT8, AV10.Object_Name STRING.
IEC 60870-5-104
Plugins: IEC 104 (one station), IEC 104 multi-station.
| Plugin | Address | Example |
|---|---|---|
| IEC 104 | information object address (IOA) | 1001 |
| IEC 104 multi-station | CA!IOA, common address then IOA | 1!1001 |
The station's common address is a device setting (Common Address, default 1). The runtime sends a general interrogation after STARTDT and then at the Station Interrogation Interval. Writes are off in this version.
DNP3
Plugin: DNP3.
<group>.<variation>.<index>[.value]
CROB.<index>:<count>:<on time>:<off time>
| Address | Type | Meaning |
|---|---|---|
1.2.0 | BIT | Binary input, with flags, point 0 |
10.2.3 | BIT | Binary output status, point 3 |
20.1.0 | INT32 | Counter, 32 bit, point 0 |
30.1.0 | INT32 | Analog input, 32 bit, point 0 |
30.5.0 | FLOAT | Analog input, single-precision float, point 0 |
40.3.1 | FLOAT | Analog output status, point 1 |
A control relay output block uses CROB.index:count:on:off. DNP3 writes are off in this version.
DL/T 645
Plugins: DL/T 645-2007 and DL/T 645-1997 (electricity meters).
| Plugin | Address | Example |
|---|---|---|
| 2007 | meter#DI3-DI2-DI1-DI0 | 123456789012#00-00-00-00 |
| 1997 | meter#DI1-DI0 | 123456789012#90-10 |
meter is the meter number (digits). The data identifier is in hexadecimal bytes separated by -. The 2007 plugin accepts optional suffixes after the identifier. DL/T 645 is read only.
MQTT
The Devices picker has no MQTT plugin. MQTT in MakeIntelligent is an Uplink (publish) and a read-only public feed. These carry topics, not tag addresses. See Uplinks and Namespace and MQTT topics.
Limits and good practice
- Copy addresses from the device's own documentation or tool, then test with one tag first.
- Use the placeholder in the tag dialog as a pattern. It changes with the type.
- Choose the type that matches the device's data type. A FLOAT on two registers that hold a 32-bit integer gives a wrong value, not an error.
- Remember the base: a Modbus address that is one off is the most common mistake.
- When an address is refused, the message shows the expected pattern, for example "expected IOA, e.g. 1001" for IEC 104.
Troubleshooting
| Symptom | Cause | Fix |
|---|---|---|
| "Invalid address for UINT16 (e.g. 1!40001)" | Pattern mismatch for the type. | Use the placeholder and hint of the field. |
Value is bad, other tags are good | The address does not exist on the device. | Check the device map and the base. |
| Value is 65535 times too large or negative | Wrong signedness or type. | Use INT16 or UINT16 as the device defines it. |
| Float is nonsense | Register order differs. | Change Endianess of 4-Byte Data. See Data types and quality. |
| S7 read fails | Wrong DB number, offset out of range, optimised block. | See the S7 notes. |
| OPC UA node not found | Wrong namespace index or identifier. | Read the node id from the server. |