Mitsubishi Electric MELSEC iQ-R Series Manual page 90

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

Advertisement

■ Example
The following tables show the examples of values set to the label name array (pLbLst) and data read to the device name array
(plDevLst). (For five labels to be read: Label1 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 binary format from the saved text file on a user program, and store the address of the label name
passed to the label name array (pLbLst) on the memory.
• Values set to the label name array (pLbLst)
Setting target
pLbLst[0]
pLbLst[1]
pLbLst[2]
pLbLst[3]
pLbLst[4]
• Data to be read to the device name array (plDevLst)
Read position
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 (0000H)
*1 For return values which do 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 82 mdrClose
Page 90 mdrOpen
Page 94 mdrRandRLabel
Page 100 mdrRandWLabel
3 DETAILS OF FUNCTION
88
3.2 MELSEC iQ-R Series Data Link Functions
Setting 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
Value to be read
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 chapter.
Page 108 ERROR CODE LIST
*1
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

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec iq-r c

Table of Contents