User manual

PoStep60 user manual
27
www.poscope.com
8.3.5 0x0A Read HW/FW info
First Master writes 0x0A command (no data bytes are needed). In a next step Master reads 5 bytes of
data where meaning of byte is described in a table below.
BYTE
Info
0
0x41 driver ID
1
HW version major release
2
HW version minor release
3
FW version major release
4
FW version minor release
8.3.6 0x10 Read voltage
To read PoStep supply voltage first Master writes 0x10 command (no data bytes are needed). In a
next step Master reads two bytes of data. Calculated voltage is:
Voltage/V = (BYTE1 * 256 + BYTE0) * 0.072 = (BYTE1 << 8 | BYTE0) * 0.072
8.3.7 0x11 Read temperature
To read PoStep temperature first Master writes 0x11 command (no data bytes are needed). In a next
step Master reads two bytes of data. Calculated temperature is:
Temperature/ºC = (BYTE1 * 256 + BYTE0) * 0.125 = (BYTE1 << 8 | BYTE0) * 0.125
8.3.8 0x12 Read pin statuses
First Master writes 0x12 command (no data bytes are needed). In a next step Master reads one byte
of data. Each bit in the read byte represents one pin. 0 represents logic low level and 1 represents
logic high.
Bit
Pin
0 (LSB)
Bootloader override
1
Sleep
2
Step / AIN1
3
Direction / AIN2
4
BIN1
5
BIN2
6
End switch
7 (MSB)
/
8.3.9 0x13 Read driver status
First Master writes 0x13 command (no data bytes are needed). In a next step Master reads one byte
of data. Read value represents driver status:
Status value
Status
1
Driver in sleep mode
2
Driver active
3
Driver in idle mode
4
Driver overheated
5
Driver in DC motor control mode