Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add types for modbus-ng interface #477

Draft
wants to merge 2 commits into
base: develop
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions data/typelibrary/io-1.0.0/typelib/modbus_ng/ModbusBusAdapter.adp
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<?xml version="1.0" encoding="UTF-8"?>
<AdapterType Name="ModbusBusAdapter" Comment="Modbus Bus Adapter">
<Identification Standard="61499-1" Description="Copyright (c) 2024 Martin Erich Jobst&#10; &#10;This program and the accompanying materials are made&#10;available under the terms of the Eclipse Public License 2.0&#10;which is available at https://www.eclipse.org/legal/epl-2.0/&#10;&#10;SPDX-License-Identifier: EPL-2.0" >
</Identification>
<VersionInfo Version="1.0" Author="Martin Erich Jobst" Date="2024-09-12">
</VersionInfo>
<CompilerInfo>
</CompilerInfo>
<InterfaceList>
<EventInputs>
<Event Name="INITO" Type="Event" Comment="">
<With Var="QO"/>
</Event>
</EventInputs>
<EventOutputs>
<Event Name="INIT" Type="Event" Comment="">
<With Var="QI"/>
<With Var="MasterId"/>
<With Var="Index"/>
</Event>
</EventOutputs>
<InputVars>
<VarDeclaration Name="QO" Type="BOOL" Comment=""/>
</InputVars>
<OutputVars>
<VarDeclaration Name="QI" Type="BOOL" Comment=""/>
<VarDeclaration Name="MasterId" Type="UINT" Comment=""/>
<VarDeclaration Name="Index" Type="UINT" Comment=""/>
</OutputVars>
</InterfaceList>
</AdapterType>
40 changes: 40 additions & 0 deletions data/typelibrary/io-1.0.0/typelib/modbus_ng/ModbusMaster.fbt
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<?xml version="1.0" encoding="UTF-8"?>
<FBType Name="ModbusMaster" Comment="Modbus Master">
<Identification Standard="61499-2" Description="Copyright (c) 2024 Martin Erich Jobst&#10; &#10;This program and the accompanying materials are made&#10;available under the terms of the Eclipse Public License 2.0&#10;which is available at https://www.eclipse.org/legal/epl-2.0/&#10;&#10;SPDX-License-Identifier: EPL-2.0" >
</Identification>
<VersionInfo Version="1.0" Author="Martin Erich Jobst" Date="2024-09-12">
</VersionInfo>
<CompilerInfo>
</CompilerInfo>
<InterfaceList>
<EventInputs>
<Event Name="INIT" Type="Event" Comment="Service Initialization">
<With Var="QI"/>
<With Var="Address"/>
<With Var="Port"/>
</Event>
</EventInputs>
<EventOutputs>
<Event Name="INITO" Type="Event" Comment="Initialization Confirm">
<With Var="QO"/>
<With Var="STATUS"/>
</Event>
<Event Name="IND" Type="Event" Comment="Indication from Resource">
<With Var="QO"/>
<With Var="STATUS"/>
</Event>
</EventOutputs>
<InputVars>
<VarDeclaration Name="QI" Type="BOOL" Comment="Event Input Qualifier"/>
<VarDeclaration Name="Address" Type="WSTRING" Comment="Modbus Address"/>
<VarDeclaration Name="Port" Type="WSTRING" Comment="Modbus Port"/>
</InputVars>
<OutputVars>
<VarDeclaration Name="QO" Type="BOOL" Comment="Event Output Qualifier"/>
<VarDeclaration Name="STATUS" Type="WSTRING" Comment="Service Status"/>
</OutputVars>
<Plugs>
<AdapterDeclaration Name="BusAdapterOut" Type="ModbusBusAdapter" Comment=""/>
</Plugs>
</InterfaceList>
</FBType>
Loading