CAI Networks WebControl PLC User Manual page 28

Programmable logic controller
Table of Contents

Advertisement

BZ
(a) b
CNZ
(a) b
CZ
(a) b
CALLSUB
a
GOTO
a
DELAY
a
NOP
RET
EMAIL
a
X10
a b c
WEBSET
a b
SIND
a b
COSD
a b
TAND
a b
ROTL
a b c
ROTR
a b c
SETLED
0|1|2
IPTS
a b
IPEDGE
undefined
END
Operands
An operand can be any of the following:
a signed 32 bit decimal number. e.g. 100 or 1 or 0 etc.
a hexadecimal number. e.g. 0xABF.
a date stamp in the format MM/DD/YYYY e.g 02/10/2010
a time stamp in the format HH:MM:SS e.g. 20:25:00
a day of week identifier enclosed in single quotes e.g. 'sun'. Day of week
identifiers are 'sun' 'mon' 'tue' 'wed' 'thu' 'fri' 'sat'
an I/O identifier that is a place holder for the real I/O value that the PLC
engine will get at runtime. Valid I/O identifiers are explained in next section.
Copyright(c) 2008,-2013 CAI Networks, Inc.
TM
WebControl
PLC User Guide Version 3.02.17f
non-zero. If true then program jumps to label specified in
operand b.
Same as BNZ but tests for zero value.
Same as the branch instruction but calls a subroutine
instead of branching. See section on program address stack.
Same as above but tests for zero result.
Calls subroutine with label a. See section on program
address stack.
Branches to program address specified by label a.
Delay instruction, delay specified in 1/1000 seconds. This
delay is blocking delay, so that next PLC instruction will
not execute until delay is over.
A no operation instruction.
A return from subroutine instruction.
Sends email, a = message ID to send EM1 - EM8.
a: house code 0-15, b: device code 0-15, c: ON, OFF,
BRIGHT, DIM
a: URL1-8, b: number or VAR, RAM or any other readable
a: degree, b: VAR or RAM to store the result
a: degree, b: VAR or RAM to store the result
a: degree, b: VAR or RAM to store the result
a: source register, b: number of bits; c: result register
rotate to the left, overflow bits will be feed into right
a: source register, b: number of bits; c: result register
rotate to the right, overflow bits will be feed to the left
0 to turn off green LED, 1 to turn on green LED, 2 default
blinking.
reading TTL input last state change time tick counts. 2
paramter b is which TTL inut, first parameter a has the
value.
not implemented yet
End of main program. This instruction will set the program
counter back to zero and the program will start executing
from the beginning.
nd
25

Advertisement

Table of Contents
loading

Table of Contents