Interface
PROFINET communication takes place via the switched ports X101 and X102.
The port X001 is not PROFINET, but Ethernet and can be used as a programming interface.
Use the correct IP addresses
|
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 possesses neither a name nor an IP address. Usually the IP address is specified by the PROFINET controller; there are various possibilities for the PROFINET name:
- No name
- Name with DIP switch
- Name by the System Manager
- Name by the PLC program and System Manager
Device settings
MAC address, VendorID and DeviceID are available to you for information and are not editable.
Generate Station Name from Control
With this an extension of the name can be assigned via the PLC program. The extension consists of a three-digit numerical value. To do this, link the PnIoBoxCtrl with the PLC program. The value must be registered as a constant value and must be available when starting the PLC *program. For example, the address of the switch can be read and thus the name of the device formed with the function F_CX80xx_Address.
Example (ST):
Address:=16#FF AND INT_TO_WORD(F_CX80xx_Address(8093));
PnIoBoxCtrl:=Address;
Get Station Name from Tree
This means that the name of the Profinet device will be taken from the System Manager tree.
Register PN IP settings not at the OS
For the CCAT ports the PROFINET IP address is registered in the operating system on delivery. If TwinCAT is in RUN, the device can be accessed in this way via normal TCP/IP mechanisms. If no registered PROFINET IP address is desired in the operating system, this feature can be disabled via the System Manager.
PROFINET State
If you link the PnIoBoxState variable with your PLC program, you can monitor the state of the PROFINET controller with it. The state 0x0005 is the error-free state, i.e. the master is in data exchange with the device (i.e. the CX8093).
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