[Project] Updating documentation to strolch plc
This commit is contained in:
parent
86e4911ccf
commit
225ee28bae
|
@ -449,11 +449,11 @@ Conveyor 1,Output,GPIO,,18,Conveyor,MotorOn,MotorOff,raspiBcmGpioOutput</pre>
|
||||||
<ul>
|
<ul>
|
||||||
<li>For Input and Output types →
|
<li>For Input and Output types →
|
||||||
<ul>
|
<ul>
|
||||||
<li>PCF8574 → For PCF8574 the Device and Pin values must be defined and will be
|
<li>DevPin, DevPin0 → Generates the address as <code><Connection>.<Device>.<Pin></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 → Generates the address as <code><Connection>.<Pin></code>.
|
||||||
</li>
|
</li>
|
||||||
<li>GPIO → For GPIO the Pin will be appended to the Connection</li>
|
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li>For Virtual types →
|
<li>For Virtual types →
|
||||||
|
@ -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><IncludeFile file="plc-state.xml" /></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>
|
||||||
|
|
Loading…
Reference in New Issue