S
MART
AXIS P
RO
/L
ITE
U
SER
'
S
M
ANUAL
FT9Y-B1378
13-21
13: S
CRIPTS
2. Relational Operators
Example 2.1
Equal to
Script
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
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
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
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
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
Operation Description
If the value of D0100 is greater than or equal to the value of D0102, then 0x100 is stored in D0103.
if ([D0100] == [D0102])
{
[D0103] = 0x100;
}
if ([D0100] != [D0102])
{
[D0103] = 0x100;
}
if ([D0100] < [D0102])
{
[D0103] = 0xl00;
}
if ([D0100] <= [D0102])
{
[D0103] = 0xl00;
}
if ([D0100] > [D0102])
{
[D0103] = 0xl00;
}
if ([D0100] >= [D0102])
{
[D0103] = 0xl00;
}
Содержание FT1A-B12RA
Страница 1: ...FT9Y B1378 5 ...
Страница 2: ......
Страница 208: ...7 DEVICE ADDRESSES 7 16 SMARTAXIS PRO LITE USER S MANUAL FT9Y B1378 ...
Страница 226: ...8 INSTRUCTIONS FUNCTION BLOCKS REFERENCE 8 18 SMARTAXIS PRO LITE USER S MANUAL FT9Y B1378 ...
Страница 340: ...13 SCRIPTS 13 36 SMARTAXIS PRO LITE USER S MANUAL FT9Y B1378 ...
Страница 384: ...APPENDIX A 18 SMARTAXIS PRO LITE USER S MANUAL FT9Y B1378 European Font ISO 8859 1 Cyrillic Font ANSI 1251 ...
Страница 385: ...SMARTAXIS PRO LITE USER S MANUAL FT9Y B1378 A 19 APPENDIX Japanese Font JIS X0201 ...
Страница 386: ...APPENDIX A 20 SMARTAXIS PRO LITE USER S MANUAL FT9Y B1378 ...