MicroLYNX – On the fly
This program illustrates how to change speeds and toggle outputs while moving. This applies to applications where a tool needs to be moved quickly to the workpiece, then decelerated for fluid dispensing, soldering, welding, laser cutting, etc. On-the-fly is an example of how MicroLYNX position trips work.
.

Application flowchart:

'******** Parameter Setup ******** MUNIT = 51200 VI = 0.500 ACCL = 20 DECL = 50 IOS 31 = 0,1,0 'Output - general purpose, low true. '******** Program ******** PGM 1 LBL ONTHEFLY TP1 = 5, PSUB1 'Configure 1st position trip at 5 revs TP2 = 10, PSUB2 'Configure 2nd position trip at 10 revs TPE1 = 1 'Enable both position trips TPE2 = 1 VM = 10 'Initial max speed 10 rps MOVA 4.25, 1 'Move out to 4.25 revs at 10 rps HOLD 0 VM = 2 'Reduce max speed to 2 rps MOVA 10.5 'Move to 10.5 revs HOLD 2 DELAY 250 VM = 10 'Reset max speed to 10 rps MOVA 0 'return to origin HOLD 2 END LBL PSUB1 'Turn on output at 5 revs IO 31 = 1 RET LBL PSUB2 'Turn off output at 10 revs IO 31 = 0 RET PGM
Download On the Fly .lxt file
Right-click, select Save Target As...
(color-coded in IMS Terminal)
