Mitsubishi Electric Q173CPU Programming Manual page 190

Q series motion controller
Hide thumbs Also See for Q173CPU:
Table of Contents

Advertisement

5 MOTION DEDICATED PLC INSTRUCTION
[Program example]
<Example 1>
Program which stores 10 points worth of the data from D0 of the self
CPU (CPU No.1) since D100 of CPU No.2., when X0 is turned on.
SM400
X0
SP.DDWR
M10
M11
M11
The error flag (SM0) is turned on an operation error in the case shown below, and an
error code is stored in SD0.
(Note)
Error code
The CPU No. to be set by "(First I/O No. of the target
2110
CPU)/16" is specified.
The self CPU by "(First I/O No. of the target CPU)/16"
2114
is specified.
The CPU except the Motion CPU by "(First I/O No. of
2117
the target CPU)/16" is specified.
4002
Specified instruction is wrong.
The instruction is composed of devices except usable
4004
devices.
Since 0 to 3DFH, 3E4H is specified by "(First I/O No.
4100
of the target CPU)/16" is specified.
Number of the writing data is except 1 to 16.
4101
Number of writing data exceeds range of the storage
device of the written data.
MOV
K10
H3E1
D50
D0
D100 M10
Normal complete processing
Abnormal complete processing
Error factor
<Example 2>
Program which stores 10 points worth of the data from D0 of the
self CPU (CPU No.1) since D100 of CPU No.2. during turn on X0.
SM400
D51
X0
M10
M0
M10
M10
M11
M11
5 - 41
Corrective action
Confirm a program,
and correct it to a
correct PLC
program.
(Note) : 0000H (Normal)
MOV
SP.DDWR
H3E1
D50
D0
Normal complete processing
Abnormal complete processing
K10
D51
D100
M10
SET
M0
RST
M0

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Q173cpunQ172cpuQ172cpun

Table of Contents