Mitsubishi Electric MELSEC-Q Series User Manual page 685

Hide thumbs Also See for MELSEC-Q Series:
Table of Contents

Advertisement

[4] Setting the M code output function
The following shows the settings to use the "M code output function".
(1) Set the M code No. in the positioning data "[Da.10] M code/Condition data
(2) Set the timing to output the M code ON signal.
Set the required value in the following parameter, and write it to the Simple
Motion module.
The set details are validated at the rising edge (OFF
signal [Y0].
Setting item
M code ON signal
[Pr.18]
output timing
: Refer to Section 5.2 "List of parameters" for setting details.
[5] Reading M codes
"M codes" are stored in the following buffer memory when the M code ON signal
turns ON.
Monitor item
[Md.25] Valid M code
: Refer to Section 5.6 "List of monitor data" for information on the storage details.
The following shows a sequence program example for reading the "[Md.25] Valid
M code" to the PLC CPU data register (D110). (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]
No./Number of LOOP to LEND repetitions".
Setting
value
Set the timing to output the M code ON signal.
0: WITH mode
1: AFTER mode
Monitor
value
The M code No. ([Da.10] M code/Condition
data No./Number of LOOP to LEND
repetitions) set in the positioning data is
stored.
M0
D110: valid M codes
13 - 81
Chapter 13 Control Sub Functions
Setting details
Storage details
FROM
H0
ON execution command
ON) of the PLC READY
Buffer memory address
27+150n
n: Axis No.-1
Buffer memory address
2408+100n
n: Axis No.-1
K2408
D110
K1

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec-qd77gf4Melsec-qd77gf8Melsec-qd77gf16

Table of Contents