Chapter 6 Instruction Details
XBC E-Type Main Unit
6-249
Ver. 1
6.34.10 ASC, ASCP
Instruction
Area Available
Step
Flag
P M K
F
L
T
C
S
Z D.x R.x
Con
st
U
N
D
R
Error
(F110)
Zero
(F111)
Carry
(F112)
ASC(P)
S
O O O
-
O
-
-
-
O
-
-
O O O O O
4~6
O
-
-
D
O O O
-
O
-
-
-
O
-
-
-
O O O O
cw O O O
-
O
-
-
-
O
-
-
O O O O O
Operand
Description
Data Type
S
Hexadecimal Binary
WORD
D
Position to save converted string in.
STRING
N
Number of characters to convert.
WORD
[Flag Setting]
Flag
Description
Device
Number
Error
If format regulation of cw is incorrect.
F110
1) ASC( ASCII)
(1) Converts data in specified area S to ASCII value based on CW format to save in starting D specified.
(2) Converts Binary 16-bit data as hexadecimal, saved in position after specified device number S, to ASCII
to save in the range of the specified characters number n after specified device number D.
ASC
means ASC
P S
D
ASCP
S
D
cw
cw
CW’s format
S D 0 N
Number to be converted (0~8)
Don't Care
D ‘s start bit
S’s start bit
b15
b8
b0
b7
S
S+1
Specified number
n of characters
b15
b8
b0
b7
D
D+1
D+2
D+3
2
nd
character’s ASCII code
4
th
letter’s ASCII code
2
nd
letter’s ASCII code
4
th
letter’s ASCII code
1
st
letter’s ASCII code
3
rd
letter’s ASCII code
1
st
letter’s ASCII code
3
rd
letter’s ASCII code
2
nd
letter’s ASCII code
1
st
letter’s ASCII code
4
th
place
3
rd
place
2
nd
place
1
st
place
4
th
place
3
rd
place
2
nd
place
1
st
place
4
th
place
3
rd
place
2
nd
place
1
st
place
Binary data
Summary of Contents for XBC-DN10E
Page 1: ......
Page 10: ...Table of Contents Table of Contents 6 10 10 CLEAR ALL PLC 29...