API
Mnemonic
76
ASC
Type
Bit Devices
X
Y
OP
S
D
Operands:
S: English letter to be converted into ASCII code
Explanations:
1.
S: enter 8 Engligh letters by using WPLSoft on computer or enter ASCII code by HPP.
2.
See the specifications of each model for their range of use.
3.
Flag: M1161 (8/16 bit mode switch)
4.
If the execution of this instruction is connected to a 7-segment display, the error message can be displayed by
English letters.
Program Example:
1.
When X0 = On, convert A ~ H into ASCII code and stored it in D0 ~ D3.
X0
ASC
b15
42H (B)
41H (A)
D0
44H (D)
43H (C)
D1
D2
46H (F)
45H (E)
D3
48H (H)
47H (G)
Upper 8 bits
Lower 8 bits
2.
When M1161 = On, every ASCII code converted from the letters will occupy the lower 8 bits (b7 ~ b0) of a
register. The upper 8 bits are invalid (filled by 0). One register stores a letter.
b15
41H (A)
00 H
D0
00 H
42H (B)
D1
43H (C)
D2
00 H
44H (D)
00 H
D3
D4
00 H
45H (E)
D5
00 H
46H (F)
D6
00 H
47H (G)
D7
00 H
48H (H)
Lower 8 bits
Upper 8 bits
7 - 7 2
Operands
ASCII Code Conversion
M
S
K
H KnX KnY KnM KnS T
ES EX SS SA SX SC EH SV ES EX SS SA SX SC EH SV ES EX SS SA SX SC EH SV
A B C D E F G H
D0
b0
b0
7 Application Instructions API 50-99
Function
Word Devices
C
*
*
PULSE
D: Device for storing ASCII code
Controllers
ES/EX/SS SA/SX/SC EH/SV
Program Steps
D
E
F
ASC: 11 steps
*
16-bit
D V P - P L C A P P L I C AT I O N M A N U A L
32-bit
Need help?
Do you have a question about the DVP-PLC and is the answer not in the manual?
Questions and answers