EasyManua.ls Logo

IDEC WindO/I-NV4 User Manual

IDEC WindO/I-NV4
1738 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #1196 background imageLoading...
Page #1196 background image
5 Script Coding Examples
20-40 WindO/I-NV4 User’s Manual
5.3 Logical Operators
Script
Operation description
If the value of LDR100 is equal to the value of LDR200, and if the value of LDR300 is equal to the value of LDR400
and LDR500 added together, then 100 is stored in LDR600.
If either ([LDR 100] == [LDR 200]) or ([LDR 300] == [LDR 400] + [LDR 500]) is false, the processing in the brackets
“{ }” is not executed.
Script
Operation description
If the value of LDR100 is not 0 or the value of LDR200 is not 0, then 100 is stored in LDR300.
If either is true, the processing in the brackets “{ }” is executed.
Script
Operation description
If the value of LDR100 is not equal to 0x1234, then 100 is stored in LDR300.
Script
Operation description
If the value of LDR100 is 0, then 100 is stored in LDR300.
This is the same as the code “if (0==[LDR 100]))”.
Example 5.3.1 Logical AND
if (([LDR 100] == [LDR 200]) && ([LDR 300] == [LDR 400] + [LDR 500]))
{
[LDR 600] = 100;
}
Example 5.3.2 Logical OR
if ((0 != [LDR 100]) || (0 != [LDR 200]))
{
[LDR 300] = 100;
}
Example 5.3.3 Logical inversion
if (!([LDR 100] == 0x1234))
{
[LDR 300] = 100;
}
Example 5.3.4 Logical inversion
if (!(0 !=[LDR 100]))
{
[LDR 300] = 100 ;
}

Table of Contents

Question and Answer IconNeed help?

Do you have a question about the IDEC WindO/I-NV4 and is the answer not in the manual?

IDEC WindO/I-NV4 Specifications

General IconGeneral
Touch PanelResistive film
Backlight Life50, 000 hours
Communication PortsRS-232C, RS-422/485
Power Supply24V DC
Operating Temperature0 to 50°C (32 to 122°F)
Storage Temperature-20 to 60°C (-4 to 140°F)
Vibration Resistance10 to 57 Hz, 0.075 mm amplitude, 57 to 150 Hz, 9.8 m/s² acceleration
Shock Resistance147m/s² (15G), 3 times in each direction of X, Y, and Z axes
Protection RatingIP65 (front panel)