[Project] Updating documentation to strolch plc

This commit is contained in:
Robert von Burg 2020-04-01 11:34:12 +02:00
parent 86e4911ccf
commit 225ee28bae
1 changed files with 11 additions and 4 deletions

View File

@ -449,11 +449,11 @@ Conveyor 1,Output,GPIO,,18,Conveyor,MotorOn,MotorOff,raspiBcmGpioOutput</pre>
<ul> <ul>
<li>For Input and Output types &rarr; <li>For Input and Output types &rarr;
<ul> <ul>
<li>PCF8574 &rarr; For PCF8574 the Device and Pin values must be defined and will be <li>DevPin, DevPin0 &rarr; Generates the address as <code>&lt;Connection&gt;.&lt;Device&gt;.&lt;Pin&gt;</code>.
appended to the Connection. Define the device and pin values starting with 1, DevPin0 decrements the Device and Pin values by one.
the values will be decremented, to fit the hardware index </li>
<li>Pin &rarr; Generates the address as <code>&lt;Connection&gt;.&lt;Pin&gt;</code>.
</li> </li>
<li>GPIO &rarr; For GPIO the Pin will be appended to the Connection</li>
</ul> </ul>
</li> </li>
<li>For Virtual types &rarr; <li>For Virtual types &rarr;
@ -519,6 +519,13 @@ Conveyor 1,Output,GPIO,,18,Conveyor,MotorOn,MotorOff,raspiBcmGpioOutput</pre>
defined in each project depending on the hardware.</p> defined in each project depending on the hardware.</p>
</li> </li>
<li>
<p>Copy the file <a href="https://github.com/4treesCH/strolch-plc/blob/develop/example/plc-state.xml">plc-state.xml</a>
to your runtime and reference it by use of a <code>&lt;IncludeFile file="plc-state.xml" /&gt;</code>
element. Modify the PlcId to be the same as the one you defined in the
<code>StrolchConfiguration.xml</code>. </p>
</li>
<li>Now that we have a model, the PlcConnections are to be defined. In the previous example we used a <li>Now that we have a model, the PlcConnections are to be defined. In the previous example we used a
Raspberry Pi's GPIOs. This needs to be defined as a PlcConnection: Raspberry Pi's GPIOs. This needs to be defined as a PlcConnection:
<pre> <pre>