Power Brick Controller User Manual
Manual Motor Setup
120
Data Unpacking
The ADC inputs and motor phase outputs’ data is packed by default in the Power PMAC firmware into
single 32-bit registers. Typically, this improves the efficiency of the computation algorithms, especially in
extremely high performance applications or with a large number of axes (up to 256).
However, this enhancement may not be as noteworthy with the Power Brick Controller considering the
significantly lower number of axes it is usually controlling. Also, the Power Brick Controller offers many
functions that do not support packed data which mandates unpacking them:
Note
Unpacking the data is critical for the proper operation of certain
features in the Power Brick Controller.
Sys.WpKey = $AAAAAAAA
// Disable Write-Protection
PowerBrick[
0
].Chan[
0
].PackOutData =
0
// Channel #1 Unpack Output Data
PowerBrick[
0
].Chan[
1
].PackOutData =
0
// Channel #2 Unpack Output Data
PowerBrick[
0
].Chan[
2
].PackOutData =
0
// Channel #3 Unpack Output Data
PowerBrick[
0
].Chan[
3
].PackOutData =
0
// Channel #4 Unpack Output Data
PowerBrick[
1
].Chan[
0
].PackOutData =
0
// Channel #5 Unpack Output Data
PowerBrick[
1
].Chan[
1
].PackOutData =
0
// Channel #6 Unpack Output Data
PowerBrick[
1
].Chan[
2
].PackOutData =
0
// Channel #7 Unpack Output Data
PowerBrick[
1
].Chan[
3
].PackOutData =
0
// Channel #8 Unpack Output Data
PowerBrick[
0
].Chan[
0
].PackInData =
0
// Channel #1 Unpack Input Data
PowerBrick[
0
].Chan[
1
].PackInData =
0
// Channel #2 Unpack Input Data
PowerBrick[
0
].Chan[
2
].PackInData =
0
// Channel #3 Unpack Input Data
PowerBrick[
0
].Chan[
3
].PackInData =
0
// Channel #4 Unpack Input Data
PowerBrick[
1
].Chan[
0
].PackInData =
0
// Channel #5 Unpack Input Data
PowerBrick[
1
].Chan[
1
].PackInData =
0
// Channel #6 Unpack Input Data
PowerBrick[
1
].Chan[
2
].PackInData =
0
// Channel #7 Unpack Input Data
PowerBrick[
1
].Chan[
3
].PackInData =
0
// Channel #8 Unpack Input Data