Program format 5
5-1
5.
Program format
5.1
Positioning program
The positioning program is expressed as follows.
c
Line No.
•
The line No. (N0 to N9999) is assigned to each instruction so that separation of instruc-
tion words can be easily distinguished. The head line No. is entered from a peripheral
unit. After that, the next No. is automatically assigned to the next instruction every time
the delimiter (;) is entered.
Instruction words can be read using the line No.
•
Any numeric of 4 digits or less can be selected as the head line No. The same No. can be
assigned to different programs which have a different program No. (refer to the next page.).
The head line No. does not have to be "N0000".
•
The capacity of the program is controlled by the number of steps. The number of steps
used in one line varies depending on the instruction word. The line No. is not included in
the number of steps.
d
Program No.
•
The program No. is assigned to each positioning program. A different No. is assigned to
a program for different operation.
•
"O" is attached to the program No. The program No. format is classified into that for
simultaneous 2-axis operation (in the FX
2N
-20GM), that for independent 2-axis operation
(1-axis operation in the FX
2N
-10GM) and that for subtasks.
Only program No. for the X axis and subtasks are available in the FX
2N
-10GM.
Ox 10
N0000
cod28(DRVZ);
N0001
m00(WAIT);
N0002
cod00(DRV)
x100
f1000;
N0003
m00(WAIT);
N0100
m02(END);
➀
Line No.
➁
Program No.
➂
Program
Total 6 steps: The total number of steps must be
7.8K or 3.8K or less.Not included in the
number of steps.
N0000
Not included
in the number
of steps.
1 step
2 steps
1 step
2 steps
cod00(DRV)
x100
f100
;
m02(END);
Independent 2-axis operation
Simultaneous 2-
axis operation
O00;
X axis
Subtasks
m02(END);
Ox00;
Y axis
m02(END);
Oy00;
m102(END);
O100;
FX Series Positioning Controllers
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 ...