Festo CPX-SF34, CPX-SF35 User Manual

Manual electronics
CPX control block
Type CPX−SF34 Type CPX−SF35
PCWORX integrated Network protocol PROFINET IO
Manual
570 541 en 1007NH [748 167]
Contents and general instructions
Original de. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Edition en 1007NH. . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . .
Designation P.BE−CPX−SF34+SF35−EN. . . . . . . . . . . . . . . . . .
Order no. 570 541. . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . .
© (Festo AG&Co. KG, D73726 Esslingen, 2010) Internet:http://www.festo.com E−mail: service_international@festo.com
The reproduction of this document and disclosure to third parties and the utilisation or communication of its
contents without explicit authorization is prohibited. Offenders will be held liable for compensation of damages. All rights reserved, in particular the right to carry out patent, utility model or ornamental design registrations.
Festo P.BE−CPX−SF34+SF35−EN en 1007NH
I
Contents and general instructions
PROFINET IO®, PHOENIX CONTACT®, PCWORX®, SPEEDCON®, TORX®, TÜV® and VDE are registered trademarks of the respective trademark owners in certain countries.
®
II
Festo P.BE−CPX−SF34+SF35−EN en 1007N H
Contents and general instructions

Contents

Intended use VI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Target group VII . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Service VII . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Instructions on this description VIII . . . . . . . . . . . . . .
Important user instructions IX . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . .
1. Installation 1−1 . . . . . . . . . . . . . . . . . . .
1.1 General installation instructions 1−3 . . . . . . . . . . . . . . .
1.2 Electrical connection and display elements 1−4 . . . . . . . . . . . . . . . . . . . . . . . . . .
1.3 Dismantling and mounting 1−5 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1.4 Setting the DIL switches, using the memory card 1−7
1.4.1 Removing and attaching the cover for DIL switches
and memory card 1−7 . . . . . . . . . . . . . . . . . . .
1.4.2 Settingthe DIL switches 1−8 . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1.4.3 Use of the memory card 1−10 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1.5 Connecting to the network 1−11
1.5.1 General information about PROFINET networks 1−11 . . . . . .
1.5.2 Overview of connection technology, network connectors and cables . . . 1−13
1.5.3 Pin allocation of the network interface of the CPX−SF34 1−15 . . . . . . . . .
1.6 Ensuring protection class IP65/IP67 1−16 . . . . . . . .
1.7 Pin assignment of power supply 1−17 . . . . . . . . . . . . . . . . . . . . . .
2. Commissioning 2−1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2.1 Brief instructions on commissioning 2−3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2.2 Application cases 2−5 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2.2.1 Application
2.2.2 Application case Stand Alone 2−6 . . . . . . . . . . . . . . . . . . . . . . . . . . .
2.3 Modules of the CPX terminal 2−7 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2.3.1 Electrical and pneumatic modules
2.4 General remarks on configuration 2−9 . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2.4.1 Distinction of the application cases 2−10 . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
case Remote Controller PROFINET 2−5 . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . .
. . . . . . .
. . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . .
. . . . . . . . . . . . . . .
. . .
in PC WORX 2−8 . . . . . . . . . . . . . . . .
. . . . . .
Festo P.BE−CPX−SF34+SF35−EN en 1007NH
III
Contents and general instructions
2.4.2 Starting up with configuration differences 2−10 . . . . . . . . . . . . . . . . . . .
2.4.3 Create network connection 2−11 . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . .
2.5 Configuration with PC WORX  application case Remote Controller 2−14 . . . . . . .
2.5.1 First option: Reading in the configuration 2−15 . . . . . . . . . . . . . . . . . . . .
2.5.2 Second option: Manual configuration 2−18 . . . . . . . . . . . . . . . . . . . . . . .
2.5.3 Generating variables, assigning process data
Create communication program 2−20 . . . . . . . . . . . . . . . .
. . . . . . . . . . . .
2.6 Configuration with PC WORX  application case Stand Alone 2−25 . . . . . . . . . . . .
2.6.1 Hardware configuration 2−26 . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . .
2.6.2 Generating variables and assigning process data 2−28 . . . . . . . . . . . . . .
2.6.3 Configuration example 2−32 . . . . . . . . . .
2.7 Parametrisation 2−34 . . . . . . . . . . . . . . . . . . . . . . . . .
2.7.1 Parametrisation for PROFINET 2−35 . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . .
. . . . .
2.7.2 CPX parametrisation 2−36 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2.7.3 Application example for the parametrisation 2−39 . .
2.8 Installing GSDML and FDCML files 2−40 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . .
. . . .
2.9 Procedure for replacing a control block 2−40 . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3. Diagnosis 3−1 . . . . . . . .
3.1 Overview of diagnostic possibilities 3−3 .
3.2 Diagnostics via LEDs 3−4 . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . .
3.2.1 Display of the network−specific LEDs NF, TP1, TP2 3−6 . . . . . . . . . . . . .
3.2.2 Display of
the CPX−/controller specific LEDs PS, PL, SF, M 3−7 . . . . . . .
3.3 Diagnostics via global CPX system variables 3−9 . . . . . . . . . . . . . . . . . . . . . . . . .
3.3.1 CPX status bits 3−10 . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3.3.2 Error numbers of the variable CPX_MODULE_ERROR_NUMBER 3−11 . .
3.4 Diagnostics over
3.4.1 Diagnostics via Diag+ 3−12 . . . . . . . . . . . . . . . . . . . . . . . . . . . .
PROFINET (only for Remote Controller) 3−12 . . . . . . . . . . . . . . .
. . . . . . . .
3.5 Error characteristics/Fail safe 3−15 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3.5.1 Behaviour of
A. Technical appendix A−1 . . . . . . . . . . . . . . . . . . .
the PLC with undervoltage 3−16 . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . .
A.1 Common technical data of control block CPX−SF34/35 A−3 . . . . . . . . . . . . . . . . .
A.2 Technical
IV
data of control block CPX−SF34 A−5 . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Festo P.BE−CPX−SF34+SF35−EN en 1007N H
Contents and general instructions
A.3 Technical data of control block CPX−SF35 A−5 . . . . . . . . . . . . . . . . . . . . . . . . . . . .
A.4 Function blocks for the CPX−SF34/35 A−6 . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . .
B. Index B−1 . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Festo P.BE−CPX−SF34+SF35−EN en 1007NH
V
Contents and general instructions

Intended use

The CPX−SF34/35 control block documented in this description is intended exclusively for use as a station (I/O device) in the PROFINET IO or as Stand Alone" control block.
Note
The CPX−SF34/35 may be used only in combination with CPX metal interlinking blocks.
The CPX terminal must only be used as follows:
as intended in an industrial environment
in original condition without modification (only the
in faultless technical condition.
conversions or modifications described in the documentation supplied with the product are permitted).
The limit
values specified for pressures, temperatures,
electrical data, torques etc. should be observed.
If conventional accessory components such as sensors and actuators are connected, the specified limits for pressures, temperatures, electrical data, torques etc. should be observed.
Observe the regulations of the trade associations, the German Technical Control Board (TÜV), the VDE specifications
relevant national regulations.
or the
VI
Festo P.BE−CPX−SF34+SF35−EN en 1007N H
Contents and general instructions
Warning
· Use only PELV circuits as per IEC/DIN EN 60204−1 for the
· Also comply with the general requirements for PELV
· Use only power sources that guarantee reliable
Due to the use of PELV power units, protection against electric shock (protection against direct andindirectcontact) is guaranteed in accordance with IEC/DIN EN 60204−1 (electrical equipment of machines, general requirements).

Target group

electric power supply (protective extra−low voltage, PELV).
circuits laid down in IEC/DIN EN 60204−1.
electrical isolation of the operating voltage as per IEC/DIN EN 60204−1.

Service

Festo P.BE−CPX−SF34+SF35−EN en 1007NH
This manual is intended exclusively for technicians trained in control and automation technology, who have experience in installing, commissioning, programming and diagnosing programmable logic controllers (PLC) and field bus systems.
In case of technical problems, please contact technical support of PHOENIX CONTACT GmbH & Co. KG, D−32823 Blomberg, Germany.
E−mail: automation@phoenixcontact.com
VII
Contents and general instructions

Instructions on this description

This description contains information about installation and configuration of the CPX control block for PROFINET as well as PROFINET−specific information regarding parametrisation, commissioning, programming and diagnosis of a CPX terminal in a PROFINET network.
Further information about PROFINET can be obtained on the World Wide Web at
 www.profinet.com
Also observe the following PROFINET−specific document:
PROFINET
Installation Guide
General basic information on the mode of operation, mounting, installation and commissioning of CPX terminals can be found in the CPX system description (P.BE−CPX−SYS...).
Information about further CPX modules can be found in the manual for the respective module.
An overview of the structure of th
e CPX terminal user
documentation is contained in the CPX system description.
Product specific information about the control system (IPC,PLC or I/O controller) can be found in themanufacturer’sproductdocumentation.
VIII
Festo P.BE−CPX−SF34+SF35−EN en 1007N H
Contents and general instructions

Important user instructions

Danger categories
This manual contains instructions on the possible dangers which may occur if the product is not used correctly. These instructions are marked (Warning, Caution, etc.), printed on a shaded background and marked additionally with a picto gram. A distinction is made between the following danger warnings:
Warning
This means that failure to observe this instruction may result in serious personal injury or damage to property.
Caution
This means that failure to observe this instruction may result in personal injury or damage to property.
Festo P.BE−CPX−SF34+SF35−EN en 1007NH
Note
This means that failure to observe this instruction may result in damage to property.
The following pictogram marks passages in the text which describe activities with electrostatically sensitive compo nents.
Electrostatically sensitive components may be damaged if they are not handled correctly.
IX
Contents and general instructions
Marking special information
The following pictograms mark passages in the text containing special information.
Pictograms
Information: Recommendations, tips and references to other sources of information.
Accessories: Information on necessary or sensible accessories for the Festo product.
Environment: Information on environment−friendly use of Festo products.
Text markings
· The bullet indicates activities which may be carried out in
any order.
1. Figures denote activities which must be carried out in the numerical order specified.
 Hyphens indicate general activities.
