Hello there experts,
I've chosen to program without the inline forms functionality mainly because I have so many calculated points. Whenever you try going the "inline forms" way, you end up with infinite PDAT, FDAT and Speed variables.
So after hitting a few fences I've decided to take a look into collision detection and the manual says it will only work with inline forms. Is that correct?
From what I've checked, whenever I enable collision detection in an inline form, it adds these commands:
;FOLD PTP PT1 Vel=100 % PDAT5 Tool[3] Base[4] CD
$BWDSTART=FALSE
PDAT_ACT=PPDAT1
FDAT_ACT=FPT1
BAS(#PTP_PARAMS,100)
+++TQM_FIFO_READ(TM1)
+++TRIGGER WHEN DISTANCE=0 DELAY=0 DO iTQM_TRIGGERID=1
+++TRIGGER WHEN DISTANCE=0 DELAY=0 DO TQM_START_MON(TM1) PRIO = -1
+++TRIGGER WHEN DISTANCE=1 DELAY=0 DO TQM_SWAP_VALUES(TM1) PRIO = -1
PTP XPT1
;ENDFOLD
Display More
also in .dat I'll see a difference only in FDAT "FPT1":
Everything preceding "+++" is what i've found to be different than "standard" collision detection off
So now I've got two questions:
1-Are these really the only differences? If I replicate these lines to my code and do the whole "turn off collision @ KCP, run in T2 or EXT for a few times, then turn on collision again" will it work?
2-Do I have to use one TM for each movement or can I create like a global TM and use it in every movement, just like I do to PDATs (for example, I've got only 2 global PDATs setting 2 different speed and contour settings for all my movements)
Thank you very much for insights!