2020-01-27 16:17:00 +01:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<StrolchModel xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="https://strolch.li/xsd/StrolchModel-1.6.xsd"
|
|
|
|
xsi:schemaLocation="https://strolch.li/xsd/StrolchModel-1.6.xsd StrolchModel-1.6.xsd">
|
|
|
|
|
2021-02-15 23:23:29 +01:00
|
|
|
<IncludeFile file="plc-templates.xml"/>
|
2020-01-27 16:17:00 +01:00
|
|
|
|
2020-02-06 14:21:00 +01:00
|
|
|
<IncludeFile file="strolch-plc-example.xml"/>
|
|
|
|
<IncludeFile file="strolch-plc-example-connections.xml"/>
|
2020-01-27 16:17:00 +01:00
|
|
|
|
|
|
|
<!--
|
2020-02-06 14:21:00 +01:00
|
|
|
PLC to store connection state to server
|
2020-01-27 16:17:00 +01:00
|
|
|
-->
|
2020-02-06 14:21:00 +01:00
|
|
|
<Resource Id="mfs-soh-plc01" Name="PLC" Type="Plc">
|
2020-01-27 16:17:00 +01:00
|
|
|
<ParameterBag Id="parameters" Name="Parameters" Type="Parameters">
|
2020-02-06 14:21:00 +01:00
|
|
|
<Parameter Id="connectionState" Name="Connection State" Type="String" Interpretation="Enumeration" Uom="ConnectionState" Value="Disconnected"/>
|
|
|
|
<Parameter Id="connectionStateMsg" Name="Connection State Msg" Type="String" Interpretation="Enumeration" Uom="ConnectionState"
|
2020-01-27 16:17:00 +01:00
|
|
|
Value=""/>
|
|
|
|
</ParameterBag>
|
|
|
|
</Resource>
|
|
|
|
|
|
|
|
<!--
|
|
|
|
PLC State
|
|
|
|
-->
|
|
|
|
<Resource Id="plc" Name="PLC" Type="PlcLogicalDevice">
|
|
|
|
<ParameterBag Id="parameters" Name="Parameters" Type="Parameters">
|
2020-02-06 14:21:00 +01:00
|
|
|
<Parameter Id="group" Name="Group" Type="String" Value="99 Startup"/>
|
2020-01-27 16:17:00 +01:00
|
|
|
<Parameter Id="index" Name="Index" Type="Integer" Value="999999"/>
|
|
|
|
</ParameterBag>
|
|
|
|
<ParameterBag Id="relations" Name="Relations" Type="Relations">
|
|
|
|
<Parameter Id="addresses" Name="Addresses" Type="StringList" Interpretation="Resource-Ref" Uom="PlcAddress"
|
2020-01-30 12:00:55 +01:00
|
|
|
Value="addrPlcStarted, addrPlcConnected"/>
|
2020-01-27 16:17:00 +01:00
|
|
|
<Parameter Id="telegrams" Name="Telegrams" Type="StringList" Interpretation="Resource-Ref" Uom="PlcTelegram"
|
|
|
|
Value="telPlcStarted, telPlcStopped"/>
|
|
|
|
</ParameterBag>
|
|
|
|
</Resource>
|
2020-02-06 14:21:00 +01:00
|
|
|
<Resource Id="addrPlcConnected" Name="PLC - Connected" Type="PlcAddress">
|
2020-01-30 12:00:55 +01:00
|
|
|
<ParameterBag Id="parameters" Name="Parameters" Type="Parameters">
|
2022-05-02 15:20:24 +02:00
|
|
|
<Parameter Id="address" Name="HW Address" Type="String" Interpretation="PlcConnection" Value="VirtualString.plcServerConnected"/>
|
2020-01-30 12:00:55 +01:00
|
|
|
<Parameter Id="resource" Name="Resource ID for PlcAddress" Type="String" Value="PLC"/>
|
|
|
|
<Parameter Id="action" Name="Action ID for PlcAddress" Type="String" Value="ServerConnected"/>
|
|
|
|
<Parameter Id="valueType" Name="Value Type" Type="String" Interpretation="Interpretation" Uom="PlcValueType" Value="String"/>
|
|
|
|
<Parameter Id="value" Name="Value" Type="String" Value="false"/>
|
|
|
|
<Parameter Id="index" Name="Index" Type="Integer" Value="5"/>
|
|
|
|
</ParameterBag>
|
|
|
|
</Resource>
|
2020-01-27 16:17:00 +01:00
|
|
|
<Resource Id="addrPlcStarted" Name="PLC - Started" Type="PlcAddress">
|
|
|
|
<ParameterBag Id="parameters" Name="Parameters" Type="Parameters">
|
2020-02-06 14:21:00 +01:00
|
|
|
<Parameter Id="address" Name="HW Address" Type="String" Interpretation="PlcConnection" Value="raspiBcmGpioOutput.27"/>
|
2020-01-27 16:17:00 +01:00
|
|
|
<Parameter Id="resource" Name="Resource ID for PlcAddress" Type="String" Value="PLC"/>
|
|
|
|
<Parameter Id="action" Name="Action ID for PlcAddress" Type="String" Value="Started"/>
|
|
|
|
<Parameter Id="value" Name="Value" Type="Boolean" Value="false"/>
|
2020-01-30 12:00:55 +01:00
|
|
|
<Parameter Id="inverted" Name="Inverted" Type="Boolean" Value="false"/>
|
2020-01-27 16:17:00 +01:00
|
|
|
<Parameter Id="index" Name="Index" Type="Integer" Value="10"/>
|
|
|
|
</ParameterBag>
|
|
|
|
</Resource>
|
|
|
|
<Resource Id="telPlcStarted" Name="PLC - Started" Type="PlcTelegram">
|
|
|
|
<ParameterBag Id="parameters" Name="Parameters" Type="Parameters">
|
2020-02-06 14:21:00 +01:00
|
|
|
<Parameter Id="address" Name="HW Address" Type="String" Interpretation="PlcConnection" Value="raspiBcmGpioOutput.27"/>
|
2020-01-27 16:17:00 +01:00
|
|
|
<Parameter Id="resource" Name="Resource ID for PlcAddress" Type="String" Value="PLC"/>
|
|
|
|
<Parameter Id="action" Name="Action ID for PlcAddress" Type="String" Value="Started"/>
|
|
|
|
<Parameter Id="value" Name="Value" Type="Boolean" Value="true"/>
|
|
|
|
<Parameter Id="index" Name="Index" Type="Integer" Value="10"/>
|
|
|
|
</ParameterBag>
|
|
|
|
</Resource>
|
|
|
|
<Resource Id="telPlcStopped" Name="PLC - Stopped" Type="PlcTelegram">
|
|
|
|
<ParameterBag Id="parameters" Name="Parameters" Type="Parameters">
|
2020-02-06 14:21:00 +01:00
|
|
|
<Parameter Id="address" Name="HW Address" Type="String" Interpretation="PlcConnection" Value="raspiBcmGpioOutput.27"/>
|
2020-01-27 16:17:00 +01:00
|
|
|
<Parameter Id="resource" Name="Resource ID for PlcAddress" Type="String" Value="PLC"/>
|
|
|
|
<Parameter Id="action" Name="Action ID for PlcAddress" Type="String" Value="Stopped"/>
|
|
|
|
<Parameter Id="value" Name="Value" Type="Boolean" Value="false"/>
|
|
|
|
<Parameter Id="index" Name="Index" Type="Integer" Value="20"/>
|
|
|
|
</ParameterBag>
|
|
|
|
</Resource>
|
|
|
|
|
|
|
|
</StrolchModel>
|