SMB MAT-LC-C Series User Manual page 55

Plc based motion controller
Table of Contents

Advertisement

Operator and Qualifier Meaning
LD N
make the current value equal to the operand
ST N
saves the current value at the operand's place
S
Set the Boolean operand to TRUE when the current value is TRUE
R
Set the boolean operand to FALSE when the current value is TRUE
AND N,(
Bitwise logical operator "and"
OR N, (
Bitwise logical operator "or"
XOR N,(
Bitwise logical operator "exclusive or"
ADD (
Addition
SUB(
Subtraction
MUL(
Multiplication
DIV(
Division
GT(
>
GE(
>=
EQ(
=
NE(
<>
LE(
<=
LT(
<
JMP CN
Jump to label
CAL CN
Caller function block
RET CN
Leave the POU and return to where it was called
) To perform
a
delayed operation
Click here for a list of all IEC operators.
Example: Program written with qualifiers
LD TRUE (* load TRUE into accumulator*)
ANDN BOOL1 (*"AND" after performing AND and inversion of BOOL1 variable *)
JMPC mark (*When the above result is TRUE, jump to the label "mark" *)
LDN BOOL2 (*save the reverse of BOOL2 *)
ST ERG (*save BOOL2 in ERG *)
Lable:
LD BOOL2 (*Save the value of BOOL2 *)
ST ERG (*save BOOL2 in ERG *)
It is also possible to put a parenthesis after an operation in IL. The value in parentheses is
considered an operand. E.g:
LD 2
MUL 2
ADD 3
Erg
55

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the MAT-LC-C Series and is the answer not in the manual?

This manual is also suitable for:

Mat-lc-c0 seriesMat-lc-c06Mat-lc-c07

Table of Contents