I want to communicate with my energy analyzer using MODBUS RS485. I have JBUS/MODBUS COM module and USB-RS485 converter on it.
Communication FRame is below.
Slave adres : 0x05
Code(Read) : 3
Starting Address : C550
Data : 4 word
My example code is 0503 C950 0001 03BA
But I got this when read data from it.
First I tried to use modbus library examples. I got this error code. Then I tried to use the other functions.
And about the Modbus CRC-16, on this site (http://www.lammertbies.nl/comm/info/crc-calculation.html) I calculated modbus 16 code is "0xDD47" using "0503C6500002".
But when I calculate this code "0503C6500002" on MB CRC-16 I get "
I'm very new on this system, trying to understand. What am I doing wrong?
First read this thread
The data you use is changing. Now you use: 0503C6500002 The CRC is: F916
What is 'GI' My hexadecimal goes up to F. Maybe you have another number system ?!?
In the thread above you can also see how to use the loopback command. Use this to figure out if your connection is OK.
How did you connect your RS-485 device. Many errors are made with RS-485 connections.
Ok I'll read this thread but about CRC-16, before I said, I calculated it in this site (http://www.lammertbies.nl/comm/info/crc-calculation.html) and got this
but you said it is "F916". :/
I'ım usign JBUS/MODBUS module and for connect to my PC I'm using UBS-RS485 converter.
Tell me how you connect your device. Which pin to which pin, do you use terminators, did you connect ground, 2 or 4 wire RS-485
There are many ways to calculate CRC all right for their purpose. I use the NI ModBus lib but mostly I use my own VI to communicate with ModBus devices. So if both CRC methods work fine for ModBus I think than that is the correct way.
Also try the loopback command from that thread.
I'm using JBUS/MODBUS module on my IED. and after module I'm using USB/RS485 converter.
What is a IED ?
If it is like Wiki says ' improvised explosive device' I am out....
Do you have a manual of your device ?
How did you connect your RS-485 cable ?
intellegent electronic device like drives, relays etc..
On JBUS module it has 3 part : A-, B+, GND
And on my USB/RS485 converter its turkish but you could understand that there is nothing different. 3 part A, B, GND