Siemens SIMOTION SCOUT Configuration Manual page 20

Motion control
Table of Contents

Advertisement

Introduction
3.4 Programming languages
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.
20
SIMOTION SCOUT
Configuration Manual, 11/2016

Advertisement

Table of Contents
loading

Table of Contents