User Documentation
Table Of Contents
- Table of contents
- 1 Introduction
- 2 Safety instructions
- 3 System overview
- 4 Operating behavior
- 5 Software installation
- 6 Configuration
- 7 Program development
- 8 Licensing
- 9 Device Administration (DevAdmin)
- 10 Software units
- 11 OPC UA Server
- 12 Node-RED
- 13 LongtermDiagnosticMonitor
- 14 Data recorder
- 15 Diagnostics
- 16 Maintenance
- 17 Technical data
- 18 Directives and standards
- 19 Appendix: Tutorial - creating an IEC project
- 20 Appendix: Addressing in the Ethernet (basics)
- 21 Appendix: Tutorial FoE
- 22 Appendix: Tutorial - call C function from IEC
- Index

Program development
System manual
2696790000/02/04.2020
34
Global variable Default value Description
starepPathTmp /tmp/
Directory where the files of
the status report are stored
maxStarepCount 5
Number of stored status re-
ports
autostart true
Defines whether or not the
programs are to be run im-
mediately after the control is
started
autostartTimeout 5
Time in which the autostart
can be canceled [s]
Each DeviceServiceItem can export configuration variables or use configu-
ration variables exported by other DeviceServiceItem. Variables are ex-
ported by adding them to the global variables variable:
variables = {
someVar = 12,
otherVar = 'text'
}
Example file example.item.ex:
item = {
name = "example"
variables ={
}
defaultvariables = {
}
---------TESTTRANSITION-----------------
testtransition = function(transition)
--Init DeviceService--
if transition == "Init DeviceService" then
return true
--Exit DeviceService--
elseif transition == "Exit DeviceService" then
return true
--Init Controller--
elseif transition == "Init Controller" then
return true
--Exit Controller--
elseif transition == "Exit Controller" then
return true
--Start Applications--
elseif transition == "Start Applications" then
return true
--Stop Applications--
elseif transition == "Stop Applications" then
return true
end
return false
end
, --- DOTRANSITION ---------------------------
dotransition = function(transition, step)
--Init DeviceService
if transition == "Init DeviceService" then
if step == 1 then
elseif step == 2 then
elseif step == 3 then
elseif step == 4 then
elseif step == 5 then
elseif step == 6 then
elseif step == 7 then
elseif step == 8 then