Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
osie
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Martin Manchev
osie
Commits
238e1d9e
Commit
238e1d9e
authored
Sep 09, 2023
by
Ivan Tyagov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add MES5 hello world example project (simple integer increment which is
persistently save to MES5).
parent
6544f815
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
161 additions
and
0 deletions
+161
-0
Beremiz/beremiz_mes5_integration/beremiz.xml
Beremiz/beremiz_mes5_integration/beremiz.xml
+4
-0
Beremiz/beremiz_mes5_integration/opcua_0@opcua/baseconfnode.xml
...z/beremiz_mes5_integration/opcua_0@opcua/baseconfnode.xml
+2
-0
Beremiz/beremiz_mes5_integration/opcua_0@opcua/confnode.xml
Beremiz/beremiz_mes5_integration/opcua_0@opcua/confnode.xml
+4
-0
Beremiz/beremiz_mes5_integration/opcua_0@opcua/selected.csv
Beremiz/beremiz_mes5_integration/opcua_0@opcua/selected.csv
+2
-0
Beremiz/beremiz_mes5_integration/plc.xml
Beremiz/beremiz_mes5_integration/plc.xml
+149
-0
No files found.
Beremiz/beremiz_mes5_integration/beremiz.xml
0 → 100644
View file @
238e1d9e
<?xml version='1.0' encoding='utf-8'?>
<BeremizRoot
xmlns:xsd=
"http://www.w3.org/2001/XMLSchema"
URI_location=
"LOCAL://"
>
<TargetType/>
</BeremizRoot>
Beremiz/beremiz_mes5_integration/opcua_0@opcua/baseconfnode.xml
0 → 100644
View file @
238e1d9e
<?xml version='1.0' encoding='utf-8'?>
<BaseParams
xmlns:xsd=
"http://www.w3.org/2001/XMLSchema"
IEC_Channel=
"1"
Name=
"opcua_0"
/>
Beremiz/beremiz_mes5_integration/opcua_0@opcua/confnode.xml
0 → 100644
View file @
238e1d9e
<?xml version='1.0' encoding='utf-8'?>
<OPCUAClient
xmlns:xsd=
"http://www.w3.org/2001/XMLSchema"
>
<AuthType/>
</OPCUAClient>
Beremiz/beremiz_mes5_integration/opcua_0@opcua/selected.csv
0 → 100644
View file @
238e1d9e
input,erp5-variable-integer,2,int,2,Int64,2
output,erp5-variable-integer,2,int,2,Int64,2
Beremiz/beremiz_mes5_integration/plc.xml
0 → 100644
View file @
238e1d9e
<?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"
>
<fileHeader
companyName=
"Unknown"
productName=
"Unnamed"
productVersion=
"1"
creationDateTime=
"2021-05-14T14:33:11"
/>
<contentHeader
name=
"Counter (OSIE)"
modificationDateTime=
"2023-09-09T10:19:33"
>
<coordinateInfo>
<fbd>
<scaling
x=
"0"
y=
"0"
/>
</fbd>
<ld>
<scaling
x=
"0"
y=
"0"
/>
</ld>
<sfc>
<scaling
x=
"0"
y=
"0"
/>
</sfc>
</coordinateInfo>
</contentHeader>
<types>
<dataTypes/>
<pous>
<pou
name=
"plc_prg"
pouType=
"program"
>
<interface>
<inputVars>
<variable
name=
"Reset"
>
<type>
<BOOL/>
</type>
</variable>
</inputVars>
<outputVars>
<variable
name=
"Cnt0"
>
<type>
<INT/>
</type>
</variable>
<variable
name=
"Cnt1"
>
<type>
<INT/>
</type>
</variable>
</outputVars>
<localVars>
<variable
name=
"CounterST0"
>
<type>
<derived
name=
"MES5CounterST"
/>
</type>
</variable>
</localVars>
</interface>
<body>
<FBD>
<comment
localId=
"1"
height=
"143"
width=
"201"
>
<position
x=
"566"
y=
"75"
/>
<content>
<xhtml:p>
<![CDATA[This PLC program will just increment a counter at MES5 sid eover OPC UA.]]>
</xhtml:p>
</content>
</comment>
<block
localId=
"2"
typeName=
"MES5CounterST"
instanceName=
"CounterST0"
executionOrderId=
"0"
height=
"109"
width=
"114"
>
<position
x=
"288"
y=
"192"
/>
<inputVariables/>
<inOutVariables/>
<outputVariables/>
</block>
<inVariable
localId=
"3"
executionOrderId=
"0"
height=
"25"
width=
"50"
negated=
"false"
>
<position
x=
"181"
y=
"206"
/>
<connectionPointOut>
<relPosition
x=
"50"
y=
"12"
/>
</connectionPointOut>
<expression>
Reset
</expression>
</inVariable>
<outVariable
localId=
"4"
executionOrderId=
"0"
height=
"25"
width=
"42"
negated=
"false"
>
<position
x=
"433"
y=
"266"
/>
<connectionPointIn>
<relPosition
x=
"0"
y=
"12"
/>
</connectionPointIn>
<expression>
Cnt0
</expression>
</outVariable>
<outVariable
localId=
"6"
executionOrderId=
"0"
height=
"25"
width=
"42"
negated=
"false"
>
<position
x=
"435"
y=
"222"
/>
<connectionPointIn>
<relPosition
x=
"0"
y=
"12"
/>
</connectionPointIn>
<expression>
Cnt1
</expression>
</outVariable>
</FBD>
</body>
</pou>
<pou
name=
"MES5CounterST"
pouType=
"functionBlock"
>
<interface>
<externalVars>
<variable
name=
"mes5_int_in"
>
<type>
<LINT/>
</type>
<documentation>
<xhtml:p>
<![CDATA[OPC UA node variable at MES5 (read mode)]]>
</xhtml:p>
</documentation>
</variable>
<variable
name=
"mes5_int_out"
>
<type>
<LINT/>
</type>
<documentation>
<xhtml:p>
<![CDATA[OPC UA node variable at MES5 (write mode)]]>
</xhtml:p>
</documentation>
</variable>
</externalVars>
</interface>
<body>
<ST>
<xhtml:p>
<![CDATA[(* read from MES5 counter value so we continue from where we were*)
mes5_int_in := mes5_int_in + 1;
(* set to MES5 the counter value so it is kept permanently *)
mes5_int_out := mes5_int_in;
]]>
</xhtml:p>
</ST>
</body>
</pou>
</pous>
</types>
<instances>
<configurations>
<configuration
name=
"config"
>
<resource
name=
"resource1"
>
<task
name=
"task0"
priority=
"0"
interval=
"T#1s0ms"
>
<pouInstance
name=
"instance0"
typeName=
"plc_prg"
/>
</task>
</resource>
<globalVars>
<variable
name=
"mes5_int_in"
address=
"%IL1.2"
>
<type>
<LINT/>
</type>
<documentation>
<xhtml:p>
<![CDATA[MES5 counter (read mode)]]>
</xhtml:p>
</documentation>
</variable>
<variable
name=
"mes5_int_out"
address=
"%QL1.2"
>
<type>
<LINT/>
</type>
<documentation>
<xhtml:p>
<![CDATA[MES5 counter (read mode)]]>
</xhtml:p>
</documentation>
</variable>
</globalVars>
</configuration>
</configurations>
</instances>
</project>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment