Control block
CPX-CEC-C1-V3/-M1-V3/-S1-V3
Description
Codesys-Controller
8042601
en 1411c
[8042603]
® ® ® ®
CANopen , CODESYS , MODBUS and Torx are registered trademarks of the respective trademark
owners in certain countries.
This product uses open-source software which is subject to the "GNU General Public License, Version 2".
The terms of the General Public License can be found within the programming system as well as at the
following address:
– http://www.gnu.org/copyleft/gpl.html
– Internal CPX-CEC-…-V3 web server: http://<IP address of the device>/cgi-bin/system-about
3 Installation......................................................................................................................................... 10
3.1 General information ................................................................................................................... 10
3.2 Mounting and removal................................................................................................................ 11
3.2.1 Removal ....................................................................................................................... 11
3.2.2 Mounting ...................................................................................................................... 11
3.3 Connection and display components ......................................................................................... 12
3.4 Setting the switches on the Codesys controller.......................................................................... 13
3.4.1 RUN/STOP rotary switch ............................................................................................. 13
3.4.2 DIL switches ................................................................................................................. 13
3.5 Interfaces ................................................................................................................................... 14
3.5.1 Ethernet interface......................................................................................................... 14
3.5.2 Communication interfaces............................................................................................ 15
3.5.3 RS232 interface (CPX-CEC-S1-V3)............................................................................. 17
3.5.4 Power supply ............................................................................................................... 17
3.6 Connecting an operator unit CDPX ............................................................................................ 18
3.7 Connecting a handheld CPX-MMI .............................................................................................. 19
3.8 Ensuring protection to IP65/IP67 ............................................................................................... 19
4 Commissioning ................................................................................................................................ 20
4.1 General information ................................................................................................................... 20
4.2 Requirements ............................................................................................................................. 20
4.2.1 Hardware ..................................................................................................................... 20
4.2.2 Software ....................................................................................................................... 20
4.2.3 Important documentation for the controller hardware and software ............................. 20
4.3 Preparations ............................................................................................................................... 20
4.4 Getting started ........................................................................................................................... 21
4.4.1 Creating a project......................................................................................................... 21
4.4.2 Selecting a device ........................................................................................................ 21
4.4.3 Finding devices ............................................................................................................ 23
4.4.4 Manually adding a device............................................................................................. 24
iv
Table of Contents
5 Diagnosis .......................................................................................................................................... 56
5.1 General error behaviour ............................................................................................................. 56
5.2 Status LEDs ............................................................................................................................... 57
5.3 Online diagnosis in the controller configuration.......................................................................... 60
5.3.1 Diagnostic messages in PLC diagnosis ....................................................................... 60
5.3.2 Diagnostic messages on the [Log] tab ......................................................................... 61
5.3.3 Diagnosis in the "Scan Festo Devices" dialog.............................................................. 62
5.4 Errors and diagnostic information in SoftMotion (CPX-CEC-M1-V3).......................................... 63
5.5 Errors and diagnostic information via web server ...................................................................... 63
5.6 Diagnosis in the user program ................................................................................................... 64
5.7 Diagnosing CANopen................................................................................................................. 64
8 Glossary ............................................................................................................................................ 70
v
1 Important information
1.1 Designated use
The Codesys controller CPX-CEC-...-V3 described in this manual is intended exclusively for use in CPX
terminals from Festo for installation in a machine or automated system.
In combination with a CPX terminal, the CPX-CEC-...-V3 is used for:
– Controlling pneumatic and electric drives (valves, output modules and motor controllers via CANopen)
– Interrogating electric sensor signals through the input modules
– Communication via Ethernet.
The CPX terminal with the CPX-CEC-...-V3 must only be used as follows:
– As intended in industrial applications; interference suppression measures may be required outside of
industrial environments, e.g. in residential and mixed-use areas
– In original condition without unauthorised modifications; only the conversions or modifications
described in the documentation supplied with the product are permitted
– In faultless technical condition
– Only in combination with released components (e.g. valves, drive/displacement encoder
combinations).
• The maximum values specified for pressures, temperatures, electrical data, torques, etc. must be
observed.
• Please comply with national and local safety laws and regulations.
All notes on designated use, the safety instructions and all further provisions for the CPX-CEC-...-
V3 also apply to the associated software libraries.
1
Festo control block CPX-CEC
2
Festo control block CPX-CEC
1.1.3 Service
Contact your local Festo Service partner if you have any technical problems ( www.festo.com).
Including the following information and data will make it easier to process support queries:
– CPX-CEC-...-V3 project ( menu command in Codesys: [File] [Project Archive] [Save/Send Archive],
etc.)
– Programming environment version ( menu command in Codesys [Help] [About] [Display Detailed
Version Information])
– Controller data ( export the FFT device properties)
Caution
... means that injury to people and damage to property can occur if this warning is not heeded.
Note
... means that damage to property can occur if this warning is not heeded.
In addition, the following pictogram marks passages in the text that describe activities involving
electrostatic sensitive components.
Note
Electrostatic sensitive components: inappropriate handling can result in damage to components.
3
Festo control block CPX-CEC
General basic information on the method of operation, on fitting, installing and commissioning
CPX terminals can be found in the CPX system manual P.BE-CPX-SYS-...
Refer also to the user documentation for the components used in the CPX terminal.
4
Festo control block CPX-CEC
2 System overview
2.1 Modular valve terminal with integrated controller CPX-CEC-...-V3
Variant Features Codesys target
1)
system ID
2.2.1 Packages
The associated CPX-CEC package is required to use the controller CPX-CEC-...-V3 (target system) under
CODESYS V3 pbF. This package enables the system functions of the target system to be accessed with
the help of libraries and contains corresponding information in the form of online Helps. This enables
Codesys functions to be used for the target system or, if necessary, restrict it.
• Use the CODESYS V3 pbF software and the CPX-CEC package to configure the device
( www.festo.com/sp).
5
Festo control block CPX-CEC
Note
• Make sure during programming that the total size of all the remanent data does not exceed the
maximum available range of 28 kB.
This will avoid errors when transferring an application to the CPX-CEC-...-V3.
6
Festo control block CPX-CEC
2.4 Libraries
To simplify programming, Codesys enables usable objects such as
– function blocks
– declarations
– visualisations
to be organised into project-independent libraries.
Library Comment
A Library Manager that can be used to integrate and view libraries is available for this.
Detailed descriptions of the libraries and how to program them can be found in the respective
online Helps.
7
Festo control block CPX-CEC
1 CPX-CEC-...-V3
2 CPX terminal controlled by CPX-CEC-...-V3
Standalone operating mode
8
Festo control block CPX-CEC
1 CPX-CEC-...-V3 for communication via the fieldbus node connected to the fieldbus
2 CPX fieldbus node, in this case CPX-FB13
3 CPX terminal controlled by CPX-CEC-...-V3
Remote Controller Fieldbus operating mode (fieldbus node required)
9
Festo control block CPX-CEC
3 Installation
3.1 General information
Caution
Risk of injury due to electric shock.
• Always switch off the power supply before mounting or removing CPX modules.
Note
The controller CPX-CEC-...-V3 contains electrostatically sensitive components.
• Therefore do not touch any contacts.
• Observe the handling specifications for electrostatically sensitive devices.
Note
The controller CPX-CEC-...-V3 only supports single-channel switch-off. All inputs and outputs are
de-energised when the power supply is switched off.
Note
Check your EMERGENCY STOP circuit in order to ascertain the measures necessary for
switching your machine/system into a safe state in the event of an EMERGENCY STOP
(e.g. shutting off energy sources; load voltage supply, compressed air, etc.).
Information on mounting the CPX terminal can be found in the CPX system manual P.BE-CPX-SYS-.... .
10
Festo control block CPX-CEC
1 CPX-CEC-...-V3
2 Manifold sub-base
3 Contact rails
4 Screws (4)
Figure: Mounting/removing the device (in this case CPX-CEC-C1-V3/-M1-V3)
3.2.1 Removal
Note
• Never remove the CPX-CEC-...-V3 while still wired.
• Make sure that all cable connections are disconnected before removing the CPX-CEC-...-V3.
1. Loosen the screws 4 in the device 1 with a TORX screwdriver size T10.
2. Pull the device carefully and without tilting away from the contact rails 3 of the manifold sub-base 2.
3.2.2 Mounting
Note
• Mount the device at the left-hand end position of the CPX terminal (position 0).
1. Check the seal and the sealing surfaces.
2. Place the device 1 in the manifold sub-base 2. Make sure that the grooves with the power contact
terminals on the bottom of the device lie above the contact rails 3.
3. Then push the device 1 carefully and without tilting as far as possible into the manifold sub-base 2.
4. Place the screws so that the self-cutting threads can be used. Tighten the screws by hand.
5. Tighten the screws 4 with a TORX screwdriver size T10 to 0.9 ... 1.1 Nm.
11
Festo control block CPX-CEC
12
Festo control block CPX-CEC
0 STOP
Codesys controller stopped. The STOP LED lights up yellow.
1 ... F RUN
Codesys controller started. The RUN LED lights up green.
Factory setting: 1
DIL 1.1: OFF CAN bus termination (120 Ω) switched off (factory setting).
DIL 1.2: OFF
DIL 2.1: ON CAN bus termination (120 Ω) switched on (only with CPX-CEC-C1-
DIL 2.2: OFF V3 and CPX-CEC-M1-V3).
13
Festo control block CPX-CEC
3.5 Interfaces
3.5.1 Ethernet interface
The Ethernet interface enables a programming device, PC or operator unit to be connected to the Codesys
controller.
The Ethernet interface is designed as an RJ45 socket.
Socket Pin Signal Comment
If the Ethernet interface is not used, seal it with a cover AK-RJ45. This provides protection to IP65/IP67
( section Ensuring protection to IP65/IP67).
Ethernet cable
Use connecting cables with the following specification:
– Screened flexible Ethernet round cable from category 5
– Max. outside diameter: 5.4 mm
– Core diameter: 0.89 ... 1.0 mm AWG24-26
– Assembly: Via crimp tool to RJ45
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 connection
You will need a patch or crossover cable to connect your Codesys controller to a network or PC. The
interface automatically detects which cable is connected and automatically switches the signals.
Note
• Use the RJ45 plug from Festo to ensure protection to IP65/IP67 ( section Ensuring protection
to IP65/IP67):
– FBS-RJ45-8-GS
• Refer to the fitting instructions for the plug.
14
Festo control block CPX-CEC
1) CAN Ground (optional), pin 6, on the CPX-CEC-C1-V3/-M1-V3 must not be used if a motor
controller with an external power supply is connected.
The CANopen interface does not supply the connected CAN bus slaves with voltage.
Note
• Use a protective cap or blanking plug to seal unused connections.
This provides protection to IP65/IP67 ( section Ensuring protection to IP65/IP67).
15
Festo control block CPX-CEC
Note
The clamp strap in the CAN bus plug from Festo is connected internally only capacitively with the
metallic housing of the sub-D plug. This is to prevent equalising currents flowing through the
screen of the CAN bus.
• Clamp the screen under the clamp strap of the CAN bus plug ( accompanying manual for
the CAN bus plug).
Appropriate CAN bus plugs (adapters) from Festo can be found at www.festo.com/catalogue.
Further information on configuring a connected CANopen slave under Codesys can be found in the section
Configuring a CANopen slave.
16
Festo control block CPX-CEC
When using external devices, data communication must be programmed by the user.
1 n. c. Not connected
2 RxD Received data
3 TxD Transmitted data
4 n. c. Not connected
5 GND Data reference potential
6 n. c. Not connected
7 n. c. Not connected
8 n. c. Not connected
9 n. c. Not connected
Housing Screen Connection to functional earth
Note
Long signal cables reduce interference immunity.
• Make sure that the signal cable is not longer than 30 m.
17
Festo control block CPX-CEC
18
Festo control block CPX-CEC
KV-M12-M12-3,5 3.5 m
KV-M12-M12-1,5 1.5 m
1)
Connection/switch Connection to IP65/IP67 Cover to IP65/IP67
2)
Ethernet, RJ45 Plug FBS RJ45-8-GS Cover AK-RJ45
2)
Sub-D (CANopen/RS232) and Plug FBS SUB-9-BU-2x5Pol-B Transparent cover AK-
DIL switch SUB-9/15-B
2)
Service interface, M12 Connecting cable and plug of the Protective cap ISK-M12
CPX-MMI
2)
Rotary switch Cover AK-RJ45
1) if connection is not used
2) included in the scope of delivery
19
Festo control block CPX-CEC
4 Commissioning
4.1 General information
Caution
Risk of injury due to uncontrolled movements of the connected actuators.
• Test projects and programs initially without active actuators or without compressed air.
Note
• Only fully mounted and wired CPX terminals may be commissioned.
4.2 Requirements
4.2.1 Hardware
CPX-CEC-...-V3 with active Codesys runtime system
– Ethernet network components
– PC (Windows 7 or higher) with Ethernet interface
Information on installation and system requirements for the software packages is included in the relevant
user documentation.
4.2.2 Software
– CODESYS V3 pbF ( www.festo.com/sp)
– CPX-CEC package compatible with firmware
CODESYS Installation and Start.pdf Getting started with the Codesys programming system
(English)
CoDeSys_OPC_Server_V3_User_Guide.pdf Documentation for OPC Server V3, installation and use
(English)
After installing Codesys you will find the rest of the documentation in the online Help.
4.3 Preparations
Administrator rights are required to install and run the Codesys programming software on your
PC.
1. Install the Codesys programming software on the PC used to commission, configure and program the
CPX-CEC-...-V3.
2. Launch Codesys with administrator rights and install the CPX-CEC package. To do this, open the
Package Manager in Codesys using the [Package Manager] command in the [Tools] menu.
3. After the package is installed, restart Codesys to be able to use the modified plug-ins.
4. Connect the PC to the CPX-CEC-...-V3 directly via the Ethernet interface or indirectly via a switch/hub.
20
Festo control block CPX-CEC
21
Festo control block CPX-CEC
Options not supported by the respective device are inactive (shown in grey) and cannot be
selected.
The Codesys program window opens with the newly created project.
22
Festo control block CPX-CEC
23
Festo control block CPX-CEC
Following the update, a list of all CPX-CEC-...-V3 devices in the local gateway that match the filter settings
is displayed.
24
Festo control block CPX-CEC
25
Festo control block CPX-CEC
26
Festo control block CPX-CEC
27
Festo control block CPX-CEC
Add the CPX modules in the physical order in the CPX terminal from left to right. The modules are
added at the bottom of the tree structure.
28
Festo control block CPX-CEC
The inputs and outputs are automatically addressed (preset in the device on delivery). At least 1
byte of inputs or outputs is reserved for each module. The rotary switch of the CPX-CEC-…-V3,
for example, only occupies 4 bits of inputs, but 1 byte is reserved.
Alternatively you can also address the inputs and outputs manually.
Addressing settings
The I/O addresses are automatically assigned by Codesys.
The I/O addresses are edited directly in the I/O mapping for the respective module.
Note
With manual address assignment, Codesys does not perform a check for possible overlaps in the
I/O range.
• Check the distribution of the address ranges.
29
Festo control block CPX-CEC
30
Festo control block CPX-CEC
31
Festo control block CPX-CEC
The [Module Configuration] tab contains information about the settings for the CPX system and the
diagnostic memory (trace parameters).
Note
Changes are only transferred to the controller system and only come into effect after a download
in online mode.
The configuration for idle mode can be found in the PLC settings, function "Behaviour for
outputs in Stop":
32
Festo control block CPX-CEC
33
Festo control block CPX-CEC
The [Module Configuration] tab contains information about the settings for the CPX module.
Note
Changes are only transferred to the controller system and only come into effect after a download
in online mode.
34
Festo control block CPX-CEC
The serial number and revision are only displayed after the "Read from module" function is
executed.
The module parameters are part of the project and are loaded from the boot project after the
controller is restarted.
1. If applicable, read out the current values using the "Read from module" function.
2. Change the values of the individual parameters.
3. Save the changes using the "Write to module" function or log into the controller.
4. Generate a boot project if required so that the parameters will be activated in the module after a
restart.
The [Festo CPX I/O Mapping] tab contains details of the I/O information for the CPX module.
Note
• Check the "Always update variables" box to be able to reliably trace changes to the I/O
information in online mode.
35
Festo control block CPX-CEC
Information about the module available electronically is displayed on the [Information] tab.
36
Festo control block CPX-CEC
Further information on parameterisation via CPX-MMI can be found in the manual P.BE-CPX-
MMI-1-… .
37
Festo control block CPX-CEC
38
Festo control block CPX-CEC
39
Festo control block CPX-CEC
This option is activated by default for the CPX-CEC-…-V3 under CODESYS V3 pbF.
10. If necessary, check the "Autoconfig PDO Mapping" box on the "CANopen Remote Device" tab in the
editing window.
This setting executes automatic configuration if the CANopen slave supports sub-modules.
The PDO mapping can be found in the sub-tab of the same name.
40
Festo control block CPX-CEC
41
Festo control block CPX-CEC
2. Make sure that the priority of the "MotionTask" is set to a real-time priority.
Real-time priorities are in the range from 0 to 15. Priorities > 15 are non-real-time priorities.
3. Set the task type to "External" and the external event to "CANopen_SYNC".
4. Add a CANbus node to the CPX-CEC- ... -V3 in the device tree.
5. Open the CAN bus node in the device tree and set the baud rate.
42
Festo control block CPX-CEC
9. Set "MotionTask" as the bus cycle time on the [CANopen I/O Mapping] tab.
43
Festo control block CPX-CEC
11. Set the node IDs of the drives as appropriate to the FCT configuration.
12. Configure the basic parameters of the individual SoftMotion drives on the [SoftMotion Drive: Basic]
tab.
13. Configure the scaling factors for the individual SoftMotion drives on the [SoftMotion Drive:
Scaling/Mapping] tab.
44
Festo control block CPX-CEC
The following steps describe how to prepare to control a CPX-CEC-…-V3 by means of a further CPX-
CEC-…-V3 via Modbus TCP.
45
Festo control block CPX-CEC
Figure: Device window - selecting "Modbus TCP Master" in the "Ethernet" branch
7. Highlight the new "Modbus TCP Master" branch and add the "Modbus TCP Slave" module using the
context menu.
8. Repeat this process for the other Modbus TCP slaves.
Figure: Device window - selecting "Modbus TCP Slave" in the "Modbus TCP Master" branch
46
Festo control block CPX-CEC
13. Click the "Add Channel..." button and set the desired parameters.
The appropriate parameters are described in the Codesys Help.
47
Festo control block CPX-CEC
48
Festo control block CPX-CEC
If the timeout option is activated and if this has a value greater than zero, the holding register
values (%IW) are automatically reset after this time WITHOUT further remote access to the
holding register range.
49
Festo control block CPX-CEC
2. Highlight the branch of the device being parameterised as a "Modbus TCP Slave Device".
Several tabs for parameterising the selected "Modbus TCP Slave Device" are displayed in the workspace.
50
Festo control block CPX-CEC
4.14.1 Login
Use one of the following commands for login:
– Click the icon in the toolbar of the Codesys program window
– Menu command [Online] [Login]
– Key combination ALT+F8.
Codesys logs in to the CPX-CEC-...-V3 connected via the active path in the gateway.
First a comparison is performed of whether the connected CPX-CEC-...-V3 matches the device selected in
the project. If applicable, an error message about the target system ID is displayed ( section Modular
valve terminal with integrated controller CPX-CEC-...-V3).
51
Festo control block CPX-CEC
Once online mode is active, the connection to the CPX-CEC-...-V3 as well as the application are
highlighted in green in the device window. The CPX-CEC-...-V3 is online, the application is not started (not
running), the "Run" status LED lights up yellow.
52
Festo control block CPX-CEC
The entries for the CPX-CEC-...-V3 as well as its application are shown against a green background in the
device window; [run] appears after the application "CPX-CEC-...-V3_Code". The circular arrows in front of
the various devices of the CPX-CEC-...-V3 light up green.
The application on the CPX-CEC-...-V3 is running, the "Run" status LED lights up green.
4.14.3 Logout
Use one of the following commands for logout:
– Click the icon in the toolbar of the Codesys program window
– Menu command [Online] [Logout]
– Key combination CTRL+F8.
Further information on monitoring and controlling the application can be found in the online Help for
Codesys.
53
Festo control block CPX-CEC
4.15 Forcing
Forcing allows you to manipulate input and output signals. Actual input signals or status changes by
program are ignored and replaced by the force values.
Warning
High acceleration forces of the connected actuators. Uncontrolled movements of the actuators
can cause collisions which can lead to serious injury.
• Be very careful when forcing to avoid uncontrolled movements of the actuators.
• Make sure that nobody enters the positioning range of the drives or other connected actuators.
Note
The online display in Codesys always shows the signal status valid in the process diagram. Note
the following when forcing with the handheld type CPX-MMI:
– Forced input states are transferred to the processing image and therefore recognized by the
controller. They are visible in the online display.
– Forced output states are not transferred to the process image and are therefore not recognised
by the controller. They are not therefore represented in the online display.
You have various options for influencing input or output signals, e.g. for test purposes:
– Forcing via the handheld type CPX-MMI
– Forcing with the online display in Codesys.
Further information on forcing can be found in the CPX system manual P.BE-CPX-SYS-….
If several functions are active at the same time, the following applies:
– Force signals generally have the highest priority
– Forcing via the handheld has higher priority than forcing with the online display.
54
Festo control block CPX-CEC
The list of standard commands for any target systems can be found in the online Help for Codesys. The
following commands are additionally available for the CPX-CEC-…-V3.
Command Comment
A list of all the commands for the device in the active path can be called up by entering a question
mark "?" (without quotation marks) in the command line of the PLC shell.
55
Festo control block CPX-CEC
5 Diagnosis
5.1 General error behaviour
Warning
When an error occurs, the controller carries on the active program instead of stopping.
Uncontrolled actuator movements can cause collisions resulting in serious injury.
• Integrate error handling mechanisms for all error categories in the user program.
• Make sure that nobody enters the positioning range of the drives or other connected actuators.
The following diagnostic options are available for the controller CPX-CEC-...-V3:
Diagnosis via Advantages
LEDs Fast local error detection using LEDs ( section Status LEDs).
Handheld CPX-MMI Fast local error detection ( CPX system manual)
Codesys Online diagnosis
– In the diagnostic node ( section Diagnostic messages in PLC diagnosis)
– On the Log tab using logger: FestoLog ( section Diagnostic messages on the
[Log] tab)
– In the Scan Festo Devices dialog ( section Diagnosis in the "Scan Festo
Devices" dialog)
Web server Shows system diagnosis
User program Detailed diagnostic evaluation:
– Event in Festo_General_3.library
– Supports the function blocks of the Festo_CPX_3.library
56
Festo control block CPX-CEC
1)
1 RUN PLC status: started (green) 2 PS Electronics supply,
sensor supply (green)
1)
STOP PLC status: stopped (yellow) PL Load supply (green)
ERROR PLC runtime error (red) SF System fault (red)
TP Ethernet connection: Link/Traffic M Modify/force active (yellow)
(green)
1) The RUN and STOP LEDs indicate the status of the RUN/STOP rotary switch
Figure: Status LEDs on the CPX-CEC-...-V3
57
Festo control block CPX-CEC
No error –
Does not
light up
TP Ethernet –
(Ethernet connection OK
connection:
Link/Traffic) Lights up
green
Data transfer –
active (LED
flashes at
Flashes irregular
green intervals)
Ethernet • Check connection
connection to
parameterisation • Check IP address
Does not PC not OK
light up
PS (power No error. –
system) Operating
voltage/sensor
Lights up supply present
green
Operating • Eliminate undervoltage
voltage/sensor
supply outside
Flashes the tolerance
green, range
quickly
Internal fuse for • Eliminate short
the operating circuit/overload on module
voltage/sensor side.
Flashes supply has
green, blown. • Depends on the
slowly 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 must be turned off
and restored
No operating • Check the operating voltage
voltage/sensor connection of the
supply present electronics
Does not
light up
58
Festo control block CPX-CEC
Serious error
(class 3)
No error –
59
Festo control block CPX-CEC
Figure: PLC_Diagnosis
60
Festo control block CPX-CEC
Figure: Diagnostic display on the [Log] tab with the "FestoLog" logger.
61
Festo control block CPX-CEC
62
Festo control block CPX-CEC
A list of possible SoftMotion error numbers can be found in the 3S online Help ( SoftMotion
[Programming Interface] [SoftMotion Libraries] [SM3] [Basic] [Data Types] [Error] [SMC_ERROR].
63
Festo control block CPX-CEC
Select [System] [Diagnosis] to display the diagnostic information for the CPX modules.
The following Festo libraries can be used for diagnosis in the user program:
– Festo_General_3: General device diagnosis.
– Festo_CPX_3: CPX-specific diagnosis.
Examples and documentation for this functionality can be found in the online Help for the respective
library.
64
Festo control block CPX-CEC
65
Festo control block CPX-CEC
Note
The command "NMT Start All" is not executed while optional slaves are not yet ready to start. In
this situation, the CANopen Manager starts each slave individually. An "NMT Start All" can only
be guaranteed in a project without optional slaves.
66
Festo control block CPX-CEC
Possible remedies:
• Update the firmware version of the CPX-CEC-…-V3 using FFT.
• Use a compatible package (older/newer version).
67
Festo control block CPX-CEC
7 Technical appendix
7.1 Technical data
Feature Description
General technical data for the CPX system manual P.BE-CPX-SYS-... ( www.festo.com/sp)
CPX terminal
Total number of axes:
– CPX-CEC-C1-V3 127
– CPX-CEC-M1-V3 31
CPU data 800 MHz processor
Configuration support Codesys V3
Parameterisation Codesys V3
Programming software CODESYS V3 provided by Festo
Programming language To IEC 61131-3
SFC, STL, CFC, FCH, LDR, ST
Program memory 16 MB user program
Device-specific diagnosis – Channel and module-oriented diagnostics
– Module undervoltage/short circuit
– Diagnostic memory
Additional functions
– CPX-CEC-...-V3 Diagnostic functions
– CPX-CEC-C1-V3 Motion functions for electric drives
– CPX-CEC-M1-V3 SoftMotion functions for electric drives
– CPX-CEC-S1-V3 RS232 communication function
Ethernet protocols EasyIP, Modbus TCP, TCP/IP
Ethernet baud rate 10/100 bit/s to IEEE 802.3 (10BaseT) or IEEE 802.3u (100BaseTx)
Processing time Approx. 200 μs/1 k instructions
LED display (bus-specific) TP: Ethernet connection: Link/Traffic
LED display (product-specific) RUN: PLC status: started
STOP: PLC status: stopped
ERR: PLC runtime error
PS: Electronics supply, sensor supply
PL: Load supply
SF: System failure
M: Modify/force active
Fieldbus interface
(CPX-CEC-C1-V3/-M1-V3)
– Type CAN bus
– Connection technology Plug, Sub-D, 9-pin
– CPX-CEC-C1-V3 transfer 125, 250, 500, 800, 1000 kbps (can be set via software)
rate
– CPX-CEC-M1-V3 transfer 125, 250, 500, 800, 1000 kbps (can be set via software)
rate
– Electrical isolation Yes
68
Festo control block CPX-CEC
Feature Description
69
Festo control block CPX-CEC
8 Glossary
0 signal
0 V applied at the input, or output supplying 0 V.
1 signal
24 V applied at the input, or output supplying 24 V.
16#01
Hexadecimal numbers are indicated in Codesys by a preceding "16#".
CANopen
CAN-based fieldbus protocol standardised as a European standard.
CNC
Computer numerical control is an electronic method for closed-loop and open-loop control of machine tools
(CNC machines) or the devices (controllers, computers) used for them.
CODESYS V3 pbF
CODESYS V3 provided by Festo allows the configuration, commissioning and programming of different
Festo components and devices. It is called "Codesys" for short in this online Help/manual.
CPX modules
Common term for the various modules which can be incorporated in a CPX terminal.
CPX terminal
Complete system consisting of CPX modules with or without pneumatic components.
DIL switch
Dual-in-line switches consist of several switch elements with which settings can be made.
I/Os
Inputs and outputs.
I/O modules
Common term for the CPX modules which provide inputs and outputs.
EasyIP
UDP-based protocol for rapid exchange of operands between Festo controllers.
70
Festo control block CPX-CEC
EDS file
Electronic data sheet file; this file describes the functions and features of a CANopen device in
standardised form (e.g. number of I/Os, number of diagnostic bytes, etc.).
FB
Function block; in this document, "function block" is used as a general term for function module, function
and program.
Fieldbus node
Provides the connection to specific field buses. Transmits control signals to the connected modules and
monitors their ability to function.
FFT
Festo Field Device Tool.
FHPP
Festo Handling and Positioning Profile; standardised fieldbus data profile for positioning controllers from
Festo.
Handheld CPX-MMI
Handheld programmer for commissioning and service purposes.
IP
Internet Protocol; protocol for addressing and delivering data.
Modbus TCP
Communication standard via TCP/IP (port 502) in automation technology.
Node ID
Serves to clearly identify a bus slave on the CANopen fieldbus.
OLE
Object Linking and Embedding.
OPC
OLE for Process Control; standardised software interface that provides access to process data.
Package
All the configuration and expansion files that are required to make a specific controller (target system)
usable for the Codesys programming software are combined in a package.
Pneumatic interface
Interface between the modular electrical peripherals and the pneumatic components.
71
Festo control block CPX-CEC
SoftMotion
Motion functionality integrated in the Codesys programming and runtime system.
The following motion control models are offered as modules:
– Single/multi-axis motions with PLCopen motion modules
– 2.5-D CNC controller.
PLC/IPC
Programmable logic controller/industrial PC.
TCP
Transmission Control Protocol; protocol for data transport and backup.
TCP/IP
Combination of the protocols TCP and IP, the most-widely used protocol in communication via Ethernet.
UDP
User Datagram Protocol; a minimal, connection-free network protocol that has a lower protocol overhead
compared to TCP. This protocol has the advantage of a faster exchange of data. Correct transmission
must be monitored (e.g. by a user program) due to the absence of feedback.
Target system ID
Unique device type code. Projects can only be uploaded to controllers if the set device type matches.
72