Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Electronics manual
CPXFrontEnd
Controller
Type CPXFEC
Manual
538 475
en 0404NH
[677 480]
Author . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . U. Reimann
Editor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . M. Holder
Edition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . en 0404NH
Designation . . . . . . . . . . . . . . . . . . . . . . . . P.BECPXFECEN
Order no. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 538 475
MODBUSt
Microsoft Windowst
II
Contents
Designated use . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Target group . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Service . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Notes on the use of this manual . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Important user instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
VIII
IX
IX
X
XI
1.
System summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
11
1.1
1.2
1.5
14
15
16
17
18
19
110
111
112
115
2.
Installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
21
2.1
2.2
24
28
28
29
211
211
213
213
214
217
218
219
1.3
1.4
2.3
2.4
2.5
2.6
III
3.
31
3.1
3.6
Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3.1.1
Create connection to CPXFEC . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3.1.2
Creating a project . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3.1.3
Fast configuration by loading the actual configuration . . . . . . . . . .
3.1.4
Manual configuration with the Hardware Configurator . . . . . . . . . .
Addressing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3.2.1
Default addressing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3.2.2
Individual addressing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3.2.3
Addressing example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Parametrizing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3.3.1
Parametrizing with the handheld . . . . . . . . . . . . . . . . . . . . . . . . . . .
3.3.2
Parametrizing with the Hardware Configurator of the FST . . . . . . .
3.3.3
Parametrizing from a user program . . . . . . . . . . . . . . . . . . . . . . . . .
3.3.4
Forcing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3.3.5
Application example for the parametrizing . . . . . . . . . . . . . . . . . . .
Programming the CPXFEC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3.4.1
Overview of operands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3.4.2
Overview of operations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3.4.3
Overview of function modules for the CPX terminal . . . . . . . . . . . .
3.4.4
User programs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3.4.5
Program example (STL) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Diagnosis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3.5.1
Diagnosis with the controller LEDs RUN, STOP and ERROR . . . . . .
3.5.2
Diagnosis with the Hardware Configurator . . . . . . . . . . . . . . . . . . .
3.5.3
Diagnosis in the user program . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Access and control via CI commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
34
34
35
38
310
319
319
320
321
327
329
329
334
335
338
339
340
341
345
346
350
352
353
355
359
361
4.
41
4.1
44
44
45
46
49
3.2
3.3
3.4
3.5
4.2
IV
4.2.3
Data exchange in the application layers 5 to 7 . . . . . . . . . . . . . . . .
Ethernet with CPXFEC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.3.1
Connecting the CPXFEC to the Ethernet . . . . . . . . . . . . . . . . . . . . .
4.3.2
IP addressing of the CPXFEC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.3.3
HTTP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.3.4
TFTP, Telnet . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.3.5
Emails can be sent with the CPXFEC (SMTP driver) . . . . . . . . . . . .
4.3.6
Example of a program for sending an email . . . . . . . . . . . . . . . . . .
The Webserver of the CPXFEC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.4.1
Possibilities and limits of the Webserver . . . . . . . . . . . . . . . . . . . . .
4.4.2
Standard Web pages of the CPXFEC . . . . . . . . . . . . . . . . . . . . . . . .
4.4.3
Creating own Web pages for the CPXFEC . . . . . . . . . . . . . . . . . . . .
4.4.4
Load files into the Webserver . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
411
413
413
413
416
417
418
419
421
421
422
425
428
5.
51
5.1
5.2
54
55
57
511
513
515
516
521
521
6.
61
6.1
6.2
General information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Modbus/TCP: Commands and addressing . . . . . . . . . . . . . . . . . . . . . . . . . . .
6.2.1
Modbus commands and address assignment . . . . . . . . . . . . . . . . .
6.2.2
CPX status information (group A) . . . . . . . . . . . . . . . . . . . . . . . . . . .
6.2.3
Processing data (groups B and D) . . . . . . . . . . . . . . . . . . . . . . . . . .
6.2.4
Diagnostic memory (groups C and E) . . . . . . . . . . . . . . . . . . . . . . . .
6.2.5
Objects (group F) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6.2.6
Addressing examples for Modbus/TCP . . . . . . . . . . . . . . . . . . . . . .
64
67
67
68
610
624
626
626
4.3
4.4
6.3
6.4
EasyIP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 632
Diagnosis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 633
6.4.1
Diagnosis with the control and Ethernet LEDs . . . . . . . . . . . . . . . . . 633
A.
Technical appendix . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
A1
A.1
A3
B.
Drivers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
B1
B.1
Drivers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
B.1.1
Drivers for the CPXFEC (operating mode Remote Controller) . . . .
B.1.2
Drivers for the CPXFEC (operating mode Remote I/O Ethernet) . .
B3
B3
B5
C.
Function modules . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
C1
C.1
C.2
C3
C13
C14
C14
C17
D.
D1
D.1
D3
D3
D4
D6
D6
D10
D14
D17
D19
D21
D22
D23
D24
VI
E.
Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
E1
VII
Designated use
The CPXFEC (FrontEnd Controller) described in this manual
is intended exclusively for use as follows:
VIII
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.
IX
Hardware/software
Version 1)
CPXFEC
CPXFB06 Interbus 2)
CPXFB11 DeviceNet 2)
CPXFB13 PROFIBUSDP 2)
CPXFB14 CANopen 2)
CPXFB23 CCLink 2)
1)
2)
Tab.0/1:
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.
Please note
This means that failure to observe this instruction may
result in damage to property.
XI
Accessories:
Information on necessary or sensible accessories for the
Festo product.
Environment:
Information on environmentfriendly use of Festo products.
Text markings
XII
Type
Title
Description
Electronics
manual
System manual"
typeP.BECPXSYS...
CPX analogue
I/Omodules"
typeP.BECPXAX...
CPXCP interface"
type P.BECPXCP..
Handheld"
type P.BECPXMMI1...
CPXFEC"
type P.BECPXFEC...
Software
package
FST"
Manual
pneumatics
Tab.0/2:
XIII
Meaning
A0h
AI
Analogue input
AO
Analogue output
CP modules
CPX terminal
DI
Digital input
DIL switch
DO
Digital output
FW
Flag word
Handheld / MMI
IB, IW
I/O modules
Common term for CPX modules which provide digital inputs and outputs.
I/Os
OB, OW
PLC/IPC
Pneumatic interface
Tab.0/3:
XIV
Meaning
ARP
BOOTP
DHCP
EasyIP
Ethernet
FTP, TFTP
HTTP
Protocol for data transmission via TCP/IP (Hyper Text Transfer Protocol)
ICMP
IP
MAC address
Modbus/TCP
TCP
TCP/IP
Combination of the protocols TCP and IP, the mostwidely used protocol
in communication via Ethernet.
UDP
WWW
Tab.0/4:
XV
System summary
Chapter 1
11
1. System summary
Contents
1.
System summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
11
1.1
1.2
14
15
16
17
18
19
110
111
112
115
1.3
1.4
1.5
12
1. System summary
Further information
13
1. System summary
1.1
14
1. System summary
1.2
Stand Alone
Remote Controller
Remote I/O
15
1. System summary
1.2.1
Stand Alone
1 CPXFEC
2 Controlled by the CPXFEC
Fig.1/1: CPX terminal controlled by the CPXFEC
Stand Alone
The CPX terminal is controlled independently by the
CPXFEC. There is no communication connection to other
slaves.
Configure the CPX terminal with the FST software package
FST4.1 or higher. The programming or Ethernet interface can
be used for the configuration.
1. System summary
1.2.2
Remote Controller
Field bus
Ethernet
17
1. System summary
1.2.3
Remote I/O
Ethernet
18
1. System summary
1.2.4
Remote
Controller
Ethernet
Remote
Controller
Field bus
Remote I/O
Function of the
CPXFEC
Controller
Ethernet slave
CPX module
controlled by
CPXFEC
CPXFEC
Higherorder
controller
PLC used
Yes
Yes
No
Via field bus 1)
Communication
with higherorder
controller
No
Via Ethernet
Webserver
Possible
Possible
Possible
Configuration
FST 4.1 or
higher
Higherorder
controller (e.g. with
Schneider Unity)
Parametrizing with
FST/Handheld
FST/Handheld
Module code
208
208
210
Addressing
Default (can be
modified)
Specified
Memory location 2)
250 kB (PLC)
550 kB (Webs.)
250 kB (PLC)
550 kB (Webserver)
800 kB (Webserver)
Switch position
DIL1
Handheld
FST/Handheld
Via Ethernet
Handheld/Modbus
1)
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.
Tab.1/1:
19
1. System summary
1.3
110
1. System summary
1.4
1 Control and
Ethernet LEDs
(see chapters 3, 5
and 6):
RUN
STOP
ERROR
TP
2 CPXLEDs
(see next section):
PS: Power system
PL: Power load
SF: System fault
M: Modify
111
1. System summary
1.4.1
Sequence
ON
OFF
LED lights up
ON
OFF
LED flashes
ON
OFF
ON
OFF
LED is out
Tab.1/2:
112
Status
Meaning/fault treatment
No fault Operating
voltage/sensor supply
applied
Operating voltage/sensor
supply outside the
tolerance range
Eliminate undervoltage
1. System summary
Sequence
Status
Meaning/fault treatment
ON
None
Eliminate undervoltage
OFF
LED lights up
ON
OFF
LED flashes
Tab.1/3:
Sequence
Status
Meaning/fault treatment
ON
No fault
Simple fault/information
(fault class 1)
OFF
LED is out
ON
OFF
LED flashes
once
ON
OFF
Fault
(fault class 2)
LED flashes
twice
ON
OFF
Serious fault
(fault class 3)
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
Tab.1/4:
113
1. System summary
Sequence
Status
Meaning/fault treatment
ON
None
Force is active
OFF
LED is out
ON
OFF
LED flashes
ON
OFF
LED lights up
Tab.1/5:
114
1. System summary
1.5
Tutorial: Creating a project for the CPXFEC 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 CPXFEC in accordance with
chapter 2 and set the rotary switch of the CPXFEC to 0".
2. Use the programming cable to connect the CPXFEC to the
serial interface of your PC.
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 CPXFEC as controller in the window
ProjectSettings".
6. Open the Hardware Configurator with a double click on
I/OConfiguration" in the project window.
7. Select ActualNominalComparison" in the context menu
(righthand mouse click) of the Hardware Configurator.
Accept the configuration by clicking on Apply".
115
1. System summary
116
1. System summary
117
1. System summary
Creating a program
118
1. System summary
Fig.1/11: A marked program is loaded into the FEC with the project
119
1. System summary
Start program
120
Installation
Chapter 2
21
2. Installation
Contents
2.
Installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
21
2.1
2.2
24
28
28
29
211
211
213
213
214
217
218
219
2.3
2.4
2.5
2.6
22
2. Installation
Further information
23
2. Installation
2.1
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:
Caution
The CPXFEC 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.BECPXSYS..).
24
2. Installation
6
2
5
3
3 Ethernet interface
(10/100BaseT, RJ45)
4 Programming interface
(RS232, 9pin subD socket)
Fig.2/1: Connecting and display elements on the CPX field bus node
25
2. Installation
1 CPXFEC
2 Manifold subbase
3 Contact rails
26
2. Installation
Fitting
27
2. Installation
2.2
2.2.1
Rotary switch
Tab.2/1:
28
Setting
Meaning
STOP
PLC program has stopped.
Programs stop when the rotary switch is modified
from 1 ... F to 0.
1 ... F
RUN
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.
2. Installation
2.2.2
DIL switches
Please note
Check that the setting of the DIL switch is correct before
commissioning the CPXFEC.
A change in the operating mode is not recognized until
after Power OFF/ON.
The DIL switches must be accessible in order that the
CPXFEC can be set:
29
2. Installation
Operating mode
Remote I/O
Controlling the CPX terminal via Modbus/TCP
with a higherorder controller.
Reserved
DIL 1.1: ON
DIL 1.2: ON
Reserved
DIL 1.1: ON
DIL 1.2: OFF
Tab.2/2:
210
2. Installation
2.3
Ethernet interface
There is a RJ45 socket on the CPXFEC for connection to the
Ethernet.
RJ45 socket
8
7
6
5
4
3
2
1
Tab.2/3:
Pin
Signal
Explanation
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
2.3.1
Ethernet cable
Use as connecting cable:
Cable specification
Please 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.
211
2. Installation
Network connection
Please note
Use the RJ45 plug from Festo in order to comply with
protection class IP65/IP67.
Type FBSRJ458GS, part no. 534494
Observe the fitting instructions for the plug.
212
2. Installation
2.4
2.4.1
Pin assignment
Tab.2/4:
Signal
Explanation
n.c.
RxD
TxD
n.c.
GND
n.c.
n.c.
n.c.
n.c.
Screening/shield
not connected
Receive data
Send data
not connected
Data reference potential
not connected
not connected
not connected
not connected
Connection to functional earth
type AKSUB9/15B
213
2. Installation
2.4.2
Connecting a programming PC
Use the programming cable from Festo in order to connect
your PC to the CPXFEC:
type KDIPPA3BU9
Please note
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.
The next section describes how to produce an RS232 cable
which complies with protection class IP65/IP67.
Please note
Lay the cable
not twisted
without bends
at a sufficient distance from currentcarrying cables.
You will then avoid transmission faults between the PC
and the FEC.
214
2. Installation
Please note
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
Please note
Observe the maximum permitted length of the cable as a
factor of the baud rate in accordance with RS232 specifica
tions.
215
2. Installation
2 Blanking plug if
connection is not
used
9 8 7 6 5 4 3 21
the cable
(pinassignment
see Tab.2/4)
5 Fastening screws
5
Please note
Use protective caps or blanking plugs to seal unused
connections.
In this way you will comply with protection class
IP65/IP67.
216
2. Installation
2.4.3
217
2. Installation
2.5
KVM12M123,5
3.5
KVM12M121,5
1.5
Tab.2/5:
218
2. Installation
2.6
Connection
IP65/IP67
Cover 1)
IP65/IP67
Ethernet, RJ45
Plug
type FBSRJ458GS
part no. 534494
Cover 2)
type AKRJ45
part no. 534496
Programming
interface, subD
and DIL switch
Transparent cover 2)
type AKSUB9/15B
part no. 533334
Service interface,
M12
Protective cap 2)
type ISKM12
part no. 352059
Rotary switch
Cover 2)
type AKRJ45
part no. 534496
1)
2)
Tab.2/6:
219
2. Installation
220
Chapter 3
31
Contents
3.
31
3.1
Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3.1.1
Create connection to CPXFEC . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3.1.2
Creating a project . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3.1.3
Fast configuration by loading the actual configuration . . . . . . . . . .
3.1.4
Manual configuration with the Hardware Configurator . . . . . . . . . .
Addressing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3.2.1
Default addressing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3.2.2
Individual addressing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3.2.3
Addressing example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Parametrizing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3.3.1
Parametrizing with the handheld . . . . . . . . . . . . . . . . . . . . . . . . . . .
3.3.2
Parametrizing with the Hardware Configurator of the FST . . . . . . .
3.3.3
Parametrizing from a user program . . . . . . . . . . . . . . . . . . . . . . . . .
3.3.4
Forcing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3.3.5
Application example for the parametrizing . . . . . . . . . . . . . . . . . . .
Programming the CPXFEC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3.4.1
Overview of operands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3.4.2
Overview of operations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3.4.3
Overview of function modules for the CPX terminal . . . . . . . . . . . .
3.4.4
User programs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3.4.5
Program example (STL) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Diagnosis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3.5.1
Diagnosis with the controller LEDs RUN, STOP and ERROR . . . . . .
3.5.2
Diagnosis with the Hardware Configurator . . . . . . . . . . . . . . . . . . .
3.5.3
Diagnosis in the user program . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Access and control via CI commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
34
34
35
38
310
319
319
320
321
327
329
329
334
335
338
339
340
341
345
346
350
352
353
355
359
361
3.2
3.3
3.4
3.5
3.6
32
Stand Alone
33
3.1
Configuration
Use Festo Software Tools (FST 4.1 or higher) with the Hard
ware Configurator in order to configure your CPX terminal
with CPXFEC. 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.
3.1.1
Create connection to
theCPXFEC
34
3.1.2
Creating a project
Create a new project in FST as follows:
1. [Project] [New...]
2. Assign a project name.
3. Select the CPXFEC as controller in the window
Project Settings".
35
Please note
Note the register Download" in the Controller settings".
Select Download source files" if you wish to download
36
4
1 Project window
3 Hardware Catalogue
2 Hardware Configurator
4 Configuration table
Fig.3/2: FST 4.1 with Hardware Configurator after creation of a new project
37
3.1.3
Actualnominalcomparison
Actualnominal
comparison
38
Fig.3/3: Load the configuration of a connected CPX terminal with the function
ActualNominalComparison" in the editor mode.
If the actualnominal 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
CPXFEC and your PC.
Change to the online mode
Online mode
39
3.1.4
Deleting modules
310
2
1 Configuration with drag & drop
311
Module CPXFEC
You can configure the controller of your CPX terminal with
this module.
Module
Module
Assigned address
identifiers 1) range
Remarks
FEC controller
FEC
1 word I
1 word O
1) Module identifiers on the handheld and in the Hardware Configurator of the FST 4.1
Tab.3/1:
312
Module CPXFEC
Electric modules
Module
(order code)
Module identifiers 1)
Assigned address
range
Remarks
4DI
1 word I
8DI
1 word I
4DO
1 word O
8DI/8DO
1 word I
1 word O
2AI
2 words I
2AO
2 words O
1)
Module identifiers on the handheld and in the Hardware Configurator of the FST 4.1
Tab.3/2:
Module
identifiers
Assigned address
range
Remarks
CP interface
CPI
max. 8 words I
max. 8 words O
Tab.3/3:
313
Pneumatic modules
Module
(order code)
Module
Assigned address
identifiers 1) range
Remarks
MPA1S
MPA2S
1 word O
MPA1G
MPA2G
1 word O
CPA10/14
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.
valves
Type 03
1)
Module identifiers on the handheld and in the Hardware Configurator of the FST 4.1
Tab.3/4:
314
315
316
317
Reset configuration
All parameter settings and the address assignment
(Mapping) can be reset to the factory settings.
Reset configuration
Description
Parameter
Mapping
System settings
Tab.3/5:
318
3.2
Addressing
Basic rules for addressing
3.2.1
Default addressing
In default addressing the address assignments of the various
module types are specified in ranges. The following table
shows the assignment:
Module type
Input words
Output words
0 ... 31
0 ... 31
32 ... 63
64 ... 127
64 ... 127
Tab.3/6:
319
3.2.2
Individual addressing
You can modify the addressing individually if you wish to
assign other addresses than those in the default addressing.
320
3.2.3
Addressing example
Example 1: CPX terminal with default addressing
8DI
4DO
2AI
2AO
1 CPXFEC
4 MPA pneumatics
(3 pneumatic modules)
Fig.3/8: Example 1: CPX terminal with digital and analogue I/O modules as well as MPA
pneumatics
321
Location
Module
I address
O address Remarks
CPXFEC
128
128
64
65
64
65
32
33
34
Tab.3/7:
322
Configuration of example 1
Addr. 1)
Module
Bit
0
Input word
15
8DI / 4DO
12 11
Output word
8
15
12 11
8 DI
...
31
32
MPA1
8 DO
33
MPA1
8 DO
34
MPA1
8 DO
35
MPA1
8 DO
...
63
64
2AI / 2AO
2 AI (channel 0)
2 AO (channel 0)
65
2AI / 2 AO
2 AI (channel 1)
2 AO (channel 1)
...
127
128
CPXFEC
8 DI 2)
8 DO
...
255
4 DO
Tab.3/8:
323
Example 2:
CPX terminal with modified addressing (Mapping)
8DI
4DO
2AI
2AO
1 CPXFEC
4 MPA pneumatics
(3 pneumatic modules)
324
Location
Module
I address
O address Remarks
CPXFEC
128
128
10
1
2
11
12
Tab.3/9:
Configuration of example 2
325
Addr. 1)
Module
Bit
Input word
15
8DI / MPA1
2AI / MPA1
12 11
Output word
8
8 DI
15
12 11
8 DO
2 AI (channel 0)
8 DO
2AI / MPA1
2 AI (channel 1)
8 DO
...
10
4DO
11
2AO
2 AO (channel 0)
12
2AO
2 AO (channel 1)
...
32
...
63
64
...
127
4 DO
128
CPXFEC
8 DI 2)
...
255
8 DO
Tab.3/10:
326
3.3
Parametrizing
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:
327
Description
Properties
Hardware Configurator
of the FST: offline
Hardware Configurator
of the FST: online
Handheld
Parametrizing is carried
out via menuguided
entries with the handheld.
User programs
Programcontrolled reaction
Preprocessing possible
Programming very costly
Tab.3/11:
328
3.3.1
Please note
Parametrizings via the handheld are saved only locally in
the CPX terminal and are lost with Power OFF/ON.
Please note
Further information on parametrizing with the handheld
can be found in the manual for the handheld
P.BECPXMMI1DE.
3.3.2
When the relevant dialogue has been opened, you can view
and modify the individual parameters.
329
1 Parametrizing
from the FEC
project at start:
The parameter
set is distributed
amongst modules
FST
Configurator
Handheld
2 Parametrizing as
a test function
with the handheld
FEC
Project
330
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":
331
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":
332
333
3.3.3
Description
C_ST_rd
C_ST_wr
C_MP_rd
C_MD_rd
C_AP_rd
C_AP_wr
Tab.3/12:
334
3.3.4
Forcing
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 inputs
Forcing an input does not modify the input signal itself and
cannot be observed at the relevant status LED. The logical
status of the input 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.
Forcing outputs
335
Please note
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 to the proces
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:
Please note
If you block or enable forcing globally, all signal states
which are forced will become ineffective or effective im
mediately.
1. Use the righthand mouse button to click the module for
which you wish to set the force parameters.
2. Select [Properties].
336
2
1
4
337
3.3.5
parametrizing
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 righthand sensor)
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.
338
3.4
339
3.4.1
Overview of operands
Operand
Design.
Range
Retentive
Input word
IW
No
Input bit
No
Output word
OW
No
Output bit
No
Error word
EW
No
Error status
0: No fault, 1: Fault
FI
No
Flag word
FW
Yes
Flag bit
Yes
Timer
No
Switchon delay
timer
TON
No
Switchoff delay
timer
TOFF
No
Timer presetting
TP
Yes
Timer word
TW
No
Counter
Yes
Counter presetting
CP
Yes
Counter word
CW
Yes
Register
R0 ... R255
Yes
Function units
FU
Yes
Function units
FU
No
Programs
P0 ... P63
No
Program status
PS
No
340
Operand
Design.
Range
Retentive
Function modules
CFM
No
Program modules
CMP
No
Tab.3/13:
Operands CPXFEC
Retentive operands retain their value even when the
controller is switched off.
3.4.2
Overview 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.
341
STL
LDR
Meaning
STEP
IF
(graphical)
THEN
(graphical)
OTHRW
/
ELSE
(graphical)
SET
RESET
SHIFT
LOAD
Single and multibit operands and constants are loaded into the
accumulator with this command.
TO
TO
NOP
NOP
Empty operation
Unconditional in conditional part (IF NOP), substitute symbol in
executive part
AND
AND
OR
OR
EXOR
EXOR
342
STL
LDR
Meaning
+,,*,/
+,,*,/
INC
DEC
SWAP
SWAP
BID
BID
DEB
DEB
SHL
SHL
All bits in the multibit accumulator are shifted one position to the
left. Bits pushed out to the left are lost.
SHR
SHR
All bits in the multibit accumulator are shifted one position to the
right. Bits pushed out to the right are lost.
ROL
ROL
In the multibit accumulator all the bits are rotated to the left; the
last bit becomes the first, the penultimate becomes the last, etc.
ROR
ROR
In the multibit accumulator all the bits are rotated to the right; the
first bit becomes the last, the second becomes the first, etc.
INV
INV
CPL
CPL
Tab.3/15:
343
STL
LDR
Meaning
<
<
<=
<=
=>
=>
>
>
<>
<>
( )
CFMn, CMPn
CFMn, CMPn
WITH
(graphical)
JMP TO
Tab.3/16:
344
3.4.3
Description
C_ST_rd
C_ST_wr
C_MP_rd
C_MP_wr
C_AP_rd
C_AP_wr
Tab.3/17:
Modules
Description
C_STATUS
C_TR_rd
C_MD_rd
Tab.3/18:
345
3.4.4
User programs
Create user programs for the CPXFEC with the software
package FST 4.1 or higher.
Create program
Create program
346
with a CI command.
Please note
Program 0 starts automatically when the project is loaded
into the CPXFEC, if the function Autostart" is activated in
the register Download" in the controller settings. This also
applies if the rotary switch is in the 0" position.
Stop program
with a CI command.
347
Possibilities
Explanation
Rotary switch
CPXFEC
0 ... F
0: Stop
1 ... F: Run
Programs also start when the rotary switch is set to 0".
Programs also stop when the rotary switch is set to 0".
The behaviour depends therefore on the signal edge.
Controller
settings in FST
Start/stop input
Reset programs
Stop program
Error output
Error program
Tab.3/19:
348
349
3.4.5
STEP Aplus
IF
AND
AND
AND
THEN
RESET
SET
untensioned
Drill_abo
Emergency
Start
Aminus
Aplus
STEP Bplus
IF
tensioned
THEN
SET
Bohrer
STEP Bminus
IF
Drilled
THEN
RESET Bohrer
STEP Aminus
IF
Drill_abo
THEN
RESET Aplus
SET
Aminus
STEP Cplus
IF
untensioned
THEN
SET
Ejector
STEP Cminus
IF
Ejector is at front
Ejected
350
351
3.5
Diagnosis
Diagnostic
possibility
Advantages
Description
LEDs
Handheld
Hardware
Configurator
In the user
program
Tab.3/20:
352
3.5.1
RUN
LED (green)
Sequence
Status
ON
OFF
LED lights up
ON
OFF
LED is out
STOP
LED (yellow)
Sequence
Status
ON
OFF
LED is out
ON
OFF
LED lights up
Tab.3/21:
Status displays of the LEDs RUN and STOP in the operating mode
StandAlone
353
ERROR (only in the operating modes Stand Alone and Remote Controller)
LED (red)
Sequence
Status
Fault treatment
ON
No fault
OFF
LED is out
ON
OFF
LED lights up
TP (only in the operating modes Remote Controller Ethernet and Remote I/O)
LED (green)
Sequence
Status
Fault treatment
ON
Ethernet connection OK
(Link)
LED is out
No Ethernet connection or
Ethernet cable not
connected
Tab.3/22:
OFF
LED lights up
ON
OFF
LED flashes
ON
OFF
354
3.5.2
2
1
355
356
Diagnosis Trace
357
358
3.5.3
Description
C_STATUS
C_TR_rd
C_MD_rd
Tab.3/23:
359
RESET
LOAD
TO
RESET
SET
I0.7
E
V0
EW
P63
P0
360
3.6
361
362
Chapter 4
41
Contents
4.
41
4.1
44
44
45
46
49
411
413
413
413
416
417
418
419
421
421
422
425
428
4.2
4.3
4.4
42
43
4.1
4.1.1
44
4.2
logical
physical
Fig.4/2: The first 4 layers of the OSI layer model with example of Ethernet TCP/IP
45
UDP
In addition to TCP, the transport protocol UDP (User Data
gramm Protocol) is of importance. While the TCP uses check
sums and reply messages to ensure that the data reach the
receiver correctly, the UDP sends the data with a more simple
checksum, but without rely. This has the advantage of a faster
exchange of data. Due to the lack of a reply, the correct trans
mission must be ensured, e.g. by means of a user program.
ICMP
The Internet Control Message Protocol ICMP serves for the
exchange of fault and status information between power
units and works on the same layer as IP.
4.2.1
ARP
46
IP address
Net mask
Net classes
47
Net class
Net mask
Explanation
255.0.0.0
Large network
255.255.0.0
Medium network
255.255.255.0
Tab.4/1:
Gateway
Assigning addresses
DHCP
48
the IP address
4.2.2
TCP header
IP header
Ethernet header
IP data range
49
410
4.2.3
Layers 5, 6, 7:
Application data
(HTTP, TFTP, Telnet, Modbus/TCP, EasyIP, ...)
411
Explanation
HTTP
Hypertext Transfer
Protocol
TFTP
Telnet
SMTP
Sending emails
Modbus/TCP
EasyIP
Tab.4/2:
412
4.3
4.3.1
Network connection
4.3.2
413
Please note
If you have loaded an incorrect IP address into the
CPXFEC by mistake, you can no longer modify this via the
network.
In this case use the communication via the programming
interface (RS232).
414
415
4.3.3
HTTP
Composition of an URL
With the URL you can specify the protocol and the address
from which the Browser or the Client is to fetch the data. The
following minimum entries are required:
protocol://hostname
Examples
http://www.festo.com
ftp://ftp.festo.com/
Instead of the host name you can enter directly an IP address,
e.g. the address of your CPXFEC, in the Browser:
Example
http://10.8.64.251
The Web page saved in the Webserver of the CPXFEC will
now be displayed.
/pathname/filename?further_parameters
Path name and file name correpond to the directory and file
structures on the Webserver. Further parameters are trans
ferred to the Webserver with the question mark.
Example
416
http://10.8.64.251/main.htm?ci:maw9=511
Here a CI command is transferred to the CPXFEC with
?ci:maw9=511": Output word 9 is set to 511d (1FFh).
More information on this can be found in section 4.4
(Webserver) and in appendix D (CI commands).
4.3.4
TFTP, Telnet
Projects and files for the Webserver are loaded into the
CPXFEC or read from there with TFTP.
The Telnet protocol is used when you wish to access the
CPXFEC directly with a terminal program. Here you can
perform numerous operations by means of CI commands.
Further information can be found here:
CI commands : Appendix D
417
4.3.5
418
4.3.6
String no.
Contents
Description
10
Ipc@somedomain.com
11
Mail.somedomain.com
12
destination@someotherdomain.com
13
Mail reference
14
Hallo,
15
419
In the following program extract the user name and the mail
host are first defined and then an email is sent:
Example
STEP
Set user name and mail host
IF
NOP
THEN
CMP 30
EMAIL module
WITH V1
1:set name and mail host
WITH V10
string#10: user name
WITH V11
string#11: mail host
IF
FU32
= V0
THEN
NOP
Parameter 1
STEP
Send email
IF
NOP
THEN
CMP 30
WITH V2
WITH V12
WITH V13
WITH V14
WITH V2
EMAIL module
2 send mail
string#12: Target address
string#13: Re:
string#14: Mail text
Number of strings with mail text (here 2)
IF
Parameter 1
THEN
FU32
= V0
NOP
STEP
Wait until Email is sent
IF
NOP
THEN
CMP 30
EMAIL module
WITH V0
0:Status interrogation
WITH V20
string#20: Reply from mail host
IF
THEN
420
FU32
= V0
LOAD
TO
LOAD
TO
Parameter 2
FU34
FW34
FU35
FW35
Parameter 3
SMTP fault code
Parameter 4
SMTP additional fault code
4.4
4.4.1
421
Limits
Please note
Please note that a control task in the controller has priority
over communication with devices which request data from
the Webserver driver.
4.4.2
422
423
Link
Function
user homepage
online information
local inputs
local ouputs
flagwords
timers
counters
registers
Displays states of the inputs, outputs, flag words, timers, counters and
registers. The pages are updated every 5 seconds.
error status
program status
terminal mode
Starts a standard terminal program for direct access to the CPXFEC via
CIcommands.
controller information
Tab.4/3:
424
4.4.3
Example
http://10.8.64.251/main.htm?ci:maw0=128
Accesses the page main.htm and at the same time sends the
CI command maw0=128 to the command interpreter (maw0
stands for modify output: word 0).
http_in_ci
Example
http://10.8.64.251/http_in_ci?ci:daw0
425
Example
Display IW0: <fstci dew0>
When the HTML page is accessed, the text Display IW0": and
the contents of input word 0 will be shown (dew0 stands for
display inputword 0).
Link tag
Example
<A href=main.htm?ci:maw0=255> output word 0 =
255</A>
426
427
4.4.4
428
Accessing the
HTML pages
429
430
Chapter 5
51
Contents
5.
51
5.1
54
55
57
511
513
515
516
521
521
5.2
52
53
5.1
8DI
4DO
Fig.5/1: Example of a CPX terminal with CPXFEC as Remote Controller on the Ethernet
54
5.1.1
Configuration
The configuration and commissioning in Remote Controller
mode corresponds to a large extent to general commission
ing as described in section 3.1.
Create connection to
theCPXFEC
55
Configuring
56
5.1.2
Ethernet
Modbus/TCP
The driver for Modbus/TCP is loaded automatically with the
creation of a new project.
Driver options
57
Function
code
Modbus
address
Meaning
Remote I/O
16bit access
Group
read
4 x registers
45392...45647
read
write
4 x registers
6, 16
40001...40256
write
read/write
4 x registers
23
45392...45647
40001...40256
read
write
Objects ID0, 1, 2, 3,
4, 5
read
Read device
identification
Tab.5/1:
58
43
Objects
Overview of the Modbus function codes for the CPXFEC in the operating
mode Remote Controller Ethernet
Data exchange takes place via flag words (FW). The proces
sing image for the input and output data is composed of a
data field of up to 256 flag words as follows:
Modbus
address
Bit 15
14
45392
FWx
45393
FWx+1
45394
FWx+2
...
...
45647
FWx+255
Tab.5/2:
Modbus
address
12
11
10
Bit 15
14
40001
FWx
40002
FWx+1
40003
FWx+2
...
...
40256
FWx+255
Tab.5/3:
13
13
12
11
10
59
EasyIP
This protocol is used for the fast exchange of operands
between Festo controllers (e.g. CPXFEC, FEC Standard, PS1,
etc.).
In the operating mode Remote Controller Ethernet the
CPXFEC behaves like an EasyIPServer as well as like an
EasyIPClient.
As server the following EasyIP operand types are supported:
Operand
Operand number
0 ... 9999
0 ... 255
0 ... 255
Type 4, register
0 ... 255
0 ... 255
1)
2)
510
5.1.3
RUN
LED (green)
Sequence
Status
ON
OFF
LED lights up
ON
OFF
LED is out
STOP
LED (yellow)
Sequence
Status
ON
OFF
LED is out
ON
OFF
LED lights up
Tab.5/5:
Status displays of the LEDs RUN and STOP in the operating mode
StandAlone
511
ERROR
LED (red)
Sequence
Status
Fault treatment
ON
No fault
Sequence
Status
Fault treatment
ON
Ethernet connection OK
(Link)
No Ethernet connection or
Ethernet cable not
connected
OFF
LED is out
ON
OFF
LED lights up
TP (Link/Traffic)
LED (green)
OFF
LED lights up
ON
OFF
LED flashes
ON
OFF
LED is out
Tab.5/6:
512
5.2
8DI
4DO
2 CPXFEC
Fig.5/3: Example of a CPX terminal with field bus node and CPXFEC as Remote
Controller on a field bus
513
Module
Assigned
identifiers 1) address range
Remarks,
Version 2)
FB06RC
4 words / 8 bytes I
4 words / 8 bytes O
FB11RC
4 words / 8 bytes I
4 words / 8 bytes O
FB13RC
4 words / 8 bytes I
4 words / 8 bytes O
FB14RC
4 words / 8 bytes I
4 words / 8 bytes O
FB23RC
4 words / 8 bytes I
4 words / 8 bytes O
Tab.5/7:
514
Overview of function modules of the CPX terminal with FEC for the operating
mode Remote Controller Field bus
5.2.1
Configuration
The most important commissioning steps
1. Use the DIL switches in the field bus node and in the
CPXFEC to set the operating mode Remote Controller or
check the setting: See the manual for the relevant field
bus node or in chapter 2.
2. If necessary, switch off the power supply to the CPX ter
minal and then switch on again. The modified operating
mode is not recognized until after Power OFF/ON.
3. Connect your PC and the CPXFEC either
515
5.2.2
1
1 Field bus node in the configuration table (example: CPXFB13 PROFIBUS)
Fig.5/4: Configuraton of the CPX terminal in the operating mode Remote Controller
Fieldbus
The default addressing applies for addressing the field bus
node (see section 3.2).
516
Location
Module
I address
O address
Remarks
CPXFB13
128
128
CPXFEC
132
132
...
...
...
...
...
Tab.5/8:
517
Communication sequence
8 bytes of inputs and 8 bytes of outputs are available for data
exchange between the CPXFEC and the field bus node.
Field bus
8DI
Outputs
CPX field bus node
Outputs
CPXFEC
Byte 0
OW 128
OW 131
Byte 7
IW 128
Byte 0
Byte 7
Inputs
CPX field bus node
Inputs
CPXFEC
IW 131
4DO
Byte 0
Byte 7
Byte 0
Byte 7
Fig.5/5: Example of the communication sequence of a CPX terminal with field bus node
and CPXFEC as Remote Controller
518
Example of application
Let us assume that the CPXFEC is to process a program in
which a cylinder is to retract and extend several times.
The number of positioning cycles depends on the processing
and should be transmitted by the higherorder controller
(seeTab.5/9).
1. The higherorder controller writes the number of position
ing cycles into the output byte 0 of the CPX field bus
node.
2. The value appears also in input word 128 of the CPXFEC.
The PLC of the CPXFEC uses this information and carries
out the specified number of positioning cycles. The
higherorder controller is therefore relieved.
3. If the CPXFEC has carried out its task, it sends a message
to confirm this in output word 128.
4. The value appears also in input byte 0 of the field bus
node. The higherorder controller evaluates this informa
tion and can now introduce the next work step.
519
12
11
15
12 11
OW 128
Byte 1
Byte 0
Byte 1
Byte 0
OW 129
Byte 3
Byte 2
Byte 3
Byte 2
OW 130
Byte 5
Byte 4
Byte 5
Byte 4
OW 131
Byte 7
Byte 6
Byte 7
Byte 6
12
11
15
12 11
Byte 1
Byte 0
Byte 1
Byte 0
IW 129
Byte 3
Byte 2
Byte 3
Byte 2
IW 130
Byte 5
Byte 4
Byte 5
Byte 4
IW 131
Byte 7
Byte 6
Byte 7
Byte 6
520
IW 128
Tab.5/9:
Communication between the CPXFEC and the field bus node via I/O bytes
(grey markings for the application example above)
5.2.3
Parametrizing
The information in section 3.3 applies for parametrizing. It is
not possible to parametrize via the field bus.
5.2.4
Diagnosis
Diagnosis with the control LEDs RUN, STOP, ERROR
Information on the general CPX LEDs PS, PL, SF and M can be
found in section 1.4.1.
In the operating mode Remote Controller the control and
Ethernet LEDs have the following meanings:
RUN
LED (green)
Sequence
Status
ON
OFF
LED lights up
ON
OFF
LED is out
521
STOP
LED (yellow)
Sequence
Status
ON
OFF
LED is out
ON
OFF
LED lights up
Tab.5/10:
Status displays of the LEDs RUN and STOP in the operating mode Remote
Controller Field bus
ERROR
LED (red)
Sequence
Status
Fault treatment
ON
No fault
OFF
LED is out
ON
OFF
LED lights up
Tab.5/11:
522
Chapter 6
61
Contents
6.
61
6.1
6.2
General information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Modbus/TCP: Commands and addressing . . . . . . . . . . . . . . . . . . . . . . . . . . .
6.2.1
Modbus commands and address assignment . . . . . . . . . . . . . . . . .
6.2.2
CPX status information (group A) . . . . . . . . . . . . . . . . . . . . . . . . . . .
6.2.3
Processing data (groups B and D) . . . . . . . . . . . . . . . . . . . . . . . . . .
6.2.4
Diagnostic memory (groups C and E) . . . . . . . . . . . . . . . . . . . . . . . .
6.2.5
Objects (group F) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6.2.6
Addressing examples for Modbus/TCP . . . . . . . . . . . . . . . . . . . . . .
EasyIP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Diagnosis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6.4.1
Diagnosis with the control and Ethernet LEDs . . . . . . . . . . . . . . . . .
64
67
67
68
610
624
626
626
632
633
633
6.3
6.4
62
Further information
63
6.1
General information
The CPXFEC behaves in the operating mode Remote I/O like
a field bus slave on the Ethernet: The CPX terminal is con
trolled by an external controller via Modbus/TCP. With the
Webserver of the CPXFEC the CPX terminal can be monitored
and controlled by a WebBrowser.
The PLC of the CPXFEC is not used. You can use the program
ming interface if required for setting the IP address.
Ethernet
8DI
4DO
Please note
Make sure that the DIL switches are set correctly for the
operating mode Remote I/O Ethernet (see chapter 2 In
stallation).
64
65
1
1 IP address of a CPXFEC
3
3 Modbus start address (outputs)
66
6.2
6.2.1
Modbus
command
Funct.
code
Modbus
address
Meaning
Remote
I/O 16bit
access
Group
read
4 x registers
45357...45391
45392...45647
45648...45655
45656...46055
read
read
read
read
A
B
C
C
write
4 x registers
6, 16
40001...40256
40257...40264
write
write
D
E
read/write
4x registers
23
45357...45391
45392...45647
45648...45655
45656...46055
40001...40256
40257...40264
read
read
read
read
write
write
A
B
C
C
D
E
read device
identifica
tion
43
Objects
Objects ID0, 1, 2, 3, 4, 5
read
Tab.6/1:
Overview of the Modbus function codes for the CPXFEC in the operating
mode Remote I/O
67
6.2.2
Modbus
address
14
13
45367
Module 0 ... 15
45368
Module 16 ... 31
45369
Module 32 ... 47
12
11
10
Tab.6/2:
Modbus
address
Fault recognition
14
13
45383
Module 0 ... 15
45384
Module 16 ... 31
45385
Module 32 ... 47
12
11
10
Bit n = 0: No fault
Bit n = 1: Fault in module n
Tab.6/3:
68
Modbus
address
Status register
Tab.6/4:
14
13
12
11
10
69
6.2.3
Module CPXFEC
* = The Modbus addresses are assigned in ascending order
without gaps and depend on the modules on the CPX ter
minal (addressing example in section 6.2.6).
Modbus
address
12 11
15
12 11
1)
Tab.6/5:
610
CPXFEC
Electric modules
* = The Modbus addresses are assigned in ascending order
without gaps and depend on the modules on the CPX ter
minal (addressing example in section 6.2.6).
Modbus
address
12 11
Tab.6/6:
Modbus
address
Inputs
12 11
4DI module
Digital 8input module (4DI)
12 11
Tab.6/7:
15
Inputs
15
12 11
8DI module
611
Modbus
address
12 11
Tab.6/8:
Modbus
address
Echo
outputs
15
Outputs
4DO module
Digital 8input/output module (8DI/8DO)
Bit 15
12 11
15
Inputs
Echo outputs
612
Tab.6/9:
12 11
12 11
Outputs
8DI/8DO module
Modbus
address
12
11
15
Tab.6/10:
Modbus
address
12
11
2AI module
Analogue 2output module (2AO)
12
11
15
12
11
Tab.6/11:
2AO module
613
Pneumatic modules
* = The Modbus addresses are assigned in ascending order
without gaps and depend on the modules on the CPX ter
minal (addressing example in section 6.2.6).
Modbus
address
12
11
Echo outputs
15
12
Modbus
address
12
11
Tab.6/12:
Modbus
address
Outputs
Echo
outputs
15
12
11
Outputs
MPA modules
Pneumatic interface for CPA pneumatic type 12
set to 1 ... 8 valves
Bit 15
12
11
Diagnostic data
614
Tab.6/13:
11
Echo outputs
15
x
12
11
Outputs
Modbus
address
Bit 15
12
11
15
12
Echo outputs
Outputs
Diagnostic data
11
Bit 15
12
11
Diagnostic data
Tab.6/15:
Modbus
address
12
11
Outputs 0 ... 15
Echo outputs
16 ... 22
Outputs 16 ... 22
Bit 15
12
11
Diagnostic data
Tab.6/16:
15
Echo outputs
15
x
12
11
Outputs
615
Modbus
address
Bit 15
12
11
15
12
Echo outputs
Outputs
Diagnostic data
Tab.6/17:
Modbus
address
Bit 15
12
11
Diagnostic data
616
Tab.6/18:
11
15
12
11
Outputs 0 ... 15
Echo outputs
16 ... 24
Outputs 16 ... 24
Modbus
address
Bit 15
12
11
Diagnostic data
*)
Tab.6/19:
15
12
11
Outputs 0 ... 15
Echo outputs
16 ... 26
Outputs 16 ... 26
Only 26 usable
617
CPXCP interface
used string: 1 (line 1)
Processing data inputs
Bit 15
12
11
15
12
11
Idata byte 1
Idata byte 0
Odata byte 1
Odata byte 0
Idata byte 3
Idata byte 2
Odata byte 3
Odata byte 2
Echo Odata 1
Echo Odata 0
Echo Odata 3
Echo Odata 2
Diagnostic data
Tab.6/20:
618
CPXCP interface
Modbus
address
CPXCP interface
used strings: 1, 2 (line 1 ... 2)
Processing data inputs
Bit 15
12
11
15
12
11
Idata byte 1
Idata byte 0
Odata byte 1
Odata byte 0
Idata byte 3
Idata byte 2
Odata byte 3
Odata byte 2
Idata byte 5
Idata byte 4
Odata byte 5
Odata byte 4
Idata byte 7
Idata byte 6
Odata byte 7
Odata byte 6
Echo Odata 1
Echo Odata 0
Echo Odata 3
Echo Odata 2
Echo Odata 5
Echo Odata 4
Echo Odata 7
Echo Odata 6
Diagnostic data
Tab.6/21:
CPXCP interface
619
Modbus
address
CPXCP interface
used strings: 1, 2, 3 (line 1 ... 3)
Processing data inputs
Bit 15
12
11
15
12
11
Idata byte 1
Idata byte 0
Odata byte 1
Odata byte 0
Idata byte 3
Idata byte 2
Odata byte 3
Odata byte 2
Idata byte 5
Idata byte 4
Odata byte 5
Odata byte 4
Idata byte 7
Idata byte 6
Odata byte 7
Odata byte 6
Idata byte 9
Idata byte 8
Odata byte 9
Odata byte 8
Idata byte 11
Idata byte 10
Odata byte 11
Odata byte 10
Echo Odata 1
Echo Odata 0
Echo Odata 3
Echo Odata 2
Echo Odata 5
Echo Odata 4
Echo Odata 7
Echo Odata 6
Echo Odata 9
Echo Odata 8
Echo Odata 11
Echo Odata 10
Diagnostic data
Tab.6/22:
620
CPXCP interface
Modbus
address
CPXCP interface
used strings 1, 2, 3, 4 (line 1 ... 4)
Processing data inputs
Bit 15
12
11
15
12
11
Idata byte 1
Idata byte 0
Odata byte 1
Odata byte 0
Idata byte 3
Idata byte 2
Odata byte 3
Odata byte 2
Idata byte 5
Idata byte 4
Odata byte 5
Odata byte 4
Idata byte 7
Idata byte 6
Odata byte 7
Odata byte 6
Idata byte 9
Idata byte 8
Odata byte 9
Odata byte 8
Idata byte 11
Idata byte 10
Odata byte 11
Odata byte 10
Idata byte 13
Idata byte 12
Odata byte 13
Odata byte 12
Idata byte 15
Idata byte 14
Odata byte 15
Odata byte 14
Echo Odata 1
Echo Odata 0
Echo Odata 3
Echo Odata 2
Echo Odata 5
Echo Odata 4
Echo Odata 7
Echo Odata 6
Echo Odata 9
Echo Odata 8
Echo Odata 11
Echo Odata 10
Echo Odata 13
Echo Odata 12
Echo Odata 15
Echo Odata 14
Diagnostic data
Tab.6/23:
CPXCP interface
621
14
13
12
11
10
0/1
0/1
622
14
13
12
11
10
Tab.6/25:
14
13
12
11
10
Tab.6/26:
623
6.2.4
Modbus
address
Bit 15
14
13
12
11
10
45648
45652
45652
45652
45652
45653
45654
45655
45650
45651
45651
45656
...
...
1)
Tab.6/27:
624
Modbus
address
Bit 15
14
13
12
11
10
40257
40261
40261
40261
40261
40262
40263
40264
Tab.6/28:
625
6.2.5
Objects (group F)
Object ID
Object name
Contents
Manufacturer name
Product code
CPXFEC"
MajorMinorRevision
x.y" 1)
VendorURL
http://www.festo.com"
Product name
Modbus TCP"
Model name
CPX terminal"
1)
Tab.6/29:
6.2.6
Objects
8DI
1
1 CPXFEC
4DO
3
3 MPA pneumatics
626
Module
Location
Modbus
address
Bit
CPXFEC
Remote I/O
Digital 8input
module (8DI)
Digital 4output
module (4DO)
MPA pneumatic
module (8DO)
MPA pneumatic
module (8DO)
MPA pneumatic
module (8DO)
MPA pneumatic
module (8DO)
Tab.6/30:
Input data
15
45392
45393
45394
Diagnostic data
45395
45396
Diagnostic data
45397
45398
Diagnostic data
45399
45400
Diagnostic data
45401
45402
Diagnostic data
45403
45404
Diagnostic data
45405
45406
Diagnostic data
Input data
Echo
Odata
Echo Odata
Echo Odata
Echo Odata
Echo Odata
627
Module
Location
Modbus
address
Bit
CPXFEC
Remote I/O
Output data
15
8
40001
40002
Digital 4output
module (4DO)
40003
MPA pneumatic
module (8DO)
40004
Output data
MPA pneumatic
module (8DO)
40005
Output data
MPA pneumatic
module (8DO)
40006
Output data
MPA pneumatic
module (8DO)
40007
Output data
Tab.6/31:
628
Odata
Example 2:
CPX terminal with digital and analogue I/O modules
8DI
2AI
2AO
1 CPXFEC
4 MPA pneumatics
Fig.6/4: CPX terminal with digital and analogue I/O modules as well as MPA pneumatics
629
Module
Location
Modbus
address
Bit
CPXFEC
Remote I/O
Digital 8input
module (8DI)
Analogue
2 input module
2input
((2AI))
Analogue
2 output module
2output
((2AO))
MPA pneumatic
module (8DO)
MPA pneumatic
module (8DO)
MPA pneumatic
module (8DO)
Tab.6/32:
630
Input data
15
45392
45393
45394
Diagnostic data
45395
45396
45397
45398
45399
45400
45401
45402
45403
45404
45405
45406
45407
45408
Input data
Echo Odata
Echo Odata
Echo Odata
Module
Location
Modbus
address
Output data
Bit
15
CPXFEC
Remote I/O
40001
40002
40003
40004
Analogue
2 output module
2output
(2AO)
MPA pneumatic
module (8DO)
40005
Output data
MPA pneumatic
module (8DO)
40006
Output data
MPA pneumatic
module (8DO)
40007
Output data
Tab.6/33:
631
6.3
EasyIP
This protocol is used for the fast exchange of operands be
tween Festo controllers (e.g. CPXFEC, FEC Standard, PS1,
etc.).
In the operating mode Remote I/O, the CPXFEC behaves like
an EasyIP server.
The following EasyIP operand types are supported as server:
Operand
Operand number
0 ... 9999
0 ... 255
0 ... 255
Type 4, register
0 ... 255
0 ... 255
EasyIP
Inputs (group B)
Outputs (group D)
Tab.6/35:
632
6.4
6.4.1
Diagnosis
Diagnosis with the control and Ethernet LEDs
Information on the general CPX LEDs PS, PL, SF and M can be
found in section 1.4.1.
In the operating mode Remote I/O the control and Ethernet
LEDs have the following meanings:
RUN
LED (green)
Sequence
Status
ON
Modbus connected
OFF
LED lights up
ON
No Modbus connection
OFF
LED is out
STOP
LED (yellow)
Sequence
Status
ON
Modbus connected
OFF
LED is out
ON
No Modbus connection
OFF
LED lights up
Tab.6/36:
Modbus status displays of the LEDs RUN and STOP in the operating mode
Remote I/O Ethernet
633
ERROR
LED (red)
Sequence
Status
ON
The fault LED has no function in the operating mode Remote I/O.
OFF
LED is out
TP (Link/Traffic)
LED (green)
Sequence
Status
Fault treatment
ON
Ethernet connection OK
(Link)
No Ethernet connection or
Ethernet cable not
connected
OFF
LED lights up
ON
OFF
LED flashes
ON
OFF
LED is out
Tab.6/37:
634
Technical appendix
Appendix A
A1
A. Technical appendix
Contents
A.
Technical appendix . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
A1
A.1
A3
A2
A. Technical appendix
A.1
General
General technical specifications
Operating mode:
Stand Alone and Remote Controller: 208d, D0h
Remote I/O: 210d, D2h
FEC Controller
(operating mode Stand Alone, Remote Controller)
FEC Modbus TCP
(operating mode Remote I/O)
Power supply
Operating voltage/load voltage
Current consumption of the CPXFEC
of operating voltage supply for
electronics/sensors (Vel/sen)
A3
A. Technical appendix
PLC
Programming language
Program memory
250 kB
Baud rate
Programming interface
RS232 SubD
9600 ... 57600 Baud
Ethernet
Design
Interface
Baud rate
10/100 MBaud
Protocols
Modbus/TCP
EasyIP
Webserver
A4
Drivers
Appendix B
B1
B. Drivers
Contents
B.
Drivers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
B1
B.1
Drivers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
B.1.1
Drivers for the CPXFEC (operating mode Remote Controller) . . . .
B.1.2
Drivers for the CPXFEC (operating mode Remote I/O Ethernet) . .
B3
B3
B5
B2
B. Drivers
B.1
Drivers
Configuration
CPXFEC
FECCPX
Modbus/TCP
MODBUSTCP
TCP/IP
TCPIPCPX
Webserver
WEB_SRVR
Tab.B/1:
B3
B. Drivers
Drivers
Name in FST
Description
Configuration
COM extern
COMEXT
FpMathDriver
FPMATHDR
PID driver
PID
SMTP
SMTPDRV
STRINGS
Reserved memory,
number of strings,
file with preassign
ment
Tab.B/2:
B4
B. Drivers
B.1.2 Drivers for the CPXFEC (operating mode Remote I/O Ethernet)
The following drivers are contained as standard in the
CPXFEC firmware:
Driver
Configuration
CPXFEC
FECCPX
Modbus/TCP
MODBUSTCP
TCP/IP
TCPIPCPX
Webserver
WEB_SRVR
Tab.B/3:
Driver for the CPXFEC in the operating mode Remote I/O Ethernet
The driver MODBUSTCP is activated automatically in the
operating mode Remote I/O Ethernet.
Additional CI commands
The MODBUSTCP driver extends the scope of the command
interpreter with the following CI commands:
CI command
Description
!35
Display version number and driver information. This display is also shown if an
unknown command is entered (e.g. !35?).
!35TS
Tab.B/4:
B5
B. Drivers
Value
Description
LISTEN
SYNSENT
SYNRCVD
ESTABLISHED
FINWAIT1
FINWAIT2
close acknowledged
CLOSEWAIT
not used
CLOSING
LASTACK
10
TIMEWAIT
11
CLOSED
Tab.B/5:
B6
Function modules
Appendix C
C1
C. Function modules
Contents
C.
Function modules . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
C1
C.1
C3
C13
C14
C14
C17
C.2
C2
C. Function modules
C.1
Description
C_ST_rd
C_ST_wr
C_STATUS
C_MD_rd
C_TR_rd
C_MP_rd
C_MP_wr
C_AP_rd
C_AP_wr
C3
C. Function modules
Module status
All modules return the socalled module status. The meaning
of the module status is explained in the following table.
Return values of module status
C4
6 ... 10
Reserved
11
12
13
14
C. Function modules
C_ST_rd
Function number
Return parameter
C_ST_wr
FU32
Module status
FU33
Value
Function number
FU33
Value
Return parameter
FU32
Module status
C5
C. Function modules
C_STATUS
Return parameter
*)
FU32
Module status
FU33
1936
FU34
1937
FU35
1938
FU36
FU37
FU38
*)
**)
C6
C. Function modules
C_MD_rd
FU33
Function
0 = Read module diagnostic data
Return parameter
*)
FU32
Module status
FU33
2008 + m * 4 + 0
FU34
2008 + m * 4 + 1
FU35
Information 2 (reserved)
2008 + m * 4 + 2
FU36
Information 3 (reserved)
2008 + m * 4 + 3
*)
C7
C. Function modules
C_MD_rd
Module number
FU33
Function
1: Read fault numbers of the channels
FU34
Return parameter
C8
FU32
Module status
FU33
FU34
FU35
FU36
FU37
FU38
C. Function modules
C_TR_rd
FU33
FU34
*)
Return parameter
FU32
Module status
FU33
3482
FU34
3483
*)
*)
C9
C. Function modules
C_MP_rd
Return parameter
*)
FU32
Module status
FU33
Parameter byte 0
4828 + m * 64 + 0
FU34
Parameter byte 1
4828 + m * 64 + 1
FU35
Parameter byte 2
4828 + m * 64 + 2
FU36
Parameter byte 3
4828 + m * 64 + 3
FU37
Parameter byte 4
4828 + m * 64 + 4
FU38
Parameter byte 5
4828 + m * 64 + 5
*)
C10
C. Function modules
C_MP_wr
*)
FU32
FU33
Parameter byte 0
4828 + m * 64 + 0
FU34
Parameter byte 1
4828 + m * 64 + 1
FU35
Parameter byte 2
4828 + m * 64 + 2
FU36
Parameter byte 3
4828 + m * 64 + 3
FU37
Parameter byte 4
4828 + m * 64 + 4
FU38
Parameter byte 5
4828 + m * 64 + 5
*)
Return parameter
FU32
Module status
C11
C. Function modules
C_AP_rd
FU33
Channel number
Return parameter
*)
FU32
Module status
FU33
Reserved
FU34
Monitoring channel 0, 1
4828 + m * 64 + 6...7
FU35
FU36
FU37
4828 + m * 64 + 9
*)
C12
C. Function modules
C_AP_wr
*)
FU32
FU33
Channel number
FU34
Monitoring channel 0, 1
4828 + m * 64 + 6...7
FU35
FU36
FU37
4828 + m * 64 + 9
*)
Return parameter
FU32
C.1.1
Module status
Fault message
If a fault occurs, the driver will enter the following fault
message in the fault word of the CPXFEC:
Fault message
Description
1)
C13
C. Function modules
C.2
C.2.1
Description
SMTPCFM
SMTPCFM
Status interrogation
Input parameter
FU32
FU33
Return parameter
FU32
FU33
FU34
Fault code
FU35
C14
C. Function modules
SMTPCFM
Status
Return values
Sending runs
FU32 <> 0
FU33
FU34
Return parameter
FU32
FU33
FU34
Fault code
FU35
C15
C. Function modules
SMTPCFM
Send email
Input parameter
FU32
FU33
FU34
FU35
FU36
Return parameter
C16
FU32
FU33
FU34
Fault code
FU35
C. Function modules
C.2.2
Fault codes
If return parameter FU32 supplies <> 0, then a fault has
occurred:
Fault code
in FU32
Description
10
99
Invalid parameters
100
101
102
C17
C. Function modules
C18
Fault code
in FU33
Description
99
Invalid parameters
100
101
102
103
104
105
106
107
255
Appendix D
D1
Contents
D.
D1
D.1
D3
D3
D4
D6
D6
D10
D14
D17
D19
D21
D22
D23
D24
D2
D.1
Note
The FST contains a Terminal Emulator (see Volume 1 of the
FST manual) that enables you to send manual CI com
mands to the Command Interpreter. The term Command"
is used below to mean both command and instruction.
Serial port
TCP/IP
Note
Please note that some functions of the additional CI ports
are limited.
D3
All online functions of the FST use the CI. You can also send
manual CI commands via the CI terminal integrated into FST
(see Volume 1 of the FST manual).
D4
Description
When BREAK is received, the speed is changed in cycles twice to 9600 baud and
once to 2400 baud. This is the default method.
2400 baud is always set (advisable with slow modem connections and when using
Field PC Net alias MpRAM).
When BREAK is received, the speed is changed in cycles three times to 2400 baud
and twice to 2400 baud.
Tab.D/6:
D5
D.1.4 CI command
The sections below describe the valid CI commands. Drivers
can receive their own CI commands (see also Section D.1.11).
These are indicated in Volume 2.
Command structure
a command letter
Input format
Message from CI
Dependent on command
Tab.D/7:
D6
Command letter
Command
letter
Brief description
BREAK
DC4 (Ctrl T)
LOGIN
Login
DISPLAY
Displays operands
LC
PASSWORD
Enter/change password
LX
PASSWORD
MODIFY
RUN
Starts/continues program
STOP
Stops program
LOGOUT
INIT
Tab.D/8:
Parameters
Command letters
D7
Parameters
Meaning
Abbreviation
A[<YN>.]<WN>.<BN>
Output bit
AW[<YN>.]<WN>
Output word
B<BN>
Program module
BF<BN>
Function module
Display format
E[<YN>.]<WN>.<BN>
Input bit
EW[<YN>.]<WN>
Input word
Error word
M<WN>.<BN>
Flag bit
MW<WN>
Flag word
O<WN>
O<PN>.<WN>
P<PN>
Program status
R<RN>
Index
S<PN>
T<TN>
Pulse timer
TA<TN>
TE<TN>
TV<TN>
Timer presetting
TW<TN>
Timer word
Baud rate
Z<CN>
Counters
ZV<CN>
Counter presetting
ZW<CN>
Counter word
Tab.D/9:
D8
Parameters
Festo P.BECPXFECEN en 0404NH
Value
CI response
The table below shows the response from the CI to valid and
invalid CI commands:
CI command CI response
Command
<Command> \r"
Response to valid
commands
Response to invalid
commands
D9
Display
Display enables you to show the statuses and contents of the
operands and also the current status of the programs.
Example: Display Output O0.1
Input
>DA0.1
Output (example)
>DA0.1=0
>
Display commands
DA[<YN>.]<WN>.<BN>
DAW[<YN>.]<WN>
DB<BN>
D10
DBF<BN>
Response:
=D" for displaying decimal without sign
=S" for displaying decimal with sign
=H" for displaying hexadecimal
DE[<YN>.]<WN>.<BN>
DEW[<YN>.]<WN>
DF
General errors
1)
The error number corresponds to the value of the error word (see also volume 1 of the FST man
ual); program number in which the error occurred; if the program has no steps (e.g. with LDR pro
grams), Step 0 is displayed.
D11
DM<WN>.<BN>
DMW<WN>
DO<WN>
D12
DR<RN>
Displays regisgter
DS<PN>
DT<TN>
DTA<TN>
DTE<TN>
DTV<TN>
DTW<TN>
DV
DZ<CN>
DZV<CN>
DZW<CN>
D13
Modify
Modify enables you to change the contents and/or statuses
of operands.
Input
>MAW1=255
Ouput
>MAW1=255
Input
>MAW1
Output (example)
>MAW1=255:
The CI reports the current value. After the colon, you can
enter the new value and confirm by pressing <CR>.
The values can be entered in decimal, hexadecimal and
signed decimal notation (see Display format).
D14
Modify commands
MA[<YN>.]<WN>.<BN>={0 | 1}
MAW[<YN>.]<WN>=<Value>
MD={D | S | H}
MEW[<YN>.]<WN>=<Value>
MF=<Value>
MFW<WN>=<Value>
MO<WN>=<Value>
D15
MR<RN>=<Value>
Modifies register
MT<TN>={0 | 1}
MTA<TN>={0 | 1}
MTE<TN>={0 | 1}
MTV<TN>=<Value>
MTW<TN>=<Value>
MV=<Baudrate>
Sets baudrate
D16
MZ<CN>={0 | 1}
Sets counter
MZV<CN>=<Value>
MZW<CN>=<Value>
Break
B
BP<PN>
Run
R
...
Note
The command uses the local function units of Program
P63, which should be reserved for this purpose.
The call parameters must be indicated. If no parameter is
indicated, its last value is used. The response:
=<FU32>,<FU33>,<FU34>,<FU35>,<FU36>,<FU37>,<FU38>.
D17
...
Note
The command uses the local function units of Program
P63, which should be reserved for this purpose.
The call parameters must be indicated. If no parameter is
indicated, its last value is used. The response:
=<FU32>,<FU33>,<FU34>,<FU35>,<FU36>,<FU37>,<FU38>.
RP<PN>
D18
Stop
S
SP<PN>
DAF<WN>.<BN>
Result:
=0: Forced to 0
=1: Forced to 1
=N: Not forced
D19
DAWF<WN>
Result:
=0: Forced to 0
=1: Forced to 1
=N: Not forced
DEWF<WN>
=0: Forces to 0
=1: Forces to 1
=N: Do not force
MAWF<WN>={Value | N}
D20
MEF<WN>.<BN>={0 | 1 | N}
=0: Forces to 0
=1: Forces to 1
=N: Do not force
MEWF<WN>={Value | N}
Initialising
Caution
The Y! command deletes all project data and drivers from
the RAM memory.
Y!
D21
D.1.10 Password
The following CI commands enable you to enter, change or
delete the password online and also activate or deactivate
password protection.
A password consists of between 3 and 20 visible ASCII char
acters. Separators such as commas, spaces, tab, IBM ex
tended characters etc. are not permitted. Further information
on password protection can be found in volume 1 of the FST
manual.
LC<old>,<new>
LC,<new>
Enter/change password
<Old> Old password
<Old>:
<New>: New password
Password protection on
(logout)
LX<Password>
D22
D23
Output (example)
>RP0;DP0=0,0,3,2,0,0
>
Example 2
D24
Output (example)
>DR0,MW16,E0.3=432=0=1
>
Mass display
Commands used to display values can be suffixed with a
minus sign. 16 successive values are then shown as a mass
display. This display method is also valid for bit operands.
Example
D25
D26
Index
Appendix E
E1
E. Index
Contents
E.
E2
Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
E1
E. Index
A
Abbreviations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . XIV , XV
Addressing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 319
Addressing example, General operation . . . . . . . . . . . . 321
Addressing examples, Remote I/O Modbus/TCP . . . . . . 626
Application layer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 411
C
Cable
Ethernet . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
FED . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Handheld . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Programming cable . . . . . . . . . . . . . . . . . . . . . . . . . . .
211
217
218
214
CFM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . C3
CI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 361 , D3
CI Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . D6
Break (B) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . D17
Command letter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . D7
Command structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . D6
Display (D) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . D10
Driverspecific commands . . . . . . . . . . . . . . . . . . . . . . D23
Init (Y!) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . D21
Linking . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . D24
Modify (M) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . D14
Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . D7
Run (R) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . D17
Stop (S) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . D18
CI commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 361
As HTTP query . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 425
In HTML . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 426
Command Interpreter . . . . . . . . . . . . . . . . . . . . . . . 361 , D3
Command interpreter, Login . . . . . . . . . . . . . . . . . . . . . . . D4
Configuration
General information (Stand Alone) . . . . . . . . . . . . . . . . 34
Remote Controller Ethernet . . . . . . . . . . . . . . . . . . . . . . 55
Festo P.BECPXFECEN en 0404NH
E3
E. Index
D
Default addressing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 319
Designated use . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . VIII
DHCP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
Diagnosis
In the user program . . . . . . . . . . . . . . . . . . . . . . . . . . .
Remote Controller Field bus . . . . . . . . . . . . . . . . . . . .
Remote I/O Ethernet . . . . . . . . . . . . . . . . . . . . . . . . . .
Stand Alone / Remote Controller Ethernet . . . . . . . . .
With the Hardware Configurator . . . . . . . . . . . . . . . . .
359
521
633
352
355
E
Email . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 418
EasyIP
Remote Controller Ethernet . . . . . . . . . . . . . . . . . . . . . 510
Remote I/O Ethernet . . . . . . . . . . . . . . . . . . . . . . . . . . 632
Electrical connecting and display elements . . . . . . . . . . . 25
Ethernet interface . . . . . . . . . . . . . . . . . . . . . . . . . . 211 , 413
E4
E. Index
F
FED50/90 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 217
Field bus node (Remote Controller) . . . . . . . . . . . . . . . . 514
Fitting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
Forcing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 335
Front End Display . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 217
FST
Addressing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 319
Checking the configuration . . . . . . . . . . . . . . . . . . . . . 317
Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38 , 310
Creating a project . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
Programming . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 339
Function module status . . . . . . . . . . . . . . . . . . . . . . . . . . . C4
Function modules . . . . . . . . . . . . . . . . . . . . . . . . . . . 345 , C3
Module status . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . C4
G
Gateway . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
H
Handheld . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 218
HTTP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 416
I
Important user instructions . . . . . . . . . . . . . . . . . . . . . . . . . XI
Installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
IP address . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
IP addressing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 413
IP65/IP67 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 219
Festo P.BECPXFECEN en 0404NH
E5
E. Index
L
Layers 1 to 4 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
Layers 5 to 7 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 411
LEDs
Remote Controller Ethernet . . . . . . . . . . . . . . . . . . . . .
Remote Controller Field bus . . . . . . . . . . . . . . . . . . . .
Remote I/O Ethernet . . . . . . . . . . . . . . . . . . . . . . . . . .
Stand Alone . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
511
521
633
353
LEDs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111
M
MACID . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
Modbus/TCP
Remote Controller Ethernet . . . . . . . . . . . . . . . . . . . . . . 57
Remote I/O Ethernet . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
Module parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 332
N
Net classes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
Net mask . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
Notes on the use of this manual . . . . . . . . . . . . . . . . . . . . . . X
O
Operands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 340
Operating mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 210
Remote Controller Field bus . . . . . . . . . . . . . . . . . . . . 513
Operating modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Remote Controller Ethernet . . . . . . . . . . . . . . . . . . . . . .
Remote I/O Ethernet . . . . . . . . . . . . . . . . . . . . . . . . . . .
Stand Alone . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
15
19
54
64
33
Operations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 341
E6
E. Index
P
Parametrizing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Example of application . . . . . . . . . . . . . . . . . . . . . . . . .
From the user program . . . . . . . . . . . . . . . . . . . . . . . .
Remote Controller Field bus . . . . . . . . . . . . . . . . . . . .
When switching on . . . . . . . . . . . . . . . . . . . . . . . . . . . .
With handheld . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
327
338
334
521
330
329
R
Remote Controller Ethernet (operating mode) . . . . . . . . . 54
Remote Controller Field bus, Configuration example . . 516
Remote Controller Field bus (operating mode) . . . . . . . 513
Remote I/O Ethernet (operating mode) . . . . . . . . . . . . . . 64
Rotary switch . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
Run time behaviour of the controller . . . . . . . . . . . . . . . 348
S
Serial port . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . D3
Service . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . IX
Festo P.BECPXFECEN en 0404NH
E7
E. Index
T
Target group . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . IX
TCP/IP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45 , D3
Technical specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . A3
Text markings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . XII
TFTP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 417
Tutorial . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 115
U
UDP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
URL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 416
W
Webserver . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 421
Load files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 428
E8
0310d
III. Guarantee
1. Festo products are being further
developed with regard to hardware
and software. The hardware status
and, where applicable, the software
status of the product can be found on
the type plate of the product. If the
electronic documentation, in whatever
form, is not supplied with the product,
i.e. is not supplied on a data storage
device (diskette, CD ROM, cartridge
disc) as a delivery unit with the rel
evant product, Festo does not guaran
tee that the electronic documentation
corresponds to every hardware and
software status of the product. In this
case, the printed documentation from
Festo accompanying the product is
alone decisive for ensuring that the
hardware and software status of the
product matches that of the electronic
documentation.
2. The information contained in this
electronic documentation can be
amended by Festo without prior notice
and does not commit Festo in any way.