150
3 DETAILS OF FUNCTION
3.2 MELSEC Data Link Functions
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
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.
• 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).
Argument
Name
Description
IN/OUT
lPath
Path of channel
Specify the path of the opened channel.
IN
lNetNo
Network number
Specify the network number of target module.
IN
lStNo
Station number
Specify the station number of target module.
IN
lLbCnt
Number of labels
Specify the number of labels. (Up to 10240)
Number of labels can be specified up to 10240.
IN
pLbLst
Label name array
Specify the storage address of label name for each label.
Specify a label name in Unicode (UTF-16).
IN
plDevLst
Device name array
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.)
OUT
pullLbCode
Label code
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.)
OUT
plDevLst
Description
plDevLst[0]
Number of blocks
plDevLst[1]
Device type
Block 1
plDevLst[2]
Start device number
plDevLst[3]
Number of read points
plDevLst[4]
Device type
Block 2
plDevLst[5]
Start device number
plDevLst[6]
Number of read points
plDevLst[3n+1]
Device type
Block n
plDevLst[3n+2]
Start device number
plDevLst[3n+3]
Number of read points
Содержание MELSEC iQ-R C
Страница 1: ...MELSEC iQ R C Controller Module Programming Manual ...
Страница 2: ......
Страница 201: ...I 199 MEMO ...
Страница 203: ...I 201 MEMO ...
Страница 207: ......