X
Festo P.BE−CPX−SF34+SF35−EN en 1007N H
Contents and general instructions
The following product−specific terms and abbreviations are used in this description:
Term/abbreviation
A / Q Digital output
A0
h
AB / QB Output byte
Bus node Create the connection to certain networks or fieldbusses, pass on
Byte Number of address words assigned by the CPX terminal
Control block As with "bus node", but also contains a PLC
CPX Terminal Complete system consisting of CPX modules with or without
CPX modules Common term for the various modules which can be incorporated into a
DIL switch Miniature switch; dual−in−line switches consist of several switch
E / I Digital input
EAs / IO Digital inputs and outputs
EB / IB Input byte
FMT Festo Maintenance Tool (CPX−FMT); configuration and programming
Significance
Hexadecimal numbers are marked by a low−set h"
control signals to the connected modules and monitor their functioning
pneumatics
CPX terminal
elements with which settings can be made
software for CPX modules for start−up and service purposes
Tab.0/1: Specific terms and abbreviations  part 1
Festo P.BE−CPX−SF34+SF35−EN en 1007NH
XI
Contents and general instructions
Term/abbreviation Significance
IPC Industrial PC
I/O modules Collective term for the CPX modules which provide digital inputs and
PLC Programmable Logic Controller, also designated as system control or
Pneumatic interface The pneumatic interface is the interface between the modular electrical
PROFINET IO Fieldbus system based on Industrial Ethernet for data exchange be
PROFINET IO RT PROFINET IO in the version with real−time protocol
PROFINET IO IRT PROFINET IO in the version with isochronous real−time protocol
QB / AB Output byte
QX / AX Digital output
outputs
controller for short
periphery and the pneumatics
tween the system control (PLC/IPC), system controller (e.g. CPX−FEC) and field devices (I/O devices) or drives and valve terminals; further information: www.profibus.com/pn, www.profibus.de
(typical cycle time: 10ms; typical application: production controller)
(typical cycle time: <1ms; typical application: drive controller)
Tab.0/2: Specific terms and abbreviations  part 2
XII
Festo P.BE−CPX−SF34+SF35−EN en 1007N H

Installation

Chapter 1
1−1Festo P.BE−CPX−SF34+SF35−EN en 1007NH
1. Installation

Contents

1. Installation 1−1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1.1 General installation instructions 1−3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1.2 Electrical connection and display elements 1−4 . . .
1.3 Dismantling and mounting 1−5 . . . . . . . . . . . . . . . . . . . . . . . . .
1.4 Setting the DIL switches, using the memory card 1−7 . . . . . . . . . . . . . . . . . . . . .
1.4.1 Removing and attaching the cover for DIL
and memory card 1−7 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1.4.2 Settingthe DIL switches 1−8 . . . . .
1.4.3 Use of the memory card 1−10 . . . . . . . . . . . . . . . .
1.5 Connecting to the network 1−11 . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1.5.1 General information about PROFINET networks 1−11 . . . . . . . . . . . . . . .
1.5.2 Overview of connection technology, network connectors and cables . . . 1−13
1.5.3 Pin allocation of the network interface of the
1.6 Ensuring protection class IP65/IP67 1−16 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1.7 Pin assignment of power
supply 1−17 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . .
switches
. . . . . . . . . . . . . . . . . .
. . . . . . . . . . . .
CPX−SF34 1−15 . . . . . . . . .
1−2
Festo P.BE−CPX−SF34+SF35−EN en 1007N H
1. Installation

1.1 General installation instructions

Warning
Before carrying out installation and maintenance work, switch off the following:
 compressed air supply  the operating voltage supply for the electronics/sensors  the load voltage supply for the outputs/valves
In this way, you can avoid:
 uncontrolled movements of loose tubing lines.
 uncontrolled movements of the connected actuators
 undefined switching states of the electronics
Festo P.BE−CPX−SF34+SF35−EN en 1007NH
Caution
The CPX control block contains electrostatically sensitive components.
· Therefore, do not touch any components.
· Observe the handling specifications for electrostatically
sensitive devices.
You avoid malfunctions of and damage to the electronics by doing so.
Information about mounting the CPX terminal can be found in the CPX system manual (P.BE−CPX−SYS−...).
1−3
1. Installation

1.2 Electrical connection and display elements

The following connection and display elements can be found on the CPX−control block:
1 PROFINET−specific
network status LEDs and CPX−specific LEDs
6
5
2 Memory card
3 Mains
connections: CPX−SF34: 2 x push−pull RJ45 CPX−SF35: 2 x SCRJ
4
3
4 DIL switch
(PLC boot settings)
5 Unused, always
seal with cover cap
6 Name plate with
MAC−ID
Fig.1/1: Connection and display components of the CPX−SF34/35
Note
To ensure protection class IP65/IP67, the unused network connections must be closed with cover caps. These must be ordered separately (type CPX−M−AK−C, part no. 548753, see also section 1.6).
1
2
3
1−4
Festo P.BE−CPX−SF34+SF35−EN en 1007N H
1. Installation

1.3 Dismantling and mounting

Note
The CPX−SF34/35 must be the first module in the CPX terminal (counted from the left).
When installed, the CPX control block is located in an interlinking block of the CPX terminal (see Fig.1/2).
Dismantling Dismantle the control block as follows:
1. Loosen the 4 screws in the control block with a TORX screwdriver size T10.
2. Pull the control block carefully and without tilting away from the contact rails of the interlinking block.
1 CPX control block
4
2 Interlinking block
3 Contact rails
4 TORX T10 screws
3
Fig.1/2: Dismantling/mounting of the control block
Festo P.BE−CPX−SF34+SF35−EN en 1007NH
1
2
1−5
1. Installation
Note
For the CPX−SF34/35, use only metal interlinking blocks and suitable screws:
For metal interlinking blocks:
screws with metric thread.
Mounting Mount the control block as follows:
1. Check seal and seal surfaces
2. Insert the control block without tilting into the first interlinking block of the CPX terminal (counted from the left).
3. Carefully press the control block
into the interlinking
block up to the stop.
4. Place the screws so that the self−cutting threads can be used.
5. Tighten the screws with a size T10 TORX screwdriver with a torque of 0.9 ... 1.1 Nm.
1−6
Festo P.BE−CPX−SF34+SF35−EN en 1007N H
1. Installation

1.4 Setting the DIL switches, using the memory card

In order to set the DIL switches and change the memory card, first the cover must be removed.
Caution
The CPX control block contains electrostatically sensitive components.
· Therefore, do not touch any components.
· Observe the handling specifications for electrostatically
sensitive devices.
You avoid malfunctions of and damage to the electronics by doing so.

1.4.1 Removing and attaching the cover for DIL switches and memory card

Festo P.BE−CPX−SF34+SF35−EN en 1007NH
You need a screwdriver in order to remove or attach the cover.
Note
Observe the following instructions when removing or attaching the cover:
· Disconnect the power supply before removing the cover.
· Make sure that the seal is seated correctly when
attaching the cover.
· Tighten the two fastening screws at first by hand and
then with max. 0.4 Nm.
1−7
1. Installation

1.4.2 Settingthe DIL switches

With the DIL switches (see Fig.1/3), choose the boot settings of the PLC:
Procedure:
1. Switch off the power supply.
2. Remove the cover (see section 1.4.1).
3. Make the required settings (see Tab.1/1).
4. Attach the cover again (see section 1.4.1).
1 DIL switch 1:
Boot settings of the PLC
2 DIL switch 2:
Reserved
1
Fig.1/3: Function of the DIL switches in the control block
1−8
2
Festo P.BE−CPX−SF34+SF35−EN en 1007N H
1. Installation
Boot settings of the PLC
Choose the boot settings of the PLC with the switch element DIL 1.1 of the DIL switch
1: PC WORX" or AUTORUN" or
formatting of the memory card:
DIL switch
Setting Function
All DIL switches: OFF (factory setting)
DIL 1.1: ON DIL 1.2: OFF DIL 2.1: OFF DIL 2.2: OFF
DIL 1.1: Any DIL 1.2: ON DIL 2.1: OFF DIL 2.2: OFF
Operating status of the PLC: PC WORX" The start of the user program is controlled via PC WORX.
Operating status of the PLC: AUTORUN" The boot program starts as soon as the CPX−SF34/35 is supplied with voltage.
Formatting the memory card:
1. Set DIL 2.1 to ON.
2. Execute POWER
3. Set DIL 2.1 back to OFF.
1)
OFF/ON The memory card is now formatted.
Tab.1/1: Boot settings of the PLC with DIL switch 1
Note
A requirement for automatic starting of the Boot program with AUTORUN is that there are no deviations between the actual and nominal configuration (see section 2.4.2).
Festo P.BE−CPX−SF34+SF35−EN en 1007NH
1−9
1. Installation

1.4.3 Use of the memory card

Caution
Risk of malfunctions or damage. Inserting or removing the memory card while the power
supply is switched on can result in malfunctions of or damage to the memory card.
· Disconnect the power supply before you insert or
remove the memory card.
The memory card serves as carrier of the boot program for system start as well as carrier of the user programs and configuration data. The PROFINET device name is not stored on the memory card of the CPX−SF34/35.
Note The memory card must always be plugged in when the CPX−SF34/35 is started!
Replacing the memory card
1−10
The memory card is under a cover (see Fig.1/1). You need a screwdriver in order to remove or attach this cover.
Festo P.BE−CPX−SF34+SF35−EN en 1007N H
1. Installation

1.5 Connecting to the network

1.5.1 General information about PROFINET networks

Note
Components with PROFINET interfaces may be operated only innetworks where all connected network components are supplied with PELV power supplies or integrated power supplies with similar protection.
Installation guidelines
The installation guidelines can be obtained via the PROFINET User Organisation:
www.profinet.com
Festo P.BE−CPX−SF34+SF35−EN en 1007NH
Observe the instructions there.
1−11
1. Installation
Use of switches and routers
The switch integrated into the control block makes it possible to distribute the network into several segments.
With the help of additional switches and routers, the network can be divided into additional segments. Thus, it is possible to structure the PROFINET network and implement greater network expansions.
Irrespective of the network structure, the expansion
of a
PROFINET segment for 100Base−TX must not exceed 100m.
Switches and routers for Industrial Ethernet are available on the market from various companies. There are many IP20, IP65 or IP67 components.
 Unmanaged Switches:
For small Ethernet solutions with a low network load or minimal requirements for deterministics.
 Managed switches:
Networks can also be diagnosed
and controlled, redundant paths recognised and communication solutions segmented.
1−12
Festo P.BE−CPX−SF34+SF35−EN en 1007N H
1. Installation

1.5.2 Overview of connection technology, network connectors and cables

Note
In case of faulty installation or high transmission rates, data transmission errors can occur as a result of signal reflections and attenuations.
Causes of transmission faults may be:  incorrect screened connection  branches  transmission over long distances  unsuitable cables Observe the cable specification!
Cable specification
Notestrain relief
If the CPX terminal is mounted onto the moving part of a machine, the network cable on the moving part must be provided with strain relief. Also observe the relevant re gulations in EN60204 part 1.
Crossover detection The CPX−SF34 supports crossover detection (Auto−MDI").
You can optionally
use patch cables or crossover cables for
connecting your control block to the network or a PC.
· Make sure that the function
autonegotiation/autocrossover" on the other devices is activated when you use patch and crossover cables in the system.
Festo P.BE−CPX−SF34+SF35−EN en 1007NH
1−13
1. Installation
Control block Connection technology Network connectors Cable specification
CPX−SF34 2 x push−pull socket, RJ45,
Cu, AIDA−conforming, corresponding to IEC61076−3−117, IEC61076−3−106, IEC60603−7
Plug from Festo Type FBS−RJ45−PP−GS forEthernet lines with cable diameter 5...8mm (22 AWG)
 Cable type:
screened Industrial Ethernet cable (at least category Cat 5)
 Cable length:
max. 100m between network stations (corresponding to specifications for Ethernet networks, ISO/IEC11801, ANSI/TIA/EIA−568−B, PROFINET Installation Guide)
Tab.1/2: CPX−SF34: Overview of connection technology, network connectors and
cables
Control block
CPX−SF35 2 x push−pull socket, SCRJ,
Connection technology Network connectors Cable specification
AIDA conforming
Plug from Festo, type FBS−SCRJ−PP−GS for POF fibre−optic cable, 650nm, corresponding to I EC61754−24
 POF fibre optic cable  Cable length:
max.segment length 50m between network participants (corresponding to specifications for Ethernet networks, ISO/IEC 11801, PROFINET Installation Guide)
Tab.1/3: CPX−SF35: Overview of connection technology, network connectors and
cables
1−14
Festo P.BE−CPX−SF34+SF35−EN en 1007N H
1. Installation
1.5.3 Pin allocation of the network interface of the CPX−SF34
There are two push−pullRJ45 copper sockets (AIDA−conforming) on the CPX−SF34 for the network connection:
RJ45 socket
456
7
8
Pin Signal Explanation
123
1 2 3 4 5 6 7 8 Metal covering
TD+ TD RD+   RD   FE
Transmission data (Transmit Data, TD) + Transmitted data  Receive data (Receive Data, RD) + Reserved Reserved Received data  Reserved Reserved Screening/functional earth (Shield/functional earth, FE)
Tab.1/4: Pin allocation of the network interfaces of the CPX−SF34
Connection with plug from Festo
Connect the CPX−SF34 to the network with Festo plugs, type FBS−RJ45−PP−GS. The plug is designed for Ethernet lines with cable diameters of 5 ... 8 mm.
To comply with protection class IP65/IP67:
 Use Festo plugs.
 Seal unused interfaces (see section 1.6).
Festo P.BE−CPX−SF34+SF35−EN en 1007NH
1−15
1. Installation

1.6 Ensuring protection class IP65/IP67

Note
To ensure protection class IP65/IP67, the unused network connections must be closed with cover caps. These must be ordered separately (see Tab.1/5).
Connection
CPX−SF34:
TP1, TP2 (RJ45)
CPX−SF35:
TP1, TP2 (SCRJ)
Unused M12 socket Cover cap from Festo,
1)
if connection is not used
2)
included in scope of delivery; connection must always be covered!
Port IP65/IP67 Cover IP65/IP67
Plug from Festo, Type FBS−RJ45−PP−GS
Plug from Festo, Type FBS−SCRJ−PP−GS for POF fibre−optic cable
Cover cap from Festo, Type CPX−M−AK−C, part no. 548753
Type ISK−M12
2)
Tab.1/5: Connections and covers for protection class IP65/IP67
1)
1−16
Festo P.BE−CPX−SF34+SF35−EN en 1007N H
1. Installation

1.7 Pin assignment of power supply

Warning
· Use only PELV power circuits according to IEC/DIN
EN60204−1 (Protective Extra−Low Voltage, PELV) for the power supply. Also take into account the general requirements for PELVpower circuits according to IEC/DINEN60204−1.
· Use only power sources that guarantee reliable
electrical isolation of the operating voltage as per IEC/DINEN60204−1.
Through the use of PELV circuits, protection against electric shock (protection against direct and indirect contact) is ensured in accordance with IEC/DINEN60204−1 (electrical equipment of machines, general requirements).
Festo P.BE−CPX−SF34+SF35−EN en 1007NH
The current consumption of a CPX terminal
depends on the
number and type of integrated modules and components.
Read the information on power supply as well as on the earthing measures to be carried out in the CPX system manual.
1−17
1. Installation
)
System supply and additional supply
Plug connector (top view of device)
7/8"−5POL
2
3
4
Push−pull
1
5
1
The CPX terminal is supplied with operating and load voltage via the interlinking blocks with system and additional power supply. Further interlinking blocks are in preparation.
Note
The CPX−SF34/35 may be used only in combination with CPX metal interlinking blocks.
Interlinking block with
System power supply Type CPX−M−GE−EV−S...
1: 0V
/ 0V
val
2: 0V
out
el/sen
3: FE (earth) 4: 24V
el/sen
5: 24V
1: 24V 2: 0V 3: 24V 4: 0V
val
el/sen
el/sen
val
/ 0V
val
/ 24V
/ 24V
out
out
out
5: FE (earth)
Additional power supply Type CPX−M−GE−EV−Z...
1: 0V
out
2: not connected 3: FE (earth) 4: not connected 5: 24V
out
1: not connected 2: not connected 3: 24V
out
4: 0V
out
5: FE (earth)
Valve supply
V
: Operating voltage for electronics/sensors
el/sen
V
: Load voltage for outputs
out
V
: Load voltage for valves
val
FE: Functional earth
1)
Interlinking blocks with forwarding function or system power supply are identically constructed.
Tab.1/6: Pin allocation for system and additional power supply
1−18
Festo P.BE−CPX−SF34+SF35−EN en 1007N H

Commissioning

Chapter 2
2−1Festo P.BE−CPX−SF34+SF35−EN en 1007NH
2. Commissioning

Contents

2. Commissioning 2−1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2.1 Brief instructions on commissioning 2−3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2.2 Application cases 2−5 . . . . . . . . . . .
2.2.1 Application case Remote Controller PROFINET 2−5 . . . . . . . . . .
2.2.2 Application case Stand Alone 2−6 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2.3 Modules of the CPX terminal 2−7 . . . . .
2.3.1 Electrical and pneumatic modules in PC WORX 2−8 . . . . . . . . . . .
2.4 General remarks on configuration 2−9 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2.4.1 Distinction of the application cases 2−10 . .
2.4.2 Starting up with configuration differences 2−10 . . . . . . . . . . . . . . . . . . .
2.4.3 Create network connection 2−11 .
2.5 Configuration with PC WORX  application case Remote Controller 2−14 . . . . . . .
2.5.1 First option: Reading
2.5.2 Second option: Manual configuration 2−18 . . . . . . . . . . . . . . . . . . . . . . .
2.5.3 Generating
Create communication program 2−20 . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2.6 Configuration with PC WORX  application case Stand Alone 2−25 . . . . . . .
2.6.1 Hardware configuration 2−26 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2.6.2 Generating variables and assigning process data 2−28 . . .
2.6.3 Configuration example 2−32 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2.7 Parametrisation 2−34 . .
2.7.1 Parametrisation for PROFINET 2−35 .
2.7.2 CPX parametrisation 2−36 . . . . . . . . . . . . . . . . . . . . .
2.7.3 Application example for the parametrisation 2−39 . . . . . . . . . . . . . . . . .
2.8 Installing GSDML and FDCML files 2−40 . . . . . . .
2.9 Procedure for replacing a control block 2−40 . . . . . . . . . . . . . . . . . .
variables, assigning process data
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . .
. . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
in the configuration 2−15 . . . . . . . . . . . . . . . . . . . .
. . . . .
. . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . .
2−2
Festo P.BE−CPX−SF34+SF35−EN en 1007N H
2. Commissioning

2.1 Brief instructions on commissioning

This section provides a quick summary of the important steps for commissioning the CPX−SF34/35. Observe the detailed information in the other sections of this chapter.
Brief instructions on commissioning
1. Check the setting of the DIL switches (section 1.4.2). You can set the following:
· Automatic starting of the Boot program on the
memory card (AUTORUN) or start through PC WORX.
· Formatting the memory card
2. Make sure that a memory card is placed in the control block (section 1.4.3).
3. Connect the control block to the network or connect it directly to your PC (section 1.5).
Festo P.BE−CPX−SF34+SF35−EN en 1007NH
4. Switch on the power supply for the CPX terminal (section 1.7).
5. Create the network connection: Set the IP addresses of your PC and of the CPX−SF34/35 (section 2.4.3).
6. This is how you configure the Remote Controller application case:
· Create a project for a higher−order controller with a
template in PC WORX. Read in configuration of the CPX−SF34/35 or create it manually (section 2.5).
· Generate variables and assign process data
(section 2.5.3).
· Create programs for communication between
CPX−SF34/35 and PLC (program examples in section 2.5.3)
2−3
2. Commissioning
· If desired, set parameters for the CPX terminal
(section 2.7).
· Create user program.
7. This is how you configure the Stand Alone application case:
· Create project for the CPX−SF34/35 with a template in
PC WORX. Configure CPX terminal hardware in the project (section 2.6).
· Generate variables and assign process data
(section 2.6.2).
· If desired, set parameters for the CPX terminal
(section 2.7).
· Create user program
8. Information on diagnosis and error elimination can be found in chapter 3.
2−4
A list of the function blocks usable for the CPX−SF34/35 for your user program can be found in section A.4.
Festo P.BE−CPX−SF34+SF35−EN en 1007N H
2. Commissioning

2.2 Application cases

You can operate the CPX control block in two different ways: Remote Controller PROFINET and Stand Alone.

2.2.1 Application case Remote Controller PROFINET

