1
\$\begingroup\$

I know this is strictly not an electrical engineering problem, but I think it's where it has a best chance of being answered.

I'm using a MOXA IOLogik (it's a Ethernet Micro RTU Controller) to monitor and control some security systems with digital IO and I want to modify a IOLokig internal register via TCP to send some commands to the controller from a server.

Anyone knows how to do this? how should the structure of the TCP message be?

UPDATE: It uses the modbus protocol for communication.

Thanks a lot

\$\endgroup\$
2

1 Answer 1

1
\$\begingroup\$

I put up a basic implementation of a ModbusTCP interface at http://pastebin.com/5twF0gUb This is a C# class that you should mostly be able to plug into an application. I stripped it out of some other code and tried to massage it into a generic format but you may need to tweak it a bit. I glanced at the manual for that controller and it has all the addresses listed that you should need.

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.