Skip to main content

3.4. Tag Format

3.4. Tag Format

 

1 bit data from relay index can be entered and displayed as one of the 3 formats of 1 bit, 8 bit or 32 bit.

 

Refer to the I/O configuration table. In most cases, 8 bit format will have a suffix of ‘B’ (Byte), 16 bit format will have a suffix of ‘W’ (Word) and 32 bit will have a suffix of ‘L’ (Long) on the name of relay type, and the 1 bit format will not have any suffix.

 

For example for the X relay of [Table 3-1], XB is used as the name for 8 bit, XW for 16 bit and X for 1 bit with an index.

 

Data configured as“X1~X8”is XB1, and data configured as “X1~X16” or “XB1~XB2” is XW1.

 

Table 31 Relationship of X, XB and XW

 

Ù Higher                                                         Lower Ú

1 bit

X16

X15

X14

X13

X12

X11

X10

X9

X8

X7

X6

X5

X4

X3

X2

X1

8 bit

XB2

XB1

16 bit

XW1

 

X12 for example can be entered in 4 different formats as shown in [Table 3-2]. These 4 formats mean the same data bit.

 

Table 32 4 Formats of X12

1 bit format

X12

12th X bit

8 bit format

XB2/4

4th bit of 2nd XB byte

16 bit format

XW1/12

12th bit of 1st XW word

32 bit format

XL1/12

12th bit of 1st XL double word

 

As one more example, X31 is the same as XB4/7, XW2/15 and XL1/31.

 

HRLadder has the function to select one of the 4 formats and display it on the ladder diagram. Select View - “In x bit tag format”menu or every time you press the  button on the Tool Bar, the display format will circulate in the order of 1 bit → 8 bit → 16 bit → 32 bit as shown in [Figure 3.18].

 

1 Bit Format

 

8 Bit Format

 

16 Bit Format

 

32 Bit Format

 

Figure 3.18 1, 8, 16 and 32 Bit Tag Format

 

When the user enters the tag, it will always be converted to the current display format. For example, if you enter the instruction tag of “X51” when the current display format is in 16 bit display format, it will immediately be entered as “XW4/3”.