bprall Posted August 2, 2021 Share Posted August 2, 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]. Link to comment Share on other sites More sharing options...
Eric Hotchkiss Posted August 4, 2021 Share Posted August 4, 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. 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. 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. Motor[x].PosSf Motor[x].Pos2Sf Motor[x].PosUnit Motor[x].Pos2Unit Link to comment Share on other sites More sharing options...
Recommended Posts