Mitsubishi Electric MELSEC iQ-R C Programming Manual page 152

Melsec iq-r series programmable controller
Hide thumbs Also See for MELSEC iQ-R C:
Table of Contents

Advertisement

mdGetLabelInfo
This function acquires device information corresponding to label names.
■Format
long mdGetLabelInfo (long lPath, long lNetNo, long lStNo, long lLbCnt, void* pLbLst, long* plDevLst, unsigned long long*
pullLbCode)
■Argument
Argument
Name
lPath
Path of channel
lNetNo
Network number
lStNo
Station number
lLbCnt
Number of labels
pLbLst
Label name array
plDevLst
Device name array
pullLbCode
Label code
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.
plDevLst
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
150
3.2 MELSEC Data Link Functions
Description
Specify the path of the opened channel.
Specify the network number of target module.
Page 9 Argument specification
Specify the station number of target module.
Page 9 Argument specification
Specify the number of labels. (Up to 10240)
Number of labels can be specified 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 device information which is acquired.
(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.)
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
IN/OUT
IN
IN
IN
IN
IN
OUT
OUT
Block 1
Block 2
Block n

Advertisement

Table of Contents
loading

Table of Contents