Reading M codes
"M codes" are stored in the following buffer memory when the M code ON signal turns ON.
n: Axis No. - 1
Valid M code
Refer to the following for information on the storage details.
Page 468 Monitor Data
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".
Refer to the following for the program example.
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.
8 CONTROL SUB FUNCTIONS
8.9 Other Functions
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.
Buffer memory address
Axis 1 M code ON
Axis 1 Valid M code