IDEC High Performance Series User Manual
Page 996
5 Script Coding Examples
20-32
WindO/I-NV2 User’s Manual
Script
Operation description
If the value of LDR100 is less than or equal to the value of LDR200, then 0x100 is stored in LDR300.
Script
Operation description
If the value of LDR100 is greater than the value of LDR200, then 0x100 is stored in LDR300.
Script
Operation description
If the value of LDR100 is greater than or equal to the value of LDR200, then 0x100 is stored in LDR300.
■
Example 5.2.4
Less than or equal to
if ([LDR 100] <= [LDR 200])
{
[LDR 300] = 0xl00;
}
■
Example 5.2.5
Greater than
if ([LDR 100] > [LDR 200])
{
[LDR 300] = 0xl00;
}
■
Example 5.2.6
Greater than or equal to
if ([LDR 100] > [LDR 200])
{
[LDR 300] = 0xl00;
}
This manual is related to the following products: