Appendix AInstruction Set
541
Name, mnemonic, variations,
and symbol
PageOperand data
areas
Function
ASCII TO HEX
HEX, ↑HEX
(117)
HEX S C D
(V2 only) Converts the data in specified words from
ASCII to hexadecimal, and outputs the result
to a specified destination word.
Specifies the first digit to be output.
Number of digits to be converted.
0: 1 digit
1: 2 digits
2: 3 digits
3: 4 digits
First ASCII data to be converted.
0: Rightmost 8 bits
1: Leftmost 8 bits
Parity 0: None
1: Even
2: Odd
C
MSB LSB
S:
CIO
G
A
T/C
DM
C:
CIO
G
A
T/C
#
DM
DR
IR
D:
CIO
G
A
DM
239
ACCUMULATIVE TIMER
TTIM
(120)
TTIM N S
I
R
Creates a totalizing timer. I is the timer input; R
is the reset input. The timer PV is incremented
while the timer input is ON, maintained when I
is OFF, and reset to zero when R is ON. If
both I and R are ON simultaneously, the timer
is reset. The time is incremented from zero in
units of 0.1 second, and accuracy is +0.0/–0.1
second. The set value (S) must be between
000.0 and 999.9 s. The decimal point is not
entered. Each timer number (BCD) can be
used in only one timer instruction (TIM,
TIMH(015), and TTIM(120)), unless the timers
are never active simultaneously. The timer
number can be designated as a constant or
indirectly addressed by placing the address of
the present value for the timer in an Index
Register.
N:
#
S:
CIO
G
A
T/C
#
DM
DR
IR
148
LONG TIMER
TIML
(121)
TIML D
1
D
2
S
Creates a decrementing ON-delay timer that
can time up to 9,999,999.9 s (approx. 115
days). The timer is activated when its
execution condition goes ON and is reset (to
SV) when the execution condition goes OFF.
Once activated, TIML(121) measures in units
of 0.1 second from the SV, and accuracy is
+0.0/–0.1 second. The Completion Flag is bit
00 of D
1
. The PV is output to D
2
and D
2
+1,
and the SV is set in S and S+1.
D
1
:
CIO
G
A
T/C
DM
D
2
:
CIO
G
A
T/C
DM
S:
CIO
G
A
T/C
#
DM
150
MULTI-OUTPUT TIMER
MTIM
(122)
MTIM D
1
D
2
S
Creates a totalizing timer that can have up to
eight pairs of set values and Completion
Flags. The timer is activated when the
execution condition is ON, and the reset bit
(bit 08 of D
1
) goes from ON to OFF. Each time
the instruction is executed, the PV (content of
D
2
) is compared to the eight SVs in S through
S+7 and if any of the SVs is less than or equal
to the PV, the corresponding Completion Flag
(bits 00 through 07 of D
1
) is turned ON. The
same MTIM(122) can be input into the
program several times to increase comparison
frequency and therefore accuracy.
D
1
:
CIO
G
A
T/C
DM
D
2
:
CIO
G
A
T/C
DM
DR
IR
S:
CIO
G
A
T/C
#
DM
151