Usage Examples

<< Click to Display Table of Contents >>

 

Usage Examples

This section contains some examples on how to configure Tags of an application.

Assuming the use of a 90-30 PLC with the identifier DEBA01 to perform a reading of variables from %G10 to %G50, inclusive, in Byte mode, users can use a Block Tag with 41 Elements:

Device: 90-30

Item: DEBA01

B1: 1 (one, only if using a GEFANUC.ID file with the value 1 = 90-30#DEBA01)

B2: 17 (%G-type memory in Byte mode)

B3: 10 (starts at %G10)

B4: 0 (zero)

 

Assuming the use of a 90-70 PLC with the identifier DEBA02 to perform a reading of variables from %R10 to %R50, including the variable %R51, in Float mode, users can use a Block Tag with 21 Elements:

Device: 90-70

Item: DEBA02

B1: 2 (two, only if using a GEFANUC.ID file with the value 2 = 90-70#DEBA02)

B2: 51 (%R-type memory in Float mode)

B3: 10 (starts at %R10)

B4: 0 (zero)

 

Assuming the use of a 90-30 PLC with the identifier 506881 to perform a reading of 60 bits, starting at address %SA5, users can use a Block Tag with 60 Elements:

Device: 90-30

Item: 506881

B1: 49 (only if using a GEFANUC.ID file with the value 49 = 90-30#506881)

B2: 8 (eight, %SA-type memory in Bit mode)

B3: 5 (starts at %SA5)

B4: 0 (zero)

 

NOTE

It is worth noticing that in memory types that allow access both by bit and by byte, the number of a bit starts at the first position of memory, in which bit 1 (one) is the less significant bit from byte 1 (one).

 

8

7

6

5

4

3

2

1

16

15

14

13

12

11

10

9

24

23

22

21

20

19

18

17

Byte 1 (one)

Byte 2 (two)

Byte 3 (three)

 

This way, the less significant bit of byte N is the bit indicated by the expression (N - 1) * 8 + 1. The less significant bit of byte 10 is equal to (10 - 1) * 8 + 1 = 73. For example, the %SB10 byte is formed by the bits described on the next table.

 

%SB80

%SB79

%SB78

%SB77

%SB76

%SB75

%SB74

%SB73

The most significant

 

 

 

 

 

 

The less significant

Was this page useful?