EasyManua.ls Logo

Mitsubishi Electric RD77MS4 - Page 286

Mitsubishi Electric RD77MS4
644 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
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.
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".
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.

Table of Contents

Related product manuals