Example program for a flying shear application – Yaskawa FSP Amplifier FlexWorks User Manual

Page 99

Advertising
background image

Table of Contents

99

4.12.3. Example Program for a Flying Shear

Application

The program below controls the implementation of a simple flying

shear. The parameter Pn2D1.1 is set to 0, mapping the
New_move_enable input to input terminal CN1-40.
1. LABEL 1
2. MOVE_R 0
3. WAIT_VAR Follower_synchronized = 1

4. SET_OUTPUT 1 ON
5. WAIT_VAR Position_demand_value >= 1000
6. SET_VAR Override_new_move_enable 1
7. GO_D 0 -1
8. SET_VAR Override_new_move_enable 0

9. GO_TO 1
10. END
The command MOVE_R 0 (line 2) is suspended until an input is
received at CN1-40. Once the slave is synchronized to the master
(line 3), Output 1 is set On (line 4).
Once the Position_demand_value variable has exceeded 1000 (line

5), the New_move_enable function in disabled (line 6). Therefore,
the GO_D function (line 7) is run immediately, irrespective of the
state of the New_move_enable input.
The New_move_enable input is then re-enabled (line 8), and the
program returns to the beginning (line 9).
See MOVE_R in Chapter 5, Command Reference.

Advertising
This manual is related to the following products: