dzrong Posted March 17, 2011 Posted March 17, 2011 When my program is running,I send H command to CLIPPER,and the position of program stopped at the DWELL100000 position, then I send Jog+ command,but CLIPPER tell me "command not allowed while program exection".But stopping at other position works well. But the software manual tell me that "Jogging moves are permitted while in feedhold mode (unlike in non-Turbo PMACs)". Why? except dwell?[/i] Here is my program. &1 #1->x #2->y OPEN PROG 1 CLEAR LINEAR ABS F500 While (1 > 0) X10Y10 dwell 100000 X700Y700 DWELL100000 EndWhile CLOSE
Omron Forums Support Posted March 17, 2011 Posted March 17, 2011 How and when are you issuing the H command?
steve.milici Posted March 17, 2011 Posted March 17, 2011 The "H" feedhold only works in a segmented move - Isx13 must be greater than zero. Also if the feedhod is issued during the DWELL time jogging is not permitted because PMAC never segments a DWELL. Instead use a DELAY command.
dzrong Posted March 18, 2011 Author Posted March 18, 2011 In the terminal,sent the H command.The time just guess,but let it stop the dwell position.And Isx13=10.By the way it works in lookahead mode.Isx20=10. Because the DELAY has other progblem,"if DELAY comes after a blended move, the TA deceleration time from the move occurs within the Delay time, not before it." So I deside to use WHILE+DELAY instead of DWELL in the lookahead mode. Like this if I want to stop 200ms but not use dwell200: while(m133=0) ;p1=p1+1 endwhile delay200 How about this way?
Omron Forums Support Posted March 18, 2011 Posted March 18, 2011 I think what Steve suggested will work - just use Delay rather than Dwell. Does that fix the problem?
dzrong Posted March 21, 2011 Author Posted March 21, 2011 Because in the lookahead mode you don't know how much time the last TA time is,so if you want to delay certain time you must know the TA time."if DELAY comes after a blended move,the TA deceleration time from the move occurs within the Delay time, not before it." That's the problem.
Omron Forums Support Posted March 21, 2011 Posted March 21, 2011 Do you really need an exact wait duration for your Delay command? It seems that all you really need to do is turn on a flag from within the motion program indicating that it is time to hold, and then have a PLC that is running detect the flag and issue the CMD"H" command. You can then jog freely. You could have the PLC issue CMD"R" when you are ready to resume the motion program, for example after the motor reaches its desired jog location.
dzrong Posted March 22, 2011 Author Posted March 22, 2011 Thank you very much! Yes,this is a good idear. But I realy want to know what will happy when program meet "while()" in the lookahead mode,does it stop lookahead? There seems no documents say that.
Omron Forums Support Posted March 22, 2011 Posted March 22, 2011 If the program encounters TWO EndWhile statements, lookahead will stop.
steve.milici Posted March 22, 2011 Posted March 22, 2011 A single while loop will not stop blending only two nested while loops will stop blending and also lookahead. A delay will also stop blending since the minimum delay time is the TA time. The delay will not stop lookahead though.
dzrong Posted April 15, 2011 Author Posted April 15, 2011 Any way,if you want to jog a motor when you hold a program at special command like dwell(goto\endwhile\ while),you can jog the motor throw handwheel channel,and setting Ix05 to a virtual axis channel feedback address,ix06=1.
Recommended Posts