Indirect read and indirect write settings, Windo/i -nv2 f eatures & b asic oper ations – IDEC High Performance Series User Manual

Page 35

Advertising
background image

WindO/I-NV2 User’s Manual

2-5

1 WindO/I-NV2 Specifications

2

WindO/I

-NV2 F

eatures & B

asic Oper

ations

Indirect Read and Indirect Write Settings

The indirect specification of a device address means to add a value (indirect value) to the address of the set device
and use that address as the actual read source or write destination. You can change the read source or write
destination address just by changing this indirect value.

Indirect read

Add the indirect value to the address of the device set as the read source and read the indirectly specified device
value.
Example: To read an indirectly specified device value into LDR200

When the device set as the read source is LDR10 and the indirect value’s device address is D21, if 4
(indirect value: 4) is set in D21, the device address of the value actually read is LDR14.

Indirect write

Add the indirect value to the address of the device set as the write destination and write to the indirectly specified
device value.
Example: To write the value in LDR20 to an indirectly specified device

When the device set as the write destination is LDR100 and the indirect value’s device address is D20, if 3
(indirect value: 3) is set in D20, the device address of the value actually written is LDR103.

Parts you can indirectly read and indirectly write

Device set as read source

Device with actually read value

Indirect value’s device

200

LDR11

300

LDR12

100

LDR10

500

LDR14

4

D21

500

LDR200

4 words

Indirect value

Read

LDR13

400

200

LDR101

300

LDR102

100

LDR100

1000

LDR103

3

D20

1000

LDR20

3 words

Indirect value

Device set as write source

Device with actually written value

Indirect value’s device

Write

Part

Indirect read

Indirect write

Word Button

YES

YES

Multi-Button

YES

YES

Numerical Input

YES

YES

Character Input

YES

YES

Numerical Display

YES

NO

Word Write Command

YES

YES

Script Command

YES

YES

Multi-Command

YES

YES

• Enter the value for indirect values as the data type BIN16 (+). Indirect values can be set in the range of

0 to 32767. If you enter a value for the indirect value outside this range, the value before the indirect
value changes is maintained when reading. When writing, “Device range error” is displayed.
In scripts however, enter a value for the data type set in the script.

• For indirect device reading, decide the read source address after the indirect value changes and after the

screen changes, and then read the device value. For host devices, communication to read the device value
from a host device takes time, so if data is transfered or arithmetic operations are executed before the
indirect read is finished, processing cannot be executed and the following error is displayed.

Word Button, Word Write Command:

Indirect device error

Script Command:

Script error

Advertising
This manual is related to the following products: