PROFINET
Note
See product pages at www.westermo.com for information on PROFINET certified WeOS versions and products. Furthermore, PROFINET support requires an add-on to be installed. Contact your regular Westermo sales channel for more information.
WeOS provides PROFINETâ„¢ according to conformance class B (CC-B). When PROFINET support is enabled in WeOS, it is assumed that all unit management is done via PROFINET (TIA portal), i.e., no configuration via CLI, Web, etc.
Table of contents
PROFINET Adaptions of Default WeOS Behaviour
Factory Default Configuration
The factory default settings are adapted for units with PROFINET enabled to allow them to be discovered via PROFINET and for the PROFINET factory reset functionality to work properly.
- PROFINET settings:
- PROFINET is enabled by default
- The PROFINET interface is set to ‘vlan1’
- Alarm system:
- A PROFINET trigger is defined in the alarm system
- Interface settings:
- Interface ‘vlan1’ has address method ‘inet link-local’ (only). That is, no ‘inet dhcp’ for vlan1 in the PROFINET factory default.
- VLAN settings:
- IGMP snooping is disabled by default on VLAN 1
- MRP:
- MRP is enabled in client mode (MRC) and MRP profile ‘200’.
- The lowest ports (e.g., ethX1 and ethX2 on Viper-212A) are defined as ring ports.
PROFINET for Discovery, Configuration and Status Retrieval
PROFINET can be used to discover and manage WeOS devices. The added management interfaces include PROFINET DCP (link-layer protocol) as well as IP/UDP PROFINET DCE access.
In particular, if the WeOS firewall is enabled, please ensure to add adequate input allow rules for PROFINET DCE (UDP RPC). Default UDP port is 34964 (0x8894), and additional UDP ports are opened starting from 49152 (0xC000).
In the factory default setting, PROFINET interface is ‘vlan1’ and IGMP is disabled on the associated VLAN (VLAN 1). If IGMP snooping is enabled on the VLAN of the PROFINET interface, PROFINET group MAC addresses need to be added to FDB.
IP Settings
WeOS allows PROFINET DCP to set a (static) IPv4 address/netmask on the defined PROFINET interface (default ‘vlan1’). When the address is set via PROFINET DCP, any existing static IP address(es) on the PROFINET interface will be removed.
PROFINET DCP can also be used to the unit’s default IP gateway.
MRP Settings
The factory default setting holds an MRP instance. PROFINET DCE can update the MRP mode (MRM or MRC) and MRP ring ports. It can also create a second MRP instance and its associated settings.
Ethernet Port Settings
PROFINET DCE can update the admin status (enabled/disabled) of Ethernet ports. It can also update the speed/duplex and auto-negotiation settings.
LLDP Behaviour and TLV Content
The content of some of WeOS regular LLDP TLVs are adapted for PROFINET capable WeOS units:
- Chassis Id TLV Subtype (and Value): Locally Assigned Subtype
- Port Id TLV Subtype (and Value): Locally Assigned Subtype
- TTL TLV Value: 20 sec
- Port Description TLV Value: Port Name, e.g., ethX1
In addition, the LLDP packets hold PROFINET specific TLVs.
The LLDP transmission interval is 5 seconds for PROFINET capable units.
Use of IEC 61375 TTDP Not Supported
IEC 61375 is not supported on PROFINET capable WeOS units. That is, the WeOS unit cannot run PROFINET and also act as IEC 61375 ETBN. Although it may be possible to enable TTDP on PROFINET units, this is not supported and the behaviour is undefined.
Managing PROFINET
PROFINET is activated on the device by simple toggling it on, and providing it with a VLAN interface to operate on.
Configuration
In order to enable PROFINET from the CLI access the configuration context in the following manner:
viper-26-d0-80:/#> configure viper-26-d0-80:/config/#> profinet Activating PROFINET with default settings, type 'abort' to cancel. profinet: Invalid settings: No interface specified. viper-26-d0-80:/config/profinet/#>
As can be seen by the prompt, we need to specify the VLAN interface that profinet will serve. By default the interface vlan1 will be available on the device. It is specified as follows:
viper-26-d0-80:/config/profinet/#> iface vlan1 viper-26-d0-80:/config/profinet/#> leave Applying configuration. Configuration activated. Remember "copy run start" to save to flash (NVRAM). viper-26-d0-80:/#>
PROFINET should now be running, this can be verified by typing the following command:
viper-26-d0-80:/#> show profinet PROFINET Enabled, running as PID 6805 Ready for AR connection: No, missing station name, missing IP address No Active Application Relationships Profinet configuration MAC Address : 00:11:b4:26:d0:80 Station-name : IP Address : 0.0.0.0 Netmask : 0.0.0.0 Gateway : 0.0.0.0 Device-vendor: Viper-212A Vendor ID : 0x05c5 Device ID : 0x5300
Note
Optionally the station name can be configured directly on the device. It is also possible to set the IP address of the provided VLAN interface directly, if it is not set using DCP later on.
Status Tools on the Device
The device also provide a number of CLI commands that can be used to gauge specific profinet information from the device during operation. These can be useful for debugging purposes, or simply if a user wants to check the operational status of profinet from a non-engineering tool.
The profinet CLI commands can be found in the following context:
viper-26-d0-80:/#> profinet viper-26-d0-80:/profinet/#> help show config Show basic profinet configuration info show ar-connections Show AR Connection(s) information show states Show AR Connection(s) state information show submodules Show submodules information show scheduler Show profinet scheduler information show diagnosis Show profinet diagnosis show data-check Show profinet data check configuration show data-adjust Show profinet data adjust configuration show im-records Show profinet Identification and Maintenance (I&M) Records show Show a summary of the profinet settings dcp Performing a DCP Identify scan and list ______________________________________________________________________________ See "help all" or "help COMMAND" for more online help. viper-26-d0-80:/profinet/#>
GSDML File Download From the Device
The GSDML file for the associated device can be directly obtained from the device itself. In order to download the file use the Web interface and navigate to Configuration -> System -> Profinet and click the download button.
PROFINET PKG File
In order for the device to know that it should be able to run PROFINET, a special PKG file is applied on the device. By default the provided device should come with such a PKG file already present on the device.
As mentioned, the PKG instructs the device that it is capable of running PROFINET. Further, it also provides the device with its specific PROFINET factory configuration file. In addition, it also includes the correct GSDML file for the device.
Note
This is not a software PKG, it just includes configuration files.
Updating the PROFINET PKG File
It may be necessary to upgrade the PROFINET PKG file. This is something that can easily be done from the Web Interface. Navigate to Maintenance -> PKG.
Note
Important, ensure to remove/purge the current PROFINET PKG file, if it exist, before applying the new one. To do this in the web click the Trash can icon.
Click Import, a new window will show, select Browse and navigate to the location of the PKG file, then press apply.
Note
It is best to do a factory reset (see below) of the device after a new PROFINET PKG file has been applied.
Factory Reset
A factory reset can be performed in a number of different ways as described in the Factory Reset section. PROFINET provides an additional method: sending a PROFINET DCP Set with Option 5 (Control) and suboption 6 (Factory reset). This will perform a full factory reset of the device and reboot, in the same manner as the CLI and Web methods.