beautypg.com

Software – IAI America ASEL User Manual

Page 289

background image

Part 2 Programs

Chapter 9 Example of Building a System

267

Part 2 Programs

5. Software

(1) Control flow chart

Main program:

Screw-tightening

machine

Program 1

Start program 2

Align origin

Start screw tightening (pushbutton)

Move

Z-axis air cylinder

down

Start screw tightening

Screw tightening

complete

Z-axis air cylinder up

6 screws

tightened?

Screw

tightening

complete?

Stop program 2

Stop parts feeder

End

YES

YES

NO

NO

Sub program:

Parts feeder

Program 2

Screws short

Parts feeder ON

Screws fully loaded

Parts feeder OFF

5 seconds on timer