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®, PCWORX®, SPEEDCON®, TORX®, TÜV® and VDE
are registered trademarks of the respective trademark owners in certain countries.
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 andindirectcontact)
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 onthis 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
themanufacturer’sproductdocumentation.
VIII
Festo P.BE−CPX−SF34+SF35−EN en 1007N H
Contents and general instructions
Importantuser 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.
Textmarkings
· 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 / QDigital output
A0
h
AB / QBOutput byte
Bus nodeCreate the connection to certain networks or fieldbusses, pass on
ByteNumber of address words assigned by the CPX terminal
Control blockAs with "bus node", but also contains a PLC
CPX TerminalComplete system consisting of CPX modules with or without
CPX modulesCommon term for the various modules which can be incorporated into a
DIL switchMiniature switch; dual−in−line switches consist of several switch
E / IDigital input
EAs / IODigital inputs and outputs
EB / IBInput byte
FMTFesto 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/abbreviationSignificance
IPCIndustrial PC
I/O modulesCollective term for the CPX modules which provide digital inputs and
PLCProgrammable Logic Controller, also designated as system control or
Pneumatic interfaceThe pneumatic interface is the interface between the modular electrical
PROFINET IOFieldbus system based on Industrial Ethernet for data exchange be
PROFINET IO RTPROFINET IO in the version with real−time protocol
PROFINET IO IRTPROFINET IO in the version with isochronous real−time protocol
QB / ABOutput byte
QX / AXDigital 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: 10ms; typical application: production controller)
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.2Electrical connectionand 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.3Dismantling 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).
DismantlingDismantle 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.
MountingMount 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.4Setting the DIL switches, using thememory 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.1Removing 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.2Settingthe 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
Bootsettings 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
SettingFunction
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.3Use 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
Thememory card mustalways be plugged in whentheCPX−SF34/35 isstarted!
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.5Connecting to thenetwork
1.5.1General information about PROFINET networks
Note
Components with PROFINET interfaces may be operated
only innetworks 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 100m.
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.2Overview 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
Note strain 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 EN60204 part 1.
Plug from Festo, type
FBS−SCRJ−PP−GS for POF
fibre−optic cable,
650nm, corresponding
to I EC61754−24
POF fibre optic cable
Cable length:
max.segment length
50m 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.3Pin 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
PinSignalExplanation
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.6Ensuring protectionclass 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 socketCover cap from Festo,
1)
if connection is not used
2)
included in scope of delivery; connection must always be covered!
Port IP65/IP67Cover 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.7Pinassignment of power supply
Warning
· Use only PELV power circuits according to IEC/DIN
EN60204−1 (Protective Extra−Low Voltage, PELV) for the
power supply.
Also take into account the general requirements for
PELVpower circuits according to IEC/DINEN60204−1.
· Use only power sourcesthat guarantee reliable
electrical isolation of the operating voltage as per
IEC/DINEN60204−1.
Through the use of PELV circuits, protection against electric
shock (protection against direct and indirect contact) is
ensured in accordance with IEC/DINEN60204−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: 0V
/ 0V
val
2: 0V
out
el/sen
3: FE (earth)
4: 24V
el/sen
5: 24V
1: 24V
2: 0V
3: 24V
4: 0V
val
el/sen
el/sen
val
/ 0V
val
/ 24V
/ 24V
out
out
out
5: FE (earth)
Additional power supply
Type CPX−M−GE−EV−Z...
1: 0V
out
2: not connected
3: FE (earth)
4: not connected
5: 24V
out
1: not connected
2: not connected
3: 24V
out
4: 0V
out
5: FE (earth)
Valvesupply
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
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 oncommissioning
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.2Applicationcases
You can operate the CPX control block in two different ways:
Remote Controller PROFINET and Stand Alone.
2.2.1Application 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.2Application 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.3Modules of theCPXterminal
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 thenumber
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.1Electrical 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 oneconfiguration is
required for the pneumaticinterface. 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
PCWORX. 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.4General remarks onconfiguration
The following sections describe the important configuration
steps with the configuration and programming software
PCWORX (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.1Distinction of the application cases
Use the preinstalled templates in PC WORX. Configuration
takes place in different ways, depending on the application
case.
Applicationcase RemoteController: Configure a
higher−order controller with one of the templates
(see section 2.5).
Applicationcase 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
section2.8.
or SF35 from the tab CPX"
2.4.2Starting 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.3Create 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.5Configuration with PC WORX applicationcase RemoteController
Create new project1. 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
PCWORX:
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.1First 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
(seesection 2.4.3).
Read in configuration1. 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
(seeFig.2/8).
Fig.2/7: Read in current configuration
Festo P.BE−CPX−SF34+SF35−EN en 1007NH
2−15
2. Commissioning
12 34
1
Select controller
2 Flashing to indentify CPX terminal
Fig.2/8: Result of a read−in configuration
Optional: flashing2. 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
(seeFig.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 name6. 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
(seeFig.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.2Second 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
IPaddress can be found in section 2.4.3.
5. Variable generation and process data assignment takes
place manually and is described in the following
section2.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 & drop2 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.3Generating 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);
LineExplanation
1Process data received by the CPX−SF34/35 via PROFINET.
2CPX status bits received by the CPX−SF34/35 via PROFINET.
3Transfer 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];
LineExplanation
1
2Send process data of the CPX−8DE module to the PLC via PROFINET.
3Send CPX status bits to the PLC via PROFINET.
4Receive 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.6Configuration with PC WORX applicationcase Stand Alone
Create new project1. 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
gTemplate CPX−SF34Ū/35Ū
Festo P.BE−CPX−SF34+SF35−EN en 1007NH
Project name,
memory path
Programming languageFunction Block Diagram (FBD)
PLC typeARM_L_40
ResourceCPX
TaskDEFAULT
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
IPaddress can be found in section 2.4.3.
3. Also set the device name in this
2.6.1Hardware 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.2Generating 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.3Configuration example
Module no.: 0
1
8DI8DI4DO2AO
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.7Parametrisation
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
CPXsystem 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.1Parametrisation 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.2CPX 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 group2 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.3Application example for the parametrisation
1
Input for
1stsensor
21
(with default
parametrisation)
2 Parametrised
input for
2ndsensor
(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 3ms (factory
setting) to 0.1ms: Recording of shorter signals is
possible. This parameter is set for the complete module.
Signal stretching time is set to 50ms: 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.8Installing GSDML and FDCML files
The GSDML and FDCML files are already preinstalled in
PCWORX. Processing and updating of these files is only
required when there are updated versions.
Procurement sourceCurrent GSDML or FDCML files can be found here:
www.festo.com/fieldbus
Information on installation of the files can be found in the
PCWORX documentation from PHOENIX CONTACT.
2.9Procedure for replacing acontrol 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.
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 descriptionAdvantagesDetailed
option
LED displayThe 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
PCWORX 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
IOController.
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.2Diagnostics 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.1Display 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 intheapplicationcase RemoteController PROFINET
LED (red)SequenceStatusError 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)SequenceStatusError 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.2Display of the CPX−/controller specific LEDs PS, PL, SF, M
PS (power system) power sensor/logicsupply
LED (green)SequenceStatusError 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)SequenceStatusError 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) systemerror
LED (red)SequenceStatusError 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)SequenceStatusSignificance
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.3Diagnostics via global CPXsystem 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
section3.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.1CPX status bits
The significance of the status bits is shown by Tab.3/7. If all
status bits = 0, no error is reported.
Bit
Diagnosticinformation
Description
if bit = logic 1
0Error at valve or pneumatic
module
1Error at output module
2Error at input module
3Error at analogue module/
technology module
4UndervoltageType of error
5Short circuit/overload
6Wire break
7Other errors
Module type in which an
error has occurred
Tab.3/7:Status bits of the CPX−SF34/35
ExampleIn the example for the following error diagnostics,
CPX_STATUSBITS includes the value 24
Value of thestatus bits
24h = 00100100Bit 2 and bit 5 supply logic 1 Error at input module
StatusDiagnostics
:
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.2Error 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
0No error
1General diagnostics
2Short circuit/overload
3Wire break
4Short circuit actuator supply
5Undervoltage
6Ū8Reserved
9Lower limit exceeded
10Upper limit exceeded
11Short circuit at valve
12Reserved
13Wire break valve
14Ū15Reserved
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.4Diagnostics over PROFINET (only for RemoteController)
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
CPXsystem variables (see section 3.3).
3.4.1Diagnostics 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
inFig.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
resultof the scan (if necessary,
startscan 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 !"
ina 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.5Error 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,
PLCfailure, 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
BehaviourAction
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
(seesection 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.1Behaviour 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
A.1Common technical data of control block CPX−SF34/35
General characteristics of CPX−SF34/35
General technical dataSee CPX System Description P.BE−CPX−SYS−...
Protectionclassthrough housing
according to EN 60529, completely installed,
plug connector inserted or provided with cover
cap (see section 1.6).
Protectionagainstelectricshock
Protection against direct and indirect contact as
per IEC/DIN EN 60204−1
Operating voltage/load voltageonly 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−specificcharacteristics
Network protocolPROFINET IO RT (PNIO RT):
SpecificationDirectives, standards and norms
Transmission technologySwitched Fast Ethernet
Design100BaseTX as per IEEE802.3
Baud rate100 Mbit/s
Interfaces
CPX−SF342 x RJ45, Cu, AIDA−conforming,
CPX−SF352 x SCRJ, POF fibre−optic cable, 650nm, AIDA−
Cross−over identification (only CPX−SF34)Auto−MDI
PROFINET input/outputsize64 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 languagesAWL/IL, FB, KOP, SFC, ST (as per IEC 61131−3)
Programmemory2 MB, of which 512 kB for Boot project
Processing speed1 Ū 2 ms per 1000 instructions
Programming interfacevia 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.2Technical data of control block CPX−SF34
Power supply CPX−SF34
Intrinsiccurrentconsumptioncontrol block CPX−SF34
from operating voltage supply for electronics/
sensors (U
Galvanicisolation
PROFINET interfaces for U
Mains buffering time10 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.3Technical data of control block CPX−SF35
Power supply CPX−SF35
Intrinsiccurrentconsumptioncontrol block CPX−SF35
from operating voltage supply for electronics/
sensors (U
Galvanicisolation
PROFINET interfaces for U
Mains buffering time10 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.4Function blocks for theCPX−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 blockFunction blockFunction block
ABSBOOL_TO_USINTBYTE_TO_STRING
ACOSBOOL_TO_WORDBYTE_TO_UDINT
ADDBUF_TO_BYTEBYTE_TO_UINT
ADD_T_TBUF_TO_DINTBYTE_TO_USINT
ANDBUF_TO_DWORDBYTE_TO_WORD
ASINBUF_TO_INTCLR_OUT
ASLBUF_TO_REALCOLD_RESTART
ASRBUF_TO_SINTCONCAT
ATANBUF_TO_STRINGCONTINUE
B_BCD_TO_DINTBUF_TO_TIMECOS
B_BCD_TO_INTBUF_TO_UDINTCTD
B_BCD_TO_SINTBUF_TO_UINTCTU
BCD_TO_DINTBUF_TO_USINTCTUD
BOOL_TO_BYTEBUF_TO_WORDD_BCD_TO_DINT
BOOL_TO_DINTBYTE_TO_BOOLD_BCD_TO_INT
BOOL_TO_DWORDBYTE_TO_BUFD_BCD_TO_SINT
BOOL_TO_INTBYTE_TO_DINTDELETE
BOOL_TO_REALBYTE_TO_DWORDDERIVAT
BOOL_TO_SINTBYTE_TO_INTDINT_TO_B_BCD
BOOL_TO_UDINTBYTE_TO_REALDINT_TO_BCD
BOOL_TO_UINTBYTE_TO_SINTDINT_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 blockFunction blockFunction block
DINT_TO_BUFDWORD_TO_DINTGET_ERROR_CATALOG
DINT_TO_BYTEDWORD_TO_INTGET_LSB
DINT_TO_D_BCDDWORD_TO_REALGET_MSB
DINT_TO_DWORDDWORD_TO_SINTGET_SYM
DINT_TO_INTDWORD_TO_STRINGGT
DINT_TO_REALDWORD_TO_UDINTGT_STRING
DINT_TO_SINTDWORD_TO_UINTHOT_RESTART
DINT_TO_STRINGDWORD_TO_USINTI_BIT_IN_BYTE
DINT_TO_TIMEDWORD_TO_WORDI_BIT_IN_DWORD
DINT_TO_UDINTEQI_BIT_IN_WORD
DINT_TO_UINTEQ_STRINGIMEMCPY
DINT_TO_USINTEVENT_TASKINSERT
DINT_TO_W_BCDEXPINT_TO_B_BCD
DINT_TO_WORDEXPTINT_TO_BOOL
DIVF_TRIGINT_TO_BUF
DIV_T_AIFINDINT_TO_BYTE
DIV_T_ANFPIDINT_TO_D_BCD
DIV_T_RGEINT_TO_DINT
DWORD_TO_BOOLGE_STRINGINT_TO_DWORD
DWORD_TO_BUFGET_CHARINT_TO_REAL
DWORD_TO_BYTEGET_ERRORINT_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 blockFunction blockFunction block
INT_TO_STRINGMAXNE
INT_TO_UDINTMAX_DINTNE_STRING
INT_TO_UINTMAX_INTNEG
INT_TO_USINTMAX_REALNOT
INT_TO_W_BCDMAX_SINTOR
INT_TO_WORDMAX_STRINGPARITY_BYTE
INTEGRALMEMCPYPARITY_DWORD
LEMEMSETPARITY_WORD
LE_STRINGMIDPID
LEFTMINPLC_STOP
LENMIN_DINTR_TRIG
LIMITMIN_INTR_BIT_IN_BYTE
LIMIT_DINTMIN_REALR_BIT_IN_DWORD
LIMIT_INTMIN_SINTR_BIT_IN_WORD
LIMIT_REALMIN_STRINGRD_BOOL_BY_SYM
LIMIT_SINTMODRD_BYTE_BY_SYM
LIMIT_STRINGMOVERD_DINT_BY_SYM
LNMULRD_DWORD_BY_SYM
LOGMUL_T_AIRD_INPUT_GROUP
LTMUL_T_ANRD_INT_BY_SYM
LT_STRINGMUL_T_RRD_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...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.