514
7 APPLICATION INSTRUCTIONS
7.9 Display Instructions
• 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]
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.)
Y14
Y1B
10
ms
10
ms
10ms
41H 42H
50H
AB P
10ms
OFF
ON
OFF
$MOV
"ABCDEFGH"
D0
$MOV
"IJKLMNOP"
D4
X0
X3
OFF
ON
·
PR instruction in
execution flag Y1D
Strobe signal Y1C
ASCII code
PR instruction
PR instruction in execution 480ms
Stores the ASCII
code for "A" to "H"
to D0 to D3.
Stores the ASCII code
for "I" to "P" to D4 to D7.