7. APPLICATION INSTRUCTIONS
7
−
106
MELSEC-A
7.9.1 ASCII code print instructions
(PR, PRC)
Available Device
Bit device
Word (16-bit) device
Constant
Pointer
Level
Ca
rr
y
fla
g
Err
o
r
fla
g
X Y M L S B F T C D W R A0
A1
Z V K H P I N
D
igit specification
In
d
e
x
M9012 (M9010, M9011)
(S)
O
O
O
O
O
PR
(D)
O
O
(S) O O O O O O O O O O O O O O
PRC
(D)
O
O
Functions PR
The PR instruction has the following two functions.
•
Outputs an ASCII code of 16 characters stored in units of eight points beginning
with the device specified at (S), to the output module specified at (D).
•
Outputs an ASCII code from the device specified at (S) to 00H code to the output
module specified at (D).
Note that the second function cannot be used with the An and A3V.
These functions can be switched by ON/OFF setting of M9049.
CPUs other than An and A3V
An,
A3V
M9049 ON
M9049 OFF
Output of 16 characters
O
O
X
Output to 00H code
X
X
O
AnS
AnN
AnSH
An A1FX
A3H
A3M
A3V AnA
AnU, A2AS
A2USH-S1
A2USH board
QCPU-A
(A Mode)
A0J2H
A2C
A52G
A73
A3N
board
Applicable
CPU
O O O O
O
O X O O
Remark
* With a PR instruction, only output of 16 characters in the ASCII code is possible.
*
*
(S)
Head number of device which
stores ASCII code
PR
(D)
Head number of output unit which
outputs ASCII code
(S)
Device number which prints
comment
PRC
(D)
Head number of output unit which
outputs comment
Setting data
PR, PRC
Indicates the instruction symbol.
ASCII print command
(S)
(D)
Summary of Contents for MELSEC-A series
Page 1: ......
Page 2: ......
Page 13: ...A 11 MEMO...
Page 505: ...APPENDICES APP 100 MELSEC A MEMO...
Page 507: ......
Page 508: ......