Skip to main content

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​

FamilyPatternExampleSection
Modbus TCP, RTU, ASCIIunit!reference[.bit]1!40002Modbus
Siemens S7DB1.DBW0, MW10, I0.1DB1.DBD4Siemens S7
EtherNet/IP, Logixsymbolic tag nameProgram:MainProgram.CounterCIP
Omron FINSD100, CIO10, EM0W10D100.3Omron FINS
Mitsubishi MCD100, M10, X20D100.3Mitsubishi MC
Beckhoff ADSindexGroup,indexOffset0x4020,100Beckhoff ADS
OPC UAns!identifier2!Filler.TemperatureOPC UA
BACnet/IPAI1, BO3.Present_ValueAV10BACnet
IEC 60870-5-104IOA, or CA!IOA1001IEC 104
DNP3group.variation.index30.5.0DNP3
DL/T 645meter#DI123456789012#00-00-00-00DL/T 645
MQTTtopics, not tag addressesmii/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)
  • unit is the Modbus unit id (slave id), 0 to 255. Always write it, even if it is 1.
  • reference has a table digit and the register number. The first digit selects the table:
First digitTableTypical types
0Coil (read/write bit)BOOL, BIT
1Discrete input (read-only bit)BOOL, BIT
3Input register (read-only 16-bit)INT16, UINT16, INT32, FLOAT ...
4Holding register (read/write 16-bit)the same
  • With the default Start Address PLC Addresses (Base 1), 40001 is the first holding register. With Protocol Addresses (Base 0), the first holding register is 40000. Check what your device manual means.
  • A 32-bit type takes two registers, a 64-bit type four, starting at the address.
  • .bit after a holding or input register picks one bit, 0 to 15: 1!40001.3.
AddressTypeMeaning
1!40002UINT16Unit 1, holding register 40002 (Filler speed)
1!40003INT16Holding register 40003 with Decimal 0.1 (temperature in tenths of °C)
1!40004FLOATRegisters 40004 and 40005 (Filler pressure)
4!40004FLOATThe Compressor (unit 4) pressure
1!40006UINT32Registers 40006 and 40007 (good count)
1!30001UINT16Input register 30001
1!00001BOOLCoil 1 (running)
1!10001BOOLDiscrete input 1
1!40001.3BITBit 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.

STRING and BYTES

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.

FormMeaningTypes
DB1.DBX0.0Bit 0 of byte 0 of data block 1BOOL, BIT
DB1.DBB0Byte 0 of DB1INT8, UINT8
DB1.DBW0Word (16 bit) at byte 0INT16, UINT16, WORD
DB1.DBD0Double word (32 bit) at byte 0INT32, UINT32, FLOAT, DWORD
DB1.DBW0.1010 bytes from byte 0 (length is even, 128 at most)STRING
IW0, I0Input word, input byteINT16, UINT16
QW0, Q0Output word, output byte (O works like Q)INT16, UINT16
MW0, M0Marker (flag) word, byte (F works like M)INT16, UINT16
I0.1, Q0.2, M10.3Bit 1 of input byte 0, bit 2 of output byte 0, bit 3 of marker byte 10BOOL, BIT
T0Timer 0INT32, UINT32
C0Counter 0INT16, UINT16

Examples: DB1.DBW0 UINT16, DB1.DBD4 FLOAT, DB10.DBX2.5 BOOL, MW20 INT16, DB5.DBB0 UINT8.

Rules:

  • The number after DB is the data block. The number after DBW, DBD, DBB, DBX is 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.

AddressMeaning
TemperatureController-scoped tag
Program:MainProgram.CounterProgram-scoped tag
Motor1.SpeedMember of a structure (UDT)
Recipe[3]Array element 3
Matrix[1,2]Element of a two-dimensional array (up to three indexes)
tag:TemperatureThe 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.

AreaPrefixExampleNotes
CIOCIOCIO10Word 10 of the CIO area
AuxiliaryAA100Read only
WorkWW5
HoldingHH1
Data memoryDD100
Timer/counter present valuePP3No bit access
Extended memoryEM<bank>WEM0W10Bank 0 to 255, word 10
FlashFF5INT8, 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). Add H or L for the byte order: D200.20L.
  • Suffixes #B, #L, #BB, #BL, #LL, #LB are accepted and stripped.
  • Writing to A and F areas 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)
KindDevicesTypes
Word devicesD, SD, W, SW, R, ZR, Z, TN, STN, SN, CNINT16, UINT16, INT32, UINT32, FLOAT, DOUBLE, STRING
Bit devicesX, Y, M, SM, L, F, V, S, B, SB, DX, DY, TS, TC, SS, STS, SC, CS, CCBIT (BOOL)
  • The device number is decimal. X20 is 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.

AddressTypeMeaning
0x4020,0INT16Group 0x4020 (memory area), offset 0
0x4020,100FLOATFour bytes at offset 100
0x4020,200.20STRING20 characters at offset 200
16416,0UINT16The same as 0x4020,0 in decimal
0xF020,0BOOLA 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:

FormExampleNode id kind
Plain text2!Filler.TemperatureString
s=2!s=Filler.TemperatureString
Number0!2253 or 0!i=2253Numeric
g=2!g=09087e75-8e5e-499b-954f-f2a9603db28aGUID
b=2!b=...Opaque (byte string)
  • Array elements: 2[0]!Pump.Values or 2[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 as alarm: 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>]
PrefixObjectPrefixObject
AIAnalog inputBIBinary input
AOAnalog outputBOBinary output
AVAnalog valueBVBinary value
MSI, MSO, MSVMulti-state input, output, valueCSV, DV, TVCharacterString, Date, Time value
ACC, PIV, IV, LAVAccumulator, positive integer, integer, large analog valueLO, BLOLighting 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.NULL and BO1.NULL write 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.

PluginAddressExample
IEC 104information object address (IOA)1001
IEC 104 multi-stationCA!IOA, common address then IOA1!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>
AddressTypeMeaning
1.2.0BITBinary input, with flags, point 0
10.2.3BITBinary output status, point 3
20.1.0INT32Counter, 32 bit, point 0
30.1.0INT32Analog input, 32 bit, point 0
30.5.0FLOATAnalog input, single-precision float, point 0
40.3.1FLOATAnalog 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).

PluginAddressExample
2007meter#DI3-DI2-DI1-DI0123456789012#00-00-00-00
1997meter#DI1-DI0123456789012#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​

SymptomCauseFix
"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 goodThe address does not exist on the device.Check the device map and the base.
Value is 65535 times too large or negativeWrong signedness or type.Use INT16 or UINT16 as the device defines it.
Float is nonsenseRegister order differs.Change Endianess of 4-Byte Data. See Data types and quality.
S7 read failsWrong DB number, offset out of range, optimised block.See the S7 notes.
OPC UA node not foundWrong namespace index or identifier.Read the node id from the server.