Attention
IronPLC can only run very simple programs. The steps described are accurate but many language features are not yet supported.
CONFIGURATION¶
A configuration is the top-level deployment container that describes how programs are assigned to resources and tasks.
IEC 61131-3 |
Section 2.7.1 |
Support |
Supported |
Syntax¶
CONFIGURATION configuration_name
resource_declarations
global_variable_declarations
END_CONFIGURATION
Example¶
CONFIGURATION DefaultConfig
RESOURCE DefaultResource ON PLC
TASK MainTask(INTERVAL := T#20ms, PRIORITY := 1);
PROGRAM main WITH MainTask : MainProgram;
END_RESOURCE
END_CONFIGURATION
A configuration contains one or more resources. Global variables declared at configuration level are accessible to all resources.