S
MART
AXIS P
RO
/ L
ITE
U
SER
'
S
M
ANUAL
FT9Y-B1378
13-11
13: S
CRIPTS
■
Halt and exit
Operator
Device, constant, and temporary device are described as
,
here, and expressions are 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 2 is satisfied, the execution goes 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 matches the constant 1, execution line 1 is executed
and the switch execution is terminated by break. Evaluation for constant 2 is not
executed, and the execution moves to execution line 3.
return
return;
Script will exit and the next instruction/FB in the user program is executed.
Operator
Format
Description
==
==
Compares if
is equal to
.
!=
!=
Compares if
is not equal to
.
<
<
Compares if
is less than
.
<=
<=
Compares if
is less than or equal to
.
>
>
Compares if
is greater than
.
>=
>=
Compares if
is greater than or equal to
.
Operator
Format
Description
&&
(
) && (
)
Calculates the logical product (AND) of
and
.
||
(
) || (
)
Calculates the logical sum (OR) of
and
.
!
!(
)
Inverse the logic of
.
Operator
Format
Description
+
+
Adds
and
.
-
-
Subtracts
from
.
*
*
Multiplies
and
.
/
/
Divides
by
.
%
%
Calculates remainder after dividing
by
.
Summary of Contents for SmartAXIS FT9Z-1A01
Page 1: ...FT9Y B1378 7...
Page 10: ...TABLE OF CONTENTS Preface 9 SMARTAXIS PRO LITE USER S MANUAL FT9Y B1378...
Page 212: ...7 DEVICE ADDRESSES 7 16 SMARTAXIS PRO LITE USER S MANUAL FT9Y B1378...
Page 230: ...8 INSTRUCTIONS FUNCTION BLOCKS REFERENCE 8 18 SMARTAXIS PRO LITE USER S MANUAL FT9Y B1378...
Page 344: ...13 SCRIPTS 13 36 SMARTAXIS PRO LITE USER S MANUAL FT9Y B1378...
Page 386: ...APPENDIX Appendix 16 SMARTAXIS PRO LITE USER S MANUAL FT9Y B1378 Japanese Font JIS X0201...
Page 393: ......