Describe the bug
Due to another machanism to enable the Fieldbus the module is not feasable in the current shape for the device SIM2000STE / SIM2000STC.
The device is using the following API to configure the Fieldbustype, before open the Fieldbus
FieldBus.Config.setProtocol("ETHERNETIP") -- or "PROFINETIO"
This snipped will do the job. getter and setter need to be adapted.
The UI is working as well if there is the variable fieldbus_Model.fbMode = 'EtherNetIP' set to the corresponding value.
`--- Function to create fieldbus communication handle
local function create()
-- Hier die Selection zu machen.
FieldBus.Config.setProtocol("ETHERNETIP")
--if fieldbus_Model.fbMode ~= 'DISABLED' then
if not fieldbus_Model.handle then
fieldbus_Model.handle = FieldBus.create(fieldbus_Model.parameters.createMode)
if fieldbus_Model.handle then
FieldBus.setMode(fieldbus_Model.handle, fieldbus_Model.parameters.transmissionMode)
_G.logger:fine("Successfully created Fieldbus handle.")
getInfo()
getStatus()
deregisterFieldbusEvents()
FieldBus.register(fieldbus_Model.handle, 'OnStatusChanged', handleOnStatusChanged)
FieldBus.register(fieldbus_Model.handle, 'OnNewData', handleOnNewData)
FieldBus.register(fieldbus_Model.handle, 'OnControlBitsOutChanged', handleOnControlBitsOutChanged)
if fieldbus_Model.fbMode == 'EtherNetIP' then
Script.register('FieldBus.Config.EtherNetIP.OnFieldbusStorageRequest', handleOnEtherNetIPFieldbusStorageRequest)
Script.register('FieldBus.Config.EtherNetIP.OnAddressingModeChanged', handleOnAddressingModeChanged)
Script.register('FieldBus.Config.EtherNetIP.OnInterfaceConfigChanged', handleOnEthernetIPInterfaceConfigChanged)
elseif fieldbus_Model.fbMode == 'ProfinetIO' then
Script.register('FieldBus.Config.ProfinetIO.OnFieldbusStorageRequest', handleOnProfinetIOFieldbusStorageRequest)
Script.register('FieldBus.Config.ProfinetIO.OnDeviceNameChanged', handleOnDeviceNameChanged)
Script.register('FieldBus.Config.ProfinetIO.OnInterfaceConfigChanged', handleOnProfinetIOInterfaceConfigChanged)
end
else
_G.logger:warning("Not able to create Fieldbus handle.")
end
else
_G.logger:fine("Handle already exists.")
end
--end
end
fieldbus_Model.create = create`
CSK module:
AppSpace device used:
- Type: SIM2000-3L10A00 / but we need to take care about variants. Maybe SIM2000-3* is a good starting point.
- Firmware [e.g. ver1.3.0]
To Reproduce
Steps to reproduce the behavior:
- Go to '...'
- Click on '....'
- ...
- See error
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots

Additional context
Add any other context about the problem here.
Describe the bug
Due to another machanism to enable the Fieldbus the module is not feasable in the current shape for the device SIM2000STE / SIM2000STC.
The device is using the following API to configure the Fieldbustype, before open the Fieldbus
FieldBus.Config.setProtocol("ETHERNETIP") -- or "PROFINETIO"
This snipped will do the job. getter and setter need to be adapted.
The UI is working as well if there is the variable fieldbus_Model.fbMode = 'EtherNetIP' set to the corresponding value.
`--- Function to create fieldbus communication handle
local function create()
-- Hier die Selection zu machen.
FieldBus.Config.setProtocol("ETHERNETIP")
--if fieldbus_Model.fbMode ~= 'DISABLED' then
if not fieldbus_Model.handle then
fieldbus_Model.handle = FieldBus.create(fieldbus_Model.parameters.createMode)
if fieldbus_Model.handle then
FieldBus.setMode(fieldbus_Model.handle, fieldbus_Model.parameters.transmissionMode)
_G.logger:fine("Successfully created Fieldbus handle.")
getInfo()
getStatus()
--end
end
fieldbus_Model.create = create`
CSK module:
AppSpace device used:
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
Additional context
Add any other context about the problem here.