Conceptos básicos sobre las entradas y salidas del Panel PC de 7"
Monitorización con un Panel PC de 7" y Aplicaciones Node-RED
10 mayo, 2021 por
Conceptos básicos sobre las entradas y salidas del Panel PC de 7"
Boot & Work Corp. S.L., Fernandez Queralt Martinez


7" Panel PC

Introducción

Este Panel PC Industrial para monitorización industrial está basado en el sistema operativo GNU/Linux (Raspbian/Ubuntu) instalado en una tarjeta SD. Tiene muchas interfaces integradas como Ethernet, USB o WiFi.

Utilizando el puerto Ethernet o la red WiFi, puede controlar a distancia todos los parámetros, datos y entradas/salidas de su sistema de control. Además, el panel de control Touchberry PI incluye suficientes E/S para sustituir a los PLC en aplicaciones de automatización sencillas.

Los protocolos abiertos no sólo permiten la comunicación con otros PLC de Industrial Shields para automatización industrial, sino también con dispositivos y maquinaria de terceros.

Así pues, te enseñamos a configurar y programar las entradas y salidas para que lleves a cabo un control industrial óptimo.


 

Enlaces relacionados

Cómo conectar un Raspberry PLC industrial
al Wi-Fi

 

Conceptos básicos sobre salidas analógicas del PLC industrial Raspberry


Cómo encontrar tu PLC industrial ideal

Cómo programar en Python las entradas de interrupción del PLC industrial Raspberry

Familia de productos Raspberry PLC

Familia de productos TouchBerry Pi

Configuración


El Raspberry Pi Panel PC de 7" tiene 10 entradas y salidas tan configurables como quieras. Así, por ejemplo, podrías utilizar 3 como entradas y 7 como salidas, o 2 como salidas y 8 como entradas, y así sucesivamente.

En este caso, vas a configurar tu Panel Pc industrial con 5 como entradas y 5 como salidas.

En primer lugar, pon la pantalla táctil industrial boca abajo y desatornilla los 4 tornillos para abrir el panel pc industrial hmi. A continuación, configura cada jumper IO como quieras, IN o OUT. En el ejemplo de abajo, puedes ver una imagen del jumper configurado como salida:

Jumper

Jumper

 Después de establecer la configuración de los puentes de tu panel industrial, vamos a conectar las entradas a las salidas: 

Jumper configuration

Y también cablear un cable de la fuente de alimentación a GND. Y otro a Vdc. Finalmente, configura el último jumper ViN bajo la sección IOs, así:


Jumper


Panel PC industrial 

Una vez que su Panel PC industrial está configurado correctamente, vamos a probarlo con un panel de control Node-RED. Para ello, asegúrate de que tu Panel PC industrial está encendido, y escribe la dirección IP en tu navegador como:

http://10.10.10.20:1880


Ve al menú de la derecha, haz clic en Importar > Importar desde el portapapeles y pega el siguiente flujo:

