Program Example - Mitsubishi Electric MELSEC iQ-F FX5 User Manual

Programmable controller
Hide thumbs Also See for MELSEC iQ-F FX5:
Table of Contents

Advertisement

Program example

The following are program examples for executing multiple tables.
Stepping operation
This program example illustrates a stepping operation that is performed on axis 1 in order of control methods [1: 1 Speed
Positioning (Relative Address Specification)], [5: Table Transition Variable Speed Operation], and [3: Interrupt 1 Speed
Positioning].
Speed
1
15000 pps
(Maximum speed)
10000 pps
7000 pps
1000 pps
(Bias speed)
Positioning address: 100000
Table shift command
axis1 (SM5580)
Instruction execution
complete flag M3
Interrupt input signal 2
X2 (positive logic)
Interrupt input signal 1
X1 (positive logic)
Drive contact
Execution table
0
(relative address specification)
Setting data
Positioning parameter (high speed I/O parameter)
Item
■Basic Parameter 1
Pulse Output Mode
Output Device (PULSE/CW)
Output Device (SIGN/CCW)
Rotation Direction Setting
Unit Setting
Pulse No. of per Rotation
Movement Amount per Rotation
Position Data Magnification
2
1
1
1 speed positioning
Table transition variable
Speed Operation
Axis 1
1: PULSE/SIGN
Y0
Y4
0: Current Address Increment with
Forward Run Pulse Output
0: Motor System (pulse, pps)
2000 pulse
1000 pulse
1: × Single
2
1
Positioning
address: 50000
2
3
Interrupt 1 speed positioning
Item
■Basic Parameter 2
Interpolation Speed Specified Method
Max. Speed
Bias Speed
Acceleration Time
Deceleration Time
■Detailed Setting Parameter
External Start Signal Enabled/Disabled
Interrupt Input Signal 1 Enabled/
Disabled
Interrupt Input Signal 1 Mode
Interrupt Input Signal 1 Device No.
Interrupt Input Signal 1 Logic
Interrupt Input Signal 2 Logic
■OPR Parameter
OPR Enabled/Disabled
5 POSITIONING INSTRUCTION
2
1
:
Acceleration time
(500 ms)
2
:
Deceleration time
(500 ms)
Time
Dwell time
(100 ms)
1 operation cycle
0
Axis 1
0: Composite Speed
15000 pps
1000 pps
500 ms
500 ms
0: Invalid
1: Valid
1: Standard Mode
X1
0: Positive Logic
0: Positive Logic
0: Invalid
5.9 Multiple-table Operation
5
141

Advertisement

Table of Contents
loading

Table of Contents