hello!
Does anyone know if there is any way to jog x,y,z,rx,ry,rz with external encoders or external step and direction pulses?
Thank you!
hello!
Does anyone know if there is any way to jog x,y,z,rx,ry,rz with external encoders or external step and direction pulses?
Thank you!
Don't know for sure if this is what you are looking for, but this code should move 1mm or 1° (or ...) in X, Y, Z, rx, ry, rz, on the positive edge of resp. inputs 1..6. And in the other direction if input 9 is active.
0001 GETS LPX000 $PX001
0002*TOP
0003 SUB LP000 LP000
0004 IF( IN#(9)=ON ) THEN
0005 SET LD000 -1000
0006 ELSE
0007 SET LD000 1000
0008 ENDIF
0009 IF( LB000=0 ) THEN
0010 IF( IN#(1)=ON ) THEN
0011 SETE LP000 (1) LD000
0012 ELSEIF( IN#(2)=ON ) THEN
0013 SETE LP000 (2) LD000
0014 ELSEIF( IN#(3)=ON ) THEN
0015 SETE LP000 (3) LD000
0016 ELSEIF( IN#(4)=ON ) THEN
0017 SETE LP000 (4) LD000
0018 ELSEIF( IN#(5)=ON ) THEN
0019 SETE LP000 (5) LD000
0020 ELSEIF( IN#(6)=ON ) THEN
0021 SETE LP000 (6) LD000
0022 ELSE
0023 TIMER T=0.02
0024 JUMP *TOP
0025 ENDIF
0026 IMOV LP000
0027 SET LB000 1
0028 ELSEIF( IN#(1)=OFF AND IN#(2)=OFF AND IN#(3)=OFF AND IN#(4)=OFF AND IN#(5)=OFF AND IN#(6)=OFF ) THEN
0029 SET LB000 0
0030 ENDIF
0031 JUMP *TOP
Display More
There is an option for an external axis but not the robot on that controller. You would have to write a job to do this. My preference is to use the IMOV instruction.
...
Funny... I was looking at the similar threads. AbadRosa asked the same question exactly a year ago. You started of with the same sentence then, as I did now...