Sources (units)
Programs are created in program containers, the so-called sources (units). They are compiled
in the engineering system. Any errors or warnings that occur during compilation are output in
the diagnostics window. Sources compiled without error can then be loaded into the associated
controller.
A source contains any number of programs, functions, function blocks and classes. Each
executable part of a source (program, function, function block, class) is called a POU (Program
Organization Unit).
A source is divided into an interface and an implementation section.
Interface section
All parts exported by the source are defined in the interface section. Other sources and external
components (e.g. HMI systems) can access these parts. These include user-defined data
types, data (variables and constants) as well as names of programs, functions, and function
blocks.
Implementation section
The data types and data defined in the implementation section are global throughout the source
and can be used by all POUs. The implementation section also contains the program code of
the POUs. Any POUs not specified in the interface section can only be used within the source.
Note
Source concept
The source concept with encapsulation of code and data allows you to structure applications.
For example, the functionality of an entire machine module with a defined external interface
can be implemented in a single source.
Tasks
Programs are processed in tasks. A task is a job which is executed in a certain chronological
sequence. The advantage of the task system (execution system) is that processes appended
to the appropriate task levels can run simultaneously.
The SIMOTION Motion Control system uses high-performance CPUs on which a real-time
operating system - suitable for fast control processes - is implemented. Each task is allocated
a slice of the computing time. The organization of the task executions is performed by the
operating system. A differentiation is made between user and system tasks that are
independent of one another.
Additional references
For detailed information on the programming languages and the execution system, refer to the
SIMOTION SCOUT online help and the appropriate programming and operating manuals.
Introduction
3.4 Programming languages
SIMOTION SCOUT
20
Configuration Manual, 11/2016
Содержание SIMOTION SCOUT
Страница 12: ...Preface 1 4 Hotline and Internet addresses SIMOTION SCOUT 12 Configuration Manual 11 2016 ...
Страница 32: ...Installation 4 4 Licenses SIMOTION SCOUT 32 Configuration Manual 11 2016 ...
Страница 64: ...User interface 5 11 Adding add ons to the workbench SIMOTION SCOUT 64 Configuration Manual 11 2016 ...
Страница 146: ...Configuring parameterizing 6 14 Writing the boot sector SIMOTION SCOUT 146 Configuration Manual 11 2016 ...
Страница 224: ...Product combinations 13 9 DCC programming system SIMOTION SCOUT 224 Configuration Manual 11 2016 ...
Страница 244: ...Index SIMOTION SCOUT 244 Configuration Manual 11 2016 ...