E
Hey guys,
I am interfacing delta HMI with arduino mega (serial 3 for MODBUS) implementing using MODBUS master library (baud 19200, 8 bit even parity 1 stop bit, 1000ms timout, retry count 10, polling rate 10ms) and alas it is working fine (read holding registers and working fine). So now I tweaked the code to implement function 1 to read 16 points or coils. I am using MODBUS slave simulator on laptop (interfaced arduino using USB TO RS232) to observe the packets. Here's the problem observed.
1] master arduino sends the desired request (checked)
2] slave software processes the request and sends the correct reply (checked). You might be guessing then whats left.
3] master doesn't receive the reply :smiley-eek:
4] also the master request lasts for about 1 second only and during this period the slave responds too (observed by RX and TX led blinking on the USB TO RS232 cable). I have attached the log of this exchange below.
I'm like at the dead end, as function 3 is implemented on the same setting. what should I do now? any hints as such as to what might be at fault?
<b>Moderator's note:</b> You cannot attach files to messages on Control.com, so the log file does not appear.
I am interfacing delta HMI with arduino mega (serial 3 for MODBUS) implementing using MODBUS master library (baud 19200, 8 bit even parity 1 stop bit, 1000ms timout, retry count 10, polling rate 10ms) and alas it is working fine (read holding registers and working fine). So now I tweaked the code to implement function 1 to read 16 points or coils. I am using MODBUS slave simulator on laptop (interfaced arduino using USB TO RS232) to observe the packets. Here's the problem observed.
1] master arduino sends the desired request (checked)
2] slave software processes the request and sends the correct reply (checked). You might be guessing then whats left.
3] master doesn't receive the reply :smiley-eek:
4] also the master request lasts for about 1 second only and during this period the slave responds too (observed by RX and TX led blinking on the USB TO RS232 cable). I have attached the log of this exchange below.
I'm like at the dead end, as function 3 is implemented on the same setting. what should I do now? any hints as such as to what might be at fault?
<b>Moderator's note:</b> You cannot attach files to messages on Control.com, so the log file does not appear.