<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.somlabs.com/index.php?action=history&amp;feed=atom&amp;title=OpenPLC-on-SL-AIoT-BOX-SpaceSOM-8Mplus</id>
	<title>OpenPLC-on-SL-AIoT-BOX-SpaceSOM-8Mplus - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.somlabs.com/index.php?action=history&amp;feed=atom&amp;title=OpenPLC-on-SL-AIoT-BOX-SpaceSOM-8Mplus"/>
	<link rel="alternate" type="text/html" href="https://wiki.somlabs.com/index.php?title=OpenPLC-on-SL-AIoT-BOX-SpaceSOM-8Mplus&amp;action=history"/>
	<updated>2026-04-28T13:58:11Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.42.3</generator>
	<entry>
		<id>https://wiki.somlabs.com/index.php?title=OpenPLC-on-SL-AIoT-BOX-SpaceSOM-8Mplus&amp;diff=4672&amp;oldid=prev</id>
		<title>KrzysztofChojnowski: Created page with &quot;{{PageHeader|OpenPLC on SL-AIoT-BOX with SpaceSOM-8Mplus}}  __toc__  == OpenPLC runtime ==  The default Debian Flexbuild system image for SL-AIoT-BOX with SpaceSOM-8Mplus has OpenPLC runtime installed and enabled (https://autonomylogic.com/docs/openplc-overview/). After running the system, the OpenPLC webserver can be accessed using the network name or IP address with 8080 port: * http://somlabs-aiot-box-8mplus:8080 * &lt;IP address&gt;:8080  The IP address can be checked afte...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.somlabs.com/index.php?title=OpenPLC-on-SL-AIoT-BOX-SpaceSOM-8Mplus&amp;diff=4672&amp;oldid=prev"/>
		<updated>2026-02-27T11:09:58Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{PageHeader|OpenPLC on SL-AIoT-BOX with SpaceSOM-8Mplus}}  __toc__  == OpenPLC runtime ==  The default Debian Flexbuild system image for SL-AIoT-BOX with SpaceSOM-8Mplus has OpenPLC runtime installed and enabled (https://autonomylogic.com/docs/openplc-overview/). After running the system, the OpenPLC webserver can be accessed using the network name or IP address with 8080 port: * http://somlabs-aiot-box-8mplus:8080 * &amp;lt;IP address&amp;gt;:8080  The IP address can be checked afte...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{PageHeader|OpenPLC on SL-AIoT-BOX with SpaceSOM-8Mplus}}  __toc__&lt;br /&gt;
&lt;br /&gt;
== OpenPLC runtime ==&lt;br /&gt;
&lt;br /&gt;
The default Debian Flexbuild system image for SL-AIoT-BOX with SpaceSOM-8Mplus has OpenPLC runtime installed and enabled (https://autonomylogic.com/docs/openplc-overview/). After running the system, the OpenPLC webserver can be accessed using the network name or IP address with 8080 port:&lt;br /&gt;
* http://somlabs-aiot-box-8mplus:8080&lt;br /&gt;
* &amp;lt;IP address&amp;gt;:8080&lt;br /&gt;
&lt;br /&gt;
The IP address can be checked after logging to the serial console as root (no password) and calling &amp;#039;&amp;#039;ip a&amp;#039;&amp;#039; command.&lt;br /&gt;
&lt;br /&gt;
The default webserver login credentials are:&lt;br /&gt;
* username: openplc&lt;br /&gt;
* password: openplc&lt;br /&gt;
&lt;br /&gt;
[[Image:openplc_6ull_1.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
== Setting hardware ==&lt;br /&gt;
&lt;br /&gt;
OpenPLC requires correct hardware driver to support hardware inputs and outputs. The driver for the SL-AIoT-BOX is called &amp;#039;&amp;#039;SoMLabs IoT Box&amp;#039;&amp;#039; and should be selected in &amp;#039;&amp;#039;Hardware&amp;#039;&amp;#039; window. After clicking &amp;#039;&amp;#039;Save changes&amp;#039;&amp;#039; the driver will be compiled.&lt;br /&gt;
&lt;br /&gt;
[[Image:openplc_6ull_2.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
[[Image:openplc_6ull_3.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
SL-IoT-BOX has six binary outputs and four binary inputs configured for OpenPLC programs. They are mapped as follows:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; &lt;br /&gt;
|- style=&amp;quot;background-color:#c0c0c0;&amp;quot;&lt;br /&gt;
! OpenPLC address&lt;br /&gt;
! GPIO&lt;br /&gt;
! Connector&lt;br /&gt;
! Function&lt;br /&gt;
|-&lt;br /&gt;
| %IX0.0&lt;br /&gt;
| GPIO1_IO4&lt;br /&gt;
| J7A_2&lt;br /&gt;
| Digital input&lt;br /&gt;
|-&lt;br /&gt;
| %IX0.1&lt;br /&gt;
| GPIO1_IO05&lt;br /&gt;
| J7A_3&lt;br /&gt;
| Digital input&lt;br /&gt;
|-&lt;br /&gt;
| %IX0.2&lt;br /&gt;
| GPIO1_IO6&lt;br /&gt;
| J7A_4&lt;br /&gt;
| Digital input&lt;br /&gt;
|-&lt;br /&gt;
| %IX0.3&lt;br /&gt;
| GPIO1_IO7&lt;br /&gt;
| J7A_5&lt;br /&gt;
| Digital input&lt;br /&gt;
|-&lt;br /&gt;
| %QX0.0&lt;br /&gt;
| GPIO1_IO08&lt;br /&gt;
| J7B_2&lt;br /&gt;
| Digital output&lt;br /&gt;
|-&lt;br /&gt;
| %QX0.1&lt;br /&gt;
| GPIO1_IO09&lt;br /&gt;
| J7B_3&lt;br /&gt;
| Digital output&lt;br /&gt;
|-&lt;br /&gt;
| %QX0.2&lt;br /&gt;
| GPIO1_IO10&lt;br /&gt;
| J7B_4&lt;br /&gt;
| Digital output&lt;br /&gt;
|-&lt;br /&gt;
| %QX0.3&lt;br /&gt;
| GPIO1_IO11&lt;br /&gt;
| J7B_5&lt;br /&gt;
| Digital output&lt;br /&gt;
|-&lt;br /&gt;
| %QX0.4&lt;br /&gt;
| GPIO1_IO00&lt;br /&gt;
| J7D_7-9&lt;br /&gt;
| Relay output&lt;br /&gt;
|-&lt;br /&gt;
| %QX0.5&lt;br /&gt;
| GPIO1_IO01&lt;br /&gt;
| J7D_10-12&lt;br /&gt;
| Relay output&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Demo application ==&lt;br /&gt;
&lt;br /&gt;
OpenPLC runtime executes programs built using OpenPLC IDE (https://autonomylogic.com/). The example project and pre-compiled program can be downloaded here: [[Media:Openplc_6ull_demo.zip|Openplc_demo.zip]]&lt;br /&gt;
&lt;br /&gt;
This example uses all four binary inputs to control binary outputs and two relays as shown on the project scheme.&lt;br /&gt;
&lt;br /&gt;
[[Image:openplc_6ull_4.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
It can be uploaded to SL-AIoT-BOX OpenPLC runtime in the &amp;#039;&amp;#039;Programs&amp;#039;&amp;#039; window:&lt;br /&gt;
&lt;br /&gt;
[[Image:openplc_6ull_5.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
[[Image:openplc_6ull_6.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
After compilation the project can be run using the &amp;#039;&amp;#039;Start PLC&amp;#039;&amp;#039; button in &amp;#039;&amp;#039;Dashboard&amp;#039;&amp;#039; window&lt;br /&gt;
&lt;br /&gt;
[[Image:openplc_6ull_7.png|center|800px]]&lt;br /&gt;
&lt;br /&gt;
The program autostart after system boot can be enabled in the &amp;#039;&amp;#039;Settings&amp;#039;&amp;#039; window&lt;br /&gt;
&lt;br /&gt;
[[Image:openplc_6ull_8.png|center|800px]]&lt;/div&gt;</summary>
		<author><name>KrzysztofChojnowski</name></author>
	</entry>
</feed>