[N/B] Parameters

<< Click to Display Table of Contents >>

 

[N/B] Parameters

Reading or Writing

 

N1 or B1

Not used, leave it in 0 (zero)

N2 or B2

Data Type and Area. This value must be composed by the sum of a data type plus an Area. If the value of a data type is equal to 0 (zero), then assumes the basic data type of that Area

N3 or B3

Special usage parameter. Leave it in 0 (zero) if the address in an Area, or offset, is less than 65535 and there is no need to inform the size if a data type is equal to a String. Otherwise, please check topic Using the N3 or B3 Parameter

N4 or B4

Value of the address in an Area, or offset, for values up to 65535. For greater values, please check topic Using the N3 or B3 Parameter

 

Values for Areas

Value

Meaning

0

Input

1

Direct input

2

Output

3

Direct output

4

Link relay

5

Special link relay

6

Internal relay

7

Special internal relay

8

Latch relay

9

Annunciator relay

10

Edge relay

11

Step relay

12

Timer contact

13

Timer coil

14

Integrating timer contact

15

Integrating timer coil

16

Counter contact

17

Counter coil

18

Timer value

19

Integrating timer value

20

Counter value

21

Data register

22

Special data register

23

Link register

24

Special link register

25

File register

26

File register

27

Index register

28

Long Timer Contact

29

Long Timer Coil

30

Long Timer Current Value

31

Long Retentive Timer Contact

32

Long Retentive Timer Coil

33

Long Retentive Timer Current Value

34

Long Counter Contact

35

Long Counter Coil

36

Long Counter Current Value

 

NOTES

The default data type of Areas 18, 19, 20, 21, 23, 24, 25, 26, 27, and 33 is a Word (unsigned 16-bit) and does not accept being configured as a Bit data type.

The default data type of Areas 30 and 36 is a Double Word (unsigned 32-bit) and does not accept being configured as a Bit data type.

The default data type of all other Areas is a Bit.

 

Values for Data Types

Value

Meaning

000

Basic data type of this Area (Bit or Word)

100

Bit (value 1 or 0)

200

Word value (unsigned 16-bit)

300

Short value (signed 16-bit)

400

Double Word value (unsigned 32-bit)

500

Long value (signed 32-bit)

600

Floating Point value (32-bit floating point, IEEE 754)

700

Double Floating Point value (64-bit double precision floating point, IEEE 754)

800

BCD value (16-bit)

900

Long BCD value (32-bit)

1000

32-bit value

1100

Sequence of String characters

 

NOTE

Only PLC Tags configured for Areas Data Register, Link Register, or File Register support the String data type. Block Tags or Tags configured with different Areas do not support the String data type.

 

Examples

1.Reading or writing an Input with address 1 (one) and a default Bit data type: The N2 parameter equal to 0 (zero), the N3 parameter equal to 0 (zero), and the N4 parameter equal to 1 (one). If the N2 parameter is equal to "100", then the result is the same.

2.Reading or writing an Output with address 100 and data type configured as Word: The N2 parameter equal to 202, the N3 parameter equal to 0 (zero), and the N4 parameter equal to 100.

3.Reading or writing a Counter Value with address 50 and a default Word data type: The N2 parameter equal to 20, the N3 parameter equal to 0 (zero), and the N4 parameter equal to 50. If the N2 parameter is equal to "220", then the result is the same.

4.Reading or writing a Data Register with address 1000 and data type configured as Double Word: The N2 parameter equal to 421, the N3 parameter equal to 0 (zero), and the N4 parameter equal to 1000. The value from 2 (two) contiguous Data Registers starting at address 1000 is reinterpreted as a Double Word value.

Was this page useful?