
16
on this page, then can get corresponding document.
* Send: 1,HELP\r\n
* Returns: (wiki addresses of the DFRobot products)
3.5 Save all the configuration parameters (ID,EEPSAV\r\n)
Via this instruction, you could save the current configuration parameters, before saving, it’s better to
use the "read drive configuration parameter" command to confirm whether the current configuration
parameters are your setting values, drive will automatically reset once receiving the instruction and
allow the configure to factory parameters.
* Send: 1,EEPSAV\r\n
* Returns: none
3.6 Set the baud rate (ID,SBR,******\r\n)
This drive supports 10 commonly used baud rate, respectively, 1200, 2400, 4800, 9600, 14400,
19200, 28800, 38400, 57600, 115200, the factory default value is 57600.
For example, set the baud rate to 115200
* Send: 1,SBR,115200\r\n
* Returns: none
3.7 Set the drive addresses (ID,SNA,***\r\n)
The drive addresses covers 1~126, the factory default value is 1. When multiple drives running in
parallel, two of the same bus address are not allowed. Different address drive, as receiving
instructions from host at the same time, response only if the address is identical with itself, or 0
(broadcasts) .
For example, the drive address is set to 8
* Send: 1,SNA,8\r\n
* Returns: none
3.8 Get the number of cumulative pulse encoder (ID,GEP,*\r\n)
This command allows to get the encoder pulse numbers accumulated, the range is:
-2147483648~2147483647, drive will quadruple the signal of encoder PWM if phase difference of
90 °, if the actual encoder has 200 lines, the drive will turn it into a 200x4=800 line through the
internal hardware, so far the drive only supports incremental encoder.
For example, to get the number of cumulative pulse encoder of M1
* Send: 1,GEP,1\r\n
* Returns: (actual accumulated pulse number, notice that there are positive and negative, symbols for
directions)