Motion Cpu Device Access - Mitsubishi MELSEC-Q Series User Manual

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

Advertisement

14
COMMUNICATIONS BETWEEN CPU MODULES

14.8 Motion CPU Device Access

(1) Motion CPU device access
C Controller module
/* Write to Motion CPU device */
ret = QBF_MotionDDWR(path, sCpuNo, sDeType, ulDevNo,
ulSize, pusDataBuf, ulBufSize, ulTimeout);
/* Read from Motion CPU device */
ret = QBF_MotionDDRD(path, sCpuNo, sDeType, ulDevNo,
ulSize, pusDataBuf, ulBufSize, ulTimeout);
(2) Functions
QBF_MotionDDWR
QBF_MotionDDRD
Remark
This function allows data writing/reading from the user program of the C Controller
module to the Motion CPU devices.
Use the bus interface functions to create the user program of the C Controller module.
Figure 14.20 Motion CPU device access
The following indicates the functions used for the Motion CPU device access.
Table14.16 Function used for Motion CPU device access
Function name
Writes data to the Motion CPU device.
(Equivalent to the S(P).DDWR instruction of the programmable
controller CPU)
Reads data from the Motion CPU device.
(Equivalent to the S(P).DDRD instruction of the programmable
controller CPU)
POINT
This function is not applicable to the Q172DCPU and Q173DCPU.
If access is made from the user program, a Target CPU unsupported error (return
value: -28412) will occur.
Refer to Chapter 10 for details of the bus interface functions.
Motion CPU
1)
Device memory
2)
Device memory
1) Writes data to the Motion CPU device.
2) Reads data from the Motion CPU device.
Function
14.8 Motion CPU Device Access
9
10
11
12
13
14
15
16
14
- 25

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec q06ccpu-vMelsec q06ccpu-v-bMelsec sw3pvc-ccpu-e

Table of Contents