Siemens SIMOTION Function Manual page 81

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

Advertisement

With an asynchronous call, the user program is continued immediately after the start of the
system function. You must query the state of the function regularly to determine whether it has
been completed without errors.
Proceed as follows for the asynchronous call:
1. Call the following parameters to start the system function:
2. Check the return value.
3. For the state query and to check whether the system function has been completed, call
4. Check the return value:
5. On error-free completion of the functions _activateTo and _deactivateTo note the
Note
Note for versions up to and including V4.0 of the SIMOTION Kernel:
The activation or deactivation of the technology object is not yet finished on completion
without errors of the functions _activateTo or _deactivateTo.
Therefore, keep calling the _getStateOfTo (Page 85) system function until the
commandIdState component of the return value (data type EnumStateOfTo) has the value
ACTIVE or INACTIVE.
Basic Functions for Modular Machines
Function Manual, 04/2014
– reqActDeactGetStateMode := REQUEST_TRUE
– nextCommand := IMMEDIATELY
– Return value 16#0000_0000 indicates that the function has been completed without
errors.
Continue with step 5.
– The return value 16#0000_7001 indicates that the function has been started
successfully, but has not yet been completed.
Continue with step 3.
– A return value < 0 indicates that the function has been terminated with errors. You can
program error routines, depending on the return value.
these again, but with the following parameters:
– reqActDeactGetStateMode := REQUEST_FALSE
– nextCommand := IMMEDIATELY
– commandId: Use the same command ID as for the first call.
– Return value 16#0000_7002 indicates that the function is still running.
Repeat step 3.
– A return value < 0 indicates that the function has been terminated with errors. You can
program error routines, depending on the return value.
– Return value 16#0000_0000 indicates that the function has been completed without
errors.
information below.
Activating and deactivating components and technology objects
5.4 Activating and deactivating technology objects
81

Advertisement

Table of Contents
loading

Table of Contents