Author
Topic: Help in Ruby and GSD (Read 922 times)

I´m new in the forum. I´m also new in LinuxMCE, I installed the system two month ago. I read many posts but not found a answer to my question. I´m trying to build a home automation using a PLC with a ethernet interface. At this moment the house ligth are working fine with the PLC. I want to integrate the PLC to LinuxMCE. There are hexadecimal codes capable of create a connection between PLC and a PC. Now I´m trying to create that connection. I´m having trouble establishing that connection. Could anyone help me? Should the PLC be a server or client (I think a Server)? How do I open a connection and send/receive information?

- I use the FBS 24MA PLC from Fatek. - The protocol communication can be Fatek protocol or ModBus. (link:www.esea.cz/support/fatek/FBs_Manual/Manual_2/Appendix2.pdf) - A example of a command in Fatek protocol - in attached file. (The command is a hexadecimal code).

My PLC are in the IP 192.168.1.3 (like server). I used this script in Ruby to connect at the PLC: