Siemens SIMOTION Function Manual page 97

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

Advertisement

Example for activating a kernel without details of a configuration to be activated
// Variable declaration
VAR
END_VAR
newKernelId := 16#004156;
// Activate the required configuration
retActivateConf := _activateConfiguration(
IF ( 0 <> retActivateConf.result ) THEN
END_IF;
The timeOut parameter is described in detail in Section "Example of the activation of a
configuration" (Page 92). The time should be at least five minutes for the activation of a kernel.
with details of a configuration to be activated
Example
The following example shows the activation of a kernel with details of a configuration to be
activated.
After activating the kernel and restarting the system, the configuration specified in the
projectDataId parameter will be loaded.
Example for activating a kernel with details of a configuration to be activated
// Variable declaration
VAR
END_VAR
newKernelId := 16#004156; // Corresponds to directory
configId
// Activate the required configuration
retActivateConf := _activateConfiguration (
Basic Functions for Modular Machines
Function Manual, 04/2014
retActivateConf : StructRetConfiguration;
newKernelId : UDINT;
projectData
projectDataId
kernel
kernelId
timeOut
);
// Error response
; // ...
retActivateConf : StructRetConfiguration;
newKernelId : UDINT; // kernelId of the
configId
: UDINT; // projectDataId of the
:= 16#000001; // Corresponds to file
projectData := YES,
projectDataId := configId,
Changing the active configuration or the active kernel
// kernelId of the
// kernel to be loaded
// Corresponds to directory
// VE004156
:= NO,
// Mandatory parameters
:= UDINT#MAX,
// 16#FFFF_FFFF
:= YES,
:= newKernelId,
:= T#5m
// 5 minutes
// kernel to be loaded
// required configuration
// VE004156
// PR000001.ZIP
6.2 Activating a kernel
97

Advertisement

Table of Contents
loading

Table of Contents