|
|
|
@ -42,7 +42,7 @@ void LS_485Motor_loop() |
|
|
|
&LS_485Motors_handler->TxCount, LS_485Motors_slave_id, 0x6208, 0x02);//PR1为速度模式
|
|
|
|
|
|
|
|
LS_485Motors_handler->AddSendList(LS_485Motors_handler, |
|
|
|
LS_485Motors_handler->Tx_Buf, LS_485Motors_handler->TxCount, OneLineWaitTime, |
|
|
|
LS_485Motors_handler->Tx_Buf, LS_485Motors_handler->TxCount, 50, |
|
|
|
NULL); |
|
|
|
|
|
|
|
speedModeSet=0; |
|
|
|
@ -52,14 +52,14 @@ void LS_485Motor_loop() |
|
|
|
&LS_485Motors_handler->TxCount, LS_485Motors_slave_id, 0x620B, LS_485Motors_Speed);//PR1速度
|
|
|
|
|
|
|
|
LS_485Motors_handler->AddSendList(LS_485Motors_handler, |
|
|
|
LS_485Motors_handler->Tx_Buf, LS_485Motors_handler->TxCount, OneLineWaitTime, |
|
|
|
LS_485Motors_handler->Tx_Buf, LS_485Motors_handler->TxCount, 50, |
|
|
|
NULL); |
|
|
|
|
|
|
|
MB_WriteHoldingReg(&LS_485Motors_handler->Tx_Buf, |
|
|
|
&LS_485Motors_handler->TxCount, LS_485Motors_slave_id, 0x6002, 0x11);//PR1运行
|
|
|
|
|
|
|
|
LS_485Motors_handler->AddSendList(LS_485Motors_handler, |
|
|
|
LS_485Motors_handler->Tx_Buf, LS_485Motors_handler->TxCount, OneLineWaitTime, |
|
|
|
LS_485Motors_handler->Tx_Buf, LS_485Motors_handler->TxCount, 50, |
|
|
|
NULL); |
|
|
|
|
|
|
|
|
|
|
|
|