Mitsubishi Electric MELSEC iQ-R Series User Manual page 163

Programmable controller
Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

Communication by using buffer memory
This method is used for accessing the buffer memory of a network module from a user program.
MELSECWinCPU module
User program
Buffer memory access
■Function list
The following table shows functions to be used in a user program.
Function name
mdBdRandREx
mdBdRandWEx
mdBdReceiveEx
mdBdSendEx
mdRandREx
mdRandWEx
mdReceiveEx
mdSendEx
■Specification method for devices
To access the buffer memory, access it as a module access device (Un\G).
For the buffer memory (the memory address is 1000) of a module whose start I/O number is '020H,' the device 'U2\G1000' is
accessed.
To access the buffer memory with a user program, specify the following device type:
Device (device name)
Module access device (Un\G)
*1 For a number in parentheses, specify a value calculated by converting the start I/O number of an access target module to decimal and
dividing the converted number by 16.
Ex.
When accessing the module access device (U0\G0)
• Device type: DevSPG (0)
• Start device number: 0
The address of buffer memory where link devices are stored vary depending on network modules. For details
on buffer memory, refer to the manual of a network module. (Manual of a module used)
Network module
Link
device
Buffer
memory
Purpose
To read data from devices on the own station randomly
To write data to devices on the own station randomly
To read data from devices on the own station in a batch
To write data to devices on the own station in a batch
To read data from devices randomly
To write data to devices randomly
To read data from devices in a batch
To write data to devices in a batch
Device type
*1
DevSPG (0) to DevSPG (255)
Network module
Link
Link
scan
device
16 NETWORK MODULE ACCESS FUNCTION
161
16.1 Cyclic Transmission
16

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec iq-r melsecwincpu

Table of Contents