Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Adding Handwheel Encoder in PowerPMAC IDE
#1
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].
Reply
#2
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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)