IDEC MICROSmart FC6A Series Ladder Programming Manual page 515

Automation organizer windldr
Hide thumbs Also See for MICROSmart FC6A 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 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
%
Assigns
=
FC6A S
MICROS
ERIES
MART
,
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
.
to
.
L
P
M
ADDER
ROGRAMMING
ANUAL
Description
Description
.
.
.
.
Description
and
.
and
.
Description
by
.
FC9Y-B1726
26: S
CRIPT
,
,
.
26-13

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents