1150
« on: May 13, 2015, 10:06:55 AM »
I wold start by adding several new DROs to the main run page.
Part Length
Feeder length
Stock Length
Intermediant Lenth
The Part length ( Pl) is obvious
The Feeder Length(Fl) is the Length left inside the feeder loop
The stock Length(Sl) is the total available to cut length of the stock
The intermediant length (Il) is a holder for IF the part you need is longer than ONE feeder length
And you would need to make 2 or more strokes to get the full part length.
Then create a test Macro ( verbal example)
001
If Pl < Fl then
unlock Vice
Move feeder = Pl
Lock vice
FL = FL -Pl
Sl = Sl - Pi
Il = 0.000
cut
END
002
If Pl > Fl then
unlock feeder
move to full stroke(32)
lock feeder
Fl = 32
Goto 001
003
Il = 0
IF Pl > 32 then
004
unlock feeder
Move to full stroke
lock feeder
unlock vise
Feed to zero
lock vise
Il = Il + 32
Sl = Sl - Il
Unlock Feeder
Move full stroke(32)
Fl = 32
If Pl < Il then
Goto 001
Else Goto 004
NOT a perfect example as I am sure I missed something off the top of my head. You really need a screen set running to be able to SEE the interaction of the code VERSES what you want it to do.
At least that is what works well for testing for me (;-) , YOUR mileage may vary.
IF you need help just holler.
(;-) TP