FX Series Positioning Controllers
Special auxiliary relays and Special data registers 6
6-2
How to use the special Ms/Ds
The special Ms and the special Ds are used (in the positioning program) as follows.
Subtask program
X axis error detection
Y0 output
END
O100, N0;
N01
LD M9050;
N02
OUT Y0;
m102;
How to use the special auxiliary relays for reading
How to use the special data registers for reading
Subtask program
N40
FNC74 (SEGL)
7-segment time-sharing display
D9005
X axis present position
Y0
K3
K0
m102;
END
~
~~
P100
JMP
N00
P100;
O100, N0;
xxxxxxx
Subtask program
General purpose input X0
X axis error reset
END
N0
LD X0;
N1
OUT M9007;
m102;
How to use the special auxiliary relays for writing
How to use the special data registers for writing
Subtask program
N40
FNC12 ( [D] MOV )
Transfer instruction (32 bits)
D9208;
PARA.4: Maximum speed
m102;
END
~
~
~
K20,000
O100, N0;
O100, N0;
xxxxxxx
• 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
w h e n w r i t in g . I n t h e ex a m p l e
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.
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 ...