SmartAXIS Touch User’s Manual
20-15
4 Script Definition Method
20
Scr
ipt
■
Halt and exit
●
Operator
Device, constant, and temporary device are described as
,
here, and expression is described as
,
, .
■
Relational operator
■
Logical operator
■
Arithmetic operator
Format
Description
break
while (
)
{
if (
)
{
;
break
;
}
;
}
;
Process will be as follows while the conditional expression 1 is satisfied.
• Execution line 2 is continuously executed while the conditional expression 2 is
not satisfied.
• Once the conditional expression is satisfied, it will go out of the loop by break
(not executing execution line 2), and execution line 3 is executed.
break
switch (
)
{
case constant 1:
;
break
;
case constant 2:
;
break
;
}
;
When the conditional expression 2 matches the constant 1, it will halt the
determination of constant 2 by break after executing execution line 1, and
process will move to execution line 3.
return
return;
It will exit the script, and execute the next parts or script.
Operator
Format
Description
==
==
Compares if
is equal to
.
!=
!=
Compares if
is not equal to
.
<
<
Compares if
is less than
.
<=
<=
Compares if
is equal or less than
.
>
>
Compares if
is greater than
.
>=
>=
Compares if
is equal or greater than
.
Operator
Format
Description
&&
(
) && (
)
Calculates the logical product (AND) of
and
.
||
(
) || (
)
Calculates the logical sum (OR) of
and
.
!
!(
)
Reverses the logic of
.
Operator
Format
Description
+
+
Adds
and .
-
-
Subtracts
from .
*
*
Multiplies
and .
/
/
Divides
by .
%
%
Calculates remainder after
dividing
by .
Summary of Contents for SmartAXIS Touch FT1A Series
Page 1: ...FT1A Series FT9Y B1390 4 SmartAXIS Touch User s Manual ...
Page 22: ...Contents Preface 21 SmartAXIS Touch User s Manual ...
Page 240: ...6 Using Library Screens 4 36 SmartAXIS Touch User s Manual ...
Page 416: ...2 Multi State Lamps 8 26 SmartAXIS Touch User s Manual ...
Page 558: ...9 Calendar 9 142 SmartAXIS Touch User s Manual ...
Page 668: ...6 Timer 11 52 SmartAXIS Touch User s Manual ...
Page 754: ...4 Using Data and Detected Alarms 13 34 SmartAXIS Touch User s Manual ...
Page 792: ...4 Using the Data 14 38 SmartAXIS Touch User s Manual ...
Page 810: ...4 Using the Data 15 18 SmartAXIS Touch User s Manual ...
Page 870: ...3 Text Manager 19 16 SmartAXIS Touch User s Manual ...
Page 924: ...6 Important Notes 20 54 SmartAXIS Touch User s Manual ...
Page 1036: ...5 User Communication 22 74 SmartAXIS Touch User s Manual ...
Page 1092: ...2 Monitoring on the Touch 24 26 SmartAXIS Touch User s Manual ...
Page 1142: ...2 Word Devices 27 18 SmartAXIS Touch User s Manual ...
Page 1186: ...2 Analog Cartridge 29 34 SmartAXIS Touch User s Manual ...
Page 1194: ...3 Handling Problems 30 8 SmartAXIS Touch User s Manual ...