beautypg.com

Application examples, Compax-m/s – Parker Products COMPAX-M /-S (L) User Manual

Page 230

background image

Application examples

COMPAX-M/S

Mark-referenced positioning

230

Programming:

Configuration:
P93 = +2 i.e. continuous operating mode
P35 = +1 i.e. mark reference switched on
P37 = +50 i.e. minimum travel to mark = 50 mm
P38 = +650 i.e. maximum travel to mark = 650 mm
P39 = +680 i.e. maximum feed length, if no marks appear in the mark window = 680 mm

Names of inputs and outputs:
I7

shears

0 # closed

1 # open

I15 mark

0 # missing

1 # found

O7 shears

0 # block

1 # activate

O14 mark reference 0 # block

1 # activate

O15 message

0 # mark found

1 # mark missing

List of programs:
N001: SPEED 50 ............................................... ;sets the speed
N002: ACCEL 250.............................................. ;sets the acceleration and braking ramp
N003: OUTPUT O7=0 ........................................ ;shears = block
N004: OUTPUT O14=0 ...................................... ;mark reference = block
N005: OUTPUT O15=0 ...................................... ;message = mark found

Wait for start:................................................ ;mark
N006: IF I7=0 GOTO 6....................................... ;waits until shears are open
N007: WAIT START ........................................... ;waits for start pulse
N008: OUTPUT O14=1 ...................................... ;activates mark reference
N009: WAIT 10................................................... ;waits until mark reference is activated
N010: POSR 50 ................................................. ;mark-referenced positioning
N011: WAIT 10................................................... ;waits until mark is missing or set
N012: IF I15=0 GOTO reverses (18).................. ;if mark is missing, reverses plate
N013: OUTPUT O15=0 ...................................... ;sets "Mark found" message
N014: OUTPUT O7=1 ........................................ ;activates shears
N015: IF I7=1 GOTO 15..................................... ;waits until shears are closed
N016: OUTPUT O7=0 ........................................ ;blocks shears
N017: GOTO waits for start (6) .......................... ;goes to data record N006

Reverse:....................................................... ;mark
N018: OUTPUT O15=1 ...................................... ;sets "Mark missing" message
N019: OUTPUT O14=0 ...................................... ;blocks mark reference
N020: WAIT 10................................................... ;waits until mark reference is blocked
N021: POSR -680 .............................................. ;returns to start point
N022: GOTO waits for start (6) .......................... ;goes to data record N006