Mitsubishi Electric MELSEC iQ-R Series Manual page 88

Intelligent function module
Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

mdrGetLabelInfo
This function acquires device information corresponding to label names.
■ Format
short mdrGetLabelInfo (long lPath, short sRoute, long lNetNo, long lIoNo, long lStNo, short sCPU, long lLbCnt, void* pLbLst,
long* plDevLst, unsigned long long* pullLbCode)
■ Argument
Argument
lPath
sRoute
lNetNo
lIoNo
lStNo
sCPU
lLbCnt
pLbLst
plDevLst
pullLbCode
Device information assigned to labels specified to the label name array (pLbLst) is stored in a device specified to the device
name array (plDevLst) in a randomly selected device format listed below.
Storage position
plDevLst[0]
plDevLst[1]
plDevLst[2]
plDevLst[3]
plDevLst[4]
plDevLst[5]
plDevLst[6]
plDevLst[3n+1]
plDevLst[3n+2]
plDevLst[3n+3]
• One block comprises of three elements such as device type, start device number, and number of read points, and the total
number of blocks will be stored in the first element of the device name array (plDevLst).
3 DETAILS OF FUNCTION
86
3.2 MELSEC iQ-R Series Data Link Functions
Name
Path of channel
Access route
Network number
Start I/O number
Station number
CPU number
Number of labels
Label name array
Device name array
Label code
Description
Number of blocks
Device type
Start device number
Number of read points
Device type
Start device number
Number of read points
Device type
Start device number
Number of read points
Description
Specify the path of the opened channel.
Specify the access route to target module.
• 0: CC-Link IE Controller Network
• 1: CC-Link IE Field Network
• 2: MELSECNET/H
• 3: CC-Link
• 4: Bus interface
Specify the network number of target module.
Page 14 Argument specification
Specify the start I/O number divided by 16 of the target module.
Page 14 Argument specification
Specify the station number of target module.
Page 14 Argument specification
Specify the CPU number of the target CPU module.
• 0: Control CPU specification
• 1 to 4: Multiple CPU specification
Specify the number of labels. (Up to 10240)
Specify the storage address of label name for each label.
Specify a label name in Unicode (UTF-16).
Specify a device to store the acquired device information.
(Device information assigned to labels specified to the label name array
(pLbLst) is stored in a randomly selected device format.)
A value to identify whether the label of a CPU module is changed or not is
stored.
(Whether the label setting is changed or not can be checked by whether this
value is changed or not. However, even when converting all in a CPU
module, the value changes.)
IN/OUT
IN
IN
IN
IN
IN
IN
IN
IN
OUT
OUT
Block
Block 1
Block 2
Block n

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec iq-r c

Table of Contents