PLC
Programming PC with PC WORX
TCP/IP
PROFINET
2
1
1 CPX terminal with user program
2 Configuration and programming via PC, communication
in operation with higher−order controller via PROFINET (64 byte inputs/64 byte outputs)
Fig.2/1: Application case Remote Controller PROFINET
The CPX terminal is controlled by a user program in the CPX control block. Through PROFINET, the CPX control block communicates with a higher−order controller. This uses 64 I/O bytes. TCP/IP in PC WORX and through FDCML/GSDML files.
Configuration and programming takes place via
Festo P.BE−CPX−SF34+SF35−EN en 1007NH
A detailed description of this configuration can be found in section 2.6.
2−5
2. Commissioning

2.2.2 Application case Stand Alone

Programming PC with PC WORX
2
1
1 CPX terminal with user program
TCP/IP
2−6
2 Configuration and programming via PC WORX; after
that, the CPX terminal runs in stand−alone mode.
Fig.2/2: Application case Stand Alone
The CPX terminal is controlled in stand−alone mode by a user program in the CPX control block. During operation, it is not necessary to communicate with other stations. The CPX terminal is then works independently, e.g. at manual workstations. Configuration and programming takes place with FDCML files in PC WORX.
A detailed description of this configuration can be found in section 2.5.
configured with PC WORX via TCP/IP and
Festo P.BE−CPX−SF34+SF35−EN en 1007N H
2. Commissioning

2.3 Modules of the CPX terminal

The CPX terminal can include electrical and pneumatic modules.
Note
Every module occupies a certain number of IO bits, bytes or words in the context of module communication. The total number of available bytes per CPX terminal is limited (max. 512 inputs and 512 outputs). Also, certain functions, like status bits, reduce thenumber of available IO bytes.
Take account of this fact for terminal.
Information on the CPX modules can be found in the corresponding descriptions for the modules (P.BE−CPX−EA−..., P.BE−CPX−AX−..., pneumatic descriptions, etc.).
the planning of your CPX
Festo P.BE−CPX−SF34+SF35−EN en 1007NH
The number of allocated IO bytes for each module in PC WORX can be found in the Data Sheet". The data sheet is displayed as followed:
· In PC WORX in the Device Catalog", click on the module
with the right mouse key. Then, in the context menu, click on Display Data Sheet"
2−7
2. Commissioning

2.3.1 Electrical and pneumatic modules in PC WORX

The modules of the CPX terminal are organised in the fol lowing subfolders in the Device Catalog" in PC WORX:
 Analogue
 Digital
PLC
 Pneumatic"
 Pneumatic interface"
For the application case Stand Alone, it is necessary to: Configure the modules according to their physical sequence in the CPX terminal from left to right  correspondingly from
bottom in PC WORX, see section 2.6.
top to
2−8
The valves of the CPX terminal are correspondingly configured differently by type:
 Valves of type 44/45 (VTSA/VTSA−F), type 03 (Midi/Maxi)
or type 12 (CPA): For expansion of the valve side, only one configuration is required for the pneumatic interface. In the pneumatic interface, the
number of valve coils is set using a DIL switch. You can find corresponding entries in the Pneumatic interface" subfolder in the Device Catalog" of PC WORX.
 Valves of type 32/33 (MPA/MPA−F pneumatic modules):
A configuration is required for each pneumatic module of type MPA. For the various types of MPA pneumatic modules, you
will find corresponding entries in the Pneumatic" subfolder in the Device Catalog" of PCWORX. From the technical point of view, the individual MPA pneumatic modules each represent an electric module for controlling the attached valves.
Festo P.BE−CPX−SF34+SF35−EN en 1007N H
2. Commissioning

2.4 General remarks on configuration

The following sections describe the important configuration steps with the configuration and programming software PCWORX (from version 6.00 SP1) in the setting for the
English language.
Caution
Danger of malfunctions, damage or injuries to people Before commissioning, ensure that the connected el
ements (e.g.actuators) do not perform any undesired or uncontrollable movements.
Recommendation: If the safety concept of your machine/system permits, commission the CPX terminal with both operating voltages  but without compressed air. You can then test the CPX terminal without triggering undesired reactions.
Festo P.BE−CPX−SF34+SF35−EN en 1007NH
Fundamental operation of the PC WORX software is assumed to be known in the following. Information on this can be found in the corresponding documentation from PHOENIX CONTACT.
2−9
2. Commissioning

2.4.1 Distinction of the application cases

Use the preinstalled templates in PC WORX. Configuration takes place in different ways, depending on the application case.
Application case Remote Controller: Configure a
higher−order controller with one of the templates (see section 2.5).
Application case Stand Alone: Start configuration with
the template CPX−SF34−PCW (see section 2.6).
The GSDML (application case Remote Controller) and FDCML files (application case Stand Alone) are already preinstalled. Instructions on updating these files can be found in section2.8.
or SF35 from the tab CPX"

2.4.2 Starting up with configuration differences

Note
In case of deviations of the actual configuration from the target configuration, the CPX terminal with the control block CPX−SF34/35 does not start up in PC WORX.
During project download via [Online] [Project Control...] in the CPX−SF34/35 in the online diagnostics of PC WORX, a defective configuration is displayed as PLC in target/actual configuration".
· Check the configuration of the I/Os on the CPX terminal.
2−10
error Differences
Festo P.BE−CPX−SF34+SF35−EN en 1007N H
2. Commissioning

2.4.3 Create network connection

