8: ADVANCED INSTRUCTIONS
8-2 « FC4A MICROSMART USER’S MANUAL »
Data Conversion
HTOB Hex to BCD X 14 14-1
BTOH BCD to Hex X 14 14-2
HTOA Hex to ASCII X 18 14-3
ATOH ASCII to Hex X 18 14-5
BTOA BCD to ASCII X 18 14-7
ATOB ASCII to BCD X 18 14-9
ENCO Encode X 16 14-11
DECO Decode X 16 14-12
BCNT Bit Count X 18 14-13
ALT Alternate Output X 10 14-14
Week
Programmer
WKTIM Week Timer X 24 15-1
WKTBL Week Table X 13 to 89 15-2
Interface
DISP Display X 16 16-1
DGRD Digital Read X 20 16-3
User
Communication
TXD1 Transmit 1 X 21 to 819 17-6
TXD2 Transmit 2 X 21 to 819 17-6
RXD1 Receive 1 X 21 to 819 17-15
RXD2 Receive 2 X 21 to 819 17-15
Program
Branching
LABEL Label X 8 18-1
LJMP Label Jump X 10 18-1
LCAL Label Call X 10 18-3
LRET Label Return X 6 18-3
IOREF I/O Refresh X 16 18-5
DI Disable Interrupt X 8 18-7
EI Enable Interrupt X 8 18-7
Coordinate
Conversion
XYFS XY Format Set X X 24 to 124 19-1
CVXTY Convert X to Y X X 18 19-2
CVYTX Convert Y to X X X 18 19-3
Pulse
PULS1 Pulse Output 1 X 12 20-1
PULS2 Pulse Output 2 X 12 20-1
PWM1 Pulse Width Modulation 1 X 24 20-7
PWM2 Pulse Width Modulation 2 X 24 20-7
RAMP Ramp Pulse Output X 14 20-13
ZRN1 Zero Return 1 X 18 20-24
ZRN2 Zero Return 2 X 18 20-24
PID Instruction PID PID Control X 26 21-2
Dual / Teaching
Timer
DTML 1-sec Dual Timer X 22 22-1
DTIM 100-ms Dual Timer X 22 22-1
DTMH 10-ms Dual Timer X 22 22-1
DTMS 1-ms Dual Timer X 22 22-1
TTIM Teaching Timer X 10 22-3
Intelligent
Module Access
RUNA Run Access X X 20 23-2
STPA Stop Access X X 20 23-4
Group Symbol Name
Data Type
Qty of
Bytes
See
Page
WI