![CAI Networks WebControl PLC User Manual Download Page 28](http://html1.mh-extra.com/html/cai-networks/webcontrol-plc/webcontrol-plc_user-manual_3323111028.webp)
WebControl
TM
PLC User Guide Version 3.02.17f
Copyright(c) 2008,-2013 CAI Networks, Inc. 25
non-zero. If true then program jumps to label specified in
operand b.
BZ
(a) b
Same as BNZ but tests for zero value.
CNZ
(a) b
Same as the branch instruction but calls a subroutine
instead of branching. See section on program address stack.
CZ
(a) b
Same as above but tests for zero result.
CALLSUB
a
Calls subroutine with label a. See section on program
address stack.
GOTO
a
Branches to program address specified by label a.
DELAY
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.
NOP
A no operation instruction.
RET
A return from subroutine instruction.
a
Sends email, a = message ID to send EM1 - EM8.
X10
a b c
a: house code 0-15, b: device code 0-15, c: ON, OFF,
BRIGHT, DIM
WEBSET
a b
a: URL1-8, b: number or VAR, RAM or any other readable
SIND
a b
a: degree, b: VAR or RAM to store the result
COSD
a b
a: degree, b: VAR or RAM to store the result
TAND
a b
a: degree, b: VAR or RAM to store the result
ROTL
a b c
a: source register, b: number of bits; c: result register
rotate to the left, overflow bits will be feed into right
ROTR
a b c
a: source register, b: number of bits; c: result register
rotate to the right, overflow bits will be feed to the left
SETLED
0|1|2
0 to turn off green LED, 1 to turn on green LED, 2 default
blinking.
IPTS
a b
reading TTL input last state change time tick counts. 2
nd
paramter b is which TTL inut, first parameter a has the
value.
IPEDGE
undefined
not implemented yet
END
End of main program. This instruction will set the program
counter back to zero and the program will start executing
from the beginning.
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.