Appendix 2.2 The Program Example To Execute Plural Multiple Cpu Instruction By The Instructions Of One Time - Mitsubishi Electric Q173HCPU Programming Manual

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

Advertisement

APPENDICES
APPENDIX 2.2 The program example to execute plural Multiple CPU instruction by the
instructions of one time
This is the program example which executes to the Multiple same Motion CPU at
high speed by one instruction.
In this case, you must take an interlock with "To self CPU high speed interrupt
accept flag from CPU". When an instruction cannot be accepted even if it is
executed, it becomes "No operation".
The program which read the data for 10 points from D0 of the Motion CPU
installing the CPU No.2 to since D100 of the PLC CPU, the data for 10 points
from D200 of the Motion CPU to since D300 of the PLC CPU, and the data for 10
points from D400 of the Motion CPU to since D500 of the PLC CPU by starting of
X0 is shown as an example 1.
At this time, number of multiple CPU dedicated execute instructions at one
command should no exceed the maximum acceptable number of instructions
(Refer to Chapter 3.) of one Motion CPU.
When an maximum acceptable number of instructions is 32, the program which
made not to execute the multiple dedicated instructions when number of the
Multiple CPU dedicated execute instructions exceeds 32 is shown as an example
2.
<Example 1>
SM400
X0
To self CPU high speed interrupt
accept flag from CPU 1
U3E1 G48.0
M0
SP.DDRD
To self CPU high speed interrupt
accept flag from CPU 1
M1
U3E1 G48.0
SP.DDRD
To self CPU high speed interrupt
accept flag from CPU 1
M2
U3E1 G48.0
SP.DDRD
M10
M11
M11
M20
M21
M21
M30 M31
M31
MOV
K10
D51
D251
MOV
K10
MOV
K10
D451
PLS
H3E1
D50
D0
D100 M10
SET
H3E1
D250
D200 D300
M20
RST
SET
H3E1
D450
D400 D500
M30
RST
Read the data from D0 to D100,
and normality complete processing.
Read the data from D0 to D100,
and abnormality complete processing.
Read the data from D200 to D300,
and normality complete processing.
Read the data from D200 to D300,
and abnormality complete processing.
Read the data from D400 to D500,
and normality complete processing.
Read the data from D400 to D500,
and abnormality complete processing.
APP - 11
M0
M1
M1
M2
M2

Advertisement

Table of Contents
loading

This manual is also suitable for:

Q172hcpu

Table of Contents