
Originally Posted by
Karl_T
Most unusual application... That's the beauty of Camsoft, you can easily customise for special needs. How about a custom Gcode? Use any unused code, say G102 and an unused parameter, say E. Then to change to encoder of 4000:
G102 E4000 (in your gcode program)
Here's the idea for G102
SETUP 7;0;e;0;10;0;64;N
----G102
Or do it with an M code, user button, and QUESTION command. Lots a ways.
Karl
SETUP
Enables you to define the parameters of an axis beyond the six that can be defined through the DESIGN.INI file using the CNCSETUP program. It also enables you to redefine axes 1 through 8. There is no need to use the SETUP program on axes 1 through 8 unless you have a specific need to change it after the program begins. You may individually define any axis from 1 through 8 with this command. The SETUP command only needs to be issued once. Its function is to define an axis for use with the POSITION command or to define how the spindle works. The last parameter in this command is either a Y or an N. The Y parameter defines axis coordination among all the original axes and the N parameter disables axis coordination among all the original axes. Refer to the explanations described in the On-line Help for details relating to the legal parameter values given here. The information is the same. The example below sets up the 7th axis as a servo motor type (0) with a ratio of 4000 counts per inch, a standard quadrature encoder type (0) using the proportional gain of 10, integral constant of 0 and then a derivative gain of 64. (Refer to the SERVOSTEP, RATIO, PROPRO, INTEG and DERIV settings in the CARD.INI file for other options.)
EXAMPLE: SETUP 7;0;4000;0;10;0;64;N