Mitsubishi Electric MELSEC iQ-R Series User Manual page 161

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

Advertisement

Communication by direct access
This method is used for direct access to link devices of a network module from a user program.
MELSECWinCPU module
User program
Direct access
■Function list
The following table shows functions to be used in a user program.
Function name
mdBdWriteLinkDeviceEx
mdBdReadLinkDeviceEx
■Specification method for devices
To directly access a link device, access it as a link direct device (Jn\).
For the link register 16 (W10) on network No.2, the device 'J2\W10' is accessed.
To access the link device with a user program, specify the following device types:
Device (device name)
Link input (Jn\X)
Link output (Jn\Y)
Link relay (Jn\B)
Link special relay (Jn\SB)
Link register (Jn\W)
Link special register (Jn\SW)
*1 For a number in parentheses, specify 'n' (network number) indicated in a link direct device (Jn\).
Ex.
When accessing the link direct device (J2\W10)
• Device type: DevLW (2)
• Start device number: 10
• Accessible link devices vary depending on network modules. For the accessible devices, refer to the
manual of a network module. (Manual of a module used)
• Some network modules allow their multiple link devices to be accessed with one device name. For the
method for specifying devices when accessing link devices directly, refer to the manual of a network
module. (Manual of a module used)
To access a control network module using a user program, specify the following device types:
Device (device name)
Link input (Jn\X)
Link output (Jn\Y)
Link relay (Jn\B)
Link special relay (Jn\SB)
Link register (Jn\W)
Link special register (Jn\SW)
Network module
Link
device
Purpose
To write data to own station link devices of CC-Link IE Controller Network module and CC-Link IE TSN module
To read data from own station link devices of CC-Link IE Controller Network module and CC-Link IE TSN module
*1
Device type
DevLX (1 to 255)
DevLY (1 to 255)
DevLB (1 to 255)
DevLSB (1 to 255)
DevLW (1 to 255)
DevLSW (1 to 255)
Device type
DevLX (0)
DevLY (0)
DevLB (0)
DevLSB (0)
DevLW (0)
DevLSW (0)
Network module
Link
Link
device
scan
16 NETWORK MODULE ACCESS FUNCTION
159
16.1 Cyclic Transmission
16

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec iq-r melsecwincpu

Table of Contents