Addressing Examples

<< Click to Display Table of Contents >>

 

Addressing Examples

To read the %SB80 bit in Bit mode:

N2: 10 (equal to %SB in Bit mode)

N3: 80 (reads the 80th bit)

N4: 0 (zero)

 

To read the %R594 register in Word mode:

N2: 20 (equal to %R always in Word mode)

N3: 594 (register number to read)

N4: 0 (zero)

 

To read a 100 bytes in Text mode, starting from address %R594:

N2: 27 (equal to %R in Text mode)

N3: 594 (starts in %R594)

N4: 100 (number of characters to read)

 

At protocol level, this Tag performs a reading of 50 registers (Words), starting from %R594 up to %R644, to receive all 100 bytes that compose the text (characters in ASCII format).

To read from %G10 up to %G50 variables, inclusive, in Byte mode, from a PLC with an IP address equal to 4.0.0.4 using the gef_cfg.ini file as an example:

B2: 17 (equal to %G in Byte mode)

B3: 10 (starts at %G10)

B4: 0 (zero)

 

To read 60 bits from a PLC with an IP address equal to 3.0.0.1 in Bit mode, starting from address %SA5:

B2: 8 (equal to %SA in Bit mode)

B3: 5 (starts at %SA5)

B4: 0 (zero)

Was this page useful?