EasyManuals Logo

IDEC FT1A Series User Manual

IDEC FT1A Series
393 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 #326 background imageLoading...
Page #326 background image
13: S
CRIPTS
13-22 S
MART
AXIS P
RO
/L
ITE
U
SER
'
S
M
ANUAL
FT9Y-B1378
3. Logical Operators
Example 3.1 Logical AND
Script
Operation Description
If the value of D0100 is equal to the value of D0200, and if the value of D0300 is equal to the value of D0400 and D0500 added
together, then 100 is stored in D0600.
If either ([D0100] == [D0200]) or ([D0300] == [D0400] + [D0500]) is false, the processing in the brackets “{ }” is not executed.
Example 3.2 Logical OR
Script
Operation Description
If the value of D0100 is not 0 or the value of D0102 is not 0, then 100 is stored in D0300.
If either one of them is true, the processing in the brackets “{ }” is executed.
Example 3.3 Logical inversion
Script
Operation Description
If the value of D0100 is not equal to 0x1234, then 100 is stored in D0300.
Example 3.4 Logical inversion
Script
Operation Description
If the value of D0100 is 0, then 100 is stored in D0300.
This is the same as the code "if (0==[D0100]))".
if (([D0100] == [D0200]) && ([D0300] == [D0400] + [D0500]))
{
[D0600] = 100;
}
if ((0 != [D0100]) || (0 != [D0200]))
{
[D0300] = 100;
}
if (!([D0100] == 0x1234))
{
[D0300] = 100;
}
if (!(0 !=[D0100]))
{
[D0300] = 100 ;
}

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the IDEC FT1A Series and is the answer not in the manual?

IDEC FT1A Series Specifications

General IconGeneral
Programming SoftwareWindLDR
TypeProgrammable Logic Controller (PLC)
DisplayLCD (varies by model)
Communication PortsRS232C/RS485 (built-in), USB (programming), Ethernet (optional)
DimensionsVaries by model
WeightVaries by model
ModelFT1A Series

Related product manuals