Commit d594d094 authored by Ivan Tyagov's avatar Ivan Tyagov

Add a network setup of 3 couplers - one is a master one and rest two depend on it.

parent 08fdef1b
<?xml version='1.0' encoding='utf-8'?>
<BaseParams xmlns:xsd="http://www.w3.org/2001/XMLSchema" IEC_Channel="2" Name="k3"/>
<?xml version='1.0' encoding='utf-8'?>
<OPCUAClient xmlns:xsd="http://www.w3.org/2001/XMLSchema" Server_URI="opc.tcp://192.168.0.54:4840"/>
output,I2C0 / Relay 0,1,str,i2c0.relay0,Int32,0
<?xml version='1.0' encoding='utf-8'?> <?xml version='1.0' encoding='utf-8'?>
<project xmlns:ns1="http://www.plcopen.org/xml/tc6_0201" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.plcopen.org/xml/tc6_0201"> <project xmlns:ns1="http://www.plcopen.org/xml/tc6_0201" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.plcopen.org/xml/tc6_0201">
<fileHeader companyName="Unknown" productName="Unnamed" productVersion="1" creationDateTime="2021-05-14T14:33:11"/> <fileHeader companyName="Unknown" productName="Unnamed" productVersion="1" creationDateTime="2021-05-14T14:33:11"/>
<contentHeader name="Counter (OSIE)" modificationDateTime="2023-03-06T11:48:32"> <contentHeader name="Counter (OSIE)" modificationDateTime="2023-03-10T15:13:15">
<coordinateInfo> <coordinateInfo>
<fbd> <fbd>
<scaling x="0" y="0"/> <scaling x="0" y="0"/>
...@@ -194,6 +194,11 @@ ...@@ -194,6 +194,11 @@
<DINT/> <DINT/>
</type> </type>
</variable> </variable>
<variable name="Coupler2_Relay0">
<type>
<DINT/>
</type>
</variable>
</externalVars> </externalVars>
</interface> </interface>
<body> <body>
...@@ -205,6 +210,7 @@ ...@@ -205,6 +210,7 @@
ELSE ELSE
Cnt0 := Cnt0 + 1; Cnt0 := Cnt0 + 1;
Cnt1 := Cnt1 + 1; Cnt1 := Cnt1 + 1;
Coupler2_Relay0 := Coupler2_Relay0 + 1;
IF Cnt1 = 50 THEN IF Cnt1 = 50 THEN
Coupler0_Relay0 := 1; Coupler0_Relay0 := 1;
Coupler0_Relay1 := 1; Coupler0_Relay1 := 1;
...@@ -342,6 +348,17 @@ Out0 := Cnt0;]]></xhtml:p> ...@@ -342,6 +348,17 @@ Out0 := Cnt0;]]></xhtml:p>
<xhtml:p><![CDATA[OPC-UA relay 2]]></xhtml:p> <xhtml:p><![CDATA[OPC-UA relay 2]]></xhtml:p>
</documentation> </documentation>
</variable> </variable>
<variable name="Coupler2_Relay0" address="%QD2.0">
<type>
<DINT/>
</type>
<initialValue>
<simpleValue value="0"/>
</initialValue>
<documentation>
<xhtml:p><![CDATA[OPC-UA relay 2]]></xhtml:p>
</documentation>
</variable>
</globalVars> </globalVars>
</configuration> </configuration>
</configurations> </configurations>
......
<?xml version='1.0' encoding='utf-8'?> <?xml version='1.0' encoding='utf-8'?>
<OPCUAClient xmlns:xsd="http://www.w3.org/2001/XMLSchema" Server_URI="opc.tcp://192.168.0.46:4840"> <OPCUAClient xmlns:xsd="http://www.w3.org/2001/XMLSchema" Server_URI="opc.tcp://192.168.0.61:4840">
<AuthType/> <AuthType/>
</OPCUAClient> </OPCUAClient>
<?xml version='1.0' encoding='utf-8'?> <?xml version='1.0' encoding='utf-8'?>
<OPCUAClient xmlns:xsd="http://www.w3.org/2001/XMLSchema" Server_URI="opc.tcp://192.168.0.74:4840"> <OPCUAClient xmlns:xsd="http://www.w3.org/2001/XMLSchema" Server_URI="opc.tcp://192.168.0.66:4840">
<AuthType/> <AuthType/>
</OPCUAClient> </OPCUAClient>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment