A-27
Appendices
CP2E CPU Unit Software User’s Manual(W614)
A
-1 In
struction
Fu
nctio
n
s
App
A-1-10 Con
v
ersion Instr
uction
s
ASCII CON-
VERT
ASC
@
Converts 4-bit hexadecimal digits in the source word into their
8
-bit ASCII equivalents.
DI: Digit Designator
ASCII TO HEX
HEX
@
Converts up to 4 bytes of ASCII data in the source word to their
hexadecimal equivalents and writes these digits in the specified
destination word.
DI: Digit Designator
Instruction
Mnemonic
Variations
Symbol/Operand
Function
ASC(0
8
6)
S
Di
D
S
: Source word
Di
: Digit designator
D
: 1st destination word
Di
Right (0)
Left (1)
First digit to convert
Number of
digits (n+1)
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: 3 2 1 0
HEX(162)
S
Di
D
S
: 1st source word
Di
: Digit designator
D
: Destination word
C: 0021
Di
Number of digits (n+1)
Right (0)
Left (1)
First byte to convert
First digit to write
Digit number: 3 2 1 0
Specifies the first digit in D to receive converted
data (0 to 3).
Number of bytes to be converted (0 to 3)
0: 1 digit
1: 2 digits
2: 3 digits
3: 4 digits
0: Rightmost byte
1: Leftmost byte
Parity
0: None
1: Even
2: Odd
First byte of S to be converted.
Содержание SYSMAC CP Series
Страница 1: ...USER S MANUAL Cat No W614 E1 01 SYSMAC CP Series CP2E E D CP2E S D CP2E N D CP2E CPU Unit Software ...
Страница 3: ......
Страница 32: ...1 Overview 1 4 CP2E CPU Unit Software User s Manual W614 ...
Страница 44: ...3 CPU Unit Operation 3 8 CP2E CPU Unit Software User s Manual W614 ...
Страница 116: ...6 I O Allocation 6 8 CP2E CPU Unit Software User s Manual W614 ...
Страница 144: ...7 PLC Setup 7 28 CP2E CPU Unit Software User s Manual W614 ...
Страница 170: ...10 Interrupts 10 14 CP2E CPU Unit Software User s Manual W614 ...
Страница 200: ...11 High speed Counters 11 30 CP2E CPU Unit Software User s Manual W614 ...
Страница 272: ...12 Pulse Outputs 12 72 CP2E CPU Unit Software User s Manual W614 ...
Страница 278: ...13 PWM Outputs 13 6 CP2E CPU Unit Software User s Manual W614 ...
Страница 460: ...18 Programming Device Operations 18 28 CP2E CPU Unit Software User s Manual W614 ...
Страница 576: ...Revision 2 CP2E CPU Unit Software User s Manual W614 ...
Страница 577: ......