Configuration by Numeric Parameters

<< Click to Display Table of Contents >>

 

Configuration by Numeric Parameters

Reading and Writing

Addressing fields by N/B parameters

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 data type plus the area (N2 or B2 equal to Data Type Value + Area Value). If the value of Type is equal to 0 (zero), then assumes area's default data type

N3 or B3: Address value in this area or offset

N4 or B4: Used only if data type is String. Informs the maximum size declared in a String. If it is not informed, considers the maximum default size of a String as provided on this Driver's configuration window

Area values

Value

Meaning

Supported Data Types

0

Data register

Word (default), Short, BCD, DWord, Long, LBCD, Float, Double, Date, and String

1

Extension register

Word (default), Short, BCD, DWord, Long, LBCD, Float, Double, Date, and String

2

Timer value

Word (default), Short, and BCD

3

Timer contact

Bit (default), Word, Short, BCD, DWord, Long, and LBCD

4

Counter value

Word (default), Short, BCD, DWord, Long, and LBCD

5

Counter contact

Bit (default), Word, Short, BCD, DWord, Long, and LBCD

6

Input

Bit (default), Word, Short, BCD, DWord, Long, and LBCD

7

Output

Bit (default), Word, Short, BCD, DWord, Long, and LBCD

8

Auxiliary relay

Bit (default), Word, Short, BCD, DWord, Long, and LBCD

9

State

Bit (default), Word, Short, BCD, DWord, Long, and LBCD

 

Data type values

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

Any area whose default data type is Bit, when accessed with another data type, must be addressed with a value that is a multiple value of 16.

 

Examples

1.Reading or writing an Input with address 1 (one) and a basic Bit data type: N1 = 0, N2 = 0, N3 = 1, and N4 = 0. If N2 is filled with value "100", then the result is the same.

2.Reading or writing an Output with address 100 and data type configured as Word: N1 = 0, N2 = 202, N3 = 100, and N4 = 0.

3.Reading or writing a Counter Value with address 50 and a basic Word data type: N1 = 0, N2 = 20, N3 = 50, and N4 = 0. If N2 is filled with value "220", then the result is the same.

4.Reading or writing a Data Register with address 1000 and data type configured as Double Word: N1 = 0, N2 = 421, N3 = 1000, and N4 = 0. Values from two contiguous Data Registers starting at address 1000 are reinterpreted as a Double Word.

Was this page useful?