Version: 1.0.0
The following examples show two different ways of jogging the motor using an input trigger.
The first example uses only K parameters. There is no program running in the motor.
K27=0034 //Programs IN1 to Manual Feed CCW and IN2 to Manual Feed CW K43=100 //Set Manual Feed Acceleration to 100 000 pulses per second squared K49=2 //Sets Manual Feed Speed to 200 pulses per second (1/5 of a rotation per second by default)
The next example runs a program bank each time an input is triggered to jog the motor. While there is more programming done here, it is possible to use this if there is more that needs to happen than just moving. For example, you may need a variable set to indicate a direction or distance for a controller or PLC, you may want an output to activate under a certain condition, or you may need to be able to dynamically change the acceleration or speed of the move.
B100.1 //CLEAR PROGRAM BANKS L100.1 //CLEAR LOGIC BANKS K36.1 = 2 //ENABLES BANK 2&3 EXECUTION K37.1 = 3 //1000ppr RESOLUTION AND 100pps SPEED K28.1 = 8060 //INPUT 2 RUN BANK 1, INPUT 4 RUN BANK 2 K29.1 = 1010 //INPUT 2 AND 4 PAUSE BANK WHEN RELEASED S1.1 = 100 //SPEED FOR FORWARD JOG S2.1 = -100 //SPEED FOR REVERSE JOG A1.1 = 80 //ACCELERATION VALUE P1.1 = 1000000000 //INFINITE MOVE POSITION B1.1 //PROGRAM BANK 1 S1.1,A1.1,P1.1 //RUN FORWARD TO INFINITE POSITION END.1 //END BANK B2.1 //PROGRAM BANK 2 S2.1,A1.1,P1.1 //RUN BACKWARD TO INFINITE POSITION END.1 //END BANK $.1 //SAVE PROGRAM
Overview
Content Tools