8: ADVANCED INSTRUCTIONS
8-2 OPENNET CONTROLLER USER’S MANUAL
Bit Shift
and
Rotate
SFTL Shift Left X X 4 13-1
SFTR Shift Right X X 4 13-3
ROTL Rotate Left X X 4 13-5
ROTR Rotate Right X X 4 13-7
ROTLC Rotate Left with Carry X X 4 13-9
ROTRC Rotate Right with Carry X X 4 13-11
BCDLS BCD Left Shift X 4 13-13
Data
Conversion
HTOB Hex to BCD X X 5 or 6 14-1
BTOH BCD to Hex X X 5 or 6 14-3
HTOA Hex to ASCII X 7 14-5
ATOH ASCII to Hex X 7 14-7
BTOA BCD to ASCII X 7 14-9
ATOB ASCII to BCD X 7 14-11
DTDV Data Divide X 5 14-13
DTCB Data Combine X 5 14-14
Week
Programmer
WKCMP ON Week Compare ON 9 15-1
WKCMP OFF Week Compare OFF 9 15-1
WKTBL Week Table 4 + 2n 15-2
Interface
DISP Display 6 16-1
DGRD Digital Read 8 16-3
CDISP Character Display 4+2n+3m 16-5
User
Communication
TXD1 Transmit 1 7+n+2m 17-4
TXD2 Transmit 2 7+n+2m 17-4
RXD1 Receive 1 7+n+2m 17-13
RXD2 Receive 2 7+n+2m 17-13
Program
Branching
LABEL Label 2 18-1
LJMP Label Jump 3 18-1
LCAL Label Call 3 18-3
LRET Label Return 1 18-3
DJNZ Decrement Jump Non-zero 5 18-5
Coordinate
Conversion
XYFS XY Format Set X 4 + 4n 19-1
CVXTY Convert X to Y X 7 19-2
CVYTX Convert Y to X X 7 19-3
AVRG Average X X 11 19-6
PID PID PID Control 11 20-1
Group Symbol Name
Data Type
Qty of
Words
See
Page
WIDL
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com