The following steps serve to create a network connection between your CPX terminal and your PC.
1. Set your PC’s network card to a fixed IP address. To do this, in the Windows Control Panel use the settings for the network connections (here shown only as a summary in Fig.2/3).
1
1 Set IP address and confirm with OK
Fig.2/3: In the Windows Control Panel: Set fixed IP address for the PC (for network
connections")
2. Set the CPX−SF34/35 to an IP address of your choice. To do this, use the program NetNames+ from the AUTOMATIONWORX Software Suite by PHOENIX CONTACT (see Fig.2/4).
Festo P.BE−CPX−SF34+SF35−EN en 1007NH
2−11
2. Commissioning
1
3
2
4
1 Select network card to which the
control block is connected
2 Click on Refresh
4 Under Options", permanent storage
must be checked
5 Transmit with Send"
3 Click in address field and enter IP
address directly
Fig.2/4: With the program NetNames+: set the IP address of the CPX−SF34/35
3. Check the network connection in PC WORX:
· Click in the menu on [Extras] [PROFINET Configuration...]
· Set another network card, if necessary (see Fig.2/5).
2−12
Festo P.BE−CPX−SF34+SF35−EN en 1007N H
5
2. Commissioning
Fig.2/5: In PC WORX: Check or set the network card used
Festo P.BE−CPX−SF34+SF35−EN en 1007NH
2−13
2. Commissioning
2.5 Configuration with PC WORXapplication case Remote Controller
Create new project 1. Create a new project in PC WORX: Menu [File] [New
Project...]
2. For the Remote Controller application case, select your higher−order controller in the New Project" window. Confirm with OK or double click on the entry.
2−14
Fig.2/6: Create new project by selecting a controller
(Fig. shows an example)
3. Save the project with [File] [Save Project as...] This is how to assign a project name.
4. Change into the Bus Configuration Workspace": Menu [View] [Bus Configuration] or with the symbol shown to the left.
Festo P.BE−CPX−SF34+SF35−EN en 1007N H
2. Commissioning
5. Make sure that the following windows are opened in PCWORX:
 Bus Structure
 Device Catalog
 Device Details
6. Make sure that the standard resource (STD_RES) is listed under Resource". If necessary, move the standard resource from Unconnected" to Resource".

2.5.1 First option: Reading in the configuration

For this configuration option, your program PC with PC WORX must be connected via the network to your CPX terminal (seesection 2.4.3).
Read in configuration 1. In the Bus Structure" window, click with the right
mouse key on the PROFINET" entry and then to the left on Read PROFINET...". A window is displayed with a list
of the PROFINET controllers and devices available in the network (seeFig.2/8).
Fig.2/7: Read in current configuration
Festo P.BE−CPX−SF34+SF35−EN en 1007NH
2−15
2. Commissioning
12 3 4
1
Select controller
2 Flashing to indentify CPX terminal
Fig.2/8: Result of a read−in configuration
Optional: flashing 2. Use the Flashing On" function in order to identify your
CPX terminal in the network (the LEDs TP1 and TP2 of the CPX−SF34/35 then flash simultaneously). This function helps you with the allocation of the Device Name. You can also use there is a data connection to the CPX terminal (seeFig.2/8).
2−16
3 Do not select filter
4 Add controller to current configuration
with Insert"
this function to test whether
Festo P.BE−CPX−SF34+SF35−EN en 1007N H
2. Commissioning
3. Click in the Read PROFI NET" window on the controller that you would like to configure and then on Insert". A window is displayed for selection between the CPX−SF34 and CPX−SF35 (see Fig.2/9).
1
Select control block CPX−SF34 or CPX−SF35
1
Fig.2/9: Select controller
4. Click on the type of your control block and confirm with OK. This adds the chosen controller to the configuration.
5. Close the window Read PROFINET" (Fig.2/8) with Close".
Device name 6. Use the automatically created device name or issue your
own device name: Device Details" window in the PROFIN ET a PROFINET device name for the CPX−SF34/35 (seeFig.2/11).
7. When reading in the configuration, 64 IO bytes are automatically created
8. Variable generation and process data assignment takes place manually and is described in section 2.5.3.
Festo P.BE−CPX−SF34+SF35−EN en 1007NH
Settings" tab,
2−17
2. Commissioning

2.5.2 Second option: Manual configuration

Manual configuration (see Fig.2/10)
Device name, IP address (see Fig.2/11)
1. In the Device Catalog" window, open the folder Festo\CPX\PLC.
2. Pull the entry CPX−SF34−PCW (PNIO−DEVICE)" into the Bus Structure" window to the right next to the PROFINET entry.
3. In the Device Details" window in the PROFINET Settings" tab, assign a PROFINET device name for the CPX−SF34/35 (see
Fig.2/11). Assign a unique device
name or use the automatically created standard name.
4. Set the IP address and, if necessary, the subnetwork mask of the CPX−SF34/35. Instructions on setting the IPaddress can be found in section 2.4.3.
5. Variable generation and process data assignment takes place manually and is described in the following section2.5.3.
2−18
Festo P.BE−CPX−SF34+SF35−EN en 1007N H
2. Commissioning
1
2
The Device Catalog" is usually displayed in PC WORX below the Bus Structure" window.
1 Configuration with drag & drop 2 Result of configuration
Fig.2/10: Manual configuration of the CPX−SF34/35 for Remote Controller operation
Fig.2/11: Entry of device name 1, IP address 2 and subnetwork mask 3
Festo P.BE−CPX−SF34+SF35−EN en 1007NH
1
2
3
2−19
2. Commissioning

2.5.3 Generating variables, assigning process data Create communication program

First carry out the configuration as in section 2.5.1 or 2.5.2.
Generating variables with data type 64 IO bytes
Before the process data of the CPX−SF34/35 created during the configuration can be assigned to the program variables, these variables must be generated.
1. Change into the IEC Programming Workspace": Menu [View] [IEC Programming] or with the symbol shown to the left.
2. First generate a variable type for 64 byte:
2−20
· Double click in the project tree under Project\Data Types
on sys_flag_types"
· Click in the menu on [Build] [Make] or press the F9 key.
The data type is generated.
· Double click on Global Variables" in the project tree
under Project\Physical Hardware\... A variable list is displayed in the right window.
· In the variable list, make a right click on the Default"
line and click on Insert variable". Repeat this step once.
You have now generated 2 new variables.
Festo P.BE−CPX−SF34+SF35−EN en 1007N H
2. Commissioning
· Change the variable type: Click on the entry
PND_IO_64" in the selection list under Type" Repeat this last step for the 2nd variable.
You have now generated 2 new variables with 64 bytes each: NewVar1 and NewVar2.
In the next step, the process data of the CPX−SF34/35 is assigned to these variables.
Festo P.BE−CPX−SF34+SF35−EN en 1007NH
2−21
2. Commissioning
Assignment of the process data
1. For assignment of the process data, change into the Process Data Workspace": Menu [View] [Process Data] or with the symbol shown to the left.
In the Process Data Assignment" window, below the Symbols/Variables" tab, the folder STD_RESŪ is displayed in the directory tree (see fig. left).
2. Click on Default" in the folder STD_RES". The newly created variables are displayed below the window.
3. In the right window (shows the hardware/bus structure) under PROFINET, click on the element EA64:Ū". The process data of the CPX−SF34/35 are displayed below the window.
4. Pull the process data of the right window into the left window onto the lines of the variables (marked individually or jointly, see Fig.2/12).
Fig.2/12: Assignment of the process data to the variables of the PLC by drag & drop
This assigns the process data of the CPX−SF34/35 to the variables of the PLC. In the next section, you will find programs for communication between the PLC and CPX−SF34/35.
2−22
Festo P.BE−CPX−SF34+SF35−EN en 1007N H
2. Commissioning
Programs for communication
In the last two sections, you generated variables and assigned them to the process data in the PC WORX project of the CPX−SF34/35. Now, in both the project of your PLC and in the project of the CPX−SF34/35, create programs that ensure communication between the two.
Communication program for the
PLC
1. Create a program for communication in the project of your PLC (e.g.ILC350). The following program example uses the ST language.
ST
1 tempvar0:=NewVar1[0];
2 tempvar1:=NewVar1[1];
3 NewVar2[0]:=WORD_TO_BYTE(ONBOARD_INPUT);
Line Explanation
1 Process data received by the CPX−SF34/35 via PROFINET.
2 CPX status bits received by the CPX−SF34/35 via PROFINET.
3 Transfer of the ONBOARD_INPUTs via PROFINET to the CPX−SF34/35.
The data received via PROFINET by the CPX−SF34/35 were assigned to the variable NewVar1" (see fig. 2/12). Since NewVar1" is a byte array, access to byte 0 takes place via NewVar1[0]". Located here, in the case of a successful PROFINET connection, are the data that were copied in the CPX−SF34/35 project into the byte 0 in the system variable PND_S1S1_OUTPUTS.
Correspondingly reversed to line 1, the following applies for the variable NewVar2": Through this variable, data are sent from the PLC to the CPX−SF34/35 and are received from it in the system variable PND_S1S1_INPUTS.
Tab.2/1: Explanations on the above program example for the PLC
Festo P.BE−CPX−SF34+SF35−EN en 1007NH
2−23
2. Commissioning
Communication program for the CPX−SF34/35
2. Create a program for communication in the project of your CPX−SF34/35. In the following program example,
 the data to be transferred via PROFINET are copied into
the system variable PND_S1S1_OUTPUTS (here with the example of a CPX−8DE module and the CPX status bits) and
data to be received via PROFINET from the system
 the
variable PN D_S1S1_INPUTS are read out.
ST
1 Q_2_D08:=I_1_DI8;
2 PND_S1S1_OUTPUTS[0]:=I_1_DI8;
3 PND_S1S1_OUTPUTS[1]:=CPX_STATUSBITS;
4 tempvar0:=PND_S1S1_INPUTS[0];
Line Explanation
1
2 Send process data of the CPX−8DE module to the PLC via PROFINET.
3 Send CPX status bits to the PLC via PROFINET.
4 Receive process data of the ONBOARD_INPUTs of the ILC350 via PROFINET
Since PND_S1S1_OUTPUTS" is a byte array, access to byte 0 takes place via PND_S1S1_OUTPUTS[0]"
Access to byte 1 takes place via PND_S1S1_OUTPUTS[1]"
Tab.2/2: Explanations on the above program example for the CPX−SF34/35
The two above program examples permit communication between the PLC (e.g. ILC350) and the CPX−SF34/35.
· Supplement these programs with your automation
programs that use tempvar0" and tempvar1".
2−24
Festo P.BE−CPX−SF34+SF35−EN en 1007N H
2. Commissioning
2.6 Configuration with PC WORXapplication case Stand Alone
Create new project 1. Click in PC WORX in the menu on [File] [New Project...]
The window New Project" is displayed.
2. For the application case Stand Alone: Click on the CPX"tab. In the standard case, use the prepared template: Create the new project with a double click on CPX−SF34..." or SF35. If you want to use other settings than those listed in Tab.2/3, configure your project with the Project Wizard" (not shown here).
Settin
g Template CPX−SF34Ū/35Ū
Festo P.BE−CPX−SF34+SF35−EN en 1007NH
Project name, memory path
Programming language Function Block Diagram (FBD)
PLC type ARM_L_40
Resource CPX
Task DEFAULT
Untitled" C:\Documents and Settings\ All Users\Application Data\...
Tab.2/3: Settings in the template CPX−SF34/35
3. Change into the Bus Configuration Workspace": Menu [View] [Bus Configuration] or with the symbol shown to the left.
The project was created in PC WORX (see fig. left).
4. Save the project with [File] [Save Project as...]. With this you can assign a project name.
2−25
2. Commissioning
Check network connection, set IP address
1. Click in the Bus Structure" window on the upper entry of the CPX−SF34/35
2. In the Device Details" window in the IP Settings" tab, set the IP address and, if necessary, the subnetwork mask of the CPX−SF34/35. Instructions on setting the IPaddress can be found in section 2.4.3.
3. Also set the device name in this

2.6.1 Hardware configuration

1. In the Device Catalog" window, open the folder Festo\CPX... The modules are grouped in subfolders. Open the corresponding subfolders for the modules that you would like to configure.
2. Configure correspondingly the module sequence in your CPX terminal:
· Pull the modules from the Device Catalog" into the
window.
Bus Structure" window under the entry of the CPX−SF34/35 (see Fig.2/13).
2−26
Festo P.BE−CPX−SF34+SF35−EN en 1007N H
2. Commissioning
123
1 Modules grouped in subfolders in the Device Catalog
2 Pay attention to the symbol of the mouse pointer (see point 3 in the text)
3 Configured modules
Fig.2/13: Configuration with drag & drop. (The Device Catalog" is usually displayed in
PC WORX below the Bus Structure" window.)
Festo P.BE−CPX−SF34+SF35−EN en 1007NH
3. Pay attention to the symbol of the mouse pointer when configuring. The modules are entered in the correct sequence in the list only when the lower symbol appears (see fig. left). Always drag the next module to the last configured module.
4. The sequence of the configured modules (from top to bottom) must correspond to in the CPX terminal (from left to right).
the sequence of the modules
2−27
2. Commissioning

2.6.2 Generating variables and assigning process data

First carry out the configuration (see section 2.6.1). With configuration of the CPX modules, process data are automatically created and must be assigned as follows to the variables of your user program.
Generate variables
1. Change into the IEC Programming Workspace": Menu [View] [IEC Programming] or with the symbol shown to the left.
2. Create or load a user program.
3. Generate the necessary variables for inputs and outputs as follows (here shows using the example for a CPX−8DE− and CPX−8DA module):
2−28
· Double click on Global Variables" in the left window in
the directory Project\Physical Hardware\... A variable list is displayed in the right window.
· In the variable list, make a right click on the Default"
line and click on Create variable set".
Festo P.BE−CPX−SF34+SF35−EN en 1007N H
2. Commissioning
· Input a name for the variables and end it with a hash
mark, e.g. Input#". Confirm with OK. This creates 8 variables Input0 ... Input7" with the type Bool as standard.
· Repeat the last two steps in this example for the outputs
with Output#".
You have now created 8 variables each for the inputs and outputs. In the next step, the process data of the input and output modules of the CPX terminal are assigned to these variables.
Assignment of the process data
1. For assignment of the process data, change into the Process Data Workspace" : Menu [View] [Process Data] or with the symbol shown to the left.
Festo P.BE−CPX−SF34+SF35−EN en 1007NH
2. Click in the right window on the entry of the CPX− SF34/35.
In the left window, below the Symbols/Variables" tab, the folder STD_RESŪ is displayed in the directory tree (see fig. left).
3. Click on Default" in the folder STD_RES".
The newly created variables are displayed below the window.
2−29
2. Commissioning
4. Click in the right window (shows the hardware) on the first CPX module (here in the example 8DI). The process data of the module are displayed below the window.
5. Mark in the list of the process data in the right window the first 8 entries (click on each with pressed Ctrl key or other
Windows standard procedure). The last line
~DI8" must not be marked.
6. Drag the process data of the right window into the left window onto the lines of the variables Input0" ... Input7" (see Fig.2/14).
Fig.2/14: Assignment of the process data of the CPX−8DE module to the variables of the
PLC by drag & drop
7. Click in the right window on the next module in the module list (here in the example 8DO).
8. Drag the process data of this module as in steps 5 and 6 onto the lines
Output0" Ū Output7"
9. Carry out this assignment accordingly for all process data of all modules of your CPX terminal.
This assigns the process data of the CPX terminal to the variables of the PLC.
2−30
Festo P.BE−CPX−SF34+SF35−EN en 1007N H
2. Commissioning
Alternative: Automatic generation and assignment of variables
You can also automatically generate and assign the variables by module as follows.
1. Change into the Process Data Workspace".
2. Click in the right window (shows the hardware) on the entry of the CPX−SF34/35.
In the left window, below the Symbols/Variables" tab, the folder STD_RESŪ" is displayed in the directory tree (see fig. left).
3. Click once on Default" in the folder STD_RESŪ".
4. Click in the right window on the first CPX module for which you would like to generate the variable assign ment. The process data of the module are displayed below the window.
5. Mark in the list of the process data in the right window the first 8 entries (click on each with pressed Ctrl key). The last line ~DI8" must not be marked.
Festo P.BE−CPX−SF34+SF35−EN en 1007NH
6. Press Ctrl+E or Create Variable" in the context menu. In the left window, a new entry Auto" is displayed in the
STD_RESŪ".
folder
7. Click on Auto" to see the assignment list.
8. Carry out steps 4 ... 7 for each module in the configuration.
2−31
2. Commissioning

2.6.3 Configuration example

Module no.: 0
1
8DI 8DI 4DO 2AO
12
1 Control block CPX−SF34
23456
2AI
DIL: 8A
3
3 VTSA pneumatics
2 Pneumatic interface (with DIL switch
set to 8DA)
Fig.2/15: CPX example terminal with VTSA pneumatics
The configuration of the example terminal in PC WORX shows Fig.2/16.
2−32
Festo P.BE−CPX−SF34+SF35−EN en 1007N H
2. Commissioning
12
1 Configuration
2 Setting of the monitoring system parameter (see section 2.7.2)
Fig.2/16: Configuration of the sample terminal from Fig.2/15
Festo P.BE−CPX−SF34+SF35−EN en 1007NH
2−33
2. Commissioning

2.7 Parametrisation

You can set the reaction of the CPX terminal individually by parameterisation. The basis for the ability to parametrise the CPX−Terminals via PC WORX are the corresponding GSDML/FDCML files.
The following parametrisation variants are distinguished:
 System parametrisation, e.g.deactivating error messages
etc.
 Module parametrisation (module−specific and
channel−specific), e.g.module monitoring, settings for errors, adjustment of debouncing times
for the inputs etc,
A detailed description of the individual parameters as well as basic information about application can be found in the CPXsystem description (P.BE−CPX−SYS−..).
2−34
Parameter lists for the various CPX modules can be found in the corresponding descriptions for the modules (P.BE−CPX−EA−..., P.BE−CPX−AX−..., etc.).
Festo P.BE−CPX−SF34+SF35−EN en 1007N H
2. Commissioning

2.7.1 Parametrisation for PROFINET

For PROFINET, you can parametrise whether a PROFINET alarm should be output in diagnosis (characteristics during diagnosis, Alarm Behavior").
Characteristics during diagnosis
1. Change into the Bus Configuration Workspace".
2. Click in the Bus Structure" window on the lower entry of the CPX−SF34/35 (see fig. left).
3. Click in the Device Details" window on the Device parameters" tab (1 in Fig.2/17)
4. Set the parameter as desired 2.
12
Fig.2/17: Parameter Alarm Behavior"
Festo P.BE−CPX−SF34+SF35−EN en 1007NH
2−35
2. Commissioning

2.7.2 CPX parametrisation

In the project of your CPX−SF34/35, you can set the following parameters for the CPX terminal:
 Monitoring system parameter
 Module parameters
Setting monitoring system parameter
1. Change into the Bus Configuration Workspace" to set
2. Click in the Bus Structure" window on the lower entry
parameters. Setting of system and module parameters is displayed in the following sections as an example.
of the CPX−SF34/35 (see fig. left). In the Device Details" window, a list of system parameters is displayed in
the
lower area of the CPX Settings" tab (see Fig.2/18).
2−36
3. Double click on the desired parameter. A list with the possible values is opened.
4. Modify the parameter by clicking on the desired value in the Value" column.
Festo P.BE−CPX−SF34+SF35−EN en 1007N H
2. Commissioning
Fig.2/18: Setting monitoring system parameter
Note
Monitoring system parameter KZS/KSA/KZV, U The short−circuit /overload and undervoltage diagnostic
messages for the complete CPX terminal can be suppressed using the monitoring system parameter.
The settings made separately for each module with the CPX module parameter monitoring are not affected by the setting of the system parameters monitoring.
Additional information on parametrisation can be the CPX system manual (P.BE−CPX−SYS−..) in Appendix B.
OUT/VAL
found in
:
Festo P.BE−CPX−SF34+SF35−EN en 1007NH
2−37
2. Commissioning
Setting module parameters
1. Click in the Bus Structure" window on the entry of the module that you would like to parametrise (see Fig. left).
2. Click in the Device Details" window on the Device parameters" tab (see Fig.2/19)
3. Set the desired parameters, as shown in Fig.2/19.
12
1 Selecting parameter group 2 Setting parameters
Fig.2/19: Setting module parameters
Note
Module parameters can refer to:  Properties of the complete module  Properties of an individual channel of a module
2−38
Festo P.BE−CPX−SF34+SF35−EN en 1007N H
2. Commissioning

2.7.3 Application example for the parametrisation

1
Input for 1stsensor
21
(with default parametrisation)
2 Parametrised
input for 2ndsensor (see text)
1. Sensor
2. Sensor
Fig.2/20: Application example for parametrisation of input debouncing time and signal
stretching time on the 2nd sensor
Festo P.BE−CPX−SF34+SF35−EN en 1007NH
In the above application, packages are transported on a fast−moving conveyor belt.
The input for the 2nd sensor is parametrised as follows for improvement of signal recording and processing:
 The input debouncing time is reduced from 3ms (factory
setting) to 0.1ms: Recording of shorter signals is possible. This parameter is set for the complete module.
 Signal stretching time is set to 50ms: Reliable recording
of the signals by the controller. The value of this parameter is set for the complete module, but it must be activated/deactivated separately for each input channel.
2−39
2. Commissioning

2.8 Installing GSDML and FDCML files

The GSDML and FDCML files are already preinstalled in PCWORX. Processing and updating of these files is only required when there are updated versions.
Procurement source Current GSDML or FDCML files can be found here:
 www.festo.com/fieldbus
Information on installation of the files can be found in the PCWORX documentation from PHOENIX CONTACT.

2.9 Procedure for replacing a control block

The memory card serves as the project carrier. With this, a control block can be conveniently replaced. The PROFINET device name is not stored on the memory card of the CPX−SF34/35.
Replacing the memory card
2−40
Note
Risk of operative malfunctions or damage. Inserting or removing the memory card while the power
supply is switched on can result in operating malfunctions of or damage to the memory card.
· Disconnect the power supply before you insert or
remove the memory card.
The memory card is under a cover (see Fig.1/1). You need a screwdriver in order to remove or attach this cover.
Procedure:
1. Switch off the power supply.
2. Remove the cover (see section 1.4.1).
3. Remove the memory
card from the control block.
Festo P.BE−CPX−SF34+SF35−EN en 1007N H
2. Commissioning
4. Replace the control block (see section 1.3).
5. Insert the memory card in the new control block.
6. Attach the cover again (see section 1.4.1).
7. Switch the power supply back on. When AUTORUN is activated (see section 1.4.2), the Boot project stored on the memory card starts.
8. If necessary, assign the PROFINET device name for the new control block and set the IP address again.
9. Start the automation program if necessary.
Festo P.BE−CPX−SF34+SF35−EN en 1007NH
2−41
2. Commissioning
2−42
Festo P.BE−CPX−SF34+SF35−EN en 1007N H

Diagnosis

Chapter 3
3−1Festo P.BE−CPX−SF34+SF35−EN en 1007NH
3. Diagnosis

Contents

3. Diagnosis 3−1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3.1 Overview of diagnostic possibilities 3−3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3.2 Diagnostics via LEDs 3−4 . . . . .
3.2.1 Display of the network−specific LEDs NF, TP1, TP2 3−6 . . . .
3.2.2 Display of the CPX−/controller specific LEDs PS, PL, SF, M 3−7 . . . . . . .
3.3 Diagnostics via global CPX system variables 3−9 . . . . . . . . . . . . . . . . . .
3.3.1 CPX status bits 3−10 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3.3.2 Error numbers of the variable CPX_MODULE_ERROR_NUMBER 3−11 . .
3.4 Diagnostics over PROFINET (only for Remote Controller) 3−12 . . . . . . . . . . . . . . .
3.4.1 Diagnostics via Diag+ 3−12 . . . . . . . . . . . . . . . .
3.5 Error characteristics/Fail safe 3−15 . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3.5.1 Behaviour of the PLC with undervoltage 3−16 . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . .
. . . . . . .
. . . . . . . . . . . . . . . . . . . .
. . . . . . . . .
.
3−2
Festo P.BE−CPX−SF34+SF35−EN en 1007N H
3. Diagnosis

3.1 Overview of diagnostic possibilities

The CPX terminal provides extensive and user−friendly possibilities for diagnostics and error handling. The following options are available depending on the configuration:
Diagnostics
Brief description Advantages Detailed
option
LED display The LEDs show configuration
Diagnostics via global CPX system variables/ status bits
Diagnostics via PROFINET
errors, hardware errors and network errors directly.
The status bits are stored in PCWORX in a global system variable. They supply coded common diagnostic messages. 4 additional system variables give additional diagnostic information.
Diagnostics according to PROFINET standard with the diagnostics program Diag+ from the AUTOMATIONWORX Software Suite
Fast on−the−spot error detection.
Access to error messages in the PLC user program, independent of the interface and IOController.
Diagnostics via the network. Error detection in the online mode of the configuration software.
Tab.3/1: Overview of the diagnostic options of the CPX terminal
Note
Note that the diagnostic information shown can depend on the settings (see section 1.4.2) as well as on the parametrisation (see section 2.7) of the CPX terminal.
description
Section 3.2
Section 3.3
Section 3.4
Festo P.BE−CPX−SF34+SF35−EN en 1007NH
3−3
3. Diagnosis

3.2 Diagnostics via LEDs

LEDs for diagnosing the CPX terminal are available on the control block as well as on the individual modules.
The meaning of the LEDs on the electric modules can be found in the description for the relevant module.
LEDs of the CPX−SF34/35
The LEDs on the cover indicate the operating status of the CPX control block.
1 Network−specific
LEDs:
NF: Network Failure
TP1: Link/Traffic 1
TP2: Link/Traffic 2
2 CPX−/controller−
specific LEDs:
PS: Power system
PL: Power load
SF: System error
M: Motion/RUN
Fig.3/1: LEDs of the CPX−SF34/35
TP1
TP1
NF
NF
PS
PL
SF
MTP2
PS
PL
SF
MTP2
1
2
3−4
Festo P.BE−CPX−SF34+SF35−EN en 1007N H
3. Diagnosis
The LEDs are shown in their various states as follows:
illuminated ; flashing ; off;
Normal operating status
In normal operating status, the following LEDs are lit: PS, PL and, if applicable, also TP1, TP2 and M (see Tab.3/2). The SF and NF LEDs do not light.
The M−LED lights when a user program runs.
LED display
Operating
status
NF
TP1
TP2
1)
Only when a user program is running (Motion/RUN)
2)
Only if connection is used: (off: connection made to the PROF INET IO controller (when NF−LED off ), flashing: Data transmission is running)
PS
PL
SF
M
The following LEDs are lit: PS PL
1)
M The following LEDs are not lit: SF NF  TP1/TP2
2)
Normal
Tab.3/2: Normal operating status
Festo P.BE−CPX−SF34+SF35−EN en 1007NH
3−5
3. Diagnosis
3.2.1 Display of the network−specific LEDs NF, TP1, TP2
The LED NF is relevant only in the Remote Controller application case or for configuration of Stand Alone.
NF (network error)  only in the application case Remote Controller PROFINET
LED (red) Sequence Status Error handling
ON
OFF
LED is off
ON
OFF
LED illuminated
No error or application case Stand Alone
Network connection not OK  possible causes:  Device name or device
number not correct  Defective IO Controller  Interrupted, short−circuited
· Check:
 The device name and device
