Basics about Inputs and Outputs of 7" Panel PC

7" Panel PC monitoring and Node-RED Applications
May 10, 2021 by
Basics about Inputs and Outputs of 7" Panel PC
Boot & Work Corp. S.L., Fernandez Queralt Martinez

INTRODUCTION

This Industrial Panel PC for industrial monitoring is based on GNU/Linux (Raspbian/Ubuntu) OS installed on an SD card. It has many built-in interfaces like Ethernet, USB or WiFi

Using the Ethernet port or WiFi network, you can remotely control all parameters, data and inputs/outputs of your control system. Furthermore, Touchberry PI panel pc control comprises enough I/Os to replace PLCs in simple automation applications.

Open protocols not only allow communication with other Industrial Shields' PLCs for industrial automation, but also with third-party devices and machinery.

So, let's learn how to configure and program your inputs and outputs for optimal industrial control!

Your Dynamic Snippet will be displayed here... This message is displayed because you did not provided both a filter and a template to use.

CONFIGURATION

The 7" Raspberry Pi Panel PC has 10 inputs and outputs as configurable as you want. So, for example, you could use 3 as inputs and 7 as outputs, or 2 as outputs and 8 as inputs, and so on.

In this case, you are going to configure your industrial Panel Pc with 5 as inputs and 5 as outputs.

First of all, turn the industrial touch screen upside down and unscrew the 4 screws to open the HMI industrial panel pc. Then, configure each IO jumper as you want, IN or OUT. In the example below, you can see a jumper picture configured as output:

Jumper

Jumper

 After setting the jumper configuration of your industrial panel pc, let's connect the inputs to the outputs: 

Jumper configuration

And also wire up a cable from the power supply to GND. And another one to Vdc. Finally, configure the last ViN jumper under the IOs section, like this:

Jumper

INDUSTRIAL PANEL PC

Once your industrial panel PC is configured correctly, let's test it with a Node-RED dashboard. So, just make sure that your industrial Panel PC in powered on, and just type the IP address in your browser like:

http://10.10.10.20:1880


Go to the menu on the right, click on Import > Import from clipboard, and paste the following flow:

[{"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}]

 In case you would like to know how to develop the Node-RED application, go the following blog post and learn how to do it. Read >>

Finally, go to the UI Dashboard and test the inputs and outputs from your industrial panel pc! 

http://10.10.10.20:1880/ui


Test the inputs and outputs





​Search in our Blog

Basics about Inputs and Outputs of 7" Panel PC
Boot & Work Corp. S.L., Fernandez Queralt Martinez May 10, 2021
Share this post

Looking for your ideal Programmable Logic Controller?

Take a look at this product comparison with other industrial controllers Arduino-based. 

We are comparing inputs, outputs, communications and other features with the ones of the relevant brands.


Industrial PLC comparison >>>