Mitsubishi Electric MELSEC iQ-FX5 User Manual page 272

Application
Table of Contents

Advertisement

Precautions during control
• During interpolation control, the reference axis M code ON signal is turned ON.
• The M code ON signal will not turn ON if "0" is set in "[Da.10] M code/Condition data No./Number of LOOP to LEND
repetitions". (The M code will not be output, and the previously output value will be held in "[Md.25] Valid M code".)
• If the M code ON signal is ON at the positioning start, the error "M code ON signal start" (error code: 19A0H) will occur, and
the positioning will not start.
• If the "[Cd.190] PLC READY signal" is turned OFF, the M code ON signal will turn OFF and "0" will be stored in "[Md.25]
Valid M code".
• If the positioning operation time is short during continuous path control, there will not be enough time to turn OFF the M
code ON signal and the warning "M code ON signal ON" (warning code: 0992H) may occur. In this case, set a "0" in the
"[Da.10] M code/Condition data No./Number of LOOP to LEND repetitions" of that section's positioning data to prevent the
M code from being output for avoiding the warning occurrence.
• In the AFTER mode during speed control, the M code is not output and the M code ON signal does not turn ON.
• If current value changing where "9003" has been set to "[Cd.3] Positioning start No." is performed, the M code output
function is made invalid.
Setting method
The following shows the settings to use the "M code output function".
• Set the M code No. in the positioning data "[Da.10] M code/Condition data No./Number of LOOP to LEND repetitions".
• Set the timing to output the M code ON signal. The "WITH mode/AFTER mode" also can be set for each positioning data.
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 "[Cd.190] PLC READY signal".
n: Axis No. - 1
Setting item
[Pr.18]
M code ON signal output timing
Refer to the following for the setting details.
Page 379 Basic Setting
Reading M codes
"M codes" are stored in the following buffer memory when the M code ON signal turns ON.
n: Axis No. - 1
Monitor item
[Md.25]
Valid M code
Refer to the following for information on the storage details.
Page 435 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".
7 CONTROL SUB FUNCTIONS
270
7.9 Other Functions
Setting
Setting details
value
Set the timing to output the M code ON signal.
0: WITH mode
1: AFTER mode
Monitor
Storage details
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.
Buffer memory address
27+150n
Buffer memory address
2408+100n

Advertisement

Table of Contents
loading

Table of Contents