Bosch 6000 User's Guide Page 188

  • Download
  • Add to my manuals
  • Print
  • Page
    / 268
  • Table of contents
  • TROUBLESHOOTING
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 187
Chapter 5. Custom Profiling
173
; Program second move - positive slave move
FOLMD6000 ; Over a distance of 6000 master steps
D4000 ; slave will move 4000 steps
FOLRNF0 ; and end at zero ratio
GOBUF1 ; Build motion
; Program third move - negative slave move
FOLRN3 ; New ratio to accommodate larger distance of slave travel
FOLMD2000 ; Over a distance of 2000 master steps
D-4000 ; slave will move -4000 steps
FOLRNF0 ; and end at zero ratio
GOBUF1 ; Build motion
; Program last move - dwell
FOLMD2000 ; Over a distance of 2000 master steps
D0 ; slave will not move
FOLRNF0 ; and end at zero ratio
GOBUF1 ; Build motion
PLN1 ; Close cam loop
END ; End program example 2
PCOMP EXPL2 ; Compile program EXPL2
; ** To execute the program, enter the PRUN EXPL2 command **
Program
Modification
Let’s now modify the constraints of the system. Let’s say that the product will be spaced
roughly 12000 master counts apart. It may or may not be exactly 12000, but it will never be
less than 10000 (just to make sure the retraction finishes before the next product is detected).
We can then modify the program to wait for the product to be detected each cycle. We can also
take the extra “dwell” or zero distance move out of the end of the profile. See program below:
; Setup code
FOLMAS21 ; Master is coming in on encoder 2
FOLEN1 ; Enable Following mode
INFNC17-H ; Assuming input 17 is trigger A (1 axis products)
INFEN1 ; Enable inputs
; Motion program
DEL EXPL2B ; Delete program (in case it already exists in memory)
DEF EXPL2B ; Begin definition of program example 2b
PLOOP0 ; Loop continuously to mimic a mechanical cam
TRGFNA1 ; Pause profile until trig A received (detect next product)
; Program first move - dwell
FOLRN1 ; Set up ratios - numerator
FOLRD1 ; and denominator
FOLMD2000 ; Over a distance of 2000 master steps
D0 ; slave will not move
FOLRNF0 ; and end at zero ratio
GOBUF1 ; Build motion
; Program second move - positive slave move
FOLMD6000 ; Over a distance of 6000 master steps
D4000 ; slave will move 4000 steps
FOLRNF0 ; and end at zero ratio
GOBUF1 ; Build motion
; Program third move - negative slave move
FOLRN3 ; New ratio to accommodate larger distance of slave travel
FOLMD2000 ; Over a distance of 2000 master steps
D-4000 ; slave will move -4000 steps
FOLRNF0 ; and end at zero ratio
GOBUF1 ; Build motion
PLN1 ; Close cam loop
END ; End program example 2b
PCOMP EXPL2B ; Compile program EXPL2B
; **********************************************************
; * To execute the program, enter the PRUN EXPL2B command *
; **********************************************************
Page view 187
1 2 ... 183 184 185 186 187 188 189 190 191 192 193 ... 267 268

Comments to this Manuals

No comments