7 CONTROL SUB FUNCTIONS
7.9 Other Functions
283
7
Reading M codes
An M code is stored in the following buffer memory address when M code ON signal turns on.
For details on the stored contents, refer to the following.
The following shows a program example for reading [Md.25] Valid M code to the CPU module. Read M codes not as rising
edge instructions but as ON execution instructions.
Monitor item
Monitor
value
Monitor details
Buffer memory address
Axis 1
Axis 2
Axis 3
Axis 4
[Md.25]
Valid M code
Stores the M code number ([Da.10] M code) set in the positioning
data.
808
908
1008
1108
Classification
Label Name
Description
Module label
RD75_1.stnAxisMonitorData_Axis[0].uValidMcode
Axis 1 [Md.25] Valid M code
Global label, local label
Define the global label or local label as follows. Setting Assign (Device/Label) for labels is not necessary because the unused
internal relay and data device are automatically assigned to the labels.
Summary of Contents for MELSEC iQ-R RD75P4
Page 1: ...MELSEC iQ R Positioning Module User s Manual Application RD75P2 RD75P4 RD75D2 RD75D4 ...
Page 2: ......
Page 13: ...11 MEMO ...
Page 19: ...17 CONTENTS INDEX 588 REVISIONS 592 WARRANTY 593 TRADEMARKS 594 ...
Page 498: ...496 13 PROGRAMMING 13 2 List of Labels Used ...
Page 503: ...13 PROGRAMMING 13 4 Program Example 501 13 ...
Page 514: ...512 13 PROGRAMMING 13 4 Program Example Restart program Parameter data initialization program ...
Page 515: ...13 PROGRAMMING 13 4 Program Example 513 13 Flash ROM write program Error reset program ...
Page 516: ...514 13 PROGRAMMING 13 4 Program Example Stop program ...
Page 565: ...APPENDICES Appendix 4 Operation Examples of When the Remote Head Module Is Mounted 563 A ...
Page 597: ......