IDEC FT1A Series User Manual page 315

Hide thumbs Also See for FT1A Series:
Table of Contents

Advertisement

■Halt and exit
Format
while (
{
if (
{
break
}
}
switch (
{
case constant 1:
break
case constant 2:
}
return
return;
Operator
Device, constant, and temporary device are described as
■Relational operator
Operator
==
!=
<
<=
>
>=
■Logical operator
Operator
&&
(
||
(
!
!(
■Arithmetic operator
Operator
+
-
*
/
%
)
)
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.
break;
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.
;
;
)
;
When the conditional expression matches the constant 1, execution line 1 is executed
break;
and the switch execution is terminated by break. Evaluation for constant 2 is not
executed, and the execution moves to execution line 3.
;
break;
;
Script will exit and the next instruction/FB in the user program is executed.
Format
Compares if
==
Compares if
!=
Compares if
<
Compares if
<=
Compares if
>
Compares if
>=
Format
Calculates the logical product (AND) of
) && (
)
Calculates the logical sum (OR) of
) || (
)
Inverse the logic of
)
Format
Adds
+
Subtracts
-
Multiplies
*
Divides
/
Calculates remainder after dividing
%
S
AXIS P
MART
RO
,
here, and expressions are described as
is equal to
is not equal to
is less than
is less than or equal to
is greater than
is greater than or equal to
.
and
.
from
.
and
.
by
.
/L
U
'
M
FT9Y-B1378
ITE
SER
S
ANUAL
Description
Description
.
.
.
.
.
.
Description
and
.
and
.
Description
by
.
13: S
CRIPTS
,
,
.
13-11

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents