EasyManuals Logo

Omron CJ - INSTRUCTIONS User Manual

Omron CJ - INSTRUCTIONS
1308 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #439 background imageLoading...
Page #439 background image
401
3. Instructions
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Conversion Instructions
3
ASC
ASC
Applicable Program Areas
Operands
DI: Digit Designator
The digit designator specifies various parameters for the conversion, as shown in the following dia-
gram.
Instruction Mnemonic Variations
Function
code
Function
ASCII CONVERT ASC @ASC 086
Converts 4-bit hexadecimal digits in the source
word into their 8-bit ASCII equivalents.
Symbol
ASC
Area
Function block
definitions
Block program areas Step program areas Subroutines Interrupt tasks
SFC action or
transition programs
Usage OK OK OK OK OK OK
Operand Description Data type Size
S Source word UINT 1
DI Digit designator UINT 1
D First destination word UINT Variable
S: Source Word D: First Destination Word
Note The destination words must be in the same
data area.
S: Source word
DI: Digit designator
D: First destination word
ASC(086)
S
DI
D
S Digit 3 Digit 2
8
111215
Digit 1 Digit 0
03
47
Digits from the starting digit of conversion going
left are treated as HEX data and converted to
ASCII code (returns to digit 0 after digit 3)
D
D+1
D+2
8
15
Leftmost byte Rightmost byte
07
ASCII code is stored in the left word side. The
code is stored from the output starting byte of
D in the order rightmost byte, leftmost byte.
Leftmost byte Rightmost byte
Leftmost byte Rightmost byte
3210
Specifies the first digit in S 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 byte of D to be used.
0: Rightmost byte
1: Leftmost byte
Parity 0: None
1: Even
2: Odd
Digit number:

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Omron CJ - INSTRUCTIONS and is the answer not in the manual?

Omron CJ - INSTRUCTIONS Specifications

General IconGeneral
BrandOmron
ModelCJ - INSTRUCTIONS
CategoryController
LanguageEnglish

Related product manuals