14
2 FUNCTION DESCRIPTION
2.3 FB Operation
3.
Set the global label.
Set the information specified in the refresh setting to the global label.
• Structure definition
Define the devices specified in the refresh setting in the structure. The number of array elements of each label data type is
equal to the number of "Points" of each devices set in the refresh setting.
Structure name: stRemoteRegBasic
• Global label definition
Define the global label by using the structure set above.
This library operates by using the data refreshed in the global label "G_stLinkBasic".
Correctly assign the device used for data refresh. Otherwise, the FBs do not properly operate.
1) Select "VAR_GLOBAL" in "Class".
2) Set "G_stLinkBasic" in "Label Name".
3) Select the structure "stRemoteRegBasic" in "Data Type".
4) Assign the device according to the refresh setting.
Label name
Data type
Remark
bnRX
Bit (0..n)
n is "Number of RX device points - 1". In the example of Step 2, n is "127".
bnRY
Bit (0..n)
n is "Number of RY device points - 1". In the example of Step 2, n is "127".
unRWr
Word [unsigned] (0..n)
n is "Number of RWr device points - 1". In the example of Step 2, n is "63".
unRWw
Word [unsigned] (0..n)
n is "Number of RWw device points - 1". In the example of Step 2, n is "63".
1)
2)
4)
3)
Summary of Contents for MELSEC-Q-MR-JE-C
Page 1: ...PLCopen Motion Control Function Block Reference MR JE C ...
Page 2: ......
Page 4: ...2 INSTRUCTION INDEX 63 REVISIONS 65 TRADEMARKS 66 ...
Page 7: ...1 OVERVIEW 1 5 Notes 5 1 MEMO ...
Page 64: ...62 3 FB LIBRARY 3 5 Troubleshooting MEMO ...
Page 66: ...64 MEMO ...
Page 69: ......