We want to communicate with a sensor Modbus ASCII with our CR6 but all of my values are 0,00...
What is the problem according you ?
Public ModBus(2), Result
Public ModBusniv(1), Result2
Alias ModBus(1)= Raven_1
Alias ModBus(2)= Raven_2
Alias ModBusniv(1)= Raven_niv
'Define com port parameters for Raven sensor communication
'Main battery voltage
'Sensor Water level and water temperature measurements, ModBus data
'Call Output Tables
The sensor is :
RS485 two wires
19200, 8 bits, 2 stop bits, no parity
Modbus ASCII, bit HI-LO
Float32 for holding register.
We have values at 1014 and 4000, code 03.
We have connected the modbus on C1 and C2
Do you see a problem in my code ?
I suggest using the sniffer mode of the CR6 terminal to watch ComC1. Look at the message you are sending out to the sensor to see if it matches what you expect. Also look to see if we are getting any reponse from the sensor.
If the datalogger outputs the command as you expect, it might be a cabling issue. Try swapping the A and B wires. Some manufacturers label them opposite.
I am connected to CR6 and in the termnial emulator, after a 'open terminal', nothing happen....
What is the problem ?