Power Brick Controller User Manual
Connections and Software Setup
71
Example:
A 36-bit serial encoder with 24 bits of single-turn and 12 bits of multi-turn position data starting
at bit #0 of Serial Encoder Data A register and continuously extending to bit #3 of serial data register B.
PowerBrick[
i
].Chan[
j
].SerialEncDataA
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Multi-Turn Position Data
Single-Turn Position Data
PowerBrick[
i
].Chan[
j
].SerialEncDataB
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Multi-Turn Position Data
For on-going position, we are only interested in the position data residing in serial data register A. Some
people may elect to use only the single-turn data for ongoing position processing. This would require
shifting to the left 8 bits (
index1 = 8
), and setting
EncTable[
i
].ScaleFactor = 1 / 256
.
But, also it is possible to just simply process the whole 32-bit word comprised of single-turn, and multi-
turn position data.
Activating the corresponding motor channel, and setting up the position and velocity pointers is sufficient
to display motor/encoder units in the position window.
In this case, the user will see 2
SingleTurn
= 2
24
= 16,777,216 motor units per revolution.
EncTable[1].type = 1
EncTable[1].pEnc = PowerBrick[0].Chan[0].SerialencDataA.a
EncTable[1].pEnc1 = Sys.Pushm
EncTable[1].index1 = 0
EncTable[1].index2 = 0
EncTable[1].index3 = 0
EncTable[1].index4 = 0
EncTable[1].index5 = 0
EncTable[1].ScaleFactor = 1
Motor[1].ServoCtrl = 1
Motor[1].pEnc = EncTable[1].a
Motor[1].pEnc2 = EncTable[1].a
Содержание PBC Series
Страница 5: ......
Страница 74: ...Power Brick Controller User Manual Connections and Software Setup 74 Motor 1 HomeOffset 0...
Страница 203: ...Power Brick Controller User Manual Appendix A Digital Inputs Schematic 203 APPENDIX A DIGITAL INPUTS SCHEMATIC...
Страница 204: ...Power Brick Controller User Manual Appendix B Digital Outputs Schematic 204 APPENDIX B DIGITAL OUTPUTS SCHEMATIC...
Страница 205: ...Power Brick Controller User Manual Appendix C Analog I Os Schematics 205 APPENDIX C ANALOG I OS SCHEMATICS...
Страница 206: ...Power Brick Controller User Manual Appendix C Analog I Os Schematics 206...
Страница 207: ...Power Brick Controller User Manual Appendix D Limits Flags Schematic 207 APPENDIX D LIMITS FLAGS SCHEMATIC...