Mitsubishi FX2N-10GM Hardware / Programming Manual page 178

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

Advertisement

FX Series Positioning Controllers
How to use the special Ms/Ds
The special Ms and the special Ds are used (in the positioning program) as follows.
How to use the special auxiliary relays for reading
O100, N0;
N00
P100
N01 LD M9050;
N02 OUT Y0;
JMP
P100;
m102;
How to use the special data registers for reading
O100, N0;
N40 FNC74 (SEGL)
D9005
Y0
K3
K0
m102;
How to use the special auxiliary relays for writing
O100, N0;
N0
LD X0;
N1
OUT M9007;
m102;
How to use the special data registers for writing
O100, N0;
N40 FNC12 ( [D] MOV )
K20,000
D9208;
m102;
Subtask program
X axis error detection
Y0 output
END
Subtask program
7-segment time-sharing display
xxxxxxx
X axis present position
END
Subtask program
General purpose input X0
X axis error reset
END
Subtask program
Transfer instruction (32 bits)
xxxxxxx
PARA.4: Maximum speed
END
Special auxiliary relays and Special data registers 6
• Special Ms are treated as contacts
when reading. In the example
shown on the left, a general pur-
pose output Y0 is used to give an
output to the outside when an
error occurs in the X axis. (For
subtasks, refer to Section 5.2.)
• The present value (3 digits) of the
X axis is displayed on the outside
using the FNC 74 (SEGL) instruc-
tion.
(For the FNC 74, refer to Section
5.10.21.)
• Special Ms are treated as coils
wh en wr itin g. In the exam ple
shown on the left, the X axis error
is reset (M9007) using the general
purpose input X0.
• Change the setting of PARA. 4
(maximum speed for the X axis) to
"20,000". In this case the special
D needs to be a double word, also
a 32-bit instruction must be used.
Using an even No. data register for
the lower 16 bits, the succeeding
data register is used for the upper
16 bits. Specify the lower device
for operands.
6-2

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx2n-20gm

Table of Contents