Mitsubishi Electric MELSEC iQ-R Series User Manual page 292

Programmable
Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

Reading M codes
"M codes" are stored in the following buffer memory when the M code ON signal turns ON.
n: Axis No. - 1
Monitor item
[Md.25]
Valid M code
Refer to the following for information on the storage details.
Page 479 Monitor Data
The following shows a program example for reading "[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.
Classification
Module label
Global label, local
label
8 CONTROL SUB FUNCTIONS
290
8.8 Other Functions
Downloaded from
ManualsNet.com
Monitor
value
Label name
RD78GS_1.stnAxMntr_D[0].uStatus_D.C
RD78GS_1.stnAxMntr_D[0].uM_Code_D
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.
The following table shows an example for the global label.
search engine
Storage details
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 to axis 16
2408+100n
Description
Axis 1 M code ON
Axis 1 Valid M code

Advertisement

Table of Contents
loading

Table of Contents