number  The IO Controller  The network connection
or faulty network connection
TP1, TP2 (Link/Traffic Por t 1, 2)
LED (green) Sequence Status Error handling
ON
OFF
LED is off
ON
OFF
LED illuminated
ON
OFF
LED flickers or
1)
flashes
1)
Appears as lit in the case of fast flickering. The light intensity depends on data traffic.
ON
OFF
If NF−LED is illuminated: No
physical network connection
If NF−LED is off: Connection
made to the PROFINET IO controller.
Network connection OK
 Flickering: Data transmission
is running (traffic)
 Both LEDs are flashing:
Module location
· Check network connection/
network cable
· None
Module location: e.g. for fault finding or during configuration (section 2.5)
Tab.3/3: Error diagnostics using the LEDs NF and TP1/TP2
3−6
Festo P.BE−CPX−SF34+SF35−EN en 1007N H
3. Diagnosis
3.2.2 Display of the CPX−/controller specific LEDs PS, PL, SF, M
PS (power system)  power sensor/logic supply
LED (green) Sequence Status Error handling
LED illuminated
LED flashing
ON
OFF
ON
OFF
No error, operating voltage/ sensor supply applied
Operating voltage/ sensor supply outside the tolerance range
1. Eliminate short circuit/overload
2. Dependent on the parametrisation:
· The sensor supply voltage will be
switched on again automatically after the short circuit has been eliminated (default). The PLC of the CPX−SF34/35 does not restart automatically; see section 3.5.1!
· Power OFF/ON required
ON
OFF
LED is off
The operating voltage/ sensor supply is not applied
Check the operating voltage
connection of the electronics
PL (power load)  power load supply (outputs/valves)
LED (green) Sequence Status Error handling
LED illuminated
LED flashing
ON
OFF
ON
OFF
No error, load voltage applied
Load voltage outside tolerance range
None
1. Eliminate undervoltage
2. Dependent on the parametrisation:
· The load voltage supply will be
switched on again automatically after the undervoltage has been eliminated (default)
· Power OFF/ON required
Tab.3/4: Error diagnostics using the LEDs PS and PL
Festo P.BE−CPX−SF34+SF35−EN en 1007NH
3−7
3. Diagnosis
SF (system fail)  system error
LED (red) Sequence Status Error handling
LED is off
LED illuminated
LED flashing 1x, 2x, 3x
ON
OFF
ON
OFF
ON
OFF ON
OFF ON
OFF
No error
Run−time error of the controller
System error (CPX peripherals)
· Check your user program
· perform restart, if necessary
· format memory card, if necessary
See CPX system description chapter Diagnostics and error handling"
Tab.3/5: Error diagnostics using the SF LED
M (Motion/RUN)
LED (yellow) Sequence Status Significance
ON
OFF
LED is off
ON
OFF
LED flashing
User program of the PLC is not running
User program of the PLC is not running
IEC−61131 run−time system not ready for operation
IEC−61131 runt−time system successfully initialised. Controller in the STOP condition
ON
OFF
LED illuminated
User program of the PLC is running
Tab.3/6: Messages of the LED M
3−8
Controller in the RU N condition
Festo P.BE−CPX−SF34+SF35−EN en 1007N H
3. Diagnosis

