System Behavior; Setting The Ip Address (On Ethernet) - Siemens SIMOTION Function Manual

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

Advertisement

Setting the communication addresses via the user program

4.4 Setting the IP address (on Ethernet)

Example with _getActiveNameOfStation, _setNameOfStation, _activateNameOfStation (up to V4.3,
synchronous call)
END_IF;
4.3.2

System behavior

Configuring the PROFINET IO interface
The following should be noted when configuring the PROFINET IO interface of the SIMOTION
device (IO device): The configured quantity structure of the data to be exchanged must be
identical in both the IO device and the higher-level IO controller.
Only then can this interface function as an IO device to the higher-level IO controller.
Routing in the communication network
The specific routing information is stored in each device corresponding to the communication
addresses configured there. After the device name (NameOfStation) has been changed, no
further appropriate routing information remains in the device.
Data exchange broadcast
Controller-controller data exchange broadcast is no longer possible. The data exchange
broadcast partner can no longer be found after the device name (NameOfStation) has been
changed.
Communication networks with PROFIsafe
In a communication network where PROFIsafe is also used, the device names
(NameOfStation) may not be changed in the user program.
4.4
Setting the IP address (on Ethernet)
The IP configurations (IP address, subnet mask, gateway address) can be read in, set, or
changed using the system functions _setIpConfig and _getIpConfig. SIMOTION remains in the
RUN operating mode.
52
// Device name of the PROFINET IO interface
requestMode := REQUEST_TRUE,
// Function will be executed
commandId := locCommandId,
nextCommand := WHEN_COMMAND_DONE
// Synchronous call
);
IF (0 = locRetVal) THEN
locRetVal := _activateNameOfStation (
logicalAddressPnInterface := logAddrPnAdapter
// Diagnostics address of the PROFIBUS interface
);
ELSE
; // User-defined error response
END_IF;
Basic Functions for Modular Machines
Function Manual, 04/2014

Advertisement

Table of Contents
loading

Table of Contents