Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Modbus CRC mistake
#11
Here,


Attached Files Image(s)
       
Reply
#12
for example, if you want turn ON output1,output3, others all off
send:01 0F 00 00 00 10 00 05 BF 01
receive:01 0F 02 00 00 BB 14
   
note about the "send" command: 
01: address
0F: functon code
00 00: address 00 fixed
00 10: because KC868-A16 have 16 channel output, so it's 0x10
00 05: means OUTPUT1, OUTPUT3: ON, others: OFF
BF 01: CRC
   
Reply
#13
Ok, it works for you.
but for me it is not the modbus standard, the "ByCout" byte is missing

I have been using my software for over 20 years and it works with all PLCs.
Here is an example with a Twido PLC


SLave :1 
Cf : F
Adress : 0 0 
Nb : 8
BYTE Count : 1
CRC : BE D5


Attached Files Image(s)
           
Reply
#14
can you let your software output command remove "BYTE Count"? it MUST need included.
Reply
#15
Hello

By going outside the Modbus standard, without the Bycout, it works.

So I can't use this product with (CF15) on products that respect the standard like Schneider PLCs.
Reply
#16
If you make bulk purchases, you can design a new firmware about it based on KC868-A16v3 new PCB.
   
Reply
#17
I don't understand well. With the new card I can modify the firmware of the card (your firmware) to adapt the protocol?

Or you can modify it for me?
Reply
#18
my means, if you order new board at a large number in future, we can modify the firmware.
Reply
#19
Ok Thanks
Reply


Forum Jump:


Users browsing this thread:
1 Guest(s)