|
|
Force Loop over Position LoopOne (proven) technique for closing an analog feedback on top of a position feedback, is to use a phantom axis. The idea here is to use the analog input as feedback for the phantom axis. Then pipe the DAC output of the phantom axis into Ix05 (Master Following) of the axis that you are trying to control. At first, I had a philosophical problem with this technique. The DAC output is basically voltage and the Master Position is encoder counts. How can apples and oranges come together and close a loop? Well, it worked in the field and that is what counts. You will be better off placing the phantom axis in its own coordinate system. The reasoning here is that the analog input may not be available all the time. Hence, if the phantom axis ever goes into "open loop" mode, then your program will not abort. Also, then you can command the analog "position" using Jog commands as opposed to a motion control program. Another note of caution. If the DAC output for the phantom axis exceeds the DAC limit (Ix69) then it will get clipped and you will not be able to "control" the analog signal. To get arround this issue, "open loop" the phantom axis before re-enabling it. Also, you may consider setting the following error large so that the axis does not go into "open loop". Here are some code samples for a Turbo PMAC. In this example, I am using axis #7 as the phantom axis and axis #1 as the axis I am trying to control. I use the Offset mode for Master Following (Ix06=3). The analog input is coming from an ACC-28E channel 2 (setup for address: $78C01.) I found that the phantom axis needed both proportional gain and integral gain.
Subtle point. Ix05 must be an X register. Therefore, I used the free memory address X:$10FF as my
DAC output for the phantom axis. Then pointed Ix05 to X:$10FF as well.
It is helpful to monitor this DAC output during development and troubleshooting. To do so, configure
your M variable as such: |
| ©1994-2008 TUS, Inc. 1020 Southhill Dr. Suite 130 Cary, NC 27513 USA (919) 677-3060 |
| Affiliates: SmartSaws LumberID Beyond Genre |