284
8 CONTROL SUB FUNCTIONS
8.9 Other Functions
Reading M codes
"M codes" are stored in the following buffer memory when the M code ON signal turns ON.
n: Axis No. - 1
Refer to the following for information on the storage details.
The following shows a program example for reading the "[Md.25] Valid M code" to the data register (D110) of the CPU
module. (The read value is used to command the sub work.)
Read M codes not as "rising edge commands", but as "ON execution commands".
■
Program example
Refer to the following for the program example.
Monitor item
Monitor
value
Storage details
Buffer memory address
[Md.25]
Valid M code
The M code No. ([Da.10] M code/Condition data No./Number
of LOOP to LEND repetitions/Number of pitches) set in the
positioning data is stored.
2408+100n
Classification
Label name
Description
Module label
RD77_1.stnAxMntr[0].uStatus.C
Axis 1 M code ON
RD77_1.stnAxMntr[0].uM_Code
Axis 1 Valid M code
Global label, local label
Defines the global label or the local label as follows. The settings of Assign (Device/Label) are not required for the label that the
assignment device is not set because the unused internal relay and data device are automatically assigned.
Summary of Contents for RD77MS16
Page 1: ...MELSEC iQ R Simple Motion Module User s Manual Application RD77MS2 RD77MS4 RD77MS8 RD77MS16 ...
Page 2: ......
Page 316: ...314 9 COMMON FUNCTIONS 9 4 External Input Signal Select Function Program example ...
Page 317: ...9 COMMON FUNCTIONS 9 4 External Input Signal Select Function 315 9 ...
Page 575: ...13 PROGRAMMING 13 4 Positioning Program Examples 573 13 Error reset program Axis stop program ...
Page 643: ......