The reproduction, distribution and utilisation of this docu
ment as
well as the communication of its contents to others
without explicit authorisation is prohibited. Offenders will
be held liable for the payment of damages. All rights re
served in the event of the grant of a patent, utility module
or design.
Festo P.BE−CPX−CEC−EN en 1004a
I
Contents and general instructions
CANopen®, CoDeSys®, MODBUS® and TORX® are registered trade names of the respective
trademark holders in certain countries.
This product uses open−source software which is subject to the "GNU General Public License,
Version 2". The licensing conditions of the GPL are located either in the product’s engineering
tool or at the following addresses:
http://<IP address of the device>/product−information.html
http://www.gnu.org/copyleft/gpl.html
The type CPX−CEC/CPX−CEC−... CoDeSys controller docum
ented in this manual is intended exclusively for use in Festo
CPX terminals for installation in a machine or an automation
control system.
In combination with a CPX terminal, the CPX−CEC/CPX−CEC−...
is used for
controlling pneumatic and electric actuators (valves, out
put modules and motor controllers via CANopen)
interrogating
electric sensor signals through the input
modules
communication via Ethernet.
The CPX terminal with the CPX−CEC/CPX−CEC−... may only be
used as follows:
as designated in industrial applications
without any modifications by the user. Only the conver
sions or modifications described in the documentation
supplied with the product are permitted
The limit values specified for pressures, temperatures, electri
cal data, torques etc. should be observed.
Please comply with the regulations of the workers’ com
pensation insurance association, the German Technical Con
trol Board (TÜV) and the electrical requirements of the VDE or
the corresponding national and
local safety regulations.
Festo P.BE−CPX−CEC−EN en 1004a
V
Contents and general instructions
Safety instructions
Protection against dangerous movements
Warning
High acceleration forces at the connected actuators! Unde
sired movements can cause collisions and severe injuries.
Dangerous movements can occur through faulty control
ling of connected actuators, e.g. via:
unsafe or faulty circuitry or cabling,
faulty operation of the components,
errors in the measured value and signal generators,
defects or non−EMC−compliant components,
errors in
programming errors in user programs and projects.
Simply switching off the compressed air supply or load
voltage is not suitable for locking procedures. In the event
of a fault, this could lead to unintentional movement of the
drive.
· Before doing mounting, installation and service work,
· Make sure that no persons are in the operating range of
· Do not switch on the compressed air supply until the
the higher−order control system,
bring the system into a safe condition (e.g. by bringing
the drive into a safe position and deactivating the
controller).
Always make sure that the compressed air supply and
power supply are switched off and locked when working
in the machine area.
the drives or any other connected actuators.
system is correctly installed and parameterised.
VI
Festo P.BE−CPX−CEC−EN en 1004a
Contents and general instructions
· Brakes controlled by the drive controller are alone not
· Additional measures are required for use in safety−re
Protection from pressurised tubing
suitable to ensure personal protection!
Secure vertical axes from falling or sliding down when
the compressed air and load voltages are switched off,
as follows:
mechanical locking of the vertical axis,
external braking/safety catch/clamping device or
sufficient counterbalance of the axis.
lated applications; in Europe, for example, the standards
listed under the EC Machinery Directive must be ob
served. Without additional measures in accordance with
statutory minimum requirements, the product is not
suitable for use in safety−related sections of control
systems.
Festo P.BE−CPX−CEC−EN en 1004a
Caution
Danger of injury through inappropriate handling of pres
surised tubing!
Undesired movements of the connected actuators and
uncontrolled movements of loose tubing can cause injury
to human beings or damage to property.
· Do not connect, disconnect or open pressurised tubing.
· The tubing must always be vented before removal
(release compressed air).
· Use suitable protective equipment (e.g. safety goggles,
safety shoes, etc.).
VII
Contents and general instructions
Target group
This manual is intended exclusively for technicians trained in
control and automation technology, who have experience in
installing, commissioning, programming and diagnosing
positioning systems.
Service
Please consult your local Festo Service if you have any techni
cal problems.
VIII
Festo P.BE−CPX−CEC−EN en 1004a
Contents and general instructions
Important user instructions
Danger categories
This manual contains instructions on the possible dangers
which can 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
pictogram.
A distinction is made between the following danger warnings:
Warning
... means that failure to observe this instruction may result
in serious personal injury or property damage.
Caution
... means that failure to observe this instruction may result
in personal injury or property damage.
Festo P.BE−CPX−CEC−EN en 1004a
Note
... 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
components:
Electrostatically sensitive devices: Improper handling can
result in damage to components.
IX
Contents and general instructions
Identifying special information
The following pictograms mark passages in the text which
contain special information.
Pictograms
Information:
Recommendations, tips and cross−references to other in
formation sources.
Accessories:
Information on necessary or useful accessories for the Festo
product.
Environment:
Information on the environmentally friendly use of Festo
products.
Text markings
· The bullet indicates activities which may be carried out in
any order.
1. Numerals denote activities which must be carried out in
the numerical order specified.
Hyphens designate general lists.
Brackets designate menu entries.
Example: [Scan module configuration].
Arrow brackets mark placeholders for designations. Example:
"Status of <Your Connection>".
Quotation marks designate names of windows, dialogues
and
buttons. Example: "Control configuration".
X
Festo P.BE−CPX−CEC−EN en 1004a
Contents and general instructions
Notes on the use of this manual
This manual refers to the following firmware and software
versions:
CoDeSys controller CPX−CEC−C1 from Rev 01
CoDeSys controller CPX−CEC and CPX−CEC−M1 from
Rev 05
Programming environment CoDeSys provided by Festo
from Version 2.3
This manual contains information on the function, fitting,
installation and commissioning of the CoDeSys controller.
Further information on the device
following documentation:
Type
Short
manual
Online helpOnline.Help for the
TitleDescription
"CoDeSys controller"
type P.BE−K−CPX−CEC
CoDeSys controller
CPX−CEC−...
Connection and display elements, mounting,
installation and technical data
Configuration, commissioning, operation and
error diagnosis
Tab.0/1:Additional documentation on the device
General basic information on the mode of operation, on fit
ting, installing and commissioning CPX terminals can be
found in the CPX system manual, type P.BE−CPX−SYS−...
Observe also the user documentation of the components
used in the CPX terminal.
can be found in the
Festo P.BE−CPX−CEC−EN en 1004a
XI
Contents and general instructions
The following product−specific terms and abbreviations are
used in this manual:
Term/abbreviation
0 signal0 V applied at input, or output supplies 0 V
1 signal24 V applied at input, or output supplies 24 V
0x01 (A0h)Hexadecimal numbers are marked by a prefixed "0x" or by a subscript
CANopenFieldbus protocol based on CAN, which is standardised as a European
CoDeSys provided by Festo
(= CoDeSys pbF)
CPX terminalComplete system consisting of CPX modules with or without
CPX modulesCommon term for the various modules which can be integrated in a CPX
DHCP (Dynamic Host
Configuration Protocol)
DIL switchDual−in−line switches consist of several switch elements with which
I/O modulesCollective term for the CPX modules which provide digital inputs and
I/OsDigital inputs and outputs
Meaning
"h"
standard
CoDeSys = Controller Development System
CoDeSys provided by Festo permits configuration, commissioning and
programming of various components and devices by Festo. In this
documentation, called "CoDeSys pbF" for short
pneumatics
terminal
Dynamic protocol for automatic assignment of IP addresses
settings can be made
outputs
EasyIPProtocol for fast exchange of operands between Festo controllers
EDS fileElectronic data sheet, which describes the function and characteristics
EthernetPhysical protocol and network for connecting various devices
Fieldbus nodeProvides the connection to specific fieldbuses. Transmits control
XII
of a CANopen device in standardised form (e.g. number of I/Os,
number of diagnosis bytes, etc.).
signals to the connected modules and monitors their ability to function
Festo P.BE−CPX−CEC−EN en 1004a
Contents and general instructions
Term/abbreviationMeaning
FHPP (Festo Handling and
Positioning Profile)
FTP (File Transfer Protocol) Protocol for file transfer via TCP/IP
Handheld type CPX−MMIHandheld terminal for commissioning and service purposes
HTTP (Hyper Text Transfer
Protocol)
IP (Internet Protocol)Protocol for addressing and delivering data
Login/LogoutProgramming system is logged out/logged out
MAC address (Media
Access Control address)
Modbus/TCPCommunication standard via TCP/IP in automation technology
Node IDProvides unique identification of a bus slave on the CANopen fieldbus
OLEObject Linking and Embedding
OPCOLE for Process Control; standardised software interface that permits
PLC/IPCProgrammable logic controller/industrial PC
Pneumatic interfaceInterface between the modular electric peripherals and the pneumatics
SoftMotionMotion functionality integrated in the CoDeSys pbF programming and
Uniform fieldbus data profile for positioning controllers from Festo
Protocol for data transfer via TCP/IP
Fixed assigned address for Ethernet device
access to process data
run−time system. The following motion control models are offered as
modules:
Single/multi−axis positioning movements with PLCopen Motion
modules
2.5D CNC control
TCP/IPCombination of the protocols TCP and IP, the most−widely used protocol
TFTP (Trivial File Transfer
Protocol)
TSP
(Target Support Package)
Festo P.BE−CPX−CEC−EN en 1004a
in communication via Ethernet
Protocol for file transfer via TCP/IP
A target support package combines all configuration and expansion
files that are needed to make a specific controller (target) usable for
the programming environment (CoDeSys provided by Festo)
XIII
Contents and general instructions
Term/abbreviationMeaning
UDP (User Datagram
Protocol)
User dataTelegram data without protocol frame data. The length of the user data
wwwWorld Wide Web
A minimal, connectionless network protocol that has a lower protocol
overhead compared to TCP. This has the advantage of a faster
exchange of data. Due to the lack of a reply, the correct transmission
must be ensured, e.g.by means of a user program
is defined in the configuration of the fieldbus slave
1.4The CoDeSys provided by Festo programming environment
Use CoDeSys provided by Festo to commission and program
the CoDeSys controller. CoDeSys provided by Festo offers a
convenient user interface with the following functions:
Configuration and parameterisation of the CPX−CEC/
CPX−CEC−... with control configuration
Programming as per IEC 61131−3
Integrated module libraries
Library administrator to integrate additional libraries
Simulation mode, permits testing of projects
on the PC,
without PLC
Visualisation with the integrated visualisation editor
Documentation with the integrated project
documentation
Debugging functions: testing program sequence,
observing and changing variables, error search
CPX−CEC−M1: SoftMotion programming editors are
integrated.
To be able to use a controller (target) under CoDeSys
provided by Festo, a so−called Target Support Package is
needed for
the corresponding target. This permits access to
the system functions of the target and contains
corresponding information in the form of online help. The
Target Support Package makes CoDeSys functions usable for
the respective device or limits them, if necessary.
With the Target Support Package, CoDeSys can support all
these characteristics and functions of
these devices.
And so CoDeSys provided by Festo contains many functions
that are available only on certain devices.
Festo P.BE−CPX−CEC−EN en 1004a
1−9
1. System summary
CoDeSys provided by Festo is supplied with the Target
Support Package for the CoDeSys controller. It also contains
additional functions that are specially adapted to the
CoDeSys controller.
Information about which functions of CoDeSys provided by
Festo are supported by the CoDeSys controller and which
additional functions are available can be found in the
online
help (key word"Functional Overview").
1−10
Festo P.BE−CPX−CEC−EN en 1004a
1. System summary
1.4.1Programming languages
CoDeSys provided by Festo offers five of the programming
languages standardised in IEC 61131−3, see Tab.1/3. Each of
these programming languages has certain characteristics
that are especially suited for solving specific tasks.
Programming
TypeDescription
languages
Statement list (STL)
Structured text (ST)Structured text comes closest to the programming
Sequential function chart
(SFC)
Function diagram (FUN)
or
Free−graphic function
diagram (CFQ)
Ladder diagram (LDR)The ladder diagram was developed from the circuit
Text−based
programming
language
Graphic
programming
languages
The statement list enables the programmer to de
scribe the working steps of controller functions with
simple instructions. The language structure supports
the efficient handling of complex tasks.
languages used for the PC, such as Pascal and C.
It consists of a number of statements that can be
performed conditionally ("IF..THEN..ELSE") or in loops
(WHILE..DO), as in high−level languages.
Enables programming of sequences and so is suited
for structuring and organising projects. With transi
tions and connections, the sequential function chart
describes the time sequence of the various steps
within the program.
The function diagram works with a list of networks,
whereby each network contains a structure that de
picts a logical or arithmetic expression, calls up a
function module, a jump or a return instruction.
In addition, based on the function diagram, there is
the free−graphic function diagram (CFC), in which the
elements are
directly added.
diagram. The diagram of a LDR program is therefore
similar to the diagram of a circuit diagram in relation
to the diagram of logical links.
freely placed and feedback can be
Ta b.1/3:Programming languages of CoDeSys provided by Festo
Festo P.BE−CPX−CEC−EN en 1004a
1−11
1. System summary
1.4.2Libraries
1.4.3Parameterisation
To make programming easier, CoDeSys provided by Festo
makes it possible to organise into libraries objects that are
usable independently of projects, such as modules, declar
ations and visualisations. A library administrator, with which
you can integrate and view libraries, is available for this
purpose.
Detailed descriptions on the libraries and programming can
found in the online help.
be
Information on parameterisation of the entire system via the
CoDeSys controller can be found in the online help.
1−12
Festo P.BE−CPX−CEC−EN en 1004a
1. System summary
1.5Meaning of the LEDdisplays
The LEDs on the cover indicate the operating status of the
device and are arranged in two groups.
1 Controller LEDs
(see section 4.2)
RUN
STOP
ERROR
TP
12
2 CPX−specific LEDs
PS
PL
SF
M
Fig.1/4: LED displays of the device (here CPX−CEC−C1/−M1 as an example)
Festo P.BE−CPX−CEC−EN en 1004a
1−13
1. System summary
LED flashes
1.5.1CPX−specific LEDs
The displays of the CPX−specific LEDs are described in the
following. Information on the controller LEDs can be found in
section 4.2.
PS (Power System) supply to the electronics
LED (green)SequenceMeaningError treatment
ON
OFF
LED lights up
ON
OFF
ON
OFF
ON
OFF
LED is off
Tab.1/4:Displays of PS LED
No error. Operating volt
age/sensor supply applied
Operating voltage/sensor
supply outside the toler
ance range
Internal fuse for the
operating voltage/sensor
supply has responded
The operating voltage/
sensor supply is not
applied
Eliminate undervoltage
1. Eliminate short circuit/overload on
module side
2. Depends on the parameterisation
of the module (module parameter):
· The sensor supply voltage will
be switched on again automatically when the short circuit has
been eliminated (default)
· Power OFF/ON is necessary
Check the operating voltage
connection of the electronics
1−14
Festo P.BE−CPX−CEC−EN en 1004a
1. System summary
PL (Power Load) load supply (outputs/valves)
LED (green)SequenceMeaningError treatment
ON
OFF
No error. Load voltage
applied
LED lights up
ON
OFF
LED flashes
Load voltage at the system
supply or additional supply
outside the tolerance range
Eliminate undervoltage
Tab.1/5:Displays of PL LED
SF (System Failure) System error
LED (red)Sequence 1)MeaningError treatment
ON
OFF
LED is off
ON
OFF
LED flashes
ON
OFF
LED flashes
ON
OFF
LED flashes
No error
Simple error/information
(error class 1)
Error (error class 2)
Serious error
(error class 3)
See description of error numbers in
the CPX system manual
1)
The system error LED flashes depending on the class of error which has occurred.
Error class 1 (minor error):flash once, pause
Error class 2 (error):flash twice, pause
Error class 3 (serious error): flash three times, pause
Tab.1/6:Displays of SF LED
Festo P.BE−CPX−CEC−EN en 1004a
1−15
1. System summary
M (Modify) Modify/force active
LED (yellow)SequenceMeaningError treatment
ON
OFF
LED is off
ON
OFF
LED flashes
Tab.1/7:Displays of M LED
Information on the controller LEDs can be found in
section 4.2.
Force is not active
Force is activeThe Force function is enabled
(see CPX system manual, system
parameter Force mode;
function no. 4402).
· Always switch off the power supply before fitting or
removing CPX modules.
Caution
The CoDeSys controller contains electrostatically sensitive
components.
· Therefore, do not touch any contacts.
· Observe the handling specifications for electrostatically
sensitive devices.
Festo P.BE−CPX−CEC−EN en 1004a
Note
Check within the framework of your EMERGENCY STOP
concept to ascertain the measures necessary for putting
your machine/system into a safe state in the event of an
EMERGENCY STOP (e.g. switching off power sources,
load voltage supply, compressed air, etc.).
Information on fitting the CPX terminal can be found in the
CPX system
manual type P.BE−CPX−SYS−... .
2−3
2. Installation
2.2Dismantling and fitting
The controller is fitted in an interlinking block of the CPX
terminal (see Fig.2/1).
2.2.1Dismantling
Dismantle the controller as follows:
1. Loosen the four screws of the controller with a TORX
screwdriver size T10.
2. Pull the controller carefully and without tilting away from
the contact rails of the interlinking block.
1 CPX−CEC/
CPX−CEC−...
4
2 Interlinking block
3 Contact rails
4 Screws
3
Fig.2/1: Dismantling/fitting of the controller (here CPX−CEC−C1/−M1 as an example)
1
2
2−4
Festo P.BE−CPX−CEC−EN en 1004a
2. Installation
2.2.2Fitting
Note
Fit the controller to the left end position of the CPX
terminal (position 0).
Fit the controller as follows:
1. Check the seal and seal surfaces.
2. Insert the controller in the interlinking block. Make sure
that the grooves with the power contact terminals on the
bottom of the controller lie above the contact rails.
3. Push the controller carefully and without tilting as far as
possible into the interlinking block.
4. Place the screws so that the self−cutting threads can be
used. Tighten the screws by hand.
Festo P.BE−CPX−CEC−EN en 1004a
5. Tighten the screws with a TORX screwdriver size T10 with
torque 0.9 ... 1.1 Nm.
Fig.2/2: Connection and display elements (here for CPX−CEC−C1/−M1 as an example)
1
2
3
2−6
Festo P.BE−CPX−CEC−EN en 1004a
2. Installation
2.4Setting the switches of the CoDeSys controller
2.4.1RUN/STOP rotary switch
Note
Leave the RUN/STOP rotary switch at position "0" (STOP)
during installation.
The switch setting of the RUN/STOP rotary switch with
fourinternal digital inputs is passed on to the controller and
can be evaluated there.
Rotary switch
SettingMeaning
0STOP
CoDeSys controller stopped
The STOP LED lights up yellow
1 ... FRUN
CoDeSys controller started
The RUN LED lights up green
Ta b.2/1:Switch settings of the RUN/STOP rotary switch
Festo P.BE−CPX−CEC−EN en 1004a
2−7
2. Installation
2.4.2DIL switches
The DIL switches must be accessible in order to make
settings:
· Remove, if applicable, the cover or an IP65/IP67 plug
from the Sub−D interface.
DIL switch 1
DIL switch 1 is reserved. Leave the two switch elements of
DIL switch 1 at OFF.
CPX−CEC/CPX−CEC−...
ReservedDIL 1.1: OFF
DIL switch 1
DIL 1.2: OFF
Tab.2/2:Setting the DIL switch 1
2−8
Festo P.BE−CPX−CEC−EN en 1004a
2. Installation
DIL switch 2
For CPX−CEC−C1/−M1, you can switch the CAN bus termination
(120 ) on or off.
CPX−CEC−C1/−M1
Termination switched offDIL 2.1: OFF
Termination switched onDIL 2.1: ON
All further switch settings are reserved.
DIL switch 2
DIL 2.2: OFF
DIL 2.2: OFF
The DIL switch 2 on the CPX−CEC has no function.
Tab.2/3:Setting the DIL switch 2
Festo P.BE−CPX−CEC−EN en 1004a
2−9
2. Installation
2.5Ethernet interface
The Ethernet interface permits connection of a programming
device, PC or type FED operator unit to the CoDeSys
controller.
The Ethernet interface is designed as an RJ45 socket.
Socket
8
7
6
5
4
3
2
1
PinSignalExplanation
1
2
3
4
5
6
7
8
Housing
TD+
TD
RD+
n.c.
n.c.
RD
n.c.
n.c.
Shield
Transmitted data+
Transmitted data
Received data+
not connected
not connected
Received data
not connected
not connected
Screening
Tab.2/4:Pin assignment of the Ethernet interface
If the Ethernet interface is not used, close it with the AK−RJ45
cover. In this way you will comply with protection class
IP65/IP67.
2.5.1Ethernet cable
Use as connecting cable:
Cable specificationScreened flexible Ethernet round cable of category 5
Max. outer diameter:5.4 mm
Core diameter:0.89 ... 1.0 mm AWG24−26
Ready made:Crimping pliers on RJ45
2−10
Festo P.BE−CPX−CEC−EN en 1004a
2. Installation
Note
If the CPX terminal is fitted onto a moving part of a
machine, the Ethernet cable on the moving part must be
provided with strain relief.
Network connectionIn order to connect your CoDeSys controller to a network or
PC, you will require a patch or crossover cable. The interface
automatically recognises which
cable is connected and
automatically converts the signals.
Note
Use the RJ−45 plug from Festo in order to comply with the
protection class IP65/IP67:
Type FBS−RJ45−8−GS
Observe the fitting instructions for the plug.
Festo P.BE−CPX−CEC−EN en 1004a
Fig.2/3: RJ−45 plug type FBS−RJ45−8−GS
2−11
2. Installation
2.6Communication interfaces
2.6.1CANopen interface (CPX−CEC−C1/−M1)
On the CPX−CEC−C1/−M1, there is a CANopen interface for
connection of CAN bus slaves.
The CANopen interface is designed as a 9−pin Sub−D plug.
Plug
PinSignalInternal
Explanation
contacts
1
2
3
96
51
1)
If a motor controller with external voltage supply is connected,
CAN ground (optional), pin 6 cannot be used on the CPX−CEC−C1/−M1.
2)
FE: Functional earthing
4
5
6
7
8
9
Housing
(plug)
n.c.
CAN_L
CAN_GND
n.c.
CAN_SHLD
CAN_GND
CAN_H
n.c.
n.c.
not connected
CAN low
CAN ground
not connected
Connection to functional earth (FE)
CAN ground (optional)
CAN high
not connected
not connected
The plug housing must be connected
FE
to FE
Tab.2/5:Pin assignment for the C ANopen interface
The connected CAN bus slaves are not supplied with power
over the CANopen interface.
1)
2)
.
2)
2−12
Festo P.BE−CPX−CEC−EN en 1004a
2. Installation
Connecting the CAN bus
CAN bus line
Note
Faulty installation or high transmission rates may cause
data transmission errors as a result of signal reflections
and attenuations.
Transmission errors can be caused by:
missing or incorrect terminating resistor
incorrect screened connection
branches
large distances
unsuitable cables.
Use a twisted, screened 4−core cable as a CAN bus line. The
CoDeSys controller communicates with the drive
via the CAN bus line.
controllers
Festo P.BE−CPX−CEC−EN en 1004a
If the Festo CAN bus plug is used, a cable diameter of 5 ... 8
or 7 ... 10 mm is permitted.
Note
If the CPX terminal is fitted onto the moving part of a
machine, the CAN bus line on the moving part must be
provided with strain relief. Also observe the relevant
regulations in EN60204 part 1.
2−13
2. Installation
Connection with Festo CAN bus plug
Note
· Use protective caps or blanking plugs to seal unused
connections.
You will then comply with protection class IP65/IP67.
· Note the fitting instructions for the CAN bus plug. Tighten
the two fastening screws at first by hand and then with
max. 0.4 Nm.
You can connect the CPX−CEC−C1 easily to the CAN bus
with the CAN bus plug from Festo,
type FBS−SUB−9−BU−2x5POL−B. You can disconnect
the plug from the node without interrupting
the bus line
(T−Tap function).
Note
The clamp strap in the Festo CAN bus plug is connected
only capacitively internally with the metal housing of the
sub−D socket. This prevents equalising currents from
flowing via the screening of the CAN bus line (Fig.2/4).
2−14
· Clamp the screening of the CAN bus line under the clamp
strap in the CAN bus plug.
Festo P.BE−CPX−CEC−EN en 1004a
2. Installation
1 Folding cover
with inspection
window
2 Clamp strap
for screened
connection
1)
3 Protective cap if
connection is not
used
4 CAN bus
V+
outgoing (OUT)
5 CAN bus
incoming (IN)
6 SUB−D plug
1)
connected
capacitively
Fig.2/4: CAN bus plug from Festo, type FBS−SUB−9−BU−2x5POL−B
1)
GND
56
21
SLD
H
L
3
GND
SLD
V+
H
L
4
Festo P.BE−CPX−CEC−EN en 1004a
2−15
2. Installation
Further connection possibilities for the CAN bus
with adapters
Caution
· Make sure of the correct polarity when you connect the
CAN bus interface.
· Connect the screen.
There are further ways of connecting the CAN bus with
adapters, which can be ordered separately from Festo. These
adapters and additional accessories can be found under:
è www.festo.com/catalogue
M12 adapter 5−pin (protection class IP65),
type FBA−2−M12−5POL
Screw terminal adapter 5−pin (protection class IP20),
type FBA−1−SL−5POL
2−16
Festo P.BE−CPX−CEC−EN en 1004a
2. Installation
2.6.2RS232 interface (CPX−CEC)
The RS232 interface enables a type FED operator unit or
external devices to be connected to the CPX−CEC.
When using external devices, data communication must be
programmed by the user.
Socket
PinSignalExplanation
1
2
3
4
5
6
7
8
9
Screen
n.c.
RxD
TxD
n.c.
GND
n.c.
n.c.
n.c.
n.c.
Screen
not connected
Received data
Transmitted data
not connected
Data reference potential
not connected
not connected
not connected
not connected
Connection to functional earth (FE)
Tab.2/6:Pin assignment of the RS232 interface (CPX−CEC)
Festo P.BE−CPX−CEC−EN en 1004a
2−17
2. Installation
2.7Connection of an operator unit type FED
The operator unit type FED is a display for operating and
observing automation tasks at the field level.
· Follow the accompanying user documentation when
installing the device.
2−18
Fig.2/5: CPX terminal with CPX−CEC−C1 and operator unit
type FED incl. optional Ethernet interface
Connect an operator unit of type FED with Ethernet interface
to the CoDeSys controller using an Ethernet cable. With the
CPX−CEC, connection can also take place over the RS232
interface.
Festo P.BE−CPX−CEC−EN en 1004a
2. Installation
2.8Connection of a handheld type CPX−MMI
The 5−pin M12 socket serves to connect a CPX−MMI for fast
preliminary commissioning, diagnosis or parameterising.
Fig.2/6: CPX terminal with handheld type CPX−MMI
Festo P.BE−CPX−CEC−EN en 1004a
The connection with the CPX−MMI is interrupted during a
program download if parameters have been changed via the
CoDeSys provided by Festo software. This guarantees the
consistency of the displayed data.
Use only the following original cables
(è www.festo.com/catalogue) for connecting the CPX−MMI:
Type
KV−M12−M12−3,53.5
KV−M12−M12−1,51.5
Cable length in [m]
Tab.2/7:Connection cable for handheld type CPX−MMI
Further information on parameterisation via CPX−MMI can be
found in the section 3.5.2.
General information on the CPX−MMI can be found in the
manual P.BE−CPX−MMI−1−...
2−19
2. Installation
2.9Complying with protection class IP65/IP67
In order to comply with protection class IP 65/IP67, seal un
used sockets and the switch with the appropriate covers.
Connection/
switch
Ethernet, RJ45Plug
Sub−D (CANopen/
RS232) and
DIL switch
Service interface,
M12
Rotary switchCover
1)
If connection is not used
2)
Included in scope of delivery
Connection
IP65/IP67
type FBS−RJ45−8−GS
Plug type FBS−
SUB−9−BU−
2X5POL−B
Connecting cable and
plug of the CPX−MMI
1)
Cover
IP65/IP67
2)
Cover
type AK−RJ45
Transparent cover
type AK−SUB−9/15−B
Protective cap
type ISK−M12
type AK−RJ45
2)
2)
Tab.2/8:Connections and covers for protection class
Danger of injury due to undesired movements of the
connected actuators.
· Test projects and programs at first without active
actuators and without compressed air.
1. Install the program environment CoDeSys provided by
Festo on a PC on which you carry out commissioning,
configuration and programming.
Detailed installation instructions can be found on the
accompanying CD−ROM. Observe the instructions on the
cover of the CD−ROM.
3.2First steps
Festo P.BE−CPX−CEC−EN en 1004a
2. Connect the
PC to the CoDeSys controller.
The commissioning procedure described in the following
sections uses the example of the CPX−CEC−C1 or CPX−CEC−M1
as a CANopen master. Further information on commissioning
the variants CPX−CEC−M1 with SoftMotion and CPX−CEC can
be found in the online help.
1. Start CoDeSys provided by Festo.
2. Create a new project.
1. Select the target system.
2. If necessary, change the
settings for the target
system.
3. Create the program module "PLC_PRG".
· Select the language of the module, e.g. STL.
3−3
3. Commissioning
4. In the "Object Organizer", change to "Resources".
5. Open the "PLC Configuration".
6. Select the Root node, if applicable.
7. Open the "Network configuration" tab.
8. Carry out the "Search network" function.
9. Select the desired CoDeSys controller.
10. Carry out the "Set as active PLC" function.
11. Save the project.
You can now log in to the controller, if necessary.
Fig.3/1: Network configuration using the example of the CPX−CEC−C1
3−4
Festo P.BE−CPX−CEC−EN en 1004a
3. Commissioning
3.3Configuration of the CPX modules
Detailed information on configuration of the CPX modules
can be found in the online help.
After you have created a new project in section 3.2 and
selected the desired CoDeSys controller, now continue
commissioning with configuration of the CPX modules.
1. Click in the window "PLC Configuration" on the nodes to
the left of
2. Click with the right mouse button on the element
"IOModules[FIX]".
the CPX−CEC−...
Fig.3/2: Configuration of the CPX modules
Now you can perform module configuration automatically
or manually.
Festo P.BE−CPX−CEC−EN en 1004a
3−5
3. Commissioning
Automatic module configuration
· Perform the [Scan module configuration] function if you
want to perform module configuration automatically.
The I/O modules of a CPI module are not included in auto
matic module configuration. In this case, carry out a manual
module configuration (see next section) or perform the
"Scan" function in the "CP Modules" tab.
Fig.3/3: "CP Modules" tab
3−6
Festo P.BE−CPX−CEC−EN en 1004a
3. Commissioning
Manual module configuration
· Select [Append Subelement] if you want to perform
module configuration manually.
Attach the CPX modules from left to right in the physical
sequence on the CPX terminal. The modules are added at the
bottom in the tree structure. The CoDeSys controller sits in
the CPX terminal to the far left at position
· From the list of the CPX modules, select the CPX module
to the right of CPX−CEC−...
· Repeat [Append Subelement] until you have selected all
CPX modules.
Addressing of inputs and outputs takes place automatically
(preset in the delivery condition of the device). For each mod
ule, at least 4 bytes of inputs or outputs are reserved.
The rotary switch of the CPX−CEC−C1, for example, occupies
only 4 bits of
inputs, but 4 bytes are reserved.
Alternatively, you can also manually address the inputs
and outputs. Information can be found in the online help.
0.
Festo P.BE−CPX−CEC−EN en 1004a
3. Save the project.
3−7
3. Commissioning
3.4Configuration of the C ANopen slaves
Now continue commissioning with configuration of the
CANopen slaves.
Addressing of the inputs and outputs takes place automati
cally. For each CANopen slave, at least 4 bytes of inputs or
outputs are reserved.
The input and output addresses of the CANopen slaves are
attached to the input and output addresses of the CPX
ules. When the "Automatic addresses" option is selected,
a change of configuration of the CPX modules results in a
change of the address assignment of the CANopen slaves.
1. In the "PLC Configuration" window, click with the right
mouse button on the Root node of the CoDeSys con
troller.
mod
3−8
2. In the [Append Subelement] menu
option, choose the
option [CANopen master].
The [CANopen master] appears in the Control
configuration after the [IOModules].
3. Click on [CANopenMaster[VAR]] with the right mouse
button.
4. Choose [Append Subelement].
5. Select a CANopen slave.
6. Repeat steps 3 to 5 until you have selected all CANopen
slaves.
Detailed information on configuration of the CANopen slaves
can be found
in the online help and in the file "CANopen for
3S Runtime Systems V2_...pdf" in the installation directory of
CoDeSys provided by Festo.
Festo P.BE−CPX−CEC−EN en 1004a
3. Commissioning
3.5Parameterisation of the CPX terminal
The CPX terminal is supplied from the factory with preset
parameters. If required, you can set the reaction of the CPX
terminal as well as the reaction of individual modules and
channels by parameterising.
A distinction is made between the following parameterisa
tions:
system parameters,e.g.: switching off fault messages,
setting reaction times, etc.
module parameters
monitoring, settings in the event of faults, settings for
forcing
diagnostic memory parameters.
Detailed specifications on the parameters and data as well as
basic information on parameterisation of the CPX terminal
can be found in the CPX system manual type P.BE−CPX−SYS−....
Detailed information on the module parameters can be found
the user documentation of the respective modules.
in
The following parameterisation options are available:
Parameterisation via ...
Control configuration in
CoDeSys: logout
Handheld type CPX−MMIParameterisation is carried
DescriptionProperties
Access to all parameters of
the CPX terminal
out via menu−listed entries
with the handheld
(module and channel−specific),e.g.:
Convenient parameterisation via a PC
Parameterisation is stored in the
project, i.e. the parameters remain
after Power OFF/ON
Parameterisation is saved only locally
in the CPX terminal and is lost with
Power OFF/ON
Tab.3/1:Parameterisation options
Festo P.BE−CPX−CEC−EN en 1004a
3−9
3. Commissioning
3.5.1Parameterisation via control configuration in CoDeSys
Detailed information on parameterisation can be found in the
online help.
You can easily parameterise the CPX terminal with the control
configuration. Parameterisation can be undertaken for:
the setpoint configuration (logout): parameters are
transferred when the project is loaded.
When the relevant dialogue has been opened, you can view
and modify the individual parameters.
Parameters cannot be changed in the online mode.
In the following, parameterisation is described using the
example of the Root node:
3−10
· Click in "PLC Configuration" on the symbol for the
CPX−CEC.
Settings
· Set the following parameters in the "Settings" tab,
if necessary:
Fig.3/4: "Settings" tab
Festo P.BE−CPX−CEC−EN en 1004a
3. Commissioning
Module #0
In the "Module #0" tab, you receive the following information
on the CoDeSys controller:
Fig.3/5: "Module #0" tab
Festo P.BE−CPX−CEC−EN en 1004a
Network configuration (logout)
· Look for the controller for which you want to prepare the
new CoDeSys project in the "Network configuration" tab:
Fig.3/6: "Network configuration" tab
3−11
3. Commissioning
System parameters
· Set the system parameters in the "System Parameters"
tab:
Fig.3/7: "System Parameters" tab
3−12
Trace parameters
· Set the following parameters in the "Trace Parameters"
tab:
Fig.3/8: "Trace Parameters" tab
Festo P.BE−CPX−CEC−EN en 1004a
3. Commissioning
3.5.2Parameterisation via the handheld type CPX−MMI
The parameters of the CPX terminal can be read and modified
via a connected handheld.
Transfer of the parameterisation to the CPX modules
Note
· Parameterisations via the handheld are saved only
locally in the CPX terminal and are lost with Power
OFF/ON.
· The connection with the CPX−MMI is interrupted during a
program download if parameters have been changed via
the CoDeSys provided by Festo software.
· Parameters changed by the CPX−MMI and Festo_CPX.lib
are only then overwritten during the project download if
parameter changes have also been made in the CoDeSys
project.
Festo P.BE−CPX−CEC−EN en 1004a
Further information on parameterisation via CPX−MMI can be
found in the manual P.BE−CPX−MMI−1−...
3−13
3. Commissioning
3.6Forcing
Through forcing, you can compel input and output signals.
Actual input signals or status changes by program are
ignored and replaced by the force values.
Warning
High acceleration forces at the connected actuators!
Undesired movements of the actuators can cause
collisions and severe injuries.
· Be very careful when forcing in order to avoid undesired
movements of the actuators.
· Make sure that no persons are in the operating range of
the drives or any other connected actuators.
Forcing of inputs with
handheld type CPX−MMI
Forcing of outputs with
handheld type CPX−MMI
3−14
Forcing an input does not modify the input signal itself and
cannot be observed at the relevant status LED. The logical
status of the input changes internally and in
some cases has
an effect on the program. The forced input status is trans
ferred to the image table of the inputs. The online display in
CoDeSys provided by Festo therefore shows the forced input
signal.
Forcing an output does modify the actual output signal and
can be observed at the relevant status LED. However, the
forced output signal is not transferred to the image table of
the outputs. The online display in CoDeSys provided by
Festo does not show the forced, physical output signal,
but the status from the image table.
Festo P.BE−CPX−CEC−EN en 1004a
3. Commissioning
Note
The online display in CoDeSys provided by Festo always
shows the signal status valid in the process diagram. When
forcing with the handheld type CPX−MMI, observe the
following:
Forced input states are transferred to the image table
and therefore recognised by the controller. They are
visible in the online display.
Forced output states
are not transferred to the image
table and are therefore not recognised by the controller.
They are not therefore represented in the online display.
You have various ways of temporarily influencing input or
output signals, e.g. for test purposes:
Forcing via the handheld type CPX−MMI
Forcing with the online display in CoDeSys provided by
Festo.
Festo P.BE−CPX−CEC−EN en 1004a
Further information on forcing can be found in the CPX
system manual type P.BE−CPX−SYS−... and in the online help.
If several functions are active at the same time, the following
applies:
Force signals have the highest priority
Forcing via the handheld has higher priority than forcing
4.1General error response of the CoDeSys controller
Warning
If an error occurs, the controller does not stop but
continues with the program processing. Undesired
movements of the actuators can cause collisions and
severe injuries.
· Include error handling mechanisms for all error
categories in the user program.
· Make sure that no persons are in the operating range of
the drives or any other connected actuators.
The CoDeSys controller makes available the following error
handling mechanisms in user programs:
System event CPX_system_fault
Festo P.BE−CPX−CEC−EN en 1004a
Channel/module diagnosis in the flag words
Module support in the Festo_CPX.lib
Detailed information on error handling in user programs can
found in the online help.
be
4−3
4. Diagnosis
For the CoDeSys controller, the following diagnostics options
are available:
Diagnosis via ...
Status LEDsFast on−the−spot
Handheld type CPX−MMIFast on−the−spot
Control configurationOnline diagnosis without
User programDetailed diagnostic
AdvantagesDescription
recognition of faults
recognition of faults
programming
evaluation:
System event
CPX_system_fault
Channel/module diag
nosis in the flag words
Module support in the
Festo_CPX.lib
Controller LEDs, see section 4.2
CPX−specific LEDs, see section 1.5.
See CPX system manual
See online help
See online help
Tab.4/1:Diagnostic options of the CoDeSys controller
4−4
Festo P.BE−CPX−CEC−EN en 1004a
4. Diagnosis
4.2Diagnosis via controller LEDs
The controller LEDs have the following meaning:
RUN PLC status: started
LED (green)SequenceStatusError numberError handling
ON
OFF
LED lights up
ON
OFF
LED is off
PLC program started
(RUN/STOP switch is in
position "1 ... F")
PLC program stopped
(RUN/STOP switch is in
position "0")
· Set RUN/STOP
switch to position
"1 ... F"
Tab.4/2:Displays of RUN LED
STOP PLC status stopped
LED (yellow)SequenceStatusError numberError handling
ON
OFF
LED lights up
ON
OFF
LED is off
PLC program stopped
(RUN/STOP switch is in
position "0")
PLC program started
(RUN/STOP switch is in
position "1 ... F")
· Set RUN/STOP
switch to position
"0"
Tab.4/3:Displays of STOP LED
Festo P.BE−CPX−CEC−EN en 1004a
4−5
4. Diagnosis
ERROR PLC run−time error
LED (red)SequenceStatusError numberError handling
ON
OFF
LED lights up
ON
OFF
PLC program errorCPX error· Read out error
code over
handheld or
CoDeSys pbF
No error
LED is off
Tab.4/4:Displays of ERROR LED
TP Ethernet connection: link/traffic
LED (green)SequenceStatusError numberError handling
ON
OFF
Ethernet connection OK
LED lights up
ON
OFF
Data transfer active
(LED flashes irregularly)
LED flashes
ON
OFF
LED is off
Ethernet connection to the
parameterisation PC not OK
· Check
the connection
the IP address
Tab.4/5:Displays of TP LED
4−6
Festo P.BE−CPX−CEC−EN en 1004a
4. Diagnosis
4.3Further diagnostics options
Further information on diagnosis via the control configuration
in CoDeSys provided by Festo and via user programs can be
found in the online help.
Further information on diagnostics with SoftMotion
(CPX−CEC−M1) can be found in the online help.