E (Festo AG&Co.KG, D73726 Esslingen, Federal Republic
of Germany, 2004)
Internet: http://www.festo.com
E−Mail:[email protected]
The reproduction, distribution and utilization of this
document as well as the communicaton of its contents to
others without express authorization is prohibited. Offenders
will be held liable for
the payment of damages. All rights
reserved in the event of the grant of a patent, utility module
or design.
Festo P.BE−CPX−FEC−E N en 0404NH
I
Page 4
Contents and general instructions
MODBUStRegistered trade mark of Schneider Automation
Microsoft WindowstRegistered trade mark of Microsoft Corporation
The CPX−FEC (Front−End Controller) described in this manual
is intended exclusively for use as follows:
for controlling pneumatic and electric actuators (valves
for interrogating electric sensor signals through the input
communication via Ethernet
The CPX terminal may only be used as follows:
as intended in industrial installations.
and output modules)
modules
without any modifications by
the user. Only the conver
sions or modifications described in the documentation
supplied with the product are permitted.
in faultless technical condition.
The maximum values specified for pressures, temperatures,
electrical data, torques, etc. must not be exceeded.
If used together with additional commercially available com
ponents, such as sensors and actuators, the specified limits
pressures, temperatures, electrical data, torques etc.
for
must be observed.
Observe also the standards specified in the relevant chapters,
as well as national and local laws and technical regulations.
VIII
Festo P.BE−CPX−FEC−EN en 0404NH
Page 11
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
slaves on the Ethernet and the relevant field bus protocols.
Service
Please consult your local Festo repair service if you have any
technical problems.
Festo P.BE−CPX−FEC−E N en 0404NH
IX
Page 12
Contents and general instructions
Notes ontheuse of thismanual
Pleasenote
This manual refers to the following versions:
Hardware/software
CPX−FECas from software status 31.03.2004
Festo Software Tools (FST) Version 4.1 or higher
CPX−FB06 Interbus
CPX−FB11 DeviceNet
CPX−FB13 PROFIBUS−DP 2)as from software status 26.02.2004
CPX−FB14 CANopen
CPX−FB23 CC−Link
1)
Software status (SW) see type plate
2)
For operating mode Remote Controller Field bus
2)
2)
2)
Version
as from software status 11.07.2003
2)
as from software status 06.10.2003
as from software status 22.08.2003
as from software status 07.08.2003
1)
Tab.0/1:Hardware and software states for this manual
Note Tab.0/2 for further manuals on the CPX terminal.
X
Festo P.BE−CPX−FEC−EN en 0404NH
Page 13
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−FEC−E N en 0404NH
Pleasenote
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.
XI
Page 14
Contents and general instructions
Marking special information
The following pictograms mark passages in the text contain
ing 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.
XII
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.
Festo P.BE−CPX−FEC−EN en 0404NH
Page 15
Contents and general instructions
TypeTitleDescription
Electronics
manual
Software
package
System manual"
typeP.BE−CPX−SYS−...
CPX field bus node"
typeP.BE−CPX−FB...
CPX I/O modules"
type P.BE−CPX−EA−...
CPX analogue
I/Omodules"
typeP.BE−CPX−AX−...
CPX−CP interface"
type P.BE−CPX−CP−..
Handheld"
type P.BE−CPX−MMI−1−...
CPX−FEC"
type P.BE−CPX−FEC−...
FST"Programming in Statement List and Ladder
Overview of structure, components and
method of operation of CPX terminals
Installation and commissioning instructions as
well as basic principles of parameterisation
Instructions on fitting, installing, commission
ing and diagnosing the relevant field bus node
Notes on connection and instructions on fitting,
installing and commissioning input and output
modules of type CPX−..., the MPA pneumatic
modules as well as of MPA, CPA and Midi/Maxi
pneumatic interface
Notes on connection and instructions on fitting,
installing and commissioning CPX analogue I/O
modules
Instructions on commissioning and diagnosing
CPX terminals with the CP interface type
CPX−CP−4−FB
Instructions on commissioning and diagnosing
CPX terminals with the handheld type
CPX−MMI−1
Instructions on fitting, installing, commissio
ning and diagnos. the CPX Front−End Controller.
Diagram for the FEC
Manual
pneumatics
Valve terminals with
MPApneumatics"
type P.BE−MPA−...
Valve terminals with
CPApneumatics"
type P.BE−CPA−...
Valve terminals with
Midi/Maxi pneumatics"
type P.BE−MIDI/MAXI−03−...
Tab.0/2:Manuals on the CPX terminal
Festo P.BE−CPX−FEC−E N en 0404NH
Information on fitting, installing and commis
sioning MPA pneumatics (type 32)
Information on fitting, installing and commis
sioning CPA pneumatics (type 12)
Instructions on fitting, installing and commis
sioning Midi/Maxi pneumatics (type 03)
XIII
Page 16
Contents and general instructions
The following product−specificterms and abbreviations are
used in this manual:
Term/abbreviation
A0
h
AIAnalogue input
AOAnalogue output
CP modulesCommon term for the various modules which can be incorporated in a
CPX terminalComplete system consisting of CPX modules with or without pneumatics.
DIDigital input
DIL switchDual−in−line switches usually consist of several switch elements with
DODigital output
Field bus nodeProvides the connection to certain field buses. Transmits control signals
FWFlag word
Handheld / MMIHand−operated device for commissioning and for servicing purposes
IB, IWInput byte, input word
I/O modulesCommon term for CPX modules which provide digital inputs and outputs.
I/OsDigital inputs and outputs
Meaning
Hexadecimal numbers are marked by a subscript h".
CPX terminal
which settings can be made.
to the connected modules and monitors their functioning.
OB, OWOutput byte, output word
PLC/IPCProgrammable logic controller/industrial PC
Pneumatic interfaceThe pneumatic interface is the interface between the modular electrical
peripherals and the pneumatics.
Tab.0/3:Product−specific terms and abbreviations
XIV
Festo P.BE−CPX−FEC−EN en 0404NH
Page 17
Contents and general instructions
The following network−specific terms and abbreviations are
used in this manual:
Term/abbreviation
ARPCreates the relationship between the physical Ethernet address and
BOOTPDynamic protocol for automatic assignment of IP addresses
DHCPDynamic protocol for automatic assignment of IP addresses
EasyIPProtocol for the fast exchange of operands between Festo controllers
EthernetPhysical protocol and network for connecting various devices
FTP, TFTPProtocol for datatransmission via TCP/IP
HTTPProtocol for data transmission via TCP/IP (Hyper Text Transfer Protocol)
ICMPExchange of fault and status information of the network
IPProtocol for addressing and delivering data (Internet Protocol)
ISO/OSI layer modelStandardized model for data transmissions (7 layers)
MAC addressFixed assigned address for Ethernet device (Media Access Control)
Modbus/TCPCommunication standard via TCP/IP in automation technology
TCPProtocol for data transport and protection (Transfer Control Protocol)
Meaning
the logical IP address (Address Resolution Protocol)
(Boot protocol, predecessor of DHCP)
(Dynamic Host Configuration Protocol)
(e.g. FEC Standard, PS1, etc.).
(File Transfer Protocol, Trivial File Transfer Protocol)
(Internet Control Message Protocol)
TCP/IPCombination of the protocols TCP and IP, the most−widely used protocol
in communication via Ethernet.
UDPSimplified protocol for data transport without test mechanisms
Contents of this chapterThis chapter provides an overview of the three operating
modes of the CPX−FEC. A tutorial provides a first summary of
the most important configuration steps with the software
package FST 4.1.
Further informationDetailed information on the CPX terminal and on the FST can
be found here:
manuals on the CPX terminal:
CPX system manual,
descriptions of the I/O modules, descriptions of the
fieldbus node
the FST manual (2 volumes, supplied with the FST
software)
text book Automation with FST" (supplied with the FST
software)
manuals on the pneumatics (MPA, CPA, CPV, Midi/Maxi)
Festo P.BE−CPX−FEC−E N en 0404NH
1−3
Page 21
1. System summary
1.1Usethe future of automationtechnology today
With the CPX−FEC, the CPX terminal offers today the technol
ogy of tomorrow for automation tasks. Here is an overview of
the possibilities which are offered:
The CPX−FEC can control a CPX terminal independently
(Stand Alone). Use the Festo Software Tool FST 4.1 with
the Hardware Configurator for commissioning, program
ming and diagnosis.
can control a CPX terminal and tell you via Ethernet
It
what is running. You can easily access current data via
your company’s network. (Remote Controller Ethernet)
It fits into your existing automation system without prob
lems: Let the CPX−FEC as a PLC control the CPX terminal
and at the same time communicate with
field bus (at present: PROFIBUS, Interbus, DeviceNet,
CANopen and CC−Link). (Remote Controller Field bus)
your existing
1−4
Control the CPX terminal straight away via Ethernet, the
CPX−FEC makes this possible: In the operating mode
Remote I/O Ethernet" the CPX terminal is a field bus
slave on the Ethernet.
A Webserver is incorporated in the CPX−FEC.
With a standard
Web Browser you can access current data. You can transfer
Web pages which you have created into the CPX−FEC in order
to perform more complex tasks from a self−created user inter
face level.
You can set up the CPX−FEC so that it sends e−mails when
previously defined events occur. This
can be e.g. a message
about a diagnostic case or the processing of a certain task.
Festo P.BE−CPX−FEC−EN en 0404NH
Page 22
1. System summary
1.2The operating modes of theCPX−FEC
The CPX−FEC can be operated in various operating modes
depending on the demand:
Stand Alone
Remote Controller
Remote I/O
The operating mode can be set with DIL switch 1
(see section 2.2.2).
You can connect a handheld of type CPX−MMI to the CPX−FEC
in any operating mode. The handheld serves for fast prelimi
nary commissioning,
parametrizing and diagnosis.
Festo P.BE−CPX−FEC−EN en 0404NH
1−5
Page 23
1. System summary
1.2.1Stand Alone
12
1 CPX−FEC
2 Controlled by the CPX−FEC
Fig.1/1: CPX terminal controlled by the CPX−FEC
Stand Alone
The CPX terminal is controlled independently by the
CPX−FEC. There is no communication connection to other
slaves.
1−6
Configure the CPX terminal with the FST software package
FST4.1 or higher. The programming or Ethernet interface
be used for the configuration.
Fig.1/2: Software package FST 4.1 for configuration
Festo P.BE−CPX−FEC−EN en 0404NH
can
Page 24
1. System summary
1.2.2Remote Controller
Ethernet
1 CPX terminal controlled by the
CPX−FEC, communication via Ethernet
In this operating mode the CPX terminal is controlled by the
CPX−FEC (as in Stand Alone), but there is also a communica
tion connection with a higher−order controller. Communica
tion can take place via Ethernet or via a field bus:
RemoteController Ethernet
The CPX terminal is controlled by theCPX−FEC. The FEC also
communicates viaEthernet (Modbus TCP, EasyIP) with a
higher−order controller. You can use IT technology for the
controller, diagnosis and communication (e.g. Webserver,
e−mail, ...). An advantage of this operating mode is that you
only need to use one bus system.
Configure the CPX terminal with FST via the Ethernet inter
face.
Field bus
2 CPX terminal controlled by the
CPX−FEC, communication via field bus
(field bus node required)
Festo P.BE−CPX−FEC−EN en 0404NH
RemoteController Field bus
The CPX terminal is controlled by theCPX−FEC. The FEC also
communicates viathe
ler. A field bus node (with DIL switch position for Remote
Controller") must be installed in the CPX terminal for this
operating mode.
Configure the CPX terminal with FST.
field bus with a higher−order control
1−7
Page 25
1. System summary
1.2.3Remote I/O
Ethernet
1 CPX terminal controlled via Ethernet
Remote I/O Ethernet
The CPX terminal is controlled by a higher−order controller
viaEthernet. The CPX−FEC has the function of an Ethernet
field bus slave. In this way you can combine your CPX ter
minal with
Schneider Electric).
You can use the integrated Webserver for control, diagnosis
and communication. An advantage of this operating mode is
that you only need to use one bus system.
A field bus node in the operating mode Remote Controller" must also be installed here in the
CPX terminal.
2)
The Webserver can occupy free memory space in the PLC if extra memory space is required.
DIL 1.1: OFF
DIL 1.2: OFF
DIL 1.1: OFF
DIL 1.2: ON
Tab.1/1:Overview of the operating modes
Festo P.BE−CPX−FEC−EN en 0404NH
1−9
Page 27
1. System summary
1.3Programming the CPX−FEC
Use the software package FST 4.1 or higher in order to pro
gram the CPX−FEC. Programming is carried out in the lan
guages Statement List (STL) or Ladder Diagram (LDR).
Further information can be found in the relevant chapters for
the different operating modes.
1−10
Fig.1/3: Programming with FST 4.1
You can find detailed information on programming the CPX−
FEC in the following documentation:
the FST manual (supplied with the FST software)
the text book Automation with FST" (supplied with the
FST software).
Festo P.BE−CPX−FEC−EN en 0404NH
Page 28
1. System summary
1.4Meaning of the LED displays
The LEDs on the cover indicate the operating status of the
CPX−FEC and are arranged in two groups.
1 Control and
Ethernet LEDs
(see chapters 3, 5
and 6):
RUN
STOP
ERROR
TP
12
2 CPX−LEDs
(see next section):
PS: Power system
PL: Power load
SF: System fault
M: Modify
Fig.1/4: Two groups of the LEDs of the CPX−FEC
Festo P.BE−CPX−FEC−EN en 0404NH
1−11
Page 29
1. System summary
LED flashes
1.4.1Fault displays of the LEDs
In the following only the general CPX−LEDs PS, PL, SF and M
are explained. Information on the controller and EthernetLEDs RUN, STOP, ERROR and TP can be found in chapters 3, 5
and 6.
PS (Power System) power sensor/log
ic supply
LED (green)SequenceStatusMeaning/fault treatment
LED lights up
ON
OFF
ON
OFF
No fault Operating
voltage/sensor supply
applied
Operating voltage/sensor
supply outside the
Eliminate undervoltage
tolerance range
ON
OFF
Internal fuse for the
operating voltage/sensor
supply has responded.
1. Eliminate short circuit/overload on
module side.
2. Depending on the parametrizing 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
ON
OFF
LED is out
The operating voltage/
sensor supply is not
applied
Check the operating voltage
connection of the electronics
Tab.1/2:Fault diagnosis with the LED PS
1−12
Festo P.BE−CPX−FEC−EN en 0404NH
Page 30
1. System summary
PL (Power Load) power load supply (outputs/valves)
LED (green)SequenceStatusMeaning/faulttreatment
ON
OFF
No fault Load voltage
applied
None
LED lights up
ON
OFF
LED flashes
Load voltage at the system
supply or additional supply
outside the tolerance
range
Eliminate undervoltage
Tab.1/3:Fault diagnosis with the LED PL
SF (System Fail) system fault
LED (red)SequenceStatusMeaning/faulttreatment
ON
OFF
LED is out
ON
OFF
LED flashes
once
ON
OFF
LED flashes
twice
ON
OFF
LED flashes
three times
1)
The system fault LED flashes depending on the class of fault which has occurred.
Fault class 1 (simple fault): one flash, pause
Fault class 2 (fault):flash twice, pause
Fault class 3 (serious fault): flash three times, pause
No fault
Simple fault/information
(fault class 1)
Fault
(fault class 2)
Serious fault
(fault class 3)
See description of fault numbers in
the CPX system manual
Tab.1/4:Fault diagnosis with the LED SF
Festo P.BE−CPX−FEC−EN en 0404NH
1−13
Page 31
1. System summary
M (Modify) Forceactive
LED (yellow)SequenceStatusMeaning/faulttreatment
ON
OFF
None
LED is out
ON
OFF
Force is activeThe Force function is enabled
LED flashes
ON
OFF
The CPX−FEC has no parameter
LED lights up
Tab.1/5:Messages of the LED M
Information on the controller and Ethernet LEDs RUN, STOP,
ERROR and TP can be found in chapters 3...6.
(seesystem parameter Force mode;
function no. 4402).
System start", so that the status
LED lights up" does not exist with
the M−LED.
1−14
Festo P.BE−CPX−FEC−EN en 0404NH
Page 32
1. System summary
1.5Tutorial: Creating a project for theCPX−FEC with FST (Stand Alone)
This tutorial presents the most important steps for commis
sioning a CPX terminal with FEC. The tutorial deals only with
the operating mode Stand Alone.
Read the detailed introduction in the following chapters and
in the FST manual.
Caution
If you have connected a CPX terminal to your PC for
configuration: Test projects and programs at first without
active actuators or without compressed air.
You will then avoid damage in the test phase.
1. Install your CPX terminal with CPX−FEC in accordance with
chapter 2 and set the rotary switch of the
2. Use the programming cable to connect the CPX−FEC to the
serial interface of your PC.
CPX−FEC to 0".
Festo P.BE−CPX−FEC−E N en 0404NH
3. Start the FST 4.1 and select [Extras] [Preferences...]
Communication" register: Use RS232"
Confirm with OK.
4. Select [Project] [New...] and assign a project name.
5. Select the CPX−FEC as controller in the window
ProjectSettings".
6. Open the Hardware Configurator with
a double click on
I/OConfiguration" in the project window.
7. Select Actual−Nominal−Comparison" in the context menu
(right−hand mouse click) of the Hardware Configurator.
Accept the configuration by clicking on Apply".
1−15
Page 33
1. System summary
Fig.1/5: Carry out the actual−nominal comparison
Fig.1/6: Apply the actual−nominal comparison
1−16
Festo P.BE−CPX−FEC−EN en 0404NH
Page 34
1. System summary
Fig.1/7: A configured CPX terminal
8. If necessary, parametrize the CPX system or individual
modules:
Fig.1/8: Example: Parametrizing an input module
Festo P.BE−CPX−FEC−E N en 0404NH
1−17
Page 35
1. System summary
Creating a program1. Select [Program] [New...]
2. Select the programming language (e.g. Statement List) in
the window New program".
3. Confirm the next window without modifications
(Type program, Number 0, Version1).
4. Create a program:
Fig.1/9: Program window of the FST
1−18
Festo P.BE−CPX−FEC−EN en 0404NH
Page 36
1. System summary
5. When you first use operands in your program, they will be
automatically interrogated after being entered in the
allocation list:
Fig.1/10: Interrogation for an entry in the allocation list
during programming
6. The new program is marked for loading automatically in
the project window. Load the project into the CPX−FEC
with [Online] [Download Project]:
Fig.1/11: A marked program is loaded into the FEC with the project
Festo P.BE−CPX−FEC−E N en 0404NH
1−19
Page 37
1. System summary
Start program7. Set the rotary switch of the CPX−FEC to 1...F or start the
program in the Online TCPIP" display:
Fig.1/12: Program start with the Online TCPIP" display
Contents of this chapterIn this chapter you will find information on:
Setting the switches of the CPX−FEC
Connecting devices, to field bus and Ethernet
The pin assignment of the interfaces
Compliance with protection class IP65/IP67
Further informationFurther information can be found here:
Fitting, installation and the power supply of the complete
CPX terminal: CPX
system manual (P.BE−CPX−SYS−..)
Installing I/O modules and pneumatic interface: Manual
for the CPX pneumatic interface and CPX I/O modules
(P.BE−CPX−EA−..)
Handheld: Manual for the universal handheld CPX−MMI−1
(P.BE CPX−MMI−1−..)
Festo P.BE−CPX−FEC−E N en 0404NH
Instructions on installing the pneumatic components can be
found in the relevant pneumatics manual (see Tab.0/2).
2−3
Page 41
2. Installation
2.1General notes oninstallation
Warning
Before carrying out installation and/or maintenance work,
switch off the following:
the compressed air supply
the operating voltage supply for the electronics/sensors
the load voltage supply for the outputs/valves.
You will thereby avoid:
uncontrolled movements of loose tubing
uncontrolled movements of the connected actuators
undefined switching states of the electronics.
2−4
Caution
The CPX−FEC contains electrostatically sensitive compo
nents.
· Do not touch the electrical contacts of the components.
· Observe the regulations for handling electrostatically
sensitive components.
In this way you will avoid damage to the electronics.
Information on fitting the CPX terminal can be found in the
CPX system manual (P.BE−CPX−SYS−..).
Festo P.BE−CPX−FEC−EN en 0404NH
Page 42
2. Installation
Electrical connecting and display elements
The following connecting and display elements can be found
on the CPX−FEC:
7
6
5
4
1 FEC status and CPX−specific LEDs
5 2−element DIL switch 1
(select operating mode)
2 16−element rotary switch
(RUN/STOP, Program selection)
3 Ethernet interface
(10/100BaseT, RJ45)
6 2−element DIL switch 2 (reserved)
7 Service interface for handheld (V24)
4 Programming interface
(RS232, 9−pin sub−D socket)
Fig.2/1: Connecting and display elements on the CPX field bus node
1
2
3
Festo P.BE−CPX−FEC−EN en 0404NH
2−5
Page 43
2. Installation
Dismantling and fitting
The FEC is fitted in a manifold sub−base of the CPX terminal
(see Fig.2/2).
DismantlingDismantle the FEC as follows:
1. Loosen the four screws of the FEC with a Torx screwdriver
size T10.
2. Pull the FEC carefully and without tilting away from the
contact rails of the manifold sub−base.
1 CPX−FEC
4
2 Manifold sub−base
3 Contact rails
4 Torx T10 screws
3
Fig.2/2: Dismantling/fitting the CPX−FEC
1
2
2−6
Festo P.BE−CPX−FEC−EN en 0404NH
Page 44
2. Installation
FittingFit the FEC as follows:
1. Place the FEC in the manifold sub−base. Make sure that
the grooves with the terminals for electrical contact on
the bottom of the field bus node lie directly above the
contact rails. Press the FEC carefully and without tilting as
far as possible into the manifold sub−base.
2. Insert the
screws so that the self−boring threads can be
used. Tighten the screws at first only by hand.
Tighten the screws with a Torx screwdriver size T10 with
0.9 ... 1.1 Nm.
Festo P.BE−CPX−FEC−EN en 0404NH
2−7
Page 45
2. Installation
2.2Setting theswitches of the FEC
2.2.1Rotary switch
The 16−element rotary switch (0, 1, ..., F) serves as a RUN/
STOP switch for the PLC.
Leave the rotary switch at position 0" (STOP) during
installation.
Modifications to the position of the rotary switch are trans
mitted to the controller with a delay of 500 ms. In this way,
you can switch between
intermediate positions having any effect.
two switch positions without the
Rotary switch
SettingMeaning
0STOP
PLC program has stopped.
Programs stop when the rotary switch is modified
from 1 ... F to 0.
1 ... FRUN
User program started.
Programs start when the rotary switch is modified
from 0 to 1 ... F.
The switch position can be interrogated in the user
program and used for programming purposes.
Tab.2/1:Possible settings of the rotary switch for the PLC
2−8
Festo P.BE−CPX−FEC−EN en 0404NH
Page 46
2. Installation
2.2.2DIL switches
Pleasenote
Check that the setting of the DIL switch is correct before
commissioning the CPX−FEC.
A change in the operating mode is not recognized until
after Power OFF/ON.
The DIL switches must be accessible in order that the
CPX−FEC can be set:
· Remove an IP65/IP67 plug, if fitted, from the program
ming interface.
Setting the operating mode with DIL switch 1
You can set the operating mode of the FEC with switch
element 1 of DIL switch 1.
Festo P.BE−CPX−FEC−EN en 0404NH
2−9
Page 47
2. Installation
Operating modeSetting DIL switch 1
Stand Alone / RemoteController
Controlling the CPX terminal via the CPX−FEC:
Stand Alone
or
Ethernet Remote Controller
or
Field bus Remote Controller
Remote I/O
Controlling the CPX terminal via Modbus/TCP
with a higher−order controller.
ReservedDIL 1.1: ON
ReservedDIL 1.1: ON
DIL 1.1: OFF
DIL 1.2: OFF
DIL 1.1: OFF
DIL 1.2: ON
DIL 1.2: ON
DIL 1.2: OFF
Tab.2/2:Setting the operating mode
2−10
Reserved DIL switch 2
Leave the switch elements of DIL switch 2 set to OFF.
Festo P.BE−CPX−FEC−EN en 0404NH
Page 48
2. Installation
2.3Ethernetinterface
There is a RJ45 socket on the CPX−FEC for connection to the
Ethernet.
RJ45 socket
8
7
6
5
4
3
2
1
PinSignalExplanation
1
2
3
4
5
6
7
8
Metal covering
TD+
TD
RD+
n.c.
n.c.
RD
n.c.
n.c.
Screening/shield
Send data +
Send data
Receive data +
not connected
not connected
Receive data
not connected
not connected
Screening/shield
Tab.2/3:Pin assignment of the Ethernet interface
If the Ethernet interface is not used, seal it with a cover of
type AK−RJ45, part no. 534496. You will then comply with
protection class IP65/IP67.
2.3.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
Festo P.BE−CPX−FEC−EN en 0404NH
Pleasenote
If the CPX terminal is fitted onto a moving par t of a
machine, the Ethernet cable on the moving part must be
provided with strain relief.
2−11
Page 49
2. Installation
Network connectionIn order to connect your CPX−FEC to a network or PC you will
require:
a Patch cable for connecting via hub or switch
a crossover cable for direct connection of the PC and the
CPX−FEC.
Pleasenote
Use the RJ45 plug from Festo in order to comply with
protection class IP65/IP67.
Type F BS−RJ45−8−GS, part no. 534494
Observe the fitting instructions for the plug.
2−12
Fig.2/3: RJ45 plug complying with protection class
IP65/IP67
Festo P.BE−CPX−FEC−EN en 0404NH
Page 50
2. Installation
2.4Programming interface (RS232)
There is 9−pin sub−D socket on the CPX−FEC for connecting a
programmer, a PC or F EDs.
2.4.1Pin assignment
Socket ontheCPX−FEC PinSignalExplanation
1
2
3
4
5
6
7
8
9
Screening/shield
n.c.
RxD
TxD
n.c.
GND
n.c.
n.c.
n.c.
n.c.
Screening/shield
Tab.2/4:Pin assignment of the programming interface
If the programming interface is not used, seal it with the
transparent cover.
type AK−SUB−9/15−B
part no. 533334
max. tightening torque 0.4 Nm
not connected
Receive data
Send data
not connected
Data reference potential
not connected
not connected
not connected
not connected
Connection to functional earth
Festo P.BE−CPX−FEC−EN en 0404NH
2−13
Page 51
2. Installation
2.4.2Connecting a programming PC
Use the programming cable from Festo in order to connect
your PC to the CPX−FEC:
type KDI−PPA−3−BU9
part no. 151915
Pleasenote
Use the above programming cable only for the program
ming environment. It has only one screening connection
on one side and complies only with protection class IP20.
Use an RS232 cable with screening/shield connection on
both sides for communication or control.
2−14
The next section describes how to produce an RS232
which complies with protection class IP65/IP67.
Pleasenote
Lay the cable
not twisted
without bends
at a sufficient distance from current−carrying cables.
You will then avoid transmission faults between the PC
and the FEC.
Festo P.BE−CPX−FEC−EN en 0404NH
cable
Page 52
2. Installation
RS232 cable with protection class IP65/IP67
For an RS232 cable which complies with protection class
IP65/IP67 you will require:
a programming plug from Festo (Fig.2/4)
typeFBS−SUB−9−GS−1X9POL−B
a 3−core screened cable.
Pleasenote
Only the programming plug from Festo guarantees com
pliance with protection class IP65/IP67. If you also need
to comply with protection class IP65/IP67 in the program
ming environment:
· Relpace the two flat screws by threaded sleeves (type
UNC 4−40/M3x6, part no. 533000) before connecting
sub−D plugs of other manufacturers.
Festo P.BE−CPX−FEC−EN en 0404NH
1. Fit a programming cable in accordance with the fitting
instructions for the plug.
2. When fitting the plug onto the CPX−FEC tighten the fasten
ing screws at first by hand and then with 0.4
Nm.
Pleasenote
Observe the maximum permitted length of the cable as a
factor of the baud rate in accordance with RS232 specifica
tions.
2−15
Page 53
2. Installation
1 Hinged cover with
viewing window
213
2 Blanking plug if
connection is not
used
3 Clamp strap for
screening
connection
4 Terminal strip for
the cable
9
7
8
(pinassignment
see Tab.2/4)
5 Fastening screws
Fig.2/4: Programming plug from Festo, type FBS−SUB−9−GS−1X9POL−B
Pleasenote
· Use protective caps or blanking plugs to seal unused
connections.
In this way you will comply with protection class
IP65/IP67.
3
12
456
55
4
2−16
Festo P.BE−CPX−FEC−EN en 0404NH
Page 54
2. Installation
2.4.3Connecting the Front End Display FED−50/90
You can connect an FED−50 or an FED−90 to the programming
interface of the CPX−FEC. The FED is an easy−to−use display
for operating and observing automation tasks at the field
level. FED operating devices are intended for fitting in the
front of a metallic housing.
Festo P.BE−CPX−FEC−EN en 0404NH
Fig.2/5: CPX terminal with FED−90
· Connect the FED to the CPX−FEC with connecting cable
type FEC−KBG7 or FEC−KBG8 (part no. 539642 resp.
539643).
2−17
Page 55
2. Installation
2.5Serviceinterface for handheld
The 5−pin M12 socket serves for connecting a handheld for
fast preliminary commissioning, diagnosis or parametrizing.
Use only the following original cables for connecting the
handheld to the service interface:
Type
KV−M12−M12−3,53.5
KV−M12−M12−1,51.5
Cable length in [m]
Tab.2/5:Connecting cable for handheld
Information on the handheld can be found in the manual
Universal handheld type CPX−MMI−1".
Fig.2/6: CPX terminal with handheld
2−18
Festo P.BE−CPX−FEC−EN en 0404NH
Page 56
2. Installation
2.6Compliance with protectionclass IP65/IP67
In order to comply with protection class IP65/IP67, seal un
used sockets and the switch with the appropriate covers.
Connection/
switch
Ethernet, RJ45Plug
Programming
interface, sub−D
and DIL switch
Service interface,
M12
Rotary switchCover
1)
If connection is not used
2)
Included in delivery
Connection
IP65/IP67
type FBS−RJ45−8−GS
part no. 534494
Plug from Festo
type FBS−SUB−9−GS−
1X9POL−B
part no. 534497
Connecting cable and
plug for the handheld
1)
Cover
IP65/IP67
2)
Cover
type AK−RJ45
part no. 534496
Transparent cover
type AK−SUB−9/15−B
part no. 533334
Protective cap
type ISK−M12
part no. 352059
2)
type AK−RJ45
part no. 534496
Tab.2/6:Connections and covers for protection class
Contents of this chapterThis chapter is the basis for operating the CPX−FEC in the
operating modes:
Stand Alone
Remote Controller (see chapter 5)
Here you will find a description of general commissioning,
parametrizing, programming and diagnosis of the CPX−FEC.
If you operate the CPX−FEC without communication connec
tion to other slaves, this corresponds to
the operating mode
Stand Alone. In this operating mode the FEC controls the
CPXterminal independently.
Preparing for
commissioning
Installation in accordance with chapter 2
The correct operating mode is set with DIL switch 1
(seesection 2.2.2)
FST 4.1 or higher is installed on the programming PC
Overview
of the following commissioning steps
1. Configuring the CPX terminal with FST
2. If desired: Parametrize
3. Create program
4. Load project into CPX−FEC
5. Start and test program
Various diagnostic possibilities are available during commis
sioning and during operation.
Festo P.BE−CPX−FEC−E N en 0404NH
3−3
Page 61
3. General operation (Stand Alone)
3.1Configuration
Use Festo Software Tools (FST 4.1 or higher) with the Hard
ware Configurator in order to configure your CPX terminal
with CPX−FEC. In the following sections you will find the most
important commissioning steps with FST 4.1.
Caution
If you have connected a CPX terminal to your PC for con
figuration: Test projects and programs at first without ac
tive actuators or without compressed air.
You will then avoid damage in the test phase.
A tutorial on configuration with FST can be found in sec
tion1.5. Detailed information on operating the FST can be
found in the FST manual (type P.BE−FST−..).
Follow the instructions in order to carry out a first project
with the CPX−FEC.
3.1.1Create connection to CPX−FEC
You will require a connection between your PC and the
CPX−FEC if you wish to load projects into the FEC or use the
online functions.
You can use all online functions via the programming
interface or the Ethernet interface. Access to the
Web−Browser is only possible via the Ethernet interface.
Create connection to
theCPX−FEC
3−4
1. Set the rotary switch of the CPX−FEC to 0".
2. Connect your PC and the CPX−FEC either
via the programming interface with an RS232 cable
(see section 2.4) or
Festo P.BE−CPX−FEC−EN en 0404NH
Page 62
3. General operation (Stand Alone)
via the Ethernet interface with a patch cable (connec
3. Access the window FST Preferences" in FST 4.1 with
[Extras] [Preferences...]. Select your type of connection in
the register Communication".
Programming interface Use RS232"
Ethernet interface Use TCP/IP"
4. Confirm with OK.
tion via hub/switch) or with a crossover cable (direct
connection) (see section 2.3).
Set the local COM interface of your PC
and the
baudrate.
Set the IP address of your CPX−FEC or click on
Search" in order to display a list of the online avail
able controllers. Select your controller with a double
click.
Information on the IP addressing can be found in
section 4.3.2.
3.1.2Creating a project
Festo P.BE−CPX−FEC−EN en 0404NH
Create a new project in FST as follows:
1. [Project] [New...]
2. Assign a project name.
3. Select the CPX−FEC as controller in the window
Project Settings".
3−5
Page 63
3. General operation (Stand Alone)
Fig.3/1: Select the CPX−FEC when creating a new project.
4. Start the Hardware Configurator with a double click on
IO Configuration" in the project window of the FST
(seeFig.3/2).
If the project window is not displayed: Select [View]
[Project Window].
5. The CPX configuration window and the Hardware
Catalogue will be displayed.
If the Hardware Catalogue is
[Catalog].
not displayed: Select [View]
3−6
Pleasenote
Note the register Download" in the Controller settings".
· Select Download source files" if you wish to download
the project later from the CPX−FEC (e.g. on another PC).
Festo P.BE−CPX−FEC−EN en 0404NH
Page 64
3. General operation (Stand Alone)
When a new project is created with the CPX−FEC, a CPX−FEC
will automatically be numbered module 0:
12
4
3
Project window
1
2 Hardware Configurator
Fig.3/2: FST 4.1 with Hardware Configurator after creation of a new project
Festo P.BE−CPX−FEC−EN en 0404NH
3 Hardware Catalogue
4 Configuration table
3−7
Page 65
3. General operation (Stand Alone)
3.1.3Fast configuration by loading the actual configuration
If you have already connected a completely equipped and
installed CPX terminal to your PC, there are two ways of
loading the configuration:
Actual−nominal comparison in the editor mode
Change to the online mode
Actual−nominalcomparison
Actual−nominal
comparison
1. Click on [Actual−Nominal−Comparison] in the context
menu.
The actual configuration of
the connected CPX terminal
will be loaded and displayed together with the nominal
configuration.
2. You can decide which modules in the actual configur
ation you wish to transfer by selecting them with the
check box in the first column.
3. In the lower range select under Use actual settings
for..." whether current parameter settings, the
address
assignment (mapping) or the Idle mode/Fail safe set
tings are to be transferred.
4. Click on Apply" in order to transfer the selection to the
current project.
The Hardware Configurator remains in the editor mode.
3−8
Festo P.BE−CPX−FEC−EN en 0404NH
Page 66
3. General operation (Stand Alone)
Fig.3/3: Load the configuration of a connected CPX terminal with the function
Actual−Nominal−Comparison" in the editor mode.
If the actual−nominal comparison does not lead to a result:
1. Check the communication settings of the FST under
[Extras] [Preferences...] register Communication".
2. Check the communication connection between the
CPX−FEC and your PC.
Changeto the
onlinemode
Online modeThe second possibility of loading the current configuration
is to change to the online mode.
1. Select the entry [Online] in the menu [Online] or click on
Online" in the context menu:
The configuration of the CPX terminal will be loaded and
transferred to the Hardware Configurator.
2. Select [Save]
in the context menu, in order to save the
loaded configuration in your project.
The Hardware Configurator is now connected online with
the CPX terminal.
Festo P.BE−CPX−FEC−EN en 0404NH
3−9
Page 67
3. General operation (Stand Alone)
3.1.4Manual configuration with the Hardware Configurator
Use this type of configuration if you wish to configure first
only on the PC when there is no connection to a CPX terminal.
Configuration is carried out with drag & drop:
1. Pull the modules out of the Hardware Catalogue into the
Hardware Configurator. You can pull the modules onto the
graphic representation
the configuration table.
Configure the modules from left to right corresponding to
the physical sequence in your CPX terminal.
2. The addresses will be assigned automatically in accord
ance with the default addressing.
Modifying addresses: Click directly on the address in the
configuration table and modify the value.
Deleting modules· Mark the module to be deleted and press the Del"
button.
of the CPX terminal or directly into
3−10
Festo P.BE−CPX−FEC−EN en 0404NH
Page 68
3. General operation (Stand Alone)
1
2
1 Configuration with drag & drop2 Configured modules in the
configuration table
Fig.3/4: Manual configuration of the CPX terminal in the Hardware Configurator
Festo P.BE−CPX−FEC−EN en 0404NH
3−11
Page 69
3. General operation (Stand Alone)
Below you will find information on the CPX modules.
Module CPX−FEC
You can configure the controller of your CPX terminal with
this module.
Module
Module
identifiers
FEC controllerFEC1 word I
1) Module identifiers on the handheld and in the Hardware Configurator of the FST 4.1
Assigned address
1)
range
1 word O
Remarks
The inputs form the position of
the rotary switch.
The outputs are not used.
Tab.3/1:Module CPX−FEC
3−12
Festo P.BE−CPX−FEC−EN en 0404NH
Page 70
3. General operation (Stand Alone)
Electric modules
Module
(order code)
Digital 4−input module
(F: CPX−4DI)
Digital 8−input module
(I: CPX−8DI)
Digital 4−output module
(O: CPX−4DO)
Digital multi I/O module
(Y: CPX−8DE−8DO)
Analogue 2−input module
(U: CPX−2AE−U/I)
Analogue 2−output module
(P: CPX−2AA−U/I)
1)
Module identifiers on the handheld and in the Hardware Configurator of the FST 4.1
Moduleidentifiers1)Assigned address
range
4DI1 word I
8DI1 word I
4DO1 word O
8DI/8DO1 word I
1 word O
2AI2 words I
2AO2 words O
Tab.3/2:Overview of electric CPX modules
Technology module CP interface
With the aid of this module you can connect CP components
to the CPX terminal.
Remarks
Module
Module
identifiers
CP interfaceCPImax. 8 words I
Assigned address
range
max. 8 words O
Tab.3/3:Technology module CP interface
Festo P.BE−CPX−FEC−EN en 0404NH
Remarks
The number of assigned addresses
depends on the string assignment
saved in the CP interface.
3−13
Page 71
3. General operation (Stand Alone)
Pneumatic modules
Module
(order code)
Pneumatic interface for MPA
valves (type 32)
MPA pneumatic module (type 32)
without electrical isolation
(VI: CPX type 32: 1−..V..)
MPA pneumatic module (type 32)
with electrical isolation
(VI: CPX type 32−G: 1−..V..)
Pneumatic interface for CPA
valves (type 12)
(VI: CPX type 12: 1−..V..)
Pneumatic interface for
Midi/Maxi valves (type 03)
(VI: CPX type 03: 1−..V..)
1)
Module identifiers on the handheld and in the Hardware Configurator of the FST 4.1
Module
identifiers
This module is not
MPA1S
MPA2S
MPA1G
MPA2G
CPA10/14 1...8 valve coils:
Type 03 1...8 valve coils:
Assigned address
1)
range
1 word O
1 word O
1 word O
1...16 valve coils:
1 word O
1...22 valve coils:
2words O
1 word O
1...16 valve coils:
1 word O
1...24 valve coils:
2 words O
1...26 valve coils:
2 words O
Remarks
displayed in the
Hardware Configurator
(passive module).
The representation of
the CPA and Midi/Maxi
valves in the Hardware
Configurator is only
symbolic and can
differ from the actual
number of valves.
Tab.3/4:Overview of pneumatic interfaces and MPA pneumatic modules
3−14
Festo P.BE−CPX−FEC−EN en 0404NH
Page 72
3. General operation (Stand Alone)
Configure the valves according to the pneumatic type used.
The pneumatics must always be configured last.
Valves of type 32 (MPA pneumaticmodules)
The individual MPA pneumatic modules each provide an elec
tric module with digital outputs for controlling the valves. A
word of outputs is always
module, irrespective of the number of valves fitted on the
pneumatic module (see Tab.3/4).
Further information on MPA pneumatic modules can be found
in the manual for the CPX I/O modules (P.BE−CPX−EA−..) and in
the relevant pneumatics manual.
assigned for each MPA pneumatic
Valves of type 12 (CPA) and
type 03 (Midi/Maxi)
With these valves only the pneumatic interface is configured.
The number of valve coils is set with a DIL switch (see manual
CPX I/O modules, P.BE−CPX−EA−..).
Configuration1. Pull the relevant pneumatic interface onto the next line
in the configuration table.
2. Double click on the line. The window
Module..." will be
displayed.
3. Switch to the register Module" and select the number of
valve coils as is set on the DIL switch in the pneumatic
interface:
Festo P.BE−CPX−FEC−EN en 0404NH
3−15
Page 73
3. General operation (Stand Alone)
Fig.3/5: Select the number of valve coils (configuration of
the valves of type 12 or type 03)
3−16
If you set a value which is greater than the actual number
of valve coils, the superfluous addresses will be reserved.
The representation of the CPA and Midi/Maxi valves in the
Hardware Configurator is only symbolic and
can differ
from the actual number of valves. The same number of
valves is displayed as the number of outputs which are
set, irrespective of whether there are single−solenoid
valves or double−solenoid valves in your CPX terminal.
Festo P.BE−CPX−FEC−EN en 0404NH
Page 74
3. General operation (Stand Alone)
Checking the configuration
A successful configuration is distinguished by:
module assignment without gaps
clear assignment of the master
pneumatic modules are situated at the right−hand end of
the CPX terminal
Check the configuration
· Click on Check Configuration" in the context menu:
Festo P.BE−CPX−FEC−EN en 0404NH
3−17
Page 75
3. General operation (Stand Alone)
Reset configuration
All parameter settings and the address assignment
(Mapping) can be reset to the factory settings.
Reset configurationThe desired settings can be reset to the factory settings as
follows:
1. Select the command [Default Settings...] in the context
menu of the Hardware Configurator. The following dia
logue will then appear:
3−18
Fig.3/6: Announcement for configuration check (example)
2. Select the settings which are to be reset and confirm this
with OK.
Options
ParameterModule parameter without Idle mode and
MappingAddress assignment of the CPX terminal
Idle mode/Fail safe Idle mode and Fail safe parameters
System settingsSystem parameters and diagnostic memory
Description
Failsafe
parameters
Tab.3/5:Options Reset configuration
Festo P.BE−CPX−FEC−EN en 0404NH
Page 76
3. General operation (Stand Alone)
3.2Addressing
Basic rules for addressing
Modules occupy the address range in ascending order
from left to right according to their physical arrangement
in the CPX terminal (module−orientated).
Addressing is carried out word−orientated (16−bit I/O).
Different module types are assigned with different
addresses depending on the address range.
If a module occupies less than 1 word (16−bit I/O), the
remaining
If a module occupies more than 1 word I/O, the following
word in the address area will be used.
The address assignment can be modified module−orien
tated (see below).
bits of the word will not be used.
3.2.1Default addressing
In default addressing the address assignments of the various
module types are specified in ranges. The following table
shows the assignment:
Module type
Digital inputs and outputs0 ... 310 ... 31
Valves / pneumatic modules32 ... 63
Analogue inputs and outputs64 ... 12764 ... 127
FEC, bus node, technology module128 ... 255128 ... 255
Tab.3/6:Pre−assigned address ranges of default addressing
Festo P.BE−CPX−FEC−EN en 0404NH
Input wordsOutput words
3−19
Page 77
3. General operation (Stand Alone)
3.2.2Individual addressing
You can modify the addressing individually if you wish to
assign other addresses than those in the default addressing.
· Click directly on the address in the configuration table
and modify the value.
Make sure that the new address is not already assigned,
otherwise you will receive a fault message.
3−20
Fig.3/7: Modify address in the Hardware Configurator
(herewith fault message because address is
already assigned)
Festo P.BE−CPX−FEC−EN en 0404NH
Page 78
3. General operation (Stand Alone)
3.2.3Addressing example
Example 1: CPX terminal with default addressing
8DI4DO
123
1 CPX−FEC
2 Digital I/O modules
Fig.3/8: Example 1: CPX terminal with digital and analogue I/O modules as well as MPA
pneumatics
2AI2AO
4
3 Analogue I/O modules
4 MPA pneumatics
(3 pneumatic modules)
Festo P.BE−CPX−FEC−EN en 0404NH
3−21
Page 79
3. General operation (Stand Alone)
Location ModuleI address O address Remarks
0CPX−FEC128128The inputs map the posi
1Digital 8−input module (8DI)0
2Digital 4−output module
(4DO)
3Analogue 2−input module
(2AI)
4Analogue 2−output module
(2AO)
MPA pneumatic interface
(typeVMPA−FB−EPL−...)
5MPA pneumatic module
(CPX−type32: 1...8V)
6MPA pneumatic module
(CPX−type32: 1...8V)
7MPA pneumatic module
(CPX−type32: 1...8V)
0
64
65
64
Passive module, is not
32
33
34
65
tion of the rotary switch.
The outputs are not used.
shown in the FST
Tab.3/7:Configuration of example 1
3−22
Festo P.BE−CPX−FEC−EN en 0404NH
Page 80
3. General operation (Stand Alone)
Addr. 1)ModuleInput wordOutput word
Bit15 12 11 8 7 4 3 0 15 12 11 8 7 4 3 0
08DI / 4DO 8 DI4 DO
...
31
32MPA18 DO
33MPA18 DO
34MPA18 DO
35MPA18 DO
...
63
642AI / 2AO2 AI (channel 0)2 AO (channel 0)
652AI / 2 AO 2 AI (channel 1)2 AO (channel 1)
...
127
128CPX−FEC8 DI
2)
8 DO
...
255
Dark grey: assigned and used
Light grey: assigned but not used
1)
Word number, automatically assigned by the default addressing
2)
Rotary switch of the CPX−FEC (interrogation of the switch position possible in user program)
Tab.3/8:Address assignment for example 1 (default addressing)
Festo P.BE−CPX−FEC−EN en 0404NH
3−23
Page 81
3. General operation (Stand Alone)
Example 2:
CPX terminal with modified addressing (Mapping)
8DI4DO
123
1 CPX−FEC
2 Digital I/O modules
Fig.3/9: Example 2: CPX terminal as in example 1, but addresses modified as follows
2AI2AO
4
3 Analogue I/O modules
4 MPA pneumatics
(3 pneumatic modules)
For the 2nd. addressing example the addresses have been
modified so that inputs and outputs or valves lie together in
blocks. It is then easier e.g. to understand the composition of
machines (sensors, outputs and
table.
valves) in the addressing
3−24
Festo P.BE−CPX−FEC−EN en 0404NH
Page 82
3. General operation (Stand Alone)
Location ModuleI address O address Remarks
0CPX−FEC128128The inputs map the posi
1Digital 8−input module
(8DI)
2Digital 4−output module
(4DO)
3Analogue 2−input module
(2AI)
4Analogue 2−output module
(2AO)
MPA pneumatic interface
(typeVMPA−FB−EPL−...)
5MPA pneumatic module
(CPX−type32: 1−8V)
6MPA pneumatic module
(CPX−type32: 1−8V)
7MPA pneumatic module
(CPX−type32: 1−8V)
0
10
1
2
11
Passive module, is not
0
1
2
12
tion of the rotary switch.
The outputs are not used.
shown in the FST
Tab.3/9:Configuration of example 2
Festo P.BE−CPX−FEC−EN en 0404NH
3−25
Page 83
3. General operation (Stand Alone)
Addr. 1)ModuleInput wordOutput word
Bit15 12 11 8 7 4 3 0 15 12 11 8 7 4 3 0
08DI / MPA1 8 DI8 DO
12AI / MPA12 AI (channel 0)8 DO
22AI / MPA12 AI (channel 1)8 DO
...
104DO4 DO
112AO2 AO (channel 0)
122AO2 AO (channel 1)
...
32
...
63
64
...
127
128CPX−FEC8 DI
2)
8 DO
...
255
Dark grey: assigned and used
Light grey: assigned but not used
1)
Word number, automatically assigned by the default addressing
2)
Rotary switch of the CPX−FEC (interrogation of the switch position possible in user program)
Tab.3/10: Address assignment for example 2 (modified addressing)
3−26
Festo P.BE−CPX−FEC−EN en 0404NH
Page 84
3. General operation (Stand Alone)
3.3Parametrizing
The CPX terminal is supplied with preset parameters. If re
quired, you can set the reaction of the CPX terminal as well as
the reaction of individual modules and channels by parame
trizing.
A distinction is made between the following parametrizings:
System parameters, e.g.: switching off fault messages,
setting reaction times, etc.
Module parameters
(module and channel−specific), e.g.:
Monitoring, settings in the event of faults, settings for
Forcing
Diagnostic memory parameters
A detailed description of the individual parameters and data
as well as basic information on parametrizing can be found in
the CPX system manual (P.BE−CPX−SYS−..).
The module parameters which are available for the various
modules can be
found in the manual for the relevant module
(e.g. manual for CPX pneumatic interface and CPX I/O mod
ules (P.BE−CPX−EA−..).
Festo P.BE−CPX−FEC−E N en 0404NH
3−27
Page 85
3. General operation (Stand Alone)
Overview of parametrizing possibilities
You can parametrize a CPX terminal with FEC with the Hard
ware Configurator of the FST, with the handheld or via a user
program.
Method
Hardware Configurator
of the FST: offline
Hardware Configurator
of the FST: online
HandheldParametrizing is carried
User programsAccess via function mod
DescriptionProperties
Access to all parameters
of the CPX terminal
Access to all parameters
and data of the CPX ter
minal
out via menu−guided
entries with the handheld.
dules (see appendix C.1)
Comfortable parametrizing via a PC
Parametrizing saved in the project
Comfortable parametrizing via a PC
Parametrizing is saved only locally in the
CPX terminal and is lost with Power
OFF/ON
Parametrizing is saved only locally in the
CPX terminal and is lost with Power
OFF/ON
Program−controlled reaction
Preprocessing possible
Programming very costly
Tab.3/11: Properties of the different parametrizing possibilities
3−28
Festo P.BE−CPX−FEC−EN en 0404NH
Page 86
3. General operation (Stand Alone)
3.3.1Parametrizing with the handheld
The parameters of the CPX terminal can be read and modified
via a connected handheld. The parametrizings with the Hard
ware Configurator of the FST and the handheld are equal, but
the following applies:
Pleasenote
Parametrizings via the handheld are saved only locally in
the CPX terminal and are lost with Power OFF/ON.
Pleasenote
Further information on parametrizing with the handheld
can be found in the manual for the handheld
P.BE−CPX−MMI−1−DE.
3.3.2Parametrizing with the Hardware Configurator of the FST
You can parametrize the CPX terminal comfortably with the
Hardware Configurator.
Parametrizing can be undertaken for:
the nominal configuration (offline): Parameters are trans
ferred when the project is loaded.
the actual configuration (online): Parameters can be
transferred immediately. However, parameters are saved
only locally in the CPX terminal and are lost with Power
OFF/ON.
the relevant dialogue has been opened, you can view
When
and modify the individual parameters.
Festo P.BE−CPX−FEC−E N en 0404NH
3−29
Page 87
3. General operation (Stand Alone)
Parametrizing when switching on
Pleasenote
There is no system parameter System start" with the
CPX−FEC.
When the CPX terminal is switched on, parametrizing is car
ried out as Start parametrizing" by the project saved in the
CPX−FEC 1. Parametrizings can be carried out as test func
tions with the handheld 2. They are not
saved in the project.
1 Parametrizing
from the FEC
project at start:
1
FST
Configurator
The parameter
set is distributed
2
amongst modules
2 Parametrizing as
a test function
with the handheld
Fig.3/10: Sequence of start parametrizing
Handheld
FEC
Project
3−30
Festo P.BE−CPX−FEC−EN en 0404NH
Page 88
3. General operation (Stand Alone)
Access to the various parameters is explained in the
following.
System parameters
1. Click on System Settings" in the context menu of the
Hardware Configurator.
2. Set the system parameters in the register System Para
meters":
Festo P.BE−CPX−FEC−E N en 0404NH
Fig.3/11: Set the system parameters with the Hardware
Configurator
3−31
Page 89
3. General operation (Stand Alone)
Module parameters
1. Double click on the module in the Hardware Configurator
which you wish to parametrize.
2. Set the desired parameters in the register Parameters":
3−32
Fig.3/12: Set the module parameters with the Hardware
Configurator
Festo P.BE−CPX−FEC−EN en 0404NH
Page 90
3. General operation (Stand Alone)
Diagnostic memory parameters
1. Click on System Settings" in the context menu of the
Hardware Configurator.
2. Set the diagnostic memory parameters in the register
Trace Parameters".
Festo P.BE−CPX−FEC−E N en 0404NH
Fig.3/13: Set the diagnostic memory parameters with the
Hardware Configurator
3−33
Page 91
3. General operation (Stand Alone)
3.3.3Parametrizing from a user program
If you wish to modify parameters of the CPX terminals via a
program, you will require special function modules.
Modules
C_ST_rdRead CPX internal parameters and data
C_ST_wrWrite CPX internal parameters
C_MP_rdRead general module parameters
C_MD_rdRead module diagnostic data
C_AP_rdRead analogue module parameters
C_AP_wrWrite analogue module parameters
Description
Tab.3/12: Function modules for parametrizing the
CPXterminal
Further information on function modules and on parametriz
ing from a user program can be found in:
the appendix C.1
in the FST system manual under Drivers and modules".
3−34
Festo P.BE−CPX−FEC−EN en 0404NH
Page 92
3. General operation (Stand Alone)
3.3.4Forcing
By forcing you can manipulate input and output signals.
Actual input signals or status changes by program are
ignored and replaced by the force values.
Warning
Depending on the functioning of the machine/system, the
manipulation of signal states may cause serious injury to
human beings or damage to property.
Be very careful when forcing in order to avoid damage.
Forcing inputsForcing an input does not modify the input signal itself and
cannot be observed at
status of the input is modified internally and in some cases
has an effect on the program. The forced input status is
transferred to the processing image of the inputs. Therefore
the online display of the FST shows the forced input signal.
the relevant status LED. The logical
Forcing outputsIn contrast, forcing an
signal and can be observed at the relevant status LED. How
ever, the forced output signal is not transferred to the pro
cessing image of the outputs. The online display of the FST
does not show the forced, physical output signal, but the
status from
Festo P.BE−CPX−FEC−E N en 0404NH
the processing image.
output does modify the actual output
3−35
Page 93
3. General operation (Stand Alone)
Pleasenote
The online display of the FST always shows the valid signal
status in the processing image. Therefore, observe the
following when forcing:
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
sing image and are therefore not recognized by the con
troller. They are not therefore represented in the online
display.
You have various possibilities of influencing input or output
signals, e.g. for test purposes:
Forcing via the parametrizing of the CPX terminal
with the online display of the FST
to the proces
3−36
in the user program of the PLC.
If several functions are active at the same time, the following
applies:
force signals have the highest priority.
Forcing with the Hardware Configurator
Forcing is available via the module parametrizing providing
FST online is connected to your CPX terminal.
Pleasenote
If you block or enable forcing globally, all signal states
which are forced will become ineffective or effective im
mediately.
1. Use the right−hand mouse button to click the module for
which you wish to set the force parameters.
2. Select [Properties].
Festo P.BE−CPX−FEC−EN en 0404NH
Page 94
3. General operation (Stand Alone)
3. Select the register Force Mode" (see following diagram).
4. Set the desired value or status for the relevant channel in
the column Force" 1.
5. Enable forcing for the relevant channel by placing a tick in
the column Channel" 2.
6. Activate the Force mode (global system parameter) as
soon as you wish to accept the
7. Accept the settings and close with OK 4.
3
set values 3.
2
1
Fig.3/14: Example: Forcing outputs with the Hardware Configurator
Further information on forcing can be found in the CPX sys
tem manual and in volume 1 of the FST manual (e.g. Forcing
with the online display).
Forcing via CI commands
Information on forcing with CI commands can be found in
appendix D and in the chapter 2 Basic functions of the FST
software" in volume 1 of the FST manual.
Festo P.BE−CPX−FEC−E N en 0404NH
4
3−37
Page 95
3. General operation (Stand Alone)
3.3.5Application example for the parametrizing
1
Input with default
parametrizing
21
2 Input with
reduction of the
input debounce
time and increase
in the signal
lengthening time
1. sensor
2. sensor
Fig.3/15: Example of application for parametrizing debounce time and pulse lengthening
(here on the right−hand sensor)
3−38
In the above application packets are transported on a fast−
moving conveyor belt. With the following parametrizing the
registering and processing of the signals has been improved.
Reduction of the input debounce time of 3ms (factory
setting) to 0.1ms:
Shorter signals can also be registered
(applies to the complete module).
Modification of the signal lengthening time to 50ms: The
signal will be registered reliably by the controller.(applies
only to the input channel of the 2nd. sensor).
Festo P.BE−CPX−FEC−EN en 0404NH
Page 96
3. General operation (Stand Alone)
3.4Programming theCPX−FEC
Use the FST software version 4.1 or higher in order to create
programs for the CPX−FEC, for testing and for commissioning.
User programs and program modules can be created in the
programming languages Statement List (STL) and Ladder
Diagram (LDR).
You will find here a description of the programming prerequi
sites, the programming languages,
operands and operations:
FST system manual
Text book Automation with FST" (supplied with the FST
software)
If you are a beginner in the subject, you should refer to the
relevant basic manuals for more information about the pro
gramming language.
programming techniques,
Festo P.BE−CPX−FEC−E N en 0404NH
When you have planned and structured a project, you can
start with programming.
The following are required:
operands (retentive, non−retentive)
operations (set of commands)
function modules (depending on application).
3−39
Page 97
3. General operation (Stand Alone)
3.4.1Overview of operands
OperandDesign.RangeRetentive
Input wordIWIW0 ... IW255No
Input bitII0.0 ... I255.15No
Output wordOWOW0 ... OW255 can be addressed as word or bitNo
Output bitOO0.0 ... O255.15No
Error wordEW0: No fault, > 0: Error numberNo
Error statusE0: No fault, 1: Fault
Initial execution flag FI0: Program cycle > 1, 1: first program cycle
Flag wordFWFW0 ... FW9999Yes
Flag bitFF0.0 ... F9999.15Yes
TimerTT0 ... T255 (also TP and TW for each timer TON, TOFF)No
Switch−on delay
timer
Switch−off delay
timer
Timer pre−settingTPTP0 ... TP255Yes
Timer wordTWTW0 ... TW255No
CounterCC0 ... C255 (also as CV and CW for each counter)Yes
Counter pre−settingCPCP0 ... CP255Yes
Counter wordCWCW0 ... CW255Yes
RegisterRR0 ... R255Yes
Function unitsFUFU0 ... FU31, FU39 ... FU255 per programYes
Function unitsFUFU32 ... FU38 per programNo
ProgramsPP0 ... P63No
Program statusPSPS0 ... PS63No
TONTON0 ... TON255No
TOFFTOF F0 ... TOFF255No
(for each program)
No
3−40
Festo P.BE−CPX−FEC−EN en 0404NH
Page 98
3. General operation (Stand Alone)
OperandRetentiveRangeDesign.
Function modulesCFMCFM0 ... CFM99 (predefined by Festo)No
Program modulesCMPCMP0 ... CMP99 (user−defined)No
Tab.3/13: Operands CPX−FEC
Retentive operands retain their value even when the
controller is switched off.
3.4.2Overview of operations
Depending on the programming language selected (STL or
LDR), various operands are available for creating a program.
The permitted operations (set of commands) are listed below.
Refer to the FST system manual for a detailed description of
the operations.
Festo P.BE−CPX−FEC−E N en 0404NH
3−41
Page 99
3. General operation (Stand Alone)
STLLDRMeaning
STEPSymbolic step marks are permitted for sequence programs
IF(graphical)Introduces a conditional part
THEN(graphical)Introduces an executive part providing the condition under IF is
OTH RW
/
ELSE
SETSSingle−bit operands are set to logical 1", timers, counters or
RESETRSingle−bit operands are set to logical 0", timers, counters or
SHIFTSwaps the specified single−bit operand with the value in the
LOADSingle and multibit operands and constants are loaded into the
TOTOTransfers operand 1 to operand 2 in combination with LOAD
NOPNOPEmpty operation
N/Negation: Negates operands, i.e. they are interrogated for logical
ANDANDLogical command for bit−by−bit AND linking
ORORLogical command for bit−by−bit OR linking
(graphical)Introduces an alternative executive part if the condition under IF is
fulfilled.
not fulfilled.
programs are started. Instruction follows in an executive part. The
command is saved.
programs are stopped. Instruction follows in an executive part.
The command is saved.
single−bit accumulator
accumulator with this command.
Unconditional in conditional part (IF NOP), substitute symbol in
executive part
zero
EXOREXORLogical command for bit−by−bit exclusive OR linking
Tab.3/14: Overview of operations of the CPX−FEC (part 1)