CAI Networks WebControl PLC User Manual page 27

Programmable logic controller
Table of Contents

Advertisement

TSTLE
a[] b[] (d[])
SET
a[] b
SETB
a[] b[] d[]
GETB
a[] b[] d[]
CLRB
a[] b[] d[]
TSTB
a[] b[] d[]
ADD
a[] b[] d[]
SUB
a[] b[] d[]
DIV
a[] b[] d[]
MOD
a[] b[] d[]
MUL
a[] b[] d[]
DEC
a
INC
a
AND
a[] b[] (d[])
ANDB
a[] b[] (d[])
OR
a[] b[] (d[])
ORB
a[] b[] (d[])
XOR
a[] b[] (d[])
XORB
a[] b[] (d[])
ANDT
a[] b[] (d[])
ANDBT
a[] b[] (d[])
ORT
a[] b[] (d[])
ORBT
a[] b[] (d[])
XORT
a[] b[] (d[])
XORBT
a[] b[] (d[])
BNZ
(a) b
Copyright(c) 2008,-2013 CAI Networks, Inc.
TM
WebControl
PLC User Guide Version 3.02.17f
result. If test evaluates to false then the next instruction is
skipped.
Tests if a is less than OR equal to b. Boolean result loaded
into optional destination (d). Zero bit updated with result. If
test evaluates to false then the next instruction is skipped.
Sets I/O id a to the value of b. No zero flag update.
Read a and set bit b and puts the result into d.
Read a bit position b and puts the result into d.
Reads a and clear its bit position b and puts the result into
d.
Reads a and test its position b and puts the result into d.
Zero bit updated with result.
Adds a and b and puts the result into d. Zero bit updated
with result.
Subtracts b from a and puts the result into d. Zero bit
updated with result.
Divides a by b and puts the result into d. Zero bit updated
with result.
Divides a by b and puts the residue into d. Zero bit updated
with result.
Multiplies a by b and puts the result into d. Zero bit updated
with result.
Decrements a by 1. Zero bit updated.
Increments a by 1. Zero bit updated.
Logical AND's a with b and optionally puts Boolean result
into d. Zero bit updated.
Bitwise AND's a with b and optionally puts bitwise AND
result into d. Zero bit updated.
Logical OR's a with b and optionally puts Boolean result
into d. Zero bit updated.
Bitwise OR's a with b and optionally puts bitwise OR result
into d. Zero bit updated.
Logical XOR's a with b and optionally puts Boolean result
into d. Zero bit updated.
Bitwise XOR's a with b and optionally puts bitwise result
into d. Zero bit updated.
Logical AND's a with b and optionally puts Boolean result
into d. Zero bit updated. Skip next line if zero.
Bitwise AND's a with b and optionally puts bitwise AND
result into d. Zero bit updated. Skip next line if zero.
Logical OR's a with b and optionally puts Boolean result
into d. Zero bit updated. Skip next line if zero.
Bitwise OR's a with b and optionally puts bitwise OR result
into d. Zero bit updated. Skip next line if zero.
Logical XOR's a with b and optionally puts Boolean result
into d. Zero bit updated. Skip next line if zero.
Bitwise XOR's a with b and optionally puts bitwise result
into d. Zero bit updated. Skip next line if zero.
If the optional a operand is specified it is tested for a non-
zero value. If a is not specified then the zero bit is tested for
24

Advertisement

Table of Contents
loading

Table of Contents