Siemens SIMOTION Function Manual page 45

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

Advertisement

● The device name (NameOfStation), unique within the project, of the connected PROFINET
● The number of the connected port (value range 1 to 255)
● The number of the slot (detection of the PROFINET IO interface) containing the connected
Exceptions:
● If no PROFINET IO node is connected to the local port, you receive the following return
● If the connected PROFINET IO node only contains a single PROFINET IO interface,
● If the connected PROFINET IO node has not yet been assigned a device name
The syntax of these system functions is described in detail in the List Manual (reference list)
of the SIMOTION devices and in the online help (see index).
For information about the syntax of the device name (NameOfStation), see Setting the device
name (NameOfStation) of an IO device on PROFINET IO (Page 46).
An example of the _getPnPortNeighbour system function is contained in Section "System
functions" for setting the device name (Page 47).
The figure below displays an example for a topology in PROFINET IO. Topology detection is
carried out on the SIMOTION devices for various ports using the _getPnPortNeighbour or
_getPnInterfacePortNeighbour system function. The result is given in the table.
Basic Functions for Modular Machines
Function Manual, 04/2014
IO node
port (value field 0 to 65535)
value:
– As a device name: An empty string
– And as a number for the port and the slot: 16#FFFFFFFF in each case
16#FFFFFFFF will be returned as the number of the slot.
(NameOfStation) which is unique within the project, the return value for the device name
will comprise:
– PROFINET IO node is not a SIMOTION device: The hardware address (MAC address)
will be returned. The MAC address will be shown in the usual notation xx:xx:xx:xx:xx:xx,
where x is a hexadecimal number [0 to 9, A to F].
– PROFINET IO node is a SIMOTION device: A character string containing the device
type and the MAC address hexadecimal numbers will be returned, e.g. SIMOTION-
D-08-00-06-73-6C-E6.
Setting the communication addresses via the user program
4.2 Topology detection in PROFINET IO
45

Advertisement

Table of Contents
loading

Table of Contents