DVP-ES2/EX2/SS2/SA2/SX2/SE Operation Manual - Programming
3-198
API Mnemonic Operands Function
77
PR
Print (ASCII Code Output)
Controllers
ES2/EX2 SS2 SA2
SE
SX2
Bit Devices Word devices Program Steps Type
OP
X Y M S K H KnX KnY KnM KnS T C D E F
S * * *
D *
PR: 5 steps
PULSE 16-bit 32-bit
ES2/EX2 SS2
SA2
SE
SX2 ES2/EX2 SS2
SA2
SE
SX2 ES2/EX2 SS2
SA2
SE
SX2
Operands:
S: Device for storing ASCII code (occupies 4 consecutive devices) D: External ASCII code output
points (occupies 10 consecutive devices)
Explanations:
1. This instruction will output the ASCII codes in the 4 registers starting from S through output
points started from D.
2. D
0
~ D
7
map to source data (ASCII code) directly in order, D
10
is the scan signal and D
11
is the
execution flag.
3. This instruction can only be used twice in the program.
4. Flags: M1029 (PR execution completed); M1027 (PR output mode selection).
Program Example 1:
1. Use API 76 ASC to convert A ~ H into ASCII codes and store them in D0 ~ D3. After this, use
this instruction to output the codes in sequence.
2. When M1027 = OFF and X20 = ON, the instruction will designate Y20 (lowest bit) ~ Y27
(highest bit) as the output points and Y30 as scan signals, Y31 as execution flag. In this mode,
users can execute an output for 8 letters in sequence..
3. If X20 turns from ON → OFF during the execution of the instruction, the data output will be
interrupted, and all the output points will be OFF. When X20 = ON again, the data output will
start from the first letter again.
X20
PR D0 Y20