Mitsubishi Electric MELSEC-LD77MS2 User Manual page 768

Hide thumbs Also See for MELSEC-LD77MS2:
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 "
(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
Valid M code
Md.25
: 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 "
code
the sub work.)
Read M codes not as "rising edge commands", but as "ON execution
commands".
[LD77MS4 program example]
M code ON signal
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. (
No./Number of LOOP to LEND repetitions
the positioning data is stored.
" to the PLC CPU data register (D110). (The read value is used to command
D110: valid M codes
13 - 78
Chapter 13 Control Sub Functions
Da.10
".
Setting details
Storage details
M code/Condition data
Da.10
) set in
FROM
H0
ON execution command
M code/Condition data
ON) of the PLC READY
Buffer memory address
LD77MS2
LD77MS16
LD77MS4
27+150n
n: Axis No.-1
Buffer memory address
LD77MS2
LD77MS16
LD77MS4
808+100n 2408+100n
n: Axis No.-1
Valid M
Md.25
K808
D110
K1

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec-l seriesMelsec-ld77ms4Melsec-ld77ms16

Table of Contents