System Behavior - Siemens SIMOTION Function Manual

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

Advertisement

Example for reading, setting, and activating the DP slave address
END_IF;
IF (1 = neededSetDpAddress) THEN
END_IF;
4.1.2

System behavior

Configuring the DP slave interface
The following should be noted when configuring the SIMOTION device interface that has been
configured as a DP slave:
The configured quantity structure of the data to be exchanged must be identical in both the
DP slave and the higher-level DP master.
Only then can the interface function as a DP slave to the higher-level DP master.
Routing in the communication network
The specific routing information is stored in each device corresponding to the communication
addresses configured there. When the address is changed, the appropriate routing information
no longer remains in the device.
Basic Functions for Modular Machines
Function Manual, 04/2014
// Check if new DP slave address is necessary
IF (retDpSlaveAddress.dpSlaveAddress <> locDpSlaveAddress) THEN
// Need to set new DP slave address
neededSetDpAddress := 1;
ELSE
; //User-defined error response
END_IF;
// Set new DP slave address
locRetVal := _setDpSlaveAddress (
logicalAddressCommunicationAdapter := logAddrDpAdapter,
// Diagnostics address of the PROFIBUS interface
dpSlaveAddress := locDpSlaveAddress
// PROFIBUS address of the local slot
);
IF (0 = locRetVal) THEN
locRetVal := _activateDpSlaveAddress (
logicalAddressCommunicationAdapter := logAddrDpAdapter
// Diagnostics address of the PROFIBUS interface
);
ELSE
; // User-defined error response
END_IF;
Setting the communication addresses via the user program
4.1 Setting the PROFIBUS address
43

Advertisement

Table of Contents
loading

Table of Contents