Mitsubishi Electric MELSEC iQ-R C Series Programming Manual page 198

Controller module
Table of Contents

Advertisement

Example
The following tables show the examples of values specified to the label name array (pLbLst) and data read to the device name
array (plDevLst). (For five labels to be read: Label 1 to 5).
1.
Describe a target label name in a text file, and save it by specifying Unicode (UTF-16).
2.
Read the label name in a binary format on a user program from the saved text file, and store the address of the label
name to pass to the label name array (pLbLst) on the memory.
• Values specified to pLbLst
pLbLst
pLbLst[0]
pLbLst[1]
pLbLst[2]
pLbLst[3]
pLbLst[4]
• Value to be read to plDevLst
plDevLst
plDevLst[0]
plDevLst[1]
plDevLst[2]
plDevLst[3]
plDevLst[4]
plDevLst[5]
plDevLst[6]
plDevLst[7]
plDevLst[8]
plDevLst[9]
plDevLst[10]
plDevLst[11]
plDevLst[12]
plDevLst[13]
plDevLst[14]
plDevLst[15]
Return value
Return value
0 (0000H)
Other than 0
*1 For a return value which does not exist in the reference, refer to the manual for the CPU module. (MELSEC iQ-R CPU Module
User's Manual (Application))
Relevant function
• Page 198 mdOpen
• Page 190 mdClose
• Page 202 mdRandRLabelEx
• Page 207 mdRandWLabelEx
3 DETAILS OF FUNCTION
196
3.3 MELSEC Data Link Functions
Specified value
First (Label1) label name storage address
Second (Label2) label name storage address
Third (Label3) label name storage address
Fourth (Label4) label name storage address
Fifth (Label5) label name storage address
Read value
5
DevD
10
1
DevD
11
1
DevM
100
1
DevM
101
1
DevM
102
1
Description
Normal
Error
For details on the error, refer to the following:
Page 225 ERROR CODE LIST
Description
Label name
Label name
Label name
Label name
Label name
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
Device type
Start device number
Number of read points
Device type
Start device number
Number of read points
*1

Advertisement

Table of Contents
loading

Table of Contents