WindO/I-NV4 User’s Manual
20-61
6 Important Notes
20
Sc
rip
t
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 LDR100 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 LDR100 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 3,000 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 Important Notes Regarding the Data Type Designations
■
Do not set a Data Type Designations in the braces "{}" for the Data Type Designations.
The maximum number of the hierarchy for the Data Type Designations is one.
An error occurs when the Data Type Designations is set in the braces "{}" for the Data Type Designations.
6.3 Regarding Communication Error
If the external device address is used for the Global Script or the Script Command that configured to the displayed
screens, unless the target device is connected, a communication error will occur even if the Trigger Condition is not
satisfied.
6
Important Notes
HG3G
HG2G-5F
HG5G-V HG4G-V
HG3G-V
HG2G-V
HG2G-5T
HG4G
HG1G HG1P
HG2J-7U
[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;
}
Summary of Contents for WindO/I-NV4
Page 1: ...B 1701 16 User s Manual...
Page 108: ...5 WindO I NV4 Common Operations and Settings 2 76 WindO I NV4 User s Manual...
Page 256: ...7 BACnet Communication 3 148 WindO I NV4 User s Manual...
Page 372: ...6 Screen Restrictions 5 32 WindO I NV4 User s Manual...
Page 390: ...5 Part Library Function 6 18 WindO I NV4 User s Manual...
Page 420: ...3 Text 7 30 WindO I NV4 User s Manual...
Page 628: ...2 Multi State Lamp 9 34 WindO I NV4 User s Manual...
Page 924: ...4 Meter 11 76 WindO I NV4 User s Manual...
Page 990: ...7 Timer 12 66 WindO I NV4 User s Manual...
Page 1030: ...4 Using Data and Detected Alarms 13 40 WindO I NV4 User s Manual...
Page 1098: ...4 Using the Data 15 22 WindO I NV4 User s Manual...
Page 1248: ...5 Restrictions 22 18 WindO I NV4 User s Manual...
Page 1370: ...2 Monitoring on the MICRO I 25 28 WindO I NV4 User s Manual...
Page 1388: ...4 Restrictions 26 18 WindO I NV4 User s Manual...
Page 1546: ...5 Module Configuration Dialog Box 30 36 WindO I NV4 User s Manual...
Page 1614: ...3 Settings 34 14 WindO I NV4 User s Manual...
Page 1726: ...5 Text Alignment A 10 WindO I NV4 User s Manual...