EasyManuals Logo
Home>IDEC>Organizer>WindO/I-NV4

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

Questions and Answers:

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
BrandIDEC
ModelWindO/I-NV4
CategoryOrganizer
LanguageEnglish