Conversion Instructions
Examples
S
R
C
3-12-10 ASCII CONVERT: ASC(086)
Purpose
Ladder Symbol
Variations
Applicable Program Areas
Operands
504
DMPX(077) D0000 D0100 #0000
DMPX(077) D0001 D0100 #0001
DMPX(077) D0002 D0100 #0002
DMPX(077) D0003 D0100 #0003
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).
C: #
DMPX(077) finds the
leftmost ON bits.
S:
Digits
R: D00100
Converts 4-bit hexadecimal digits in the source word into their 8-bit ASCII
equivalents.
ASC(086)
S: Source word
S
Di: Digit designator
Di
D: First destination word
D
Variations
Executed Each Cycle for ON Condition
Executed Once for Upward Differentiation
Executed Once for Downward Differentiation Not supported
Immediate Refreshing Specification
Block program areas
OK
OK
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.
Step program areas
Subroutines
OK
Section 3-12
Starting digit
(Digit 1)
ASC(086)
@ASC(086)
Not supported
Interrupt tasks
OK
Need help?
Do you have a question about the SYSMAC CJ - REFERENCE MANUAL 08-2008 and is the answer not in the manual?
Questions and answers