Hi,
I need an example of how to set up the communications to 3rd party Ethernet device.
I have a Mettler Toledo JagExtreme weigh scale that I need to query at regular intervals in order to determinge rate of weight change. I have used this same scale in the past with AB PLC RIO so I am familiar with it's requirements but as I am just getting my feet wet with Opto22 i'm not sure how to send the request and set up to receive the response. If anyone could send me an example of communications with a 3rd party ethernet device it would be much appreciated.
Regards
Roy Matson
Noram Engineering, Vancouver, British Columbia, rmatson@noram-eng.com
My main problem at the moment is establishing communications.
The scale IP add. is 192.168.100.011, I can ping it OK but if I set this address in the comms handle when I execute "Open Outgoing Communications" I get the error -412
My scale, the Snap Pac S1, I/O racks and PC all have the same subnet mask 255.255.255.000 and are plugged into a common switch
My comms handle reads as follows "tcp:192.168.100.011" Is there something missing there? I see in an example the comms handle has a port address after the IP, but I think thats for a serial port module.
Can someone shed some light?
Jim,
Now after reading pages of conflicting information on ports I'm even more confused. It used to be that ports were real objects on a card somewhere. I can't find any reference to ports in the scale manual so I assume you are refering to an Opto22 port. If I click on my I/O (connected to the same switch as the scale) they all say under Port "Ethernet 2001" so logicaly for the S1 to talk to the scale it would also use Ethernet 2001, but the comms handle doesn't like 2001 either, I still get -412 reported in the "Open Outgoing Communications" result. The configuration PC is able to find the scale when I ping it.
Thanks
Roy
I called Mettler Toledo and was given the port number for the JagExtreme 1749 (I couldn't find that anywhere in the manual), the Opto seems quite happy with that (status 0). The guy also explained the message string format so I now know what to expect.
Thanks for the explanation and the help.
Noram Engineering