Notes on the documentation Representation and structure of warnings The following warnings are used in the documentation. Read and follow the warnings. Warnings relating to personal injury: DANGER Hazard with high risk of death or serious injury. WARNING Hazard with medium risk of death or serious injury. CAUTION There is a low-risk hazard that can result in minor injury.
Notes on the documentation Documentation issue status Version Modifications First version Chapter "Technical data" and "PROFINET connection" adapted. CXxxxx-M930/B930 Version: 1.1...
System overview PROFINET System overview PROFINET Beckhoff components PROFINET is the open Industrial Ethernet-standard of the PNO (PROFINET user organization). PROFINET IO describes the exchange of data between controllers and field devices in several real-time classes: RT (software-based real-time) and IRT (hardware-supported isochronous real-time). In addition, further Ethernet traffic can be transmitted in the NRT (non-real-time) time slot of the PROFINET cycle.
Page 9
System overview PROFINET Beckhoff PROFINET components Components Comment Embedded PCs Embedded PC with PROFINET RT Device fieldbus CX8093 interface Embedded PC with optional interface CX50xx-M930 PROFINET RT Controller Embedded PC with optional PROFINET RT Device CX50xx-B930 interface EtherCAT terminals PROFINET IO controller...
System overview PROFINET Technical data – Profinet Optional interface M930 Technical data M930 Fieldbus Profinet RT Controller Data transfer rate 100 Mbaud Bus interface 2 x RJ45 switched Bus devices max. 16 for CX9020-M930 max. 32 for CX50x0-M930 max. 64 for CX51x0-M930 max.
Connection and cabling Connection and cabling PROFINET connection The latest generation of Embedded PCs can be ordered with the optional PROFINET interface (M930/B930). Both Ethernet interfaces are switched and dependent on each other. The optional interface X300 is identified as X300 on the devices and has as black border to identify it. In a PROFINET slave the incoming PROFINET signal is connected to the upper port of the X300 interface.
Connection and cabling Cabling Transmission standards 10Base5 The transmission medium for 10Base5 consists of a thick coaxial cable ("yellow cable") with a max. transmission speed of 10 Mbaud arranged in a line topology with branches (drops) each of which is connected to one network device. Because all the devices are in this case connected to a common transmission medium, it is inevitable that collisions occur often in 10Base5.
Connection and cabling Shielded twisted pair Describes a cable with an outer screen, without defining the nature of the screen any more closely. S/STP Screened/shielded twisted pair (wires are individually screened) This identification refers to a cable with a screen for each of the two wires as well as an outer shield. Industrial Twisted-Pair The structure is similar to that of S/STP, but, in contrast to S/STP, it has only one pair of conductors.
TwinCAT tabs TwinCAT tabs In TwinCAT, information and settings for the PROFINET interface are added under tabs. The main TwinCAT tabs are described in this section. In addition, the section illustrates how the PROFINET interface is displayed in the tree view under TwinCAT. The tree view and the tabs for a PROFINET interface are identical under TwinCAT2 and TwinCAT3.
Page 15
(Application Process Identifier) can be linked with the variables from the PLC program. Double-click on a variable name in the tree view to open the link dialog. The link variables are identified with a small arrow icon. Further information about TwinCAT can be found in the TwinCAT documentation on the Beckhoff website: www.beckhoff.de CXxxxx-M930/B930...
TwinCAT tabs Profinet master 4.2.1 PROFINET Description All the information required for ADS communication with the PROFINET controller is displayed here. AMS NetID protocol: This is the NetID via which the PROFINET controller protocol can be reached via AMS. AMS PortNo protocol: This is the PortNo via which the PROFINET controller protocol can be reached via AMS.
TwinCAT tabs 4.2.2 Sync Task The PROFINET controller protocol must always be linked with a task. The set cycle time is also used for processing the protocol. In theory, the controller can also be processed via a PLC or NC task. However, if a PLC project, for example, is stopped (e.g.
TwinCAT tabs 4.2.3 Settings The Settings tab contains settings that directly concern the PROFINET controller. Description At this point you can configure the network settings for PROFINET. By default, values for IP address, subnet and gateway are already entered, but you can change these.
TwinCAT tabs Profinet slave 4.3.1 PROFINET Description All the information required for ADS communication with the PROFINET device is displayed here. AMS NetID protocol: This is the NetID through which the PROFINET device protocol can be reached via AMS. AMS PortNo protocol: This is the PortNo through which the PROFINET device protocol can be reached via AMS.
TwinCAT tabs 4.3.2 Sync Task The SyncTask triggers the PROFINET task and thus the speed with which the PROFINET communication operates. Pay attention to the system utilization rate of your Embedded PCs. The shorter the PROFINET cycle time is, the higher the total system utilization rate will be. A very high system utilization rate can lead to an ADS connection no longer being triggered often enough and this connection may be interrupted.
TwinCAT tabs 4.3.3 Device Description Information on MAC address, VendorID and DeviceID of the device. This option can be used to extend the name via a PLC program. The extension consists of a three-digit numerical value. The value must be entered in the PLC program as a constant value and must be available at the start of the PLC program.
Parameterization and commissioning Parameterization and commissioning Searching for target systems Before you can work with the devices, you must connect your local computer to the target device. Then you can search for devices with the help of the IP address or the host name. The local PC and the target devices must be connected to the same network or directly to each other via an Ethernet cable.
Page 23
Parameterization and commissioning 5. Mark the device found and click on Add Route. The Logon Information window appears. Enter the user name and password for the CX in the User Name and Password fields and click OK. The following information is set as standard in CX devices: User name: Administrator Password: 1 6.
Parameterization and commissioning Adding a PROFINET slave In the example configuration a CX2020 PROFINET slave with B930 option interface is used. In order to ensure that the PROFINET slave is configured and subsequently detected by the PROFINET master with all inputs and outputs, the PROFINET slave must first be added in TwinCAT.
Page 25
Parameterization and commissioning 6. Select the corresponding DAP module, which the PROFINET master supports, and click OK. 7. Confirm the request whether to enable FreeRun with Yes. ð The PROFINET slave was successfully added in TwinCAT 3 and is displayed in the tree view with the inputs and outputs.
Parameterization and commissioning Configuring process data You can configure the process data to be transferred via PROFINET. Various module types, e.g. Byte, Word, DWord or Real are available in various lengths. The module types are created in the tree view of the System Manager under the API (Application Process Identifier).
Parameterization and commissioning 'Turning' process data The process data are transferred in Intel format as standard. If the data are required in Motorola format, they have to be 'turned' accordingly. This step illustrates how to 'turn' the data in TwinCAT. If the standard format is required, you can skip this step.
Parameterization and commissioning Creating a virtual slave Additional virtual slaves can be created on the same hardware interface. This enables more data to be exchanged with a PROFINET master, or a connection with a second PROFINET master can be established. Each virtual slave is assigned a dedicated address via TwinCAT and is configured like an independent device for the PROFINET master.
Page 29
Parameterization and commissioning ð The virtual PROFINET slave is created in the tree view. You can now configure your own process data for the virtual slave. The MAC address of the virtual slave is editable. Make sure that the MAC address occurs only once in the system.
Parameterization and commissioning Creating a PLC project The next steps describe how to create a PLC project in TwinCAT and add it in the tree view. Prerequisites for this step: • A newly created TwinCAT XAE project. Create a PLC project as follows: 1.
Page 31
Parameterization and commissioning 5. In the tree view right-click on the PLC project, then click on Build in the context menu. ð You have successfully created a PLC project and added the project in TwinCAT. A PLC instance with the variables for the inputs and outputs is created from the PLC project.
Parameterization and commissioning Linking variables Once the PLC project was successfully added in the System Manager, you can link the newly created input and output variables from the PLC project with the inputs and outputs of your hardware. Prerequisites for this step: •...
Parameterization and commissioning Load configuration to CX Once variables are linked, the configuration can be saved and loaded on the CX. This has the advantage that the PLC project is loaded and started automatically when the CX is switched on. The start of the previously created PLC project can thus be automated.
Page 34
Parameterization and commissioning 7. In the context menu click on Autostart Boot Project. The setting is selected 8. Right-click on the project folder in the tree view. 9. In the context menu click on Auto Save to Target as Archive. The setting is selected.
Parameterization and commissioning Adding the PROFINET master The PROFINET master is added in the TwinCAT System Manager in the same way as the PROFINET slave. You can then find all connected slaves via the master. The following section illustrates how to add a PROFINET master in TwinCAT.
Page 36
Parameterization and commissioning 5. Select the PROFINET slaves you want to use and click Add Devices. ð The selected PROFINET slaves are then displayed on the left in the tree view. The PROFINET slaves are assigned IP addresses based on the PROFINET master. If you do not find all PROFINET slaves, check the wiring and search for the PROFINET slaves again.
Error handling and diagnostics Error handling and diagnostics Diagnostic LEDs Table 1: PN diagnostic LED, description of the flashing behavior. Display PROFINET status Meaning green flashing 200ms Power on, startup phase Cxxxx0 200 ms flashing no PROFINET name 1 sec off, 200 ms No IP address DIAG Table 2: DIAG diagnostic LED, description of the flashing behavior.
Error handling and diagnostics Box states Directly below the PROFINET controller there are variables containing general information about the state of the PROFINET communication. Fig. 2: Diagnostic variables DevState, PnIoError and PnIoDiag in the TwinCAT tree view. This data is exchanged between the PROFINET driver and the System Manager. Table 3: DevState, PnIoError and PnIoDiag, description of the variables.
Error handling and diagnostics Cyclic diagnostics The variables PnIoBoxState and PnIoBoxDiag are available for cyclic diagnostics. Fig. 3: Diagnostic variables PnIoBoxState and PnIoBoxDiag in the TwinCAT tree view. These variables are cyclically exchanged with the process image between the PROFINET driver and the System Manager.
Error handling and diagnostics PnIoBoxState Table 4: PnIoBoxState variable, description of the states. Version: 1.1 CXxxxx-M930/B930...
Page 41
Error handling and diagnostics Number Text Description Remedial action / rea- No error No error No error PROFINET Device state PROFINET Device State Not an error, wait machine is in boot mode Machine is still in the start-up phase Device not found Device does not reply to Check connection, device the Identify Request...
Error handling and diagnostics Number Text Description Remedial action / rea- only for EtherCAT For EL6631 only: Check the mode on the gateways: WC-State of EtherCAT WC State is 1 EtherCAT master & slave cyclic EtherCAT frame is (OP?). PnIoBoxDiag In contrast to the State variable, the variable PnIoBoxDiag can be used to display more than one state at the same time, i.e.
All products of the Embedded PC family are CE, UL and EAC certified. Since the product family is continuously developed further, we are unable to provide a full listing here. The current list of certified products can be found at www.beckhoff.com. FCC Approvals for the United States of America...
Beckhoff's branch offices and representatives Please contact your Beckhoff branch office or representative for local support and service on Beckhoff products! The addresses of Beckhoff's branch offices and representatives round the world can be found on her internet pages: http://www.beckhoff.com You will also find further documentation for Beckhoff components there.
Page 45
List of tables List of tables Table 1 PN diagnostic LED, description of the flashing behavior............. Table 2 DIAG diagnostic LED, description of the flashing behavior............Table 3 DevState, PnIoError and PnIoDiag, description of the variables..........Table 4 PnIoBoxState variable, description of the states................. Table 5 PnIoBoxDiag variable, description of the states.
Page 46
List of figures List of figures Fig. 1 Example for a PROFINET topology..................... Fig. 2 Diagnostic variables DevState, PnIoError and PnIoDiag in the TwinCAT tree view....Fig. 3 Diagnostic variables PnIoBoxState and PnIoBoxDiag in the TwinCAT tree view......Version: 1.1 CXxxxx-M930/B930...