3.3 Diagnostics via global CPX system variables

The CPX terminal with CPX−SF34/35 makes 5 global system variables available for user−specific diagnostics.
1
2
1 Status bits
2 Additional diagnostic information for localisation of the error
Fig.3/2: Global system variables for diagnostic purposes
The individual system variables mean:
 CPX_STATUSBITS: 8 status bits for displaying common
diagnostic messages (global error messages, see section3.3.1).
Festo P.BE−CPX−SF34+SF35−EN en 1007NH
 CPX_FIRST_FAULTY_MODULE: Number of the first faulty
module
 CPX_MODULE_ERROR_NUMBER: Error number for
definition of the error type (see section 3.3.2)
 CPX_FIRST_FAULTY_CHANNEL: Channel number of
first channel with error
 CPX_CHANNEL_ERROR_NUMBER: Error number for
definition of the error type of the first channel with error
Evaluate the system variables as follows:
· Link the variables in your user program or
· Look at the variables in the Debug mode with PC WORX.
the
3−9
3. Diagnosis

3.3.1 CPX status bits

The significance of the status bits is shown by Tab.3/7. If all status bits = 0, no error is reported.
Bit
Diagnostic information
Description
if bit = logic 1
0 Error at valve or pneumatic
module
1 Error at output module
2 Error at input module
3 Error at analogue module/
technology module
4 Undervoltage Type of error
5 Short circuit/overload
6 Wire break
7 Other errors
Module type in which an error has occurred
Tab.3/7: Status bits of the CPX−SF34/35
Example In the example for the following error diagnostics,
CPX_STATUSBITS includes the value 24
Value of the status bits
24h = 00100100 Bit 2 and bit 5 supply logic 1  Error at input module
Status Diagnostics
:
h
 Short circuit/overload
3−10
Tab.3/8: Example for error diagnostics with status bits
Festo P.BE−CPX−SF34+SF35−EN en 1007N H
3. Diagnosis

3.3.2 Error numbers of the variable CPX_MODULE_ERROR_NUMBER

The following table shows a list of the most important error numbers that are stored in the global CPX system variable CPX_MODULE_ERROR_NUMBER (see Fig.3/2). With this you can execute a detailed diagnosis.
Value
0 No error
1 General diagnostics
2 Short circuit/overload
3 Wire break
4 Short circuit actuator supply
5 Undervoltage
6Ū8 Reserved
9 Lower limit exceeded
10 Upper limit exceeded
11 Short circuit at valve
12 Reserved
13 Wire break valve
14Ū15 Reserved
Error type
(see description for the relevant module)
Tab.3/9: Error numbers for diagnostics with the system
variable CPX_MODULE_ERROR_NUMBER
Festo P.BE−CPX−SF34+SF35−EN en 1007NH
Information on the error numbers 16Ū255 can be found in the CPX system description.
3−11
3. Diagnosis

3.4 Diagnostics over PROFINET (only for Remote Controller)

Diagnostics over PROFINET currently offer only a common error message for the CPX−SF34/35.
1. Use the diagnostics over PROFINET to first localise the network stations in complex systems with a diagnostic message.
2. Execute detailed error diagnostics with the global CPXsystem variables (see section 3.3).

3.4.1 Diagnostics via Diag+

For diagnostics, use the program Diag+ from the AUTOMATIONWORX Software Suite.
The settings you have to make to carry out an online diagnosis with Diag+ is shown in Fig.3/3.
3−12
A diagnosis example for the CPX−SF34/35 is shown inFig.3/4.
Detailed information on the operation can be found in the documentation on the program Diag+.
Festo P.BE−CPX−SF34+SF35−EN en 1007N H
3. Diagnosis
5
6
1
1 Set communication path DCP"
2 Select network adapter (compare
section 2.4.3)
3 Select IP address" and wait for
resultof the scan (if necessary, startscan again)
2
3
4
4 Select device type and display
5 Select PLC and click on Connect".
6 When everything is set: Switch view to
PROFINET diagnostics" and read diagnostic information (see Fig.3/4)
Fig.3/3: Make settings for online diagnosis in Diag+
Festo P.BE−CPX−SF34+SF35−EN en 1007NH
3−13
3. Diagnosis
1
2
3
1 Select control block with symbol !"
ina red circle and open it with a click on the Plus sign
2 Click on red diamond
Fig.3/4: Online diagnosis with Diag+
3−14
3 Diagnostics are displayed
Festo P.BE−CPX−SF34+SF35−EN en 1007N H
3. Diagnosis

3.5 Error characteristics/Fail safe

With the aid of the fail−safe parametrisation, the signal status that the outputs assume in the event of disturbances is determined (fail−safe status). This creates a defined machine/system status, e.g.for communication errors, PLCfailure, etc.
For the CPX−SF34/35, the only parametrisable fail−safe cases are PLC stop through run−time error or STOP.
Event
PLC stop in the CPX−SF34/35 through run−time error or STOP
Network interruption/ telegram elimination
Behaviour Action
Dependent on the parametrisable fail−safe setting and the configured behaviour of the controller: transition into the Fault mode.
No automatic transition in the Fail−safe mode. The behaviour must be defined through the user program.
· Through parametrisation, set
whether a PROFINET alarm should be output in the diagnostics case (see section
2.7.1 on parametrisation).
· In your user program, program
how the CPX terminal should behave in case of error.
· Monitor the network connection
over the global system variable PND_S1S1_VALID_DATA_CYCLE
Tab.3/10: Error characteristics of the CPX terminal with CPX−SF34/35
Depending on the system and module parameterisation (seesection 2.7.2), the outputs (valves and electric outputs) will be switched off (factory setting), switched on or retain their status.
Further information about the fail−safe parametrisation can be found in the CPX system description P.BE−CPX−SYS−... in the annexes.
Festo P.BE−CPX−SF34+SF35−EN en 1007NH
3−15
3. Diagnosis
Warning
· Ensure that valves and outputs are put into a safe state
if the above−named errors occur.
An incorrect status of the valves and outputs can lead to dangerous situations!
Note
Please note the following if the outputs are reset after PLC stop, network interruption or disturbance:
 Single−solenoid valves move to the basic position.  Double−solenoid valves remain in the current position.  Mid−position valves move to the mid position (depending
on the valve type: pressurised, exhausted or blocked).

