PROFINET interface
PROFINET communication takes place via the switched Ethernet interfaces X101 and X102. The Ethernet interface X001 is not PROFINET but Ethernet and can be used as a programming interface.
PROFINET name and IP address
On delivery, DIP switches 9 and 10 are set to ON and DIP switches 1 to 8 are set to OFF. This means that the PROFINET interface has neither a PROFINET name nor an IP address. The IP address is usually set by the PROFINET controller. There are various options for the specification of the PROFINET name:
- No PROFINET name
- With DIP switch
- TwinCAT System Manager or PLC program
The MAC address, Vendor ID and Device ID are available for your information and cannot be edited.
Generate Station Name from Control
This option can be used to assign an extension to the name via the PLC program. The extension consists of a three-digit numerical value. For this purpose, the variable PnIoBoxCtrl
must be linked to the PLC program. The value must be entered as a constant value and be available when the PLC program is started. For example, the F_CX72xx_Address function can be used to read the address of the switch and form the device name from it.
Example (ST):
Address:=16#FF AND INT_TO_WORD(F_CX72xx_Address(8093));
PnIoBoxCtrl:=Address;
Get Station Name from Tree
With this option, the name of the PROFINET device is taken from the System Manager tree. To do this, DIP switches 9 and 10 must be set to ON and DIP switches 1...8 to OFF.
PROFINET status
If you link the PnIoBoxState
variable with your PLC program, you can use it to monitor the state of the PROFINET controller. The state 0x0005 is the error-free state, i.e. the master is exchanging data with the CX7293 device.
0x0001 = Device is in I/O exchange
0x0002 = Device is blinking
0x0004 = Provider State -> 0 = Stop, 1 = Run
0x0008 = Problem Indicator -> 0 = OK, 1 = Error