System Functions For Activating And Deactivating Technology Objects; Status Diagram For The Functions _Activateto And _Deactivateto - Siemens SIMOTION Function Manual

Motion control basic functions for modular machines
Hide thumbs Also See for SIMOTION:
Table of Contents

Advertisement

5.4.1

System functions for activating and deactivating technology objects

System functions
Use the functions _deactivateTo and _activateTo to activate and deactivate the technology
objects during runtime.
The related technology object is transferred in parameter TO_Instance (data type
ANYOBJECT).
The syntax of these system functions is described in detail in the "System Functions/Variables
Devices" List Manual (reference list) and in the online help (see index). Please also note the
information relating to the status diagram (Page 79), asynchronous calls (Page 80) and
synchronous calls (Page 82).
Note
The temperature channel technology object can only be activated and deactivated in the
engineering system (see Activating or deactivating technology objects in the engineering
system (Page 84)).
5.4.1.1

Status diagram for the functions _activateTo and _deactivateTo

The figure below shows the states of the system functions _activateTo and _deactivateTo. It
also applies to the _getStateOfTo system function (see also Querying the activation state of
technology objects).
The functions can be called asynchronously and synchronously.
● With an asynchronous call (Page 80) (parameter nextCommand := IMMEDIATELY), the
● With a synchronous call (Page 82) (parameter
Use parameter reqActDeactGetStateMode := REQUEST_TRUE to start execution of the
function (e.g. activation or deactivation of a technology object).
Basic Functions for Modular Machines
Function Manual, 04/2014
user program is continued immediately after the start of the system function.
You must regularly query the state of the function to be able to determine when a command
has been executed in full.
The asynchronous call is required in cyclic tasks to ensure that their time monitoring function
does not start.
nextCommand : =WHEN_COMMAND_DONE), the user program waits until the system
function has been completed. The return value directly indicates whether the function call
was successful.
The synchronous call is recommended for MotionTasks.
Activating and deactivating components and technology objects
5.4 Activating and deactivating technology objects
79

Advertisement

Table of Contents
loading

Table of Contents