13 - 78
Chapter 13 Control Sub Functions
[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".
(2) Set the timing to output the M code ON signal.
Set the required value in the following parameter, and write it to the QD77MS.
The set details are validated at the rising edge (OFF ON) of the PLC READY
signal [Y0].
Buffer memory address
Setting item
Setting
value
Setting details
QD77MS2
QD77MS4
QD77MS16
Pr.18
M code ON signal
output timing
Set the timing to output the M code ON signal.
0: WITH mode
1: AFTER mode
27+150n
n: Axis No.-1
: 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.
Buffer memory address
Monitor item
Monitor
value
Storage details
QD77MS2
QD77MS4
QD77MS16
Md.25 Valid M code
The M code No. (
Da.10
M code) set in the
positioning data is stored.
808+100n 2408+100n
n: Axis No.-1
: 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".
M code ON signal
K1
D110
K808
H0
FROM
ON execution command
D110: valid M codes
[QD77MS4 program example]
Summary of Contents for MELSEC-Q QD77MS
Page 1: ......
Page 27: ...A 26 MEMO...
Page 29: ...MEMO...
Page 101: ...3 34 Chapter 3 Specifications and Functions MEMO...
Page 232: ...5 111 Chapter 5 Data Used for Positioning Control MEMO...
Page 315: ...5 194 Chapter 5 Data Used for Positioning Control MEMO...
Page 337: ...6 22 Chapter 6 Sequence Program Used for Positioning Control...
Page 338: ...6 23 Chapter 6 Sequence Program Used for Positioning Control...
Page 339: ...6 24 Chapter 6 Sequence Program Used for Positioning Control...
Page 340: ...6 25 Chapter 6 Sequence Program Used for Positioning Control...
Page 341: ...6 26 Chapter 6 Sequence Program Used for Positioning Control...
Page 342: ...6 27 Chapter 6 Sequence Program Used for Positioning Control...
Page 343: ...6 28 Chapter 6 Sequence Program Used for Positioning Control...
Page 344: ...6 29 Chapter 6 Sequence Program Used for Positioning Control...
Page 345: ...6 30 Chapter 6 Sequence Program Used for Positioning Control...
Page 346: ...6 31 Chapter 6 Sequence Program Used for Positioning Control...
Page 347: ...6 32 Chapter 6 Sequence Program Used for Positioning Control...
Page 348: ...6 33 Chapter 6 Sequence Program Used for Positioning Control...
Page 349: ...6 34 Chapter 6 Sequence Program Used for Positioning Control...
Page 353: ...6 38 Chapter 6 Sequence Program Used for Positioning Control...
Page 354: ...6 39 Chapter 6 Sequence Program Used for Positioning Control...
Page 357: ...6 42 Chapter 6 Sequence Program Used for Positioning Control...
Page 359: ...6 44 Chapter 6 Sequence Program Used for Positioning Control...
Page 360: ...6 45 Chapter 6 Sequence Program Used for Positioning Control...
Page 361: ...6 46 Chapter 6 Sequence Program Used for Positioning Control...
Page 363: ...6 48 Chapter 6 Sequence Program Used for Positioning Control...
Page 364: ...6 49 Chapter 6 Sequence Program Used for Positioning Control...
Page 413: ...MEMO...
Page 433: ...8 20 Chapter 8 OPR Control MEMO...
Page 458: ...9 25 Chapter 9 Major Positioning Control MEMO...
Page 593: ...10 30 Chapter 10 High Level Positioning Control MEMO...
Page 625: ...11 32 Chapter 11 Manual Control MEMO...
Page 659: ...12 34 Chapter 12 Expansion Control MEMO...
Page 767: ...13 108 Chapter 13 Control Sub Functions MEMO...
Page 813: ...14 46 Chapter 14 Common Functions MEMO...
Page 831: ...15 18 Chapter 15 Dedicated Instructions MEMO...
Page 846: ...16 15 Chapter 16 Troubleshooting MEMO...
Page 892: ...16 61 Chapter 16 Troubleshooting MEMO...
Page 971: ...Appendix 62 Appendices MEMO...
Page 974: ......
Page 975: ......