Mitsubishi MELSEC Q Series Programming Manual page 541

Common instruction 1/2
Hide thumbs Also See for MELSEC Q Series:
Table of Contents

Advertisement

Operation Error
(1) In the following case, an operation error occurs, the error flag (SM0) turns ON, and an error
code is stored into SD0.
• There is no 00
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
code within the range of the device specified by
H
Device
ON
OFF
Y14
ASCII code
Y1B
Strobe signal Y1C
PR instruction in
execution flag Y1D
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.
A
B
41
42
H
H
10
10
ms
ms
10 ms
10 ms
OFF
ON
OFF
PR instruction in execution 480 ms
PR
when SM701 is OFF.
S
(Error code: 4101)
P
50
H
7-167
1
2
3
4
6
6
7
8

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents