經由RS485介面與驅動器之間的訊息溝通都是以ASCII字串為之,結尾需加CR符號( 0x0d )
How to check receive buffer?
Set
Pr.589=10, then Pr.590~Pr.599 show the receiving bytes from RS485 serial port.
Pr.590=RX[0]
Pr.591=RX[1]
Pr.592=RX[2]
Pr.593=RX[3]
Pr.594=RX[4]
Pr.595=RX[5]
Pr.596=RX[6]
Pr.597=RX[7]
Pr.598=RX[8]
Pr.599=RX[9], only 10 bytes can be verified
How to check transmit buffer?
Set Pr.589=11, then Pr.590~Pr.599 show the data bytes transmit to RS485
serial port.
Pr.590=TX[0]
Pr.591=TX[1]
Pr.592=TX[2]
Pr.593=TX[3]
Pr.594=TX[4]
Pr.595=TX[5]
Pr.596=TX[6]
Pr.597=TX[7]
Pr.598=TX[8]
Pr.599=TX[9], only 10 bytes can be verified
How to check queue status
when writing parameters into the PDS drive?
Any parameter write to the PDS drive is temporary stored into a queue buffer( size=30).
Pr.124 shows the status of the queue content.
If Pr.124=0, means the queue is empty.
If Pr.124=n, means the queue has n parameters waiting transfer to EEPROM(EAROM)
Before sending Parameter Write Command, must always check Pr.124 and
guarantee its value is less than 25 .
|