13 - 81
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/Condition data
No./Number of LOOP to LEND repetitions".
(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
ON) of the PLC READY
signal [Y0].
Setting item
Setting
value
Setting details
Buffer memory address
[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.
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) set in the positioning data is
stored.
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".
M0
[Program example]
K1
D110
K2408
H0
FROM
ON execution command
D110: valid M codes
Содержание MELSEC Q Series
Страница 1: ...MELSEC Q QD77GF Simple Motion Module User s Manual Positioning Control QD77GF4 QD77GF8 QD77GF16 ...
Страница 2: ......
Страница 30: ...A 28 MEMO ...
Страница 32: ...MEMO ...
Страница 97: ...3 29 Chapter 3 Specifications and Functions MEMO ...
Страница 102: ...3 34 Chapter 3 Specifications and Functions MEMO ...
Страница 282: ...5 162 Chapter 5 Data Used for Positioning Control MEMO ...
Страница 374: ...7 16 Chapter 7 Memory Configuration and Data Process MEMO ...
Страница 376: ...MEMO ...
Страница 400: ...8 24 Chapter 8 HPR Control MEMO ...
Страница 425: ...9 25 Chapter 9 Major Positioning Control MEMO ...
Страница 528: ...9 128 Chapter 9 Major Positioning Control MEMO ...
Страница 554: ...10 26 Chapter 10 High Level Positioning Control MEMO ...
Страница 586: ...11 32 Chapter 11 Manual Control MEMO ...
Страница 800: ...16 54 Chapter 16 Troubleshooting MEMO ...
Страница 829: ...Appendix 29 Appendices 3 QD77GF16 Unit mm inch 115 4 53 3 0 12 23 0 91 27 4 1 08 98 3 86 4 0 16 ...
Страница 830: ...Appendix 30 Appendices MEMO ...
Страница 833: ......