[{"id":"c6da5f92.a9d98","type":"tab","label":"Flow 1","disabled":false,"info":""},{"id":"47003df5.32b364","type":"ui_led","z":"c6da5f92.a9d98","order":7,"group":"ad420e54.3ed26","width":3,"height":1,"label":"IO5","labelPlacement":"left","labelAlignment":"left","colorForValue":[{"color":"#ff0000","value":"0","valueType":"num"},{"color":"#008000","value":"1","valueType":"num"}],"allowColorForValueInMessage":false,"shape":"circle","showGlow":true,"name":"IO5","x":1090,"y":100,"wires":[]},{"id":"684ea764.119a18","type":"ui_led","z":"c6da5f92.a9d98","order":14,"group":"ad420e54.3ed26","width":3,"height":1,"label":"IO6","labelPlacement":"left","labelAlignment":"left","colorForValue":[{"color":"#ff0000","value":"0","valueType":"num"},{"color":"#008000","value":"1","valueType":"num"}],"allowColorForValueInMessage":false,"shape":"circle","showGlow":true,"name":"IO6","x":1090,"y":160,"wires":[]},{"id":"f6cb82a2.cac1b","type":"exec","z":"c6da5f92.a9d98","command":"sudo /home/pi/test/set-digital-output IO0 ","addpay":"payload","append":"","useSpawn":"false","timer":"","oldrc":false,"name":"set IO0","x":340,"y":100,"wires":[[],[],["22cd41f3.949aae"]]},{"id":"22cd41f3.949aae","type":"switch","z":"c6da5f92.a9d98","name":"","property":"payload.code","propertyType":"msg","rules":[{"t":"eq","v":"0","vt":"num"}],"checkall":"true","repair":false,"outputs":1,"x":510,"y":100,"wires":[["d91939ab.29c3a8"]]},{"id":"aa1bf8a6.a620b8","type":"switch","z":"c6da5f92.a9d98","name":"","property":"payload.code","propertyType":"msg","rules":[{"t":"eq","v":"0","vt":"num"}],"checkall":"true","repair":false,"outputs":1,"x":510,"y":160,"wires":[["28d4da9f.53e8c6"]]},{"id":"c4cb9f6d.15f9b","type":"switch","z":"c6da5f92.a9d98","name":"","property":"payload.code","propertyType":"msg","rules":[{"t":"eq","v":"0","vt":"num"}],"checkall":"true","repair":false,"outputs":1,"x":510,"y":220,"wires":[["d7c3064c.457818"]]},{"id":"bb8cf91f.c37148","type":"switch","z":"c6da5f92.a9d98","name":"","property":"payload.code","propertyType":"msg","rules":[{"t":"eq","v":"0","vt":"num"}],"checkall":"true","repair":false,"outputs":1,"x":510,"y":280,"wires":[["4c7dbf8.9c2954"]]},{"id":"a0a64eb.906fbb","type":"switch","z":"c6da5f92.a9d98","name":"","property":"payload.code","propertyType":"msg","rules":[{"t":"eq","v":"0","vt":"num"}],"checkall":"true","repair":false,"outputs":1,"x":510,"y":340,"wires":[["edec647d.e3b418"]]},{"id":"d91939ab.29c3a8","type":"exec","z":"c6da5f92.a9d98","command":"sudo /home/pi/test/get-digital-input IO5","addpay":"","append":"","useSpawn":"false","timer":"","oldrc":false,"name":"get IO5","x":680,"y":100,"wires":[["4adbb342.386e5c"],[],[]]},{"id":"28d4da9f.53e8c6","type":"exec","z":"c6da5f92.a9d98","command":"sudo /home/pi/test/get-digital-input IO6","addpay":"","append":"","useSpawn":"false","timer":"","oldrc":false,"name":"get IO6","x":680,"y":160,"wires":[["7d35ee52.84c2"],[],[]]},{"id":"d7c3064c.457818","type":"exec","z":"c6da5f92.a9d98","command":"sudo /home/pi/test/get-digital-input IO7","addpay":"","append":"","useSpawn":"false","timer":"","oldrc":false,"name":"get IO7","x":680,"y":220,"wires":[["85caae91.e2546"],[],[]]},{"id":"4c7dbf8.9c2954","type":"exec","z":"c6da5f92.a9d98","command":"sudo /home/pi/test/get-digital-input IO8","addpay":"","append":"","useSpawn":"false","timer":"","oldrc":false,"name":"get IO8","x":680,"y":280,"wires":[["d43cfa59.b35088"],[],[]]},{"id":"edec647d.e3b418","type":"exec","z":"c6da5f92.a9d98","command":"sudo /home/pi/test/get-digital-input IO9","addpay":"","append":"","useSpawn":"false","timer":"","oldrc":false,"name":"get IO9","x":680,"y":340,"wires":[["886eabb3.a940b8"],[],[]]},{"id":"e0732fae.ecfd2","type":"ui_led","z":"c6da5f92.a9d98","order":21,"group":"ad420e54.3ed26","width":3,"height":1,"label":"IO7","labelPlacement":"left","labelAlignment":"left","colorForValue":[{"color":"#ff0000","value":"0","valueType":"num"},{"color":"#008000","value":"1","valueType":"num"}],"allowColorForValueInMessage":false,"shape":"circle","showGlow":true,"name":"IO7","x":1090,"y":220,"wires":[]},{"id":"afbc7cd3.b8d4","type":"ui_led","z":"c6da5f92.a9d98","order":28,"group":"ad420e54.3ed26","width":3,"height":1,"label":"IO8","labelPlacement":"left","labelAlignment":"left","colorForValue":[{"color":"#ff0000","value":"0","valueType":"num"},{"color":"#008000","value":"1","valueType":"num"}],"allowColorForValueInMessage":false,"shape":"circle","showGlow":true,"name":"IO8","x":1090,"y":280,"wires":[]},{"id":"c301b338.9336e","type":"ui_led","z":"c6da5f92.a9d98","order":35,"group":"ad420e54.3ed26","width":3,"height":1,"label":"IO9","labelPlacement":"left","labelAlignment":"left","colorForValue":[{"color":"#ff0000","value":"0","valueType":"num"},{"color":"#008000","value":"1","valueType":"num"}],"allowColorForValueInMessage":false,"shape":"circle","showGlow":true,"name":"IO9","x":1090,"y":340,"wires":[]},{"id":"2df6f86a.a229c8","type":"ui_led","z":"c6da5f92.a9d98","order":5,"group":"ad420e54.3ed26","width":3,"height":1,"label":"IO0","labelPlacement":"left","labelAlignment":"left","colorForValue":[{"color":"#ff0000","value":"0","valueType":"num"},{"color":"#008000","value":"1","valueType":"num"}],"allowColorForValueInMessage":false,"shape":"circle","showGlow":true,"name":"IO0","x":330,"y":400,"wires":[]},{"id":"719b7938.aeee88","type":"ui_led","z":"c6da5f92.a9d98","order":12,"group":"ad420e54.3ed26","width":3,"height":1,"label":"IO1","labelPlacement":"left","labelAlignment":"left","colorForValue":[{"color":"#ff0000","value":"0","valueType":"num"},{"color":"#008000","value":"1","valueType":"num"}],"allowColorForValueInMessage":false,"shape":"circle","showGlow":true,"name":"IO1","x":330,"y":460,"wires":[]},{"id":"fd124b0e.5920d8","type":"ui_led","z":"c6da5f92.a9d98","order":19,"group":"ad420e54.3ed26","width":3,"height":1,"label":"IO2","labelPlacement":"left","labelAlignment":"left","colorForValue":[{"color":"#ff0000","value":"0","valueType":"num"},{"color":"#008000","value":"1","valueType":"num"}],"allowColorForValueInMessage":false,"shape":"circle","showGlow":true,"name":"IO2","x":330,"y":520,"wires":[]},{"id":"28ac3bbd.0f8e94","type":"ui_led","z":"c6da5f92.a9d98","order":26,"group":"ad420e54.3ed26","width":3,"height":1,"label":"IO3","labelPlacement":"left","labelAlignment":"left","colorForValue":[{"color":"#ff0000","value":"0","valueType":"num"},{"color":"#008000","value":"1","valueType":"num"}],"allowColorForValueInMessage":false,"shape":"circle","showGlow":true,"name":"IO3","x":330,"y":580,"wires":[]},{"id":"ca584040.025c7","type":"ui_led","z":"c6da5f92.a9d98","order":33,"group":"ad420e54.3ed26","width":3,"height":1,"label":"IO4","labelPlacement":"left","labelAlignment":"left","colorForValue":[{"color":"#ff0000","value":"0","valueType":"num"},{"color":"#008000","value":"1","valueType":"num"}],"allowColorForValueInMessage":false,"shape":"circle","showGlow":true,"name":"IO4","x":330,"y":640,"wires":[]},{"id":"b9044fae.ed372","type":"ui_switch","z":"c6da5f92.a9d98","name":"IO0","label":"IO0","tooltip":"","group":"ad420e54.3ed26","order":3,"width":3,"height":1,"passthru":true,"decouple":"false","topic":"topic","topicType":"msg","style":"","onvalue":"1","onvalueType":"num","onicon":"","oncolor":"","offvalue":"0","offvalueType":"num","officon":"","offcolor":"","animate":false,"x":110,"y":240,"wires":[["f6cb82a2.cac1b","2df6f86a.a229c8"]]},{"id":"c2972582.a29e08","type":"ui_switch","z":"c6da5f92.a9d98","name":"IO1","label":"IO1","tooltip":"","group":"ad420e54.3ed26","order":10,"width":3,"height":1,"passthru":true,"decouple":"false","topic":"topic","topicType":"msg","style":"","onvalue":"1","onvalueType":"num","onicon":"","oncolor":"","offvalue":"0","offvalueType":"num","officon":"","offcolor":"","animate":false,"x":110,"y":300,"wires":[["ede21c6e.aebc6","719b7938.aeee88"]]},{"id":"52662c7b.55edb4","type":"ui_switch","z":"c6da5f92.a9d98","name":"IO2","label":"IO2","tooltip":"","group":"ad420e54.3ed26","order":17,"width":3,"height":1,"passthru":true,"decouple":"false","topic":"topic","topicType":"msg","style":"","onvalue":"1","onvalueType":"num","onicon":"","oncolor":"","offvalue":"0","offvalueType":"num","officon":"","offcolor":"","animate":false,"x":110,"y":360,"wires":[["f8224282.7c108","fd124b0e.5920d8"]]},{"id":"b6c1924c.aae62","type":"ui_switch","z":"c6da5f92.a9d98","name":"IO3","label":"IO3","tooltip":"","group":"ad420e54.3ed26","order":24,"width":3,"height":1,"passthru":true,"decouple":"false","topic":"topic","topicType":"msg","style":"","onvalue":"1","onvalueType":"num","onicon":"","oncolor":"","offvalue":"0","offvalueType":"num","officon":"","offcolor":"","animate":false,"x":110,"y":420,"wires":[["6e3a06f8.866b78","28ac3bbd.0f8e94"]]},{"id":"e18c160a.762868","type":"ui_switch","z":"c6da5f92.a9d98","name":"IO4","label":"IO4","tooltip":"","group":"ad420e54.3ed26","order":31,"width":3,"height":1,"passthru":true,"decouple":"false","topic":"topic","topicType":"msg","style":"","onvalue":"1","onvalueType":"num","onicon":"","oncolor":"","offvalue":"0","offvalueType":"num","officon":"","offcolor":"","animate":false,"x":110,"y":480,"wires":[["a7a83a26.114d48","ca584040.025c7"]]},{"id":"ede21c6e.aebc6","type":"exec","z":"c6da5f92.a9d98","command":"sudo /home/pi/test/set-digital-output IO1 ","addpay":"payload","append":"","useSpawn":"false","timer":"","oldrc":false,"name":"set IO1","x":340,"y":160,"wires":[[],[],["aa1bf8a6.a620b8"]]},{"id":"f8224282.7c108","type":"exec","z":"c6da5f92.a9d98","command":"sudo /home/pi/test/set-digital-output IO2 ","addpay":"payload","append":"","useSpawn":"false","timer":"","oldrc":false,"name":"set IO2","x":340,"y":220,"wires":[[],[],["c4cb9f6d.15f9b"]]},{"id":"6e3a06f8.866b78","type":"exec","z":"c6da5f92.a9d98","command":"sudo /home/pi/test/set-digital-output IO3 ","addpay":"payload","append":"","useSpawn":"false","timer":"","oldrc":false,"name":"set IO3 ","x":340,"y":280,"wires":[[],[],["bb8cf91f.c37148"]]},{"id":"a7a83a26.114d48","type":"exec","z":"c6da5f92.a9d98","command":"sudo /home/pi/test/set-digital-output IO4 ","addpay":"payload","append":"","useSpawn":"false","timer":"","oldrc":false,"name":"set IO4","x":340,"y":340,"wires":[[],[],["a0a64eb.906fbb"]]},{"id":"7d35ee52.84c2","type":"change","z":"c6da5f92.a9d98","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"$number($split(payload,'\\n')[0])\t","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":900,"y":160,"wires":[["684ea764.119a18"]]},{"id":"85caae91.e2546","type":"change","z":"c6da5f92.a9d98","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"$number($split(payload,'\\n')[0])\t","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":900,"y":220,"wires":[["e0732fae.ecfd2"]]},{"id":"d43cfa59.b35088","type":"change","z":"c6da5f92.a9d98","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"$number($split(payload,'\\n')[0])\t","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":900,"y":280,"wires":[["afbc7cd3.b8d4"]]},{"id":"886eabb3.a940b8","type":"change","z":"c6da5f92.a9d98","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"$number($split(payload,'\\n')[0])\t","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":900,"y":340,"wires":[["c301b338.9336e"]]},{"id":"4adbb342.386e5c","type":"change","z":"c6da5f92.a9d98","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"$number($split(payload,'\\n')[0])\t","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":900,"y":100,"wires":[["47003df5.32b364"]]},{"id":"ad420e54.3ed26","type":"ui_group","name":"","tab":"3801e0c4.2d4a6","order":1,"disp":false,"width":"19","collapse":false},{"id":"3801e0c4.2d4a6","type":"ui_tab","name":"Home","icon":"dashboard","disabled":false,"hidden":false}]

  En caso de que quieras saber cómo desarrollar la aplicación Node-RED, ve a la siguiente entrada del blog y aprende cómo hacerlo. Leer >>

Por último, ve al panel de control de la interfaz de usuario y prueba las entradas y salidas de tu panel industrial. 

http://10.10.10.20:1880/ui


Probar las entradas y salidas







Conceptos básicos sobre las entradas y salidas del Panel PC de 7"
Boot & Work Corp. S.L., Fernandez Queralt Martinez
10 mayo, 2021
Compartir
Archivar

¿En busca de tu PLC ideal?

Echa un vistazo a esta comparativa de producto de varios controladores industriales basados en Arduino.

Comparamos entradas, salidas, comunicaciones y otras especificaciones con las de los equipos de otras marcas destacadas.


Comparativa PLC industrial >>

¿Quieres más información?

¡Rellena el formulario!

Tell me more!