Addressing

For addressing a single value, use the following address format:

AREA,DATA_TYPE START_BYTE, where AREA indicates the data area,
DATA_TYPE indicates the data type,
and START_BYTE indicates the starting byte of data

To address one of the bits of the data byte, you must use the following address format:

AREA,X START_BYTE.BIT_INDEX, where AREA indicates the data area,
START_BYTE indicates the starting byte of data,
and BIT_INDEX indicates the bit number in a byte (from 0 to 7)

For addressing an array of values, use the following address format:

AREA,DATA_TYPE START_BYTE[LENGTH], where AREA indicates the data area,
DATA_TYPE indicates the data type,
START_BYTE indicates the starting byte of data,
and LENGTH indicates the number of elements in the array

The table below maps data areas to supported address ranges, data types and access modes.

Data Area

Address Range

Data Type

Access Mode

DB, M, Q, I

0 - 65535

BOOL, BYTE, BYTE ARRAY, WORD, WORD ARRAY, INT, INT ARRAY, DWORD, DWORD ARRAY, DINT, DINT ARRAY, REAL, REAL ARRAY, CHAR ARRAY, DATETIME, DATETIME ARRAY

Read/Write

The following are examples of available addresses:

  • DB1,INT0

  • DB7,DBX99.5

  • M0,X0.1

  • DB10,REAL2[50]

  • DB111,DT0

  • I,X10.3

  • Q,WORD4

  • DB12,CHAR0[6]

Last updated