From 225ee28bae66733ab91ed206bbbdfccda13196b7 Mon Sep 17 00:00:00 2001
From: Robert von Burg
Date: Wed, 1 Apr 2020 11:34:12 +0200
Subject: [PATCH] [Project] Updating documentation to strolch plc
---
li.strolch.website/www.strolch.li/plc.html | 15 +++++++++++----
1 file changed, 11 insertions(+), 4 deletions(-)
diff --git a/li.strolch.website/www.strolch.li/plc.html b/li.strolch.website/www.strolch.li/plc.html
index cd64d37f4..9fb7fe1f1 100644
--- a/li.strolch.website/www.strolch.li/plc.html
+++ b/li.strolch.website/www.strolch.li/plc.html
@@ -449,11 +449,11 @@ Conveyor 1,Output,GPIO,,18,Conveyor,MotorOn,MotorOff,raspiBcmGpioOutput
- For Input and Output types →
- - PCF8574 → For PCF8574 the Device and Pin values must be defined and will be
- appended to the Connection. Define the device and pin values starting with 1,
- the values will be decremented, to fit the hardware index
+
- DevPin, DevPin0 → Generates the address as
<Connection>.<Device>.<Pin>
.
+ DevPin0 decrements the Device and Pin values by one.
+
+ - Pin → Generates the address as
<Connection>.<Pin>
.
- - GPIO → For GPIO the Pin will be appended to the Connection
- For Virtual types →
@@ -519,6 +519,13 @@ Conveyor 1,Output,GPIO,,18,Conveyor,MotorOn,MotorOff,raspiBcmGpioOutput
defined in each project depending on the hardware.
+
+ Copy the file plc-state.xml
+ to your runtime and reference it by use of a <IncludeFile file="plc-state.xml" />
+ element. Modify the PlcId to be the same as the one you defined in the
+ StrolchConfiguration.xml
.
+
+
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: