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.

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