
Visit our shop for nerds in control lifestyle products.
- PC reliability?
- Windows, real time
- PID loops
- PCs vs. PLCs
- Replacing people
- MS 'monopoly'?
- Software quality
- Where do we go from here?
- Why pay?
-- Woody Allen, "Play It Again, Sam"
www.control.com/rss
Which ADAM-6000 module are you using?
MSB LSB
%MW50 := 16#01 06 (Trans/recept) (Trans lngth)
%MW51 := 16#03 00 (Recpt offset) (Trans offset)
%MW52 := 16#01 02 (Slave #) (Request code)
%MW53 := 16#00 01 (Address of 1st bit to read)
%MW54 := 16#00 0C (Number of bits to read)
This is how things are set up on the Twido end for the Modbus control table to read the 12 inputs. It seems right to me. I have also tried a request code of 01.
The Advantech ADAM-6000 series manual in Appendix B, there is a Command Head and Command Body shown. Is there a correlation here between the setup from the Twido and the Command Head and Body in the Advantech?
As another poster said however, make sure the Unit ID is set to "1". The Unit ID is used to route messages to serial ports (for Ethernet to serial converters). Advantech uses this even if there isn't a serial port on the device you bought. The local Unit ID is "1". Anything higher is assumed to be intended to be routed to a serial port (where it is used as the serial slave address). This way you can have a number of RS-485 serial Modbus/RTU modules connected to an Ethernet module.
Sorry, but I can't help you with problems with the Twido itself. Make sure you can ping the module. Make sure you are using the correct Ethernet address. Make sure the address used for the slave is accessable to the address range used for the master. Etc.
Thanks for the replies. I have set the unit ID to 1. The two devices see each other. Someone else told me to use Wireshark and I set up a managed switch to do some port mirroring on the Twido. The Twido is at address 192.168.2.181. The Adam is at 192.168.2.160. Below is some of the data from Wireshark, abbreviated:
Source Dest Info
181 160 TCP ACKed lost segment 1035>502 Seq=0
160 181 502>1035 [ACK] Seq=1 Win=256 Len=0
160 181 TCP Dup ACK 36#1 502>1036 ACK Seq=1
181 160 1036>502 Seq=0 Len=0 MSS=1460
160 181 TCP Dup ACK 36#2 502>1036 ACK Seq=1
181 160 1036>502 Seq=0 Len=0 MSS=1460
160 181 TCP Dup ACK 36#3 502>1036 ACK Seq=1
181 160 1036>502 Seq=0 Len=0 MSS=1460
160 181 TCP Dup ACK 36#4 502>1036 ACK Seq=1
181 160 1036>502 Seq=0 Len=0 MSS=1460
This stuff is basically repeated throughout the Wireshark file. The Dup ACK number keeps changing (37, 38, 39, etc.). Does this tell you guys anything?
Mike, if I try to do a 'write and read-back', what do I write to the inputs? Do I write to the same addresses (00001 - 00012) and then immediately read from them? With the Twido, the EXCH3 command needs to be used to perform multiple reads and writes. Unfortunately, you can only do one function (either read or write) with EXCH3 at a time. Do you think that could be a problem?
Thanks again.
I'm glad to see you've opened a support case with Advantech - I'll make sure the tech support person assigned gets this background so we can get to the bottom of this issue.
There are free programs which you can get to do the testing with. I have a project at http://sourceforge.net/projects/mblogic/ which has several different packages. There are others as well, if you want to look for them.
- Wireless: Free software enhances remote keyless entry security
- Radioland: Wireless spread spectrum, frequency hopping, data radio devices
- NEMA publishes code for electrical metering; ZigBee for wireless smart metering
- Free webinar on Zigbee for embedded systems
- WirelessHART compliance verification receiver available
- PTO reports high growth, cross-industry collaboration
- Wireless helps Hexion with smoke detection, control room reporting
- Wireless networks for water and wastewater plant: easy, timely info access
- Chemical company processes critical data via wireless Ethernet
- Enclosures: Improve NEMA designs, enclose wireless equipment, keep cabinets cool
Users of this site are benefiting from open source technologies, including PHP, PostgreSQL and Apache. Be happy.
Patronize our advertisers!



