Quisiera saber si hay alguna forma de leer unos datos provinientes de un PLC compaclogix con un arduino, basicamente lo que quiero es mostrar esos datos del PLC en un display LCD ya que las pantallas industriales son demasiado costosas y los valores que voy a mostrar solo son temperatura y voltaje y se me ocurrio que podia mandar los datos a un arduino y que el mismo los mandara a un LCD.
Cualquier PLC puede leerse usando MODBUS TCP/IP
Ahora no tengo presente donde encontrar la librería.
Entonces tengo que buscar la forma de pasar de ethernet a MODBUS TCP/IP? es que el PLC solo tiene entrada de ethernet y no tengo muchos conocimientos sobre protocolos de comunicación.
Mira, recordaba haber visto una librería.
Como todo, búscala de esta manera en google : Arduino Modbus TCP/IP
Esto hallé Simple Modbus, no la probé y puede ser vieja o sea, puede que no funcione bien con IDE nuevo. Si es asi, y si no sabes como corregirla, te recomiendo bajar un IDE de ese período de tiempo.
También intenta leer posteos como éste para sacar conclusiones sobre como se comporta.
surbyte:
Mira, recordaba haber visto una librería.
Como todo, búscala de esta manera en google : Arduino Modbus TCP/IP
Esto hallé Simple Modbus, no la probé y puede ser vieja o sea, puede que no funcione bien con IDE nuevo. Si es asi, y si no sabes como corregirla, te recomiendo bajar un IDE de ese período de tiempo.
También intenta leer posteos como éste para sacar conclusiones sobre como se comporta.
lamentablemente no le entendí a tu respuesta por mis deficientes conocimientos sobre el tema, investigaré un poco más si pudieran ayudarme con algo más se los agradecería.
Please forgive me for posting in English, but i thought i might be able to help. I recently configured an arduino Ethernet to read and write to a Schneider electric Quantum and a M340 PLC using Modbus TCP/IP.
I used a library by André Sarmento, found here.
Because the arduino is not capable of being the modbus (TCP/IP) master, you must configure your PLC to read/write to the arduino as a modbus slave. For the PLC's i use this is done through Modbus IO Scanning.
The PLC will send read and write request on a configured interval to the modbus slave, your arduino in this case. The arduino will then respond to the PLC's request accordingly. If you use André's library, keep in mind that it is zero based, and your PLC may or may not be. In my case i had to shift my modbus addresses by 1. Also i had to un-comment "#define TCP_KEEP_ALIVE" in libraries\ModbusIP\ModbusIP.h
Here is a good place to do some reading on the modbus function codes
I hope this helps!
-Jared
josborn:
Please forgive me for posting in English, but i thought i might be able to help. I recently configured an arduino Ethernet to read and write to a Schneider electric Quantum and a M340 PLC using Modbus TCP/IP.I used a library by André Sarmento, found here.
Because the arduino is not capable of being the modbus (TCP/IP) master, you must configure your PLC to read/write to the arduino as a modbus slave. For the PLC's i use this is done through Modbus IO Scanning.
The PLC will send read and write request on a configured interval to the modbus slave, your arduino in this case. The arduino will then respond to the PLC's request accordingly. If you use André's library, keep in mind that it is zero based, and your PLC may or may not be. In my case i had to shift my modbus addresses by 1. Also i had to un-comment "#define TCP_KEEP_ALIVE" in libraries\ModbusIP\ModbusIP.h
Here is a good place to do some reading on the modbus function codes
I hope this helps!
-Jared
ya lo intente pero no he podido hacer la comunicacion hacia el PLC con RSLINX, solo me aparecen pocas opciones. El PLC sólo tiene conexión Ethernet/IP
Cuidado con allen bradley. En algunos modelos, los puertos integrados a la CPU no soportan modbus.
Saludos
PeterKantTropus:
Cuidado con allen bradley. En algunos modelos, los puertos integrados a la CPU no soportan modbus.
Saludos
Muchas gracias, y no habra otra forma de comunicar el PLC sin utilizar modbus? lo unico que necesito es leer un Tag con el arduino, voy a medir temperatura y ese valor quiero verlo en un LCD y pensé que sería posible hacerlo con el arduino
Exactamente que modelo de plc estas usando?
Compactlogix 1969-l16er bb1b, ese es el PLC que utilizo
Mira estas referencias en google, tal vez alguna sirva: Compactlogix Arduino
estimado:
Alguien me podria ayudar con la comunicacion ethernet entre un PLC micrologix 1100 y arduino atmega 328 (arduino uno).
Desde ya muy agradecido
Saludos
les dejo mi correo: josegodoy91@gmail.com
cualquier informacion se agradece
Está todo debatido en este hilo, o usas TCP/IP o usas RTU/ASCII.
Las librerías estan expuestas a lo largo del hilo.