FX Series Positioning Controllers
Program format 5
5-9
5.4
General Rules for Positioning Control Instructions
A command matter of the cod instruction and m code are explained.
5.4.1
m code instruction format
m code instructions are used to drive various auxiliary equipment (such as chucks, drills, etc.)
in association with positioning operations.
m code: M00 to M99 (100 points) (Each of the X and Y axes has 100 m code instructions.)
m code instructions are expressed as "m" to be distinguished from "M" which stands for an
auxiliary relay.
m code driving methods
In the AFTER mode, only m code instructions are executed. In the WITH mode, m code
instructions and other instructions are simultaneously executed.
AFTER mode
N0
cod01(LIN)X400Y300f200;
N1
m10; The m code is programed on a separate
line.
N2
cod04(TIM)k5; 50ms
N3
m11; Other auxiliary equipment is driven imme-
diately afterwards.
WITH mode
cod01(LIN) X400
Y300
f200
m10;
When an m code is added as the final operand in any
type of positioning control instruction, the WITH mode is
established as shown below. The program execution pro-
ceeds to the next line after execution of the instruction is
completed and the m code OFF signal is turned ON.
•
In either case above, when an m code is driven, the m code ON signal is turned ON and the
mcode No. is saved in special Ds. The m code ON signal remains ON until the m code OFF
signal is turned ON.
Table 5.6: Allocation of m code
X axis
Y axis
Special M/D
Buffer memory
Special M/D
Buffer memory
m code ON signal
M9051
#23 (b3)
M9083
#25 (b3)
m code OFF command M9003
#20 (b3)
M9019
#21 (b3)
m code No.
D9003
#9003
D9013
#9013
m10
m10
cod 01
m11
cod 01:positioning
completion
m code
ON signal
m code OFF
command
m code ON signal
m code OFF command
*1
*1
*1:Lengthen the turning OFF time
more than the scan time of the
programmable controller.
Summary of Contents for FX2N-10GM
Page 1: ...HARDWARE PROGRAMMING MANUAL FX2N 10GM FX2N 20GM ...
Page 4: ...FX Series Positioning Controllers ii ...
Page 6: ...FX Series Positioning Controllers iv ...
Page 46: ...FX Series Positioning Controllers Introduction 1 1 34 MEMO ...
Page 76: ...FX Series Positioning Controllers Wiring 3 3 24 MEMO ...
Page 222: ...FX Series Positioning Controllers Operation Maintenance and Inspection 8 8 18 MEMO ...
Page 256: ...FX Series Positioning Controllers Program Examples 9 9 34 MEMO ...