Delta Tau Forums
Adding Handwheel Encoder in PowerPMAC IDE - Printable Version

+- Delta Tau Forums (http://forums.deltatau.com)
+-- Forum: Delta Tau Data Systems (http://forums.deltatau.com/forumdisplay.php?fid=1)
+--- Forum: Power PMAC (http://forums.deltatau.com/forumdisplay.php?fid=2)
+--- Thread: Adding Handwheel Encoder in PowerPMAC IDE (/showthread.php?tid=3258)



Adding Handwheel Encoder in PowerPMAC IDE - bprall - 08-02-2021

This is probably a super easy one but I have a hand wheel encoder wired into Encoder 4 on my Powerbrick for Manual positioning of the motors but cannot see where to set it up in the IDE for reading from EncTable[4].


RE: Adding Handwheel Encoder in PowerPMAC IDE - Eric Hotchkiss - 08-04-2021

To read the position from the encoder table directly, multiply the following two structure elements. As long as the ECT entry does not integrate, nothing extra is needed.
Code:
EncTable[4].PrevEnc*EncTable[4].ScaleFactor

It would probably be preferable to set up a "motor" to read the encoder conversion table entry so it can be added to the position window.

Code:
Motor[x].pEnc=EncTable[4].a
Motor[x].pEnc2=EncTable[4].a
Motor[x].ServoCtrl=1

Optionally you can set the following variables for unit labels in the position window or scaling.

Code:
Motor[x].PosSf
Motor[x].Pos2Sf
Motor[x].PosUnit
Motor[x].Pos2Unit