10 - 35
10.2 Programming Using Bus Interface Functions
10.2.9 Device types for bus interface functions
10
FUNCTIONS AND PROGRAMMING
(2) Device types for MELSECNET/H module access
Specify the device type for MELSECNET/H module access in the argument sDevType
of the QBF_WriteLinkDevice or QBF_ReadLinkDevice function.
In the user program, either of the following two link device accessing methods can be
selected by specifying the device.
(a) Internal buffer access
* 1 The device name specification (macro) is defined in the include file "QbfFunc.h" of the bus
interface function. ( Section 10.2.3 (1) )
(b) Direct access
* 1 The device name specification (macro) is defined in the include file "QbfFunc.h" of the bus
interface function. ( Section 10.2.3 (1) )
POINT
1. Use the internal link device buffers (LX buffer, LY buffer, LB buffer, LW buffer)
by setting the link device refresh cycle ( Section 9.4.6 (1) ) and range
( Section 9.4.6 (3) ) on the MELSECNET/H utility and making refresh
between the internal link device buffers and link devices (LX, LY, LB, LW).
2. The link devices (SB, SW) are accessible by direct access only.
The internal link device buffers cannot be used for access since refresh
cannot be made by the setting of the MELSECNET/H utility (setting of link
device refresh cycle and range).
Remark
Refer to Section 4.4.2 for the link device accessing method.
Table10.9 Device types for internal buffer access
Device type
Device
Code specification Device name
specification
*1
Decimal Hexadecimal
11H QBFDev_LXBuf Link input internal buffer (LX buffer)
22H QBFDev_LYBuf Link output internal buffer (LY buffer)
23 17H QBFDev_LBBuf Link relay internal buffer (LB buffer)
24 18H QBFDev_LWBuf Link register internal buffer (LW buffer)
Table10.10 Device types for direct access
Device type
Device
Code specification Device name
specification
*1
Decimal Hexadecimal
1000 3E8
H QBFDev_LX Direct link input (LX)
2000 7D0H QBFDev_LY Direct link output (LY)
23000 59D8H QBFDev_LB Direct link relay (LB)
24000 5DC0H QBFDev_LW Direct link register (LW)
25000 61A8H QBFDev_LSB Direct link special relay (SB)
28000 6D60H QBFDev_LSW Direct link special register (SW)