Mitsubishi Electric MELSEC-Q/L Programming Manual page 516

Hide thumbs Also See for MELSEC-Q/L:
Table of Contents

Advertisement

Program example
• 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 (when SM701 is OFF).
[Ladder Mode]
[List Mode]
[Timing Chart]
$MOV "ABCDEFGH" D0
$MOV "IJKLMNOP" D4
7 APPLICATION INSTRUCTIONS
514
7.9 Display Instructions
ON
OFF
X0
Stores the ASCII
code for "A" to "H"
to D0 to D3.
Stores the ASCII code
for "I" to "P" to D4 to D7.
X3
ASCII code
PR instruction
Strobe signal Y1C
PR instruction in
execution flag Y1D
When X0 turns ON, converts "ABCDEFGHIJKLMOP" to the ASCII code
and stores it to D0 to D7.
When X3 turns ON, outputs the ASCII code in D0 to D7 to Y14 to Y1D.
(Y1C is used for a strobe signal, and Y1D is used for the PR instruction
execution flag.)
A
Y14
41H
·
Y1B
10
10
ms
ms
10ms
OFF
ON
OFF
PR instruction in execution 480ms
B
42H
10ms
P
50H

Advertisement

Table of Contents
loading

Table of Contents