IDEC FT1A Series User Manual page 325

Hide thumbs Also See for FT1A Series:
Table of Contents

Advertisement

2. Relational Operators
Example 2.1
Equal to
Script
if ([D0100] == [D0102])
{
[D0103] = 0x100;
}
Operation Description
If the value of D0100 is equal to the value of D0102, then 0x100 is stored in D0103.
Example 2.2
Not equal to
Script
if ([D0100] != [D0102])
{
[D0103] = 0x100;
}
Operation Description
If the value of D0100 is not equal to the value of D0102, then 0x100 is stored in D0103.
Example 2.3
Less than
Script
if ([D0100] < [D0102])
{
[D0103] = 0xl00;
}
Operation Description
If the value of D0100 is less than the value of D0102, then 0x100 is stored in D0103.
Example 2.4
Less than or equal to
Script
if ([D0100] <= [D0102])
{
[D0103] = 0xl00;
}
Operation Description
If the value of D0100 is less than or equal to the value of D0102, then 0x100 is stored in D0103.
Example 2.5
Greater than
Script
if ([D0100] > [D0102])
{
[D0103] = 0xl00;
}
Operation Description
If the value of D0100 is greater than the value of D0102, then 0x100 is stored in D0103.
Example 2.6
Greater than or equal to
Script
if ([D0100] >= [D0102])
{
[D0103] = 0xl00;
}
Operation Description
If the value of D0100 is greater than or equal to the value of D0102, then 0x100 is stored in D0103.
S
AXIS P
/L
U
'
MART
RO
ITE
SER
S
M
FT9Y-B1378
ANUAL
13: S
CRIPTS
13-21

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents