IDEC MICRO/I HG4G-CJT22 F-B Series User Manual page 37

Micro/i operator interfaces for windo/i-nv4
Table of Contents

Advertisement

Indirect Read and Indirect Write Settings
The indirect specification of a device address means to add a value (indirect value) to the address number of the set
device address and use that address number as the actual read source or write destination. You can change the read
source or write destination address number just by changing this indirect value.
Indirect read
Add the indirect value to the address number of the device address set as the read source and read the value of the
indirectly specified device address.
Example: To read an indirectly specified value of device address 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.
Device address set as read source
Device address for Indirect value
Device address with actually read value
Indirect write
Add the indirect value to the address number of the device address set as the write destination and write a value to
the indirectly specified device address.
Example: To write the value in LDR20 to an indirectly specified device address
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.
Device address set as write source
Device address for Indirect value
Device address with actually written value
Parts you can indirectly read and indirectly write
Part
Word Button
Multi-Button
Numerical Input
Character Input
Numerical Display
Word Write Command
Script Command
Multi-Command
• Enter the value for indirect values as the data type UBIN16(W). Indirect values can be set in the range of
0 to 32767. When an indirect write is executed with an out-of-range indirect value, "Device range error"
is displayed. Similarly, when an indirect read is executed, the previous value before the indirect value
changed is retained for a data display part, and "Device range error" is displayed for a part that is not a
data display part.
• For reading device address indirectly, decide the read source address number after the indirect value changes
and after the screen changes, and then read the value of device address. For the device address of an
external device, communication may take some time as the value is read from the external device, so when
transferring or calculating the data that was read, repeatedly execute the corresponding part.
Indirect value
D21
4
4 words
Indirect value
3 words
D20
3
Indirect read
YES
YES
YES
YES
YES
YES
YES
YES
WindO/I-NV4 User's Manual
1 WindO/I-NV4 Specifications
LDR10
100
LDR11
200
LDR12
300
LDR13
400
LDR14
500
Read
LDR200
500
LDR100
100
LDR101
200
LDR102
300
LDR103
1000
Write
LDR20
1000
Indirect write
YES
YES
YES
YES
NO
YES
YES
YES
2
2-5

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents