안녕하세요.,
BLDC 모터 RTU 485로 제어하려고 파이썬 pymodebus를 이용하여 제어 중인데
성공코드 func 06
DEBUG:pymodbus.logging:Current transaction state - IDLE
DEBUG:pymodbus.logging:Running transaction 1
DEBUG:pymodbus.logging:SEND: 0x1 0x6 0x0 0x79 0x7 0xd0 0x5b 0xbf
DEBUG:pymodbus.logging:Resetting frame - Current Frame in buffer -
DEBUG:pymodbus.logging:New Transaction state "SENDING"
DEBUG:pymodbus.logging:Changing transaction state from "SENDING" to "WAITING FOR REPLY"
DEBUG:pymodbus.logging:Changing transaction state from "WAITING FOR REPLY" to "PROCESSING REPLY"
DEBUG:pymodbus.logging:RECV: 0x1 0x6 0x0 0x79 0x7 0xd0 0x5b 0xbf
DEBUG:pymodbus.logging:Processing: 0x1 0x6 0x0 0x79 0x7 0xd0 0x5b 0xbf
DEBUG:pymodbus.logging:Getting Frame - 0x6 0x0 0x79 0x7 0xd0
DEBUG:pymodbus.logging:Factory Response[WriteSingleRegiste1rResponse': 6]
DEBUG:pymodbus.logging:Frame advanced, resetting header!!
DEBUG:pymodbus.logging:Adding transaction 1
DEBUG:pymodbus.logging:Getting transaction 1
DEBUG:pymodbus.logging:Changing transaction state from "PROCESSING REPLY" to "TRANSACTION_COMPLETE"
Registe1rs: []
오류 코드 func 04
DEBUG:pymodbus.logging:Current transaction state - IDLE
DEBUG:pymodbus.logging:Running transaction 1
DEBUG:pymodbus.logging:SEND: 0x1 0x4 0x0 0x79 0x0 0x1 0xe0 0x13
DEBUG:pymodbus.logging:Resetting frame - Current Frame in buffer -
DEBUG:pymodbus.logging:New Transaction state "SENDING"
DEBUG:pymodbus.logging:Changing transaction state from "SENDING" to "WAITING FOR REPLY"
DEBUG:pymodbus.logging:Changing transaction state from "WAITING FOR REPLY" to "PROCESSING REPLY"
DEBUG:pymodbus.logging:RECV: 0x1 0x4 0x0 0x79 0x0 0x1 0xe0
DEBUG:pymodbus.logging:Processing: 0x1 0x4 0x0 0x79 0x0 0x1 0xe0
DEBUG:pymodbus.logging:Frame check failed, ignoring!!
DEBUG:pymodbus.logging:Resetting frame - Current Frame in buffer - 0x1 0x4 0x0 0x79 0x0 0x1 0xe0
DEBUG:pymodbus.logging:Getting transaction 1
DEBUG:pymodbus.logging:Changing transaction state from "PROCESSING REPLY" to "TRANSACTION_COMPLETE"
Modbus Error: Modbus Error: [Input/Output] No Response received from the remote slave/Unable to decode response
하지만 오류가 안 떠도 모터 제어는 안 됩니다.
혹시 잘 아시는 분 있으면 도와주세요..
댓글 0