Prc; Print Comment - Mitsubishi MELSEC-Q/L Programming Manual

Table of Contents

Advertisement

PRC

Program Example
(1) The following program converts the string "ABCDEFGHIJKLMNOP" to ASCII code when X0 is turned ON and stores it
from D0 to D7, and then outputs the ASCII code at D0 to D7 to Y14 to Y1D when X3 is turned ON.
[Ladder Mode]
[List Mode]
Step
Instruction
[Timing Chart]
X0
$MOV "ABCDEFGH" D0
Stores the ASCII
code for "A" to "H"
$MOV "IJKLMNOP" D4
to D0 to D3.
Stores the ASCII code for
"I" to "P" to D4 to D7.
X3
PR instruction
7.9.2
PRC

Print comment

7.9.2
PRC
PRC
: Head number of the device which prints the comment (Device name)
S
: Head number of the output module which outputs the comment (bits)
D
Setting
Internal Devices
Data
Bit
S
(Only Y)
D
434
When X0 turns ON, converts "ABCDEFGHIJKLMOP"
to the ASCII code and stores it to D to D7.
When X3 turns ON, outputs the ASCII
code in D0 to D7 to Y14 to Y1D.
Device
ON
OFF
Y14
ASCII code
Y1B
Strobe signal Y1C
PR instruction in
execution flag Y1D
Command
R, ZR
Word
Bit
––
A
B
41
42
H
H
10
10
ms
ms
10 ms
10 ms
OFF
ON
OFF
PR instruction in execution 480 ms
High
Basic
performance
PRC
J
\
U
\G
Word
––
P
50
H
Process
LCPU
Redundant Universal
S
D
Other
Zn
Constants
P, I, J, U
––
––
––
––
––

Advertisement

Table of Contents
loading

Table of Contents