6 important notes, 1 important notes regarding the while definition, 2 number of devices that can be used – IDEC High Performance Series User Manual

Page 1017: Important notes -53, Important notes regarding the while definition -53, Number of devices that can be used -53, Script

Advertising
background image

WindO/I-NV2 User’s Manual

20-53

6 Important Notes

20

Script

This section describes important notes when defining a script.

6.1 Important Notes Regarding the While Definition

Define so it will not go into an infinite loop.
The execution expression is repeatedly executed while the conditional expression is satisfied.
However, it will go into an infinite loop when the conditional expression is satisfied continually.

In the conditional expression of the while definition, it states to exit the loop when the value of LDR100 turns 0. However, the
value stored in the LDR 100 is not changed after storing 10 in the first line of the script, so it will go into an infinite loop.

When using the while definition, define it so it will not go into an infinite loop.
The value of LDR 100 will become 0 when the while definition is repeated 10 times in the next example, and it will get
out of the while definition.

Define it so it will not continue the process for longer than the time limit.
When the processing of a single script continues for more than the time limit due to a while definition, etc., an
execution time over error occurs and that script will be halted. Define the script so the execution time for one script
does not exceed the following limit.

HG2G-5F, HG3G/4G: 3,000 milliseconds
HG2G-S/5S, HG1F/2F/2S/3F/4F: 500 milliseconds

For details, refer to “1.4 Script Error” on page 20-4.

Do not write into the external device address.
When it is written into an external device address in the while definition, a script error will occur.

6.2 Number of Devices That Can Be Used

The number of external device addresses that can be used in the script are as follows:

6

Important Notes

HG3G

HG2G-5F

HG2G-5S

HG2G-S

HG4G HG1F HG2F HG2S HG3F HG4F

[LDR 100] = 10;

while (0 != [LDR 100])

{

[LDR 200] = [LDR 200] + 1;

}

[LDR 100] = 10;

while (0 != [LDR 100])

{

[LDR 200] = [LDR 200] + 1;

[LDR 100] = [LDR 100] - 1;

}

Item

Number of devices

Destination external devices

Max. 64 Devices

Source external devices

Max. 64 Devices

• For HG2G-S/-5S/-5F, HG3G/4G Grobal Script, the maximum number of source external device addresses

which can be used as a trigger condition and in scripts executed as Grobal Script is 256.

• When the total number of write data to an external device address exceeds 64 in a single script while

executing a script with MICRO/I, that script will be halted with an error.

Advertising
This manual is related to the following products: