3 write delay, Not using the device cache, Using the device cache – IDEC High Performance Series User Manual

Page 1018: Write delay -54

Advertising
background image

6 Important Notes

20-54

WindO/I-NV2 User’s Manual

6.3 Write delay

Since the writing process to the external device address is performed at the end of a script, it may not operate
correctly due to a write delay.

Example where write delay occurs

Initial value of D100 is 0.
Since the write destination of 1000 in first line is the external device address, the value is not reflected immediately,
and the value of D100 is still 0 when the second line is executed.
Therefore, the value where 5000 is added to 0 (value of D100) would be written to D200 in second line.
The value of D100 will be 1000 and the value of D200 will be 5000 when above script is executed.

There are 2 countermeasures for cases like this.

Not using the device cache

Write delay does not occur when writing to the internal device, so the calculation is performed only in the internal
device, and only the result will be written to the external device address.

Using the device cache

Problems with the write delay to the external device address can be avoided by caching the value of the external
device address into the internal memory. To use the device cache, setup as follows in WindO/I-NV2.

1

On the Configuration tab, in the System Setup group, click Project.
The Project Settings dialog box is displayed.

2

In the System tab, click Advanced button.

[D 100] = 1000;

[D 200] = [D 100] + 5000;

[LDR 0] = 1000;

[LDR 0] = [LDR 0] + 5000;

[D 200] = [LDR 0];

Advertising
This manual is related to the following products: