![background image](http://html1.mh-extra.com/html/omron/cvm1d/cvm1d_operation-manual_742532227.webp)
222
5-17-11 ASCII CONVERT: ASC(113)
Variations
j
ASC(113)
(113)
ASC
S
Di
D
Operand Data Areas
Ladder Symbol
S: Source word
CIO, G, A, T, C, DM, DR, IR
D: 1
st
destination word CIO, G, A, DM
Di: Digit designator
CIO, G, A, T, C, #, DM, DR, IR
When the execution condition is OFF, ASC(113) is not executed. When the
execution condition is ON, ASC(113) converts the designated digit(s) of S into
the equivalent 8-bit ASCII code and places it into the destination word(s) begin-
ning with D.
Any or all of the digits in S may be converted in order from the designated first
digit. The first digit, the number of digits to be converted, and the half of D to re-
ceive the first ASCII code (rightmost or leftmost eight bits) are designated in Di. If
multiple digits are designated, they will be placed in order starting from the des-
ignated half of D, each requiring two digits. If more digits are designated than
remain in S (counting from the designated first digit), further digits will be used
starting back at the beginning of S.
Refer to Appendix H for a table of extended ASCII characters.
The digits of Di are set as shown below.
Specifies the first digit to be converted (0 to 3).
Number of digits to be converted (0 to 3)
0: 1 digit
1: 2 digits
2: 3 digits
3: 4 digits
First half of D to be used.
0: Rightmost 8 bits (1st half)
1: Leftmost 8 bits (2nd half)
Parity
0: none,
1: even,
2: odd
Digit number:
3 2 1 0
Description
Digit Designator
Conversion Instructions
Section 5-17
Summary of Contents for CVM1D
Page 462: ...SYSMAC CVM1D Duplex System Programmable Controllers Operation Manual Revised August 2001...
Page 463: ...iv...
Page 465: ...vi...