504
Conversion Instructions Section 3-12
DMPX(077) D0000 D0100 #0000
DMPX(077) D0001 D0100 #0001
DMPX(077) D0002 D0100 #0002
DMPX(077) D0003 D0100 #0003
Examples When CIO 000000 is ON in the following example, DMPX(077) will find the
leftmost ON bits in CIO 0100, CIO 0101, and CIO 0102 and write those loca-
tions to 3 digits in R beginning with digit 1 (the second digit), as indicated by C
(#0021).
3-12-10ASCII CONVERT: ASC(086)
Purpose Converts 4-bit hexadecimal digits in the source word into their 8-bit ASCII
equivalents.
Ladder Symbol
Variations
Applicable Program Areas
Operands S: Source Word
Up to four digits in the source word can be converted. The digits are num-
bered 0 to 3, right to left.
C: #
S:
R: D00100
S
R
C
Digits
DMPX(077) finds the
leftmost ON bits.
Starting digit
(Digit 1)
ASC(086)
S
D
Di
S: Source word
Di: Digit designator
D: First destination word
Variations Executed Each Cycle for ON Condition ASC(086)
Executed Once for Upward Differentiation @ASC(086)
Executed Once for Downward Differentiation Not supported
Immediate Refreshing Specification Not supported
Block program areas Step program areas Subroutines Interrupt tasks
OK OK OK OK