Skip to content

Commit 90df4a6

Browse files
Release 3.0.1
# Release 3.0.1 ## Bugfix - Issue to create new instances (introduced with v3.0.0) * README update
1 parent 6f8ce5d commit 90df4a6

7 files changed

Lines changed: 33 additions & 21 deletions

File tree

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
# Changelog
22
All notable changes to this project will be documented in this file.
33

4+
## Release 3.0.1
5+
6+
### Bugfix
7+
- Issue to create new instances (introduced with v3.0.0)
8+
49
## Release 3.0.0
510

611
### New features

CSK_Module_MultiIOLinkSMI/project.mf.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1231,7 +1231,7 @@ Set source event of incoming data to use for writeMessage.</desc>
12311231
</crown>
12321232
</crown>
12331233
<meta key="author">SICK AG</meta>
1234-
<meta key="version">3.0.0</meta>
1234+
<meta key="version">3.0.1</meta>
12351235
<meta key="priority">low</meta>
12361236
<meta key="copy-protected">false</meta>
12371237
<meta key="read-protected">false</meta>

CSK_Module_MultiIOLinkSMI/scripts/Communication/MultiIOLinkSMI/MultiIOLinkSMI_Controller.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1535,7 +1535,7 @@ local function loadParameters()
15351535
---------------------------------------
15361536
multiIOLinkSMI_Instances[selectedInstance].parameters = helperFuncs.convertContainer2Table(data)
15371537

1538-
multiIOLinkSMI_Instances[selectedInstance].parameters = helperFuncs.checkParameters(multiIOLinkSMI_Instances[selectedInstance].parameters, helperFuncs.defaultParameters)
1538+
multiIOLinkSMI_Instances[selectedInstance].parameters = helperFuncs.checkParameters(multiIOLinkSMI_Instances[selectedInstance].parameters, helperFuncs.defaultParameters.getParameters())
15391539

15401540
updateProcessingParameters()
15411541

CSK_Module_MultiIOLinkSMI/scripts/Communication/MultiIOLinkSMI/MultiIOLinkSMI_Model.lua

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
-- including its parameters and functions
55
--*****************************************************************
66
local json = require('Communication/MultiIOLinkSMI/helper/Json')
7-
local helperFuncs = require "Communication.MultiIOLinkSMI.helper.funcs"
87
local converter = require('Communication/MultiIOLinkSMI/helper/DataConverter')
98
--**************************************************************************
109
--**********************Start Global Scope *********************************
@@ -145,7 +144,7 @@ function multiIOLinkSMI.create(multiIOLinkSMIInstanceNo)
145144

146145
-- Parameters to be saved permanently if wanted
147146
self.parameters = {}
148-
self.parameters = require('Communication/MultiIOLinkSMI/MultiIOLinkSMI_Parameters') -- Load default parameters
147+
self.parameters = self.helperFuncs.defaultParameters.getParameters() -- Load default parameters
149148

150149
-- Parameters to give to the processing script
151150
self.multiIOLinkSMIProcessingParams = Container.create()

CSK_Module_MultiIOLinkSMI/scripts/Communication/MultiIOLinkSMI/MultiIOLinkSMI_Parameters.lua

Lines changed: 19 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,24 @@
55
-- for this module and its default values
66
--***************************************************************
77

8-
local multiIOLinkSMIParameters = {}
8+
local functions = {}
99

10-
multiIOLinkSMIParameters.flowConfigPriority = CSK_FlowConfig ~= nil or false -- Status if FlowConfig should have priority for FlowConfig relevant configurations
11-
--multiIOLinkSMIParameters.name = 'Sensor'.. self.multiIOLinkSMIInstanceNoString -- for future use
12-
multiIOLinkSMIParameters.processingFile = 'CSK_MultiIOLinkSMI_Processing'
13-
multiIOLinkSMIParameters.port = '' -- IOLink port used
14-
multiIOLinkSMIParameters.active = false -- Parameter showing if instance is activated or not
15-
multiIOLinkSMIParameters.ioddInfo = nil -- Table containing IODD information
16-
multiIOLinkSMIParameters.deviceIdentification = nil -- Table containing IODD information
17-
multiIOLinkSMIParameters.ioddReadMessages = {} -- Table contatining information about read messages. Each read message has its own IODD Interpreter instance
18-
multiIOLinkSMIParameters.ioddWriteMessages = {} -- Table contatining information about write messages. Each write message has its own IODD Interpreter instance
19-
multiIOLinkSMIParameters.autoStartTimer = false -- Status if read message timers should be started automatically after parameters were loaded
10+
local function getParameters()
11+
local multiIOLinkSMIParameters = {}
2012

