Program Format; Positioning Program - Mitsubishi FX2N-10GM Hardware / Programming Manual

Melsec-f
Hide thumbs Also See for FX2N-10GM:
Table of Contents

Advertisement

FX Series Positioning Controllers
5.

Program format

5.1

Positioning program

The positioning program is expressed as follows.
Line No.
Ox 10
N0000
cod28(DRVZ);
N0001
m00(WAIT);
N0002
cod00(DRV)
x100
N0003
m00(WAIT);
N0100
m02(END);
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.
N0000
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
(1-axis operation in the FX
Simultaneous 2-
axis operation
O00;
m02(END);
Only program No. for the X axis and subtasks are available in the FX
Program No.
Program
f1000;
cod00(DRV)
1 step
2 steps
Total 6 steps: The total number of steps must be
7.8K or 3.8K or less.Not included in the
number of steps.
-10GM) and that for subtasks.
2N
Independent 2-axis operation
X axis
Ox00;
m02(END);
x100
f100
2 steps
-20GM), that for independent 2-axis operation
2N
Y axis
Oy00;
m02(END);
Program format 5
;
1 step
Subtasks
O100;
m102(END);
-10GM.
2N
5-1

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx2n-20gm

Table of Contents