Skip to main content

Controller – General

Object: PROFINET Controller

The PROFINET Controller, like the slaves, is identified by the station name. In the case of CIFX variants, you can also configure the IP settings here. Otherwise the settings are applied from the superordinate Ethernet node.

Station name

The station name of the device. It is used for unique identification of the device in the network.

Table 4. IP Parameters

IP address

Note: Available for CIFX PROFINET only.

If you insert the controller below an Ethernet adapter, then you need to define the IP parameters in the dialog of the Ethernet adapter.

Subnet mask

The subnet mask used by the device.

Default gateway

The default gateway used by the device.



Table 5. Default Slave IP Parameter

First IP address

Range of IP addresses which CODESYS uses by default when inserting PROFINET Devices into the device tree. If you use the Auto-IP function in the scan dialog, then IP addresses are also used from this range. The next free IP address is selected here.

Last IP address

Subnet mask

Subnet mask for newly added  PROFINET devices.

Default gateway

Default gateway for newly added  PROFINET devices.



Table 6. IO Provider / Consumer Status

Application stop –> Substitute values

When the user stops the application, the provider state for the output data sent by the controller is set to "BAD". Then the slaves set the inputs and outputs to predefined substitute values. For more information, see "CODESYS Default values – PROFINET Substitute values" at the end of this chapter.

Add to I/O mapping

standard icon: The incoming status information is added to the I/O mapping for all modules; provider state for the input data and consumer state for the output data.

Substitute Input-Data

  • Zero

  • Last valid value

If a device does not provide valid input data, then the values (%I) in the local controller application are optionally reset or retain their last valid value



Table 7. Port Data

Peer station/port

Neighboring device with port that is connected to this port

You can accept this setting on the PROFINET Controller Topology tab.

Check cable length

Length of the network cable (in meters)

  • < 10

  • < 25

  • < 50

  • < 100

When the cable length is specified, it is checked when the controller is powered up. An incorrect cable length causes an error message.

Transmission rate

Transmission rate of the connection

Disable fixed rate / autonegotiation

_cds_icon_checked.png: The transmission rate is fixed, automatic detection (autonegotiation) is disabled.

DCP Boundary

_cds_icon_checked.png: DCP multicast messages (Identify, Hello) are not forwarded.

PeerToPeer Boundary

_cds_icon_checked.png: No LLDP messages are sent.

Disable port

_cds_icon_checked.png: The Ethernet port is completely disabled.



Table 8. Watchdog

Enable

Note: Available for CIFX PROFINET only

standard icon: If the CIFX firmware is not set within the given time (for example, in the case of an exception error in the application), then it is reset. The connection is aborted and the slaves switch to their substitute values.

The defaults for the watchdog originate from the device description.



CODESYS Default values – PROFINET Substitute values

PROFINET Devices set their inputs and outputs to predefined substitute values when there is an interruption. These values are defined in the field device in contrast with default values. These values are usually "0", but specific substitute values can also be configured depending on the device.

The substitute values are set in the following cases:

  • The connection is interrupted.

  • The controller sets the provider state for the incoming data to "BAD".

  • Other interruptions occur (for example, exception in host application, incorrect parameterization)

If the Application stop --> Substitute values option is enabled, then the controller sets the provider states to "BAD" at application stop. In this case, the slaves set their substitute values. All incoming data from the controller is ignored (including default values).

If the default values defined in the application should be set for an application stop, then you need to disable this option. Moreover, you should select the Update IO while stop option (in the PLC Settings). Otherwise, the CODESYS PROFINET Controller is stopped.