Power Brick Controller User Manual
Connections and Software Setup
51
Serial Encoder Command
The Serial Encoder Command is a 32-bit, channel specific, structure element. It specifies the bit length
(resolution), status bits, data type, conversion method, trigger enable, trigger mode, parity, and command
code of the serial encoder channel.
Ch. #
Serial Encoder Command
Ch. #
Serial Encoder Command
1
PowerBrick[0].Chan[0].SerialEncCmd
5
PowerBrick[1].Chan[0].SerialEncCmd
2
PowerBrick[0].Chan[1].SerialEncCmd
6
PowerBrick[1].Chan[1].SerialEncCmd
3
PowerBrick[0].Chan[2].SerialEncCmd
7
PowerBrick[1].Chan[2].SerialEncCmd
4
PowerBrick[0].Chan[3].SerialEncCmd
8
PowerBrick[1].Chan[3].SerialEncCmd
Bit #:
Binary:
Hex ($):
Bits [31 – 16]
specify the command code. This field is protocol specific.
Bits [15 – 14]
specify the parity. This field is protocol specific.
Bit 13
specifies the trigger mode.
Bit 12
is the trigger enable toggle.
Bit 11
specifies the conversion type. This field is protocol specific.
Bit 10
is the data ready bit, read only.
Bits [9 – 6]
specify the encoder status field. This field is protocol specific.
Bits [5 – 0]
specify the serial encoder bit length (single-turn + multi-turn).
Following, are examples for setting up the control and command words for each of the supported protocols.
Also, the resulting data registers and their format.
Command
Status
Bits
Bit Length
(Resolution)
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
Protocol
M
o
d
e
T
ri
g
E
n
a
G
to
B
D
a
ta
R
d
y