176 • SMP Gateway User Manual
17.2 The Soft PLC
The Soft PLC is an optional software module available on all models. Using this module, you can
create automation scripts that access the data points in the SMP Gateway’s real-time database in
order to create sophisticated control functions.
Since the Soft PLC is part of the SMP Gateway’s internal architecture, the scripts you define can
be used to:
create new logical data points, with values based on the result of calculations performed on
real data points;
process data in real time before sending it to control centers;
implement sophisticated local automation functions, such as automatic closing of circuit
breakers and load balancing.
The Soft PLC module is provided with the CoDeSys development platform, a complete
development environment that supports the IEC 61131 programming languages:
Instruction List (IL)
Structured Text (ST)
Function Block Diagram (FBD)
Continuous Function Chart (CFC)
Ladder Diagram (LD)
Sequential Function Chart (SFC)
17.2.1 The CoDeSys Development Environment
CoDeSys is one of the most popular IEC 61131-3 programming systems for PLCs and industrial
controllers. It supports the full range of standard IEC 61131-3 data types, as well as user-defined
data types: arrays, structures, enumerations, aliases and pointers. The tools provide a comfortable
programming environment, with full debugging support. The following illustration presents
CoDeSys application’s main window.