21-
return multiIOLinkSMIParameters
13+
multiIOLinkSMIParameters.flowConfigPriority = CSK_FlowConfig ~= nil or false -- Status if FlowConfig should have priority for FlowConfig relevant configurations
14+
--multiIOLinkSMIParameters.name = 'Sensor'.. self.multiIOLinkSMIInstanceNoString -- for future use
15+
multiIOLinkSMIParameters.processingFile = 'CSK_MultiIOLinkSMI_Processing'
16+
multiIOLinkSMIParameters.port = '' -- IOLink port used
17+
multiIOLinkSMIParameters.active = false -- Parameter showing if instance is activated or not
18+
multiIOLinkSMIParameters.ioddInfo = nil -- Table containing IODD information
19+
multiIOLinkSMIParameters.deviceIdentification = nil -- Table containing IODD information
20+
multiIOLinkSMIParameters.ioddReadMessages = {} -- Table contatining information about read messages. Each read message has its own IODD Interpreter instance
21+
multiIOLinkSMIParameters.ioddWriteMessages = {} -- Table contatining information about write messages. Each write message has its own IODD Interpreter instance
22+
multiIOLinkSMIParameters.autoStartTimer = false -- Status if read message timers should be started automatically after parameters were loaded
23+
24+
return multiIOLinkSMIParameters
25+
end
26+
functions.getParameters = getParameters
27+
28+
return functions

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ Tested on
6060

6161
|Device|Firmware version|Module version|
6262
|--|--|--|
63+
|SIM300|V0.2.1|V3.0.1|
6364
|SIM1012|V2.4.2|V3.0.0|
6465
|SIM1012|V2.4.2|V2.1.1|
6566
|SIM1012|V2.4.2|V2.1.0|

docu/CSK_Module_MultiIOLinkSMI.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<meta name="viewport" content="width=device-width, initial-scale=1.0">
77
<meta name="generator" content="Asciidoctor 2.0.12">
88
<meta name="author" content="SICK AG">
9-
<title>Documentation - CSK_Module_MultiIOLinkSMI 3.0.0</title>
9+
<title>Documentation - CSK_Module_MultiIOLinkSMI 3.0.1</title>
1010
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
1111
<style>
1212
/* Stylesheet for CodeRay to match GitHub theme | MIT License | http://foundation.zurb.com */
@@ -615,10 +615,10 @@
615615
</head>
616616
<body class="article toc2 toc-left">
617617
<div id="header">
618-
<h1>Documentation - CSK_Module_MultiIOLinkSMI 3.0.0</h1>
618+
<h1>Documentation - CSK_Module_MultiIOLinkSMI 3.0.1</h1>
619619
<div class="details">
620620
<span id="author" class="author">SICK AG</span><br>
621-
<span id="revnumber">version 3.0.0,</span>
621+
<span id="revnumber">version 3.0.1,</span>
622622
<span id="revdate">2025-02-14</span>
623623
</div>
624624
<div id="toc" class="toc2">
@@ -919,7 +919,7 @@ <h2 id="_document_metadata">Document metadata</h2>
919919
</tr>
920920
<tr>
921921
<th class="tableblock halign-left valign-top"><p class="tableblock">Version</p></th>
922-
<td class="tableblock halign-left valign-top"><p class="tableblock">3.0.0</p></td>
922+
<td class="tableblock halign-left valign-top"><p class="tableblock">3.0.1</p></td>
923923
</tr>
924924
<tr>
925925
<th class="tableblock halign-left valign-top"><p class="tableblock">Date</p></th>
@@ -11776,7 +11776,7 @@ <h3 id="API:Enum:CSK_MultiIOLinkSMI.MessageMode"><span class="api-enum">CSK_Mult
1177611776
</div>
1177711777
<div id="footer">
1177811778
<div id="footer-text">
11779-
Version 3.0.0<br>
11779+
Version 3.0.1<br>
1178011780
Last updated 2025-02-14 13:31:03 +0100
1178111781
</div>
1178211782
</div>

0 commit comments

Comments
 (0)