3.5.1 Behaviour of the PLC with undervoltage

3−16
Note
If the electronics/sensors operating voltage falls below
17.5 V, the PLC of the CPX−SF34/35 goes into the STOP status. After voltage recovery, the controller does not restart automatically − even if the DIL switch for the PLC operating status is set to AUTORUN (see Tab.1/1).
· Check the power supply and carry out a restart of the
CPX−SF34/35 (power OFF/ON).
Festo P.BE−CPX−SF34+SF35−EN en 1007N H

Technical appendix

Appendix A
A−1Festo P.BE−CPX−SF34+SF35−EN en 1007NH
A. Technical appendix

Contents

A. Technical appendix A−1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
A.1 Common technical data of control block CPX−SF34/35 A−3 . . . . . . . . . . . . . . . . .
A.2 Technical data of control block CPX−SF34 A−5 . . . . . . . . . . . . . . . . . . . .
A.3 Technical data of control block CPX−SF35 A−5 . . . . . . . . . . . . . . . . . . . . . . . . . . . .
A.4 Function blocks for the CPX−SF34/35 A−6 . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . .
A−2
Festo P.BE−CPX−SF34+SF35−EN en 1007N H
A. Technical appendix
A.1 Common technical data of control block CPX−SF34/35
General characteristics of CPX−SF34/35
General technical data See CPX System Description P.BE−CPX−SYS−...
Protection class through housing
according to EN 60529, completely installed, plug connector inserted or provided with cover cap (see section 1.6).
Protection against electric shock
Protection against direct and indirect contact as per IEC/DIN EN 60204−1
Operating voltage/load voltage only through CPX metal interlinking blocks,
Module code (CPX−specific)
 CPX−SF34  CPX−SF35
IP65/IP67 The CPX−SF34 may be used only with CPX metal interlinking blocks.
By means of PELV power circuit (Protected Extra−Low Voltage)
for further information, see CPX System Description P.BE−CPX−SYS−... and section 1.7
218 219
Tab.A/1: Common technical data of the CPX−SF34/35
Festo P.BE−CPX−SF34+SF35−EN en 1007NH
A−3
A. Technical appendix
Network−specific characteristics
Network protocol PROFINET IO RT (PNIO RT):
Specification Directives, standards and norms
Transmission technology Switched Fast Ethernet
Design 100BaseTX as per IEEE802.3
Baud rate 100 Mbit/s
Interfaces
 CPX−SF34 2 x RJ45, Cu, AIDA−conforming,
 CPX−SF35 2 x SCRJ, POF fibre−optic cable, 650nm, AIDA−
Cross−over identification (only CPX−SF34) Auto−MDI
PROFINET input/output size 64 bytes/64 bytes
 based on Industrial Ethernet  based on the Ethernet protocol (IEEE 802.3)  Real−time−capable
related to PROFINET:  PROFINET Installation Guide IEC 61158 IEC 61784
see Tab.1/2 in section 1.5.2
conforming, see Tab.1/3 in section 1.5.2
Tab.A/2: Network−specific characteristics of CPX−SF34/35
PLC
Programming languages AWL/IL, FB, KOP, SFC, ST (as per IEC 61131−3)
Program memory 2 MB, of which 512 kB for Boot project
Processing speed 1 Ū 2 ms per 1000 instructions
Programming interface via PC WORX
Tab.A/3: Characteristics of the PLC of the CPX−SF34/35
A−4
Festo P.BE−CPX−SF34+SF35−EN en 1007N H
A. Technical appendix
A.2 Technical data of control block CPX−SF34
Power supply CPX−SF34
Intrinsic current consumption control block CPX−SF34
from operating voltage supply for electronics/ sensors (U
Galvanic isolation
PROFINET interfaces for U
Mains buffering time 10 ms
EL/SEN
)
EL/SEN
Max. 120 mA at 24 V (internal electronics)
Galvanically isolated (transformer, 1500 V)
Tab.A/4: Technical data of the CPX−SF34
A.3 Technical data of control block CPX−SF35
Power supply CPX−SF35
Intrinsic current consumption control block CPX−SF35
from operating voltage supply for electronics/ sensors (U
Galvanic isolation
PROFINET interfaces for U
Mains buffering time 10 ms
EL/SEN
)
EL/SEN
Max. 150 mA at 24 V (internal electronics)
by means of fibre−optic cable
Tab.A/5: Technical data of the CPX−SF35
Festo P.BE−CPX−SF34+SF35−EN en 1007NH
A−5
A. Technical appendix
A.4 Function blocks for the CPX−SF34/35
On the following pages, you will find a listing of the function block usable for the CPX−SF34/35. Additional information on the function blocks can be found via PC WORX as follows:
1. Change into the IEC Programming Workspace": Menu [View] [IEC Programming] or with the symbol shown to the left.
2. Select a group of functions in the Edit Wizard" in the list field under Group". If the Edit Wizard" is not visible, switch it on via the menu [View] [Edit Wizard].
3. In the context menu
of the corresponding function, click on Help on FB/FU". Additional information on the function block is displayed (see Fig.A/5).
A−6
Festo P.BE−CPX−SF34+SF35−EN en 1007NH
A. Technical appendix
1 Context menu of the function in the Edit Wizard
12
2 Information on the function
Fig.A/5: Display information on the function blocks in PC WORX
Festo P.BE−CPX−SF34+SF35−EN en 1007NH
A−7
A. Technical appendix
Function block Function block Function block
ABS BOOL_TO_USINT BYTE_TO_STRING
ACOS BOOL_TO_WORD BYTE_TO_UDINT
ADD BUF_TO_BYTE BYTE_TO_UINT
ADD_T_T BUF_TO_DINT BYTE_TO_USINT
AND BUF_TO_DWORD BYTE_TO_WORD
ASIN BUF_TO_INT CLR_OUT
ASL BUF_TO_REAL COLD_RESTART
ASR BUF_TO_SINT CONCAT
ATAN BUF_TO_STRING CONTINUE
B_BCD_TO_DINT BUF_TO_TIME COS
B_BCD_TO_INT BUF_TO_UDINT CTD
B_BCD_TO_SINT BUF_TO_UINT CTU
BCD_TO_DINT BUF_TO_USINT CTUD
BOOL_TO_BYTE BUF_TO_WORD D_BCD_TO_DINT
BOOL_TO_DINT BYTE_TO_BOOL D_BCD_TO_INT
BOOL_TO_DWORD BYTE_TO_BUF D_BCD_TO_SINT
BOOL_TO_INT BYTE_TO_DINT DELETE
BOOL_TO_REAL BYTE_TO_DWORD DERIVAT
BOOL_TO_SINT BYTE_TO_INT DINT_TO_B_BCD
BOOL_TO_UDINT BYTE_TO_REAL DINT_TO_BCD
BOOL_TO_UINT BYTE_TO_SINT DINT_TO_BOOL
Tab.A/6: List of the function blocks part 1
A−8
Festo P.BE−CPX−SF34+SF35−EN en 1007NH
A. Technical appendix
Function block Function block Function block
DINT_TO_BUF DWORD_TO_DINT GET_ERROR_CATALOG
DINT_TO_BYTE DWORD_TO_INT GET_LSB
DINT_TO_D_BCD DWORD_TO_REAL GET_MSB
DINT_TO_DWORD DWORD_TO_SINT GET_SYM
DINT_TO_INT DWORD_TO_STRING GT
DINT_TO_REAL DWORD_TO_UDINT GT_STRING
DINT_TO_SINT DWORD_TO_UINT HOT_RESTART
DINT_TO_STRING DWORD_TO_USINT I_BIT_IN_BYTE
DINT_TO_TIME DWORD_TO_WORD I_BIT_IN_DWORD
DINT_TO_UDINT EQ I_BIT_IN_WORD
DINT_TO_UINT EQ_STRING IMEMCPY
DINT_TO_USINT EVENT_TASK INSERT
DINT_TO_W_BCD EXP INT_TO_B_BCD
DINT_TO_WORD EXPT INT_TO_BOOL
DIV F_TRIG INT_TO_BUF
DIV_T_AI FIND INT_TO_BYTE
DIV_T_AN FPID INT_TO_D_BCD
DIV_T_R GE INT_TO_DINT
DWORD_TO_BOOL GE_STRING INT_TO_DWORD
DWORD_TO_BUF GET_CHAR INT_TO_REAL
DWORD_TO_BYTE GET_ERROR INT_TO_SINT
Tab.A/7: List of the function blocks part 2
Festo P.BE−CPX−SF34+SF35−EN en 1007NH
A−9
A. Technical appendix
Function block Function block Function block
INT_TO_STRING MAX NE
INT_TO_UDINT MAX_DINT NE_STRING
INT_TO_UINT MAX_INT NEG
INT_TO_USINT MAX_REAL NOT
INT_TO_W_BCD MAX_SINT OR
INT_TO_WORD MAX_STRING PARITY_BYTE
INTEGRAL MEMCPY PARITY_DWORD
LE MEMSET PARITY_WORD
LE_STRING MID PID
LEFT MIN PLC_STOP
LEN MIN_DINT R_TRIG
LIMIT MIN_INT R_BIT_IN_BYTE
LIMIT_DINT MIN_REAL R_BIT_IN_DWORD
LIMIT_INT MIN_SINT R_BIT_IN_WORD
LIMIT_REAL MIN_STRING RD_BOOL_BY_SYM
LIMIT_SINT MOD RD_BYTE_BY_SYM
LIMIT_STRING MOVE RD_DINT_BY_SYM
LN MUL RD_DWORD_BY_SYM
LOG MUL_T_AI RD_INPUT_GROUP
LT MUL_T_AN RD_INT_BY_SYM
LT_STRING MUL_T_R RD_REAL_BY_SYM
Tab.A/8: List of the function blocks part 3
A−10
Festo P.BE−CPX−SF34+SF35−EN en 1007NH
Loading...