Documentos de Académico
Documentos de Profesional
Documentos de Cultura
1)
I0.0 ...I0.9
1)
Q0.0 ... Q0.7
1)
I/O module on the first axis interface string I1.0...I1.15 Q1.0 ... Q1.15
First I/O module I2.0...I2.9 Q2.0 ... Q2.7
I/O module on the second axis interface string I3.0...I3.15 Q3.0 ... Q3.15
Second I/O module I4.0...I4.9 Q4.0 ... Q4.7
Third I/O module I5.0...I5.9 Q5.0 ... Q5.7
Field bus module I10.0...I13.15 Q10.0 ... Q13.15
1)
Address range is not available if a field bus module is used.
The functions of the internal input and output bits of the field
bus module as well as the permitted NC commands depend
on the operating mode set. Detailed information on this can
be found in the System manual for the SPC200.
Fitting
21 Festo P.BESPC200COMPDPEN en 0901c
Chapter 2
2. Fitting
22 Festo P.BESPC200COMPDPEN en 0901c
Contents
2.1 Fitting and removing the field bus module 24 . . . . . . . . . . . . . . . . . . . . . . . . . . .
2. Fitting
23 Festo P.BESPC200COMPDPEN en 0901c
Warning
Undesired movement of the connected actuators and non
defined switching states of the electronics can cause injury
to human beings or damage to property.
Before carrying out installation and/or maintenance work,
switch off the following in the sequence specified:
1. the compressed air supply
2. the load voltage and operating voltage supplies for the
SPC200 and, if applicable, the load voltage supply for
the axis interface string.
2. Fitting
24 Festo P.BESPC200COMPDPEN en 0901c
2.1 Fitting and removing the field bus module
Please note
Modules may be damaged if they are not handled cor
rectly. Do not therefore touch any components. Observe
the regulations for handling electrostatically sensitive com
ponents.
Discharge yourself electrostatically before fitting or removing
components in order to protect the components against dis
charges of static electricity.
The slots are numbered 1 to 6 from left to right. Slot 1 is re
served for the power supply module (type SPC200PWRAIF).
The field bus module can be fitted as desired into slots 2 to 6.
Individual identification of all fitted modules takes place auto
matically. Only one field bus module may be fitted.
The modules are fastened with the aid of a locking lever on
the rack. A tool is not therefore required for fitting or remov
ing a module.
Warning
Actuators may make sudden unexpected movements and
the SPC200 will be damaged if modules are added or re
moved whilst the power supply is switched on. Before
carrying out installation and/or maintenance work, switch
off the following power supplies in the sequence specified:
1. the compressed air supply
2. the load voltage and operating voltage supplies for the
SPC200 and, if applicable, the load voltage supply for
the axis interface string.
2. Fitting
25 Festo P.BESPC200COMPDPEN en 0901c
Fitting a module
Proceed as follows when fitting a module into the rack:
1. Switch off the compressed air supply and the operating
voltage supply.
2. Remove the blanking plate (if fitted).
3. Hold the module by the front plate and push it into the
guide rail. Make sure that the modules are not tilted when
they are pushed in and that no components on the
printed circuit board are damaged.
4. Make sure that the plugs of the terminal strips are cor
rectly aligned. Then gently push the module in as far as
possible. The locking levers will then lock automatically.
1 Direction for
unlocking
2 Locks
automatically
3 Locking lever
4 Front plate of the
module
5 Terminal strip
6 Guide rail
1
2
3
4
2
1
5 6
Fig.2/1: Fitting a module
2. Fitting
26 Festo P.BESPC200COMPDPEN en 0901c
Removing a module
Replace a module as follows:
1. Switch off the operating voltage and the compressed air
supply.
2. Loosen and pull off the connecting cable on the front of
the module.
3. Unlock both locking levers (see Fig.2/1) and carefully pull
out the module.
4. Seal the unused slots with blanking plugs.
Installation
31 Festo P.BESPC200COMPDPEN en 0901c
Chapter 3
3. Installation
32 Festo P.BESPC200COMPDPEN en 0901c
Contents
3.1 General instructions on installation 33 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3.2 Connecting to the field bus 34 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3.3 Connecting the SPC200 via a branch line 39 . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3.4 Connection for opticalfibre waveguide 310 . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3. Installation
33 Festo P.BESPC200COMPDPEN en 0901c
3.1 General instructions on installation
Warning
Undesired movement of the connected actuators and non
defined switching states of the electronics can cause injury
to human beings or damage to property.
Before carrying out installation and/or maintenance work,
switch off the following in the sequence specified:
1. The compressed air supply
2. The following power supplies:
the load voltage supply for field devices and propor
tional directional control valves (plug X2, pin 1)
the load voltage supply for the outputs (plug X6/X8,
pin8)
if applicable, the load voltage supply on the axis inter
face string
the load voltage supply for the internal electronics of the
SPC200 and field devices (plug X2, pin 2).
Please note
Please note that the maximum permitted bus length
depends on the baud rate.
A bus segment is a bus cable which may contain up to 32
slaves (devices). The ends of the bus segment must be fitted
with a terminating resistor. Use plugs with an integrated ter
minating resistor if the SPC200 is installed at the end of a bus
segment.
3. Installation
34 Festo P.BESPC200COMPDPEN en 0901c
3.2 Connecting to the field bus
There is a 9pin subD plug on the field bus module for con
necting the SPC200 to the relevant field bus. This connection
is used for the incoming cable, as well as for the continuing
field bus cable.
1
5
9
6
Fig.3/1: PROFIBUSDP interface (X 20)
Pin Signal Description
1
2
3
4
5
6
7
8
9
Housing
Earth
n.c.
RxD/TxDP
CNTRP
*)
DGND
VP
n.c.
RxD/TxDN
n.c.
Screening/
shield
Direct connection to housing
not connected
Receive/send dataP
Repeater control signal
Data reference potential (M5V)
Power supply positive (P5V)
not connected
Receive/send dataN
not connected
Direct connection to housing
*)
Repeater control signal CNTRP is in the form of a TTL signal.
3. Installation
35 Festo P.BESPC200COMPDPEN en 0901c
Specifications of the field bus cable
Recommendation: Use a cable which complies with the cable
specification as per EN 50170 part 2 (cable A).
Surge impedance: 135...165 Ohm (3...20 MHz)
Capacity: < 30 nF/km
Loop resistance: < 110 Ohm/km
Core crosssectional area: > 0.34 mm
2
Maximum permitted segment length of the field bus:
Baud rate
(in kBaud)
Max. permitted segment length
(in m) as per PNO
1)
9.6
19.2
93.75
187.5
500
1500
3000 ... 12000
1200
1200
1200
1000
400
200
100
1)
PNO =PROFIBUS user organisation
3. Installation
36 Festo P.BESPC200COMPDPEN en 0901c
Plug
Please note
Use plugs with a terminating resistor if the SPC200 is
installed at the end of a bus segment.
If you do not require a terminating resistor, use the subD
plug from Festo type FBSSUB9WSPBK as the termination.
Type Description
FBSSUB9WSPBK Horizontal cable exit;
baud rate 9.6 kBaud ... 12 MBaud;
4pin terminal for wires up to 1.5mm
2
If you require a terminating resistor, use special bus con
nector plugs for PROFIBUS, e.g. the following 9pin plug from
Siemens AG or from ERNI:
Order number of
Siemens AG
Description
6ES7 9720BA100XA0 Terminating resistor can be switched in;
vertical cable exit;
baud rate 9.6 kBaud ... 12 MBaud;
4pin terminal for wires up to 1.5mm
2
6ES7 9720BB100XA0 As above, but also with conduit thread
connection
Order number of
ERNI
Description
103649 Horizontal cable exit;
baud rate 9.6 kBaud ... 12 MBaud;
4pin terminal for wires up to 1.5mm
2
,
with integrated terminating resistor
3. Installation
37 Festo P.BESPC200COMPDPEN en 0901c
Connecting the bus cable
S Always connect the same cores to the same connection A
or B of the 4pin terminal.
Recommendation: B: RxD/TxDP; A: RxD/TxDN
S Make sure that the cable screening lies uninsulated under
the screening clamp.
S Please observe, if necessary, the instructions supplied
with the plug.
1 4pin terminal
2 Cable screening/
shield
1
2
B O B O
Fig.3/2: SubD plug from Festo type FBSSUB9WSPBK
3. Installation
38 Festo P.BESPC200COMPDPEN en 0901c
Terminating resistor (end of cable)
Bus segments must be concluded at both ends with a termin
ating resistor. This also applies if the module or the communi
cation processor is at the end of the bus cable.
Recommendation: Use plugs with an integrated terminating
resistor if the SPC200 is installed at the end of a bus seg
ment. If necessary, switch in the terminating resistor.
The following diagram shows the terminating resistor com
bination of cable A as per EN 50170.
1 Pin 6:
Power supply
2 Pin 3:
RxD/TxDP
3 Pin 8:
RxD/TxDN
4 Pin 5:
DGND
Pin6
Pin3
Pin8
Pin5
390
220
390
1
2
3
4
Fig.3/3: Cable termination as per EN 50170, (cable A)
3. Installation
39 Festo P.BESPC200COMPDPEN en 0901c
3.3 Connecting the SPC200 via a branch line
Please note
If connection of the SPC200 via a branch line cannot be
avoided:
Do not connect the branch lines with a terminating
resistor.
Please note that the permitted segment length will be
reduced by the length of the branch line.
Please note the maximum permitted branch line lengths.
If possible, branch lines should be avoided on the
PROFIBUSDP, as they can cause too much capacitive
stress on the transmission cable.
Baud rate
(in kBaud)
Maximum permitted branch line length
(in m)
9.6
19.2
93.75
187.5
500
1500
3000 ... 12000
500
500
100
33.3
20
6.6
Not permitted
3. Installation
310 Festo P.BESPC200COMPDPEN en 0901c
3.4 Connection for opticalfibre waveguide
The following types of cables can be used for transmission
with the PROFIBUS:
Cablebound transmission (screened twowire cable)
Opticalfibre cable (plastic and fibre glass)
Opticalfibre waveguide technology is to be recommended
when transmission is affected by heavy interference, as well
as for extending the transmission range when high baud rates
are used.
This also offers the following advantages:
high EMC and ESD protection due to the optical
transmission of signals
protection against lightning
potential isolation of the individual DP slaves. No
equalizing currents can flow through cable screening.
The PROFIBUSDP interface of the SPC200 has been designed
in accordance with specification EN 50170 volume 2, and
therefore supports the control of network components for
opticalfibre waveguides.
Example of opticalfibre waveguide network components:
Siemens Optical Link Module (OLM) for PROFIBUS plus
Siemens Optical Link Module (OLP) for PROFIBUS
Commissioning
41 Festo P.BESPC200COMPDPEN en 0901c
Chapter 4
4. Commissioning
42 Festo P.BESPC200COMPDPEN en 0901c
Contents
4.1 Procedure for commissioning 43 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.1.1 Supplementary instructions on commissioning with WinPISA 44 . . . . . . . . . . .
4.1.2 Steps for commissioning the SPC200 as a field bus slave 48 . . . . . . . . . . . . . . .
4.2 Setting the PROFIBUS address of the SPC200 49 . . . . . . . . . . . . . . . . . . . . . . . .
4.2.1 Instructions on setting the PROFIBUS address with the control panel 49 . . . . .
4.2.2 Setting the PROFIBUS address of the SPC200 with WinPISA 410 . . . . . . . . . . . .
4.3 Installing the device master file (GSD file) and symbol files 412 . . . . . . . . . . . . .
4.4 Basic principles of configuration 414 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.4.1 FREEZE and SYNC 414 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.4.2 Configuration of the I/O address range 415 . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.4.3 DP identifiers for the I/O signals 417 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.4.4 DP identifiers for the parameter channel (optional) 419 . . . . . . . . . . . . . . . . . . . .
4.4.5 DP identifiers for transmitting the actual postions (optional) 420 . . . . . . . . . . . .
4.4.6 DP identifier for transmission of the setpoint positions (optional) 421 . . . . . . . .
4.5 Configuration with a master 422 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.5.1 Configuration with STEP 7 423 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.5.2 Configuring with DP masters of other manufacturers 427 . . . . . . . . . . . . . . . . . .
4.5.3 Instructions on commissioning the PROFIBUS 433 . . . . . . . . . . . . . . . . . . . . . . . .
4.5.4 Switchon reaction of the field bus module 434 . . . . . . . . . . . . . . . . . . . . . . . . . .
4.5.5 Response monitoring 436 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.6 Commissioning on the field bus 437 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.6.1 Internal I/O addresses with the Start/Stop mode 438 . . . . . . . . . . . . . . . . . . . . .
4.6.2 Internal I/O addresses with Record Selection mode 439 . . . . . . . . . . . . . . . . . . .
4.6.3 Program examples 440 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.6.4 Reading and writing consistent data with the S7 443 . . . . . . . . . . . . . . . . . . . . . .
4.7 Sequence plans for the programmer 444 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.7.1 Creating readiness to operate 444 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.7.2 Start NC record in Record Select mode 448 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.7.3 Start program or NC record 450 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.7.4 Carry out fault quitting 451 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4. Commissioning
43 Festo P.BESPC200COMPDPEN en 0901c
4.1 Procedure for commissioning
Recommendation: Proceed with commissioning as follows:
1. Create and save the desired hardware configuration
(incl.field bus module).
2. First commission the individual axes without using the
field bus interface with the aid of WinPISA. After reading
this chapter please refer to the WinPISA manual.
3. Then begin with the commissioning of the field bus.
Instructions on enabling the controller
In the following cases, a rising edge is required at the ENABLE
input:
for the first commissioning when the projectspecific para
meters have been set
after a Data Reset and resetting of the projectspecific
parameters
when the movement test has been carried out.
The controller is then enabled with a 1signal, providing there
are no system faults.
4. Commissioning
44 Festo P.BESPC200COMPDPEN en 0901c
4.1.1 Supplementary instructions on commissioning with WinPISA
Start commissioning as described in the WinPISA manual (see
chapter 4 in the WinPISA manual). With some commissioning
steps, the signals ENABLE, START and STOP are required for
controlling the axes. For example with the steps:
movement test
identification travel
test and start program.
If a field bus module is installed, you can generate these con
trol signals during commissioning in the test mode. Commis
sioning can then be carried out independently of the field
bus.
Activate the test mode
Caution
You can specify input signals in the test mode. The actual
input signals will be ignored. The test mode is usually used
for commissioning, if the SPC200 is not connected with the
field bus or is not online. Activate the test mode only if:
S you are familiar with the effect of the signals which are
thus influenced.
Warning
Make sure that nobody can place his/her hand in the
positioning range of the moveable mass and that no
objects lie in its path.
4. Commissioning
45 Festo P.BESPC200COMPDPEN en 0901c
In order to generate control signals in the test mode, first
activate the command [Online][Observe][Field bus mod
ule][Control signals/Record number]. Then switch on the test
mode, e.g. with function key F5.
The contents of the window [Control signals] depends on the
operating mode set. The mark ? next to the control signal
shows that the relevant input/output supplies a 1signal.
1 ENABLE signal
2 STOP signal
3 Display for test
mode
1
2
3
Fig.4/1: Control signals for commissioning (example)
The signals ENABLE and STOP are important for commis
sioning.
Now refer to the WinPISA manual for carrying out commis
sioning.
I/O control signals (overview)
A detailed explanation of the I/O control signals can be found
in the System manual for the SPC200. The tables below give a
brief overview:
4. Commissioning
46 Festo P.BESPC200COMPDPEN en 0901c
Start/Stop mode
Address
1)
Control signal Description
I10.0 ENABLE Controller enable (1 =controller enabled)
2)
I10.1 START/RESET Start/Continue or reset program(RESET in conjunction
with STOP = 0)
I10.2 STOP Stop programsequence (0 = stopped)
I10.3/I10.4 SYNC_A/B Synchronization input for M00
Q10.0 READY System ready to operate
Q10.1/Q10.2 SYNC_OA/B Synchronization output for M00
Q10.3/Q10.4 MC_A/B MC output for programA/B (motion complete)
1)
Address assignment from the point of viewof the SPC200
2)
Observe the instructions on enabling the controller in section4.1.
Record Select mode
Address
1)
Control signal Description
I10.0 ENABLE Controller enable (1 =controller enabled)
2)
I10.1 RESET Reset program(in conjunction with STOP = 0)
I10.2 STOP Stop positioning task (0 =stopped)
I10.3/I10.4 CLK_A/B Start NC record from programA/B
I11.0 ... I11.9 RECBIT1...10 Bits for NC record number (RECBIT1 for 2
0
etc. )
Q10.0 READY System ready to operate
Q10.1/Q10.2 ACK_A/B Task accepted for programA/B
Q10.3/Q10.4 RC_A/B NC record concluded by programA/B
1)
Address assignment from the point of viewof the SPC200
2)
Observe the instructions on enabling the controller in section4.1.
4. Commissioning
47 Festo P.BESPC200COMPDPEN en 0901c
Program test in Record Select mode
In Record Select mode the window Control Signals enables
you to select an NC record number directly. This NC record
number corresponds to the actual NC record number in the
NC program.
Note that the programmed record numbers are stored begin
ning with N000 and with step size 1 when a program is loaded
with WinPISA.
Example Start NC record from line N007 of program A (? = 1signal)
2
3
1
1 Start NC record with CLK_Asignal
2 Current NC record number (here 7)
3 Entry field for NC record number
(conclude entry with ENTER)
Fig.4/2: Selecting an NC record (example)
4. Commissioning
48 Festo P.BESPC200COMPDPEN en 0901c
4.1.2 Steps for commissioning the SPC200 as a field bus slave
The following steps are required for commissioning the
SPC200 as a field bus slave:
1. Set the following when configuring the field bus module:
Settings Description
PROFIBUS address Permitted address range: 0...125
1)
1)
In some cases is limited by the DP master used
Modification by a DP master is not possible.
2. Install GSD file and symbol file.
3. Configure the PROFIBUS with the appropriate configur
ation software (e.g. with STEP 7 hardware configurator).
4. Test the field bus connection in online mode.
Details can be found in the following sections.
4. Commissioning
49 Festo P.BESPC200COMPDPEN en 0901c
4.2 Setting the PROFIBUS address of the SPC200
Please note
PROFIBUS addresses may only be assigned once per
PROFIBUSDP interface. Observe any possible limitations
as regards the assignment of PROFIBUS addresses by your
DP master.
Recommendation: Assign the PROFIBUS addresses in ascend
ing order. If necessary, assign the PROFIBUS addresses to
suit the machine structure of your system.
Please note
In order to avoid faults in commissioning, the field bus
module is set at an invalid PROFIBUS address (255) before
it leaves the factory. The control panel shows the value 1
as an invalid PROFIBUS address.
4.2.1 Instructions on setting the PROFIBUS address with the control panel
When the address has been set on the control panel by
means of the menu commands [CONFIG. SYSTEM] [ACTUAL
CONFIG.] [FIELDBUS] [STATION ADDRESS], the following
message will appear:
UPDATE NEW ADDR.
SYSTEM RESET ?
You can then abort with ESC or trigger a system reset with
ENTER, and thereby confirm the new address.
In the case of a system reset, the SPC200 will be reset to the
status it was in after being switched on. A program reset and
a hardware recognition are carried out here and the axis in
terface string is reinitialized. This procedure can take a cer
tain amount of time, depending on the system configuration
used.
4. Commissioning
410 Festo P.BESPC200COMPDPEN en 0901c
4.2.2 Setting the PROFIBUS address of the SPC200 with WinPISA
In order to set the PROFIBUS address of the SPC200 with
WinPISA, proceed as follows:
1. Read out the hardware configuration from the SPC200 or
set the hardware configuration manually, as described in
the guidelines in the WinPISA manual.
2. Doubleclick the symbol CPU.. in the project window.
The dialogue window SPC200 configuration" will then
appear.
1
1 Field bus module for PROFIBUS
Fig.4/3: Configuration of the SPC200 modules
3. Now select the register card Field bus.
4. Commissioning
411 Festo P.BESPC200COMPDPEN en 0901c
1
1 Register card Field bus"
Fig.4/4: Configuration of the field bus module
4. Set the following in this register card:
Settings Notes
PROFIBUS address Fieldbus addresses may only be assigned once per PROFIBUSDP interface
(0 ... 125)
Suppress diagnostic
messages
As from firmware version V2.1 of the fieldbus module:
Error messages over the fieldbus can be suppressed with WinPISA as from
version 4.51 in combination with an operating system as from version 4.93.
This avoids an undesired stop of the PLC.
Recommendation: Assign the PROFIBUS addresses in ascend
ing order. If necessary, assign the PROFIBUS addresses to
suit the machine structure of your system.
5. Confirm the settings with OK.
The field bus address set will be transmitted to the SPC200
when the project is loaded and will then become valid. A sep
arate download is also possible.
4. Commissioning
412 Festo P.BESPC200COMPDPEN en 0901c
4.3 Installing the device master file (GSD file) and symbol files
GSD file If a new hitherto unknown device is to be incorporated in a
configuration program when a PROFIBUSDP system is to be
configured, an appropriate device master file (GSD file)
must be installed for this device. The device master file con
tains all the necessary information for the configuration pro
gram. You will require the appropriate symbol files for repre
senting the device in the configuration program.
Current GSD files and symbol files for the SPC200 can be
found in Internet under the following addresses:
www.festo.com: Go to the Business Area Pneumatics"
and then to Download Area".
www.profibus.com: Go to Libraries" and then to Festo."
You will require one of the following GSD files for the SPC200:
SPC_00C8.GSD (German version)
SPC_00C8.GSE (English version)
Symbol files In order to represent the SPC200 in your configuration soft
ware, you will find the following symbol files under the
abovementioned Internet addresses:
Normal operating
status
Diagnostic case Special operating
status
File: Pbsp200n.dib File: Pbsp200d.dib File: Pbsp200s.dib
4. Commissioning
413 Festo P.BESPC200COMPDPEN en 0901c
Please note
Various configuration programs are available for use in
conjunction with a Siemens master. Please observe the
relevant procedure for your configuration program.
Install the GSD file and the bitmap file
Depending on the configuration program used, install the
GSD file and the bitmap file with the aid of the appropriate
menu command or copy the files manually into a particular
directory of your programmr/PC.
With the STEP 7 V5.1 hardware configurator you can load the
files with the aid of the menu command [Extras] [. . .Install
new GSD] into the dialogue window [HW Config.].
Configuration
program
File type Directory
STEP 7 V5.1 hardware
configurator
1)
GSD file ...\STEP7\S7DATA\GSD
configurator
1)
Bitmap files ...\STEP7\S7DATA\NSBMP
1)
If you copy the GSD files when the Simatic Manager has already been started, you can update the
hardware catalogue with the command [Extras] [Update GSD file].
4. Commissioning
414 Festo P.BESPC200COMPDPEN en 0901c
4.4 Basic principles of configuration
4.4.1 FREEZE and SYNC
The SPC200 supports the PROFIBUS control commands Sync
and Freeze. If a PROFIBUS master sends these control com
mands, the internal I/Os of the field bus module which are
used for communication (I10.0...I13.15 or Q10.0...Q13.15)
will be treated as follows:
Caution
In the following cases, the FREEZE or SYNC mode will be
automatically reset:
when the SPC200 is switched on/off or after a system
reset
when a project is loaded with WinPISA
when the field bus master has stopped.
The FREEZE mode will also be reset automatically in the
following case:
when the bus connection to the SPC200 is interrupted
(response monitoring active).
FREEZE The internal outputs of the field bus module are mapped on
inputs of the master. With this control command the internal
outputs of the field bus module (Q10.0...Q10.15) can be
frozen." The field bus module then sends a constant output
image to the master. The following FREEZE command causes
the output image to be updated. The updated output image
is then sent constantly to the master.
Return to normal operation UNFREEZE command.
4. Commissioning
415 Festo P.BESPC200COMPDPEN en 0901c
SYNC The outputs of the master are mapped on internal inputs of
the field bus module. With this control command the inter
nal inputs can be frozen." The SPC200 then no longer re
acts to modifications to the output image in the master. The
following SYNC command causes the output image of the
master to be updated.
Return to normal operation UNSYNC command.
4.4.2 Configuration of the I/O address range
The size of the I/O address range to be configured depends
on the operating mode of the SPC200 used and on the addi
tional functions used (parameter channel and transmission of
the actual positions).
Function Address range equired Consistency of
I/Osignals
(I10 0 I13 15
Start/Stop mode
1)
(I10.0...I13.15,
Q10.0...Q13.15)
2, 4, 6 or 8 Ibytes
2, 4, 6 or 8 Obytes
1 Ibyte or complete length
1 Obyte or complete length
Record Select mode
2 Ibytes
4 Obytes
Complete length
Complete length
Parameter channel
2)
(optional)
4 Iwords
4 Owords
Complete length
Actual positions
2)
(optional)
2 Iwords per axis Complete length
Setpoint positions
3)
(optional)
2 Owords per axis Complete length
1) Freely programmable I/Os are only available in the operating mode Start/Stop.
2) For this function you require a field bus module with firmware version as from V 2.0, an SPC200
with operating system version as from V 4.6 and WinPISA as from version 4.3.
3) For this function you require a fieldbus module with firmware version as from V 2.1, an SPC200
with operating system version as from V 4.82 and WinPISA as from version 4.41.
4. Commissioning
416 Festo P.BESPC200COMPDPEN en 0901c
The address range with DP identifiers is described under
PROFIBUSDP. The DP identifiers can be entered via a dia
logue or directly in the configuration tables of the configur
ation program. The method of handling depends on the con
figuration program.
Rules for configuring the I/O address range
In the case of the I/O signals, use a DP identifier for the
inputs and a different DP identifier for the outputs. The
DP identifiers which are permitted here depend on the
operating mode of the SPC200 used (see section 4.4.3).
If the parameter channel is to be used:
use a DP identifier for the parameter channel (see also
section 4.4.4).
If actual positions are to be transmitted to the DP master:
use a DP identifier for each axis (see also section 4.4.5).
All nonconfigured output addresses can be used as flags
in the operating mode Start/Stop. If, for example, the
DPidentifier 16DI is used for inputs of the master, the
outputs Q11.0...Q13.15 of the SPC200 can be used as
flags (see also Fig.4/5).
In this manual hexadecimal DP identifiers are marked by a
subscript h". Decimal DP identifiers are marked with a sub
script d".
4. Commissioning
417 Festo P.BESPC200COMPDPEN en 0901c
4.4.3 DP identifiers for the I/O signals
Please note
Output addresses of the master are mapped on internal
inputs; internal outputs of the field bus module are
mapped on input addresses of the master.
DP identifiers for the Start/Stop mode
In the Start/Stop mode identifiers for data consistency over
1byte are permitted.
I/O signals Address range DP identifiers
EN 50170 Siemens EN 50170 Siemens
Consistent over 1 byte Completelength
Q10.0...Q10.15
Q11.0...Q11.15
Q12.0...Q12.15
Q13.0...Q13.15
2 Ibytes
+2 Ibytes (4 Ibytes)
+2 Ibytes (6 Ibytes)
+2 Ibytes (8 Ibytes)
11
h
13
h
15
h
17
h
16DI
32DI
21
d
23
d
91
h
93
h
95
h
97
h
145
d
147
d
149
d
151
d
Fig.4/5: DP identifiers for inputs (outputs of the SPC200)
I/O signals Address range DP identifiers
EN 50170 Siemens EN 50170 Siemens
Consistent over 1 byte Completelength
I10.0...I10.15
I11.0...I11.15
I12.0...I12.15
I13.0...I13.15
2 Obytes
+ 2 Obytes (4 Obytes)
+ 2 Obytes (6 Obytes)
+ 2 Obytes (8 Obytes)
21
h
23
h
25
h
27
h
16DO
32DO
37
d
39
d
A1
h
A3
h
A5
h
A7
h
161
d
163
d
165
d
167
d
Fig.4/6: DP identifiers for outputs (inputs of the SPC200)
4. Commissioning
418 Festo P.BESPC200COMPDPEN en 0901c
DP identifiers for the Record Select mode
I/O signals Address range DP identifiers
EN 50170 Siemens EN 50170 Siemens
Consistent over 1 byte Completelength
Q10.0...Q10.15 2 Ibytes
*) *)
91
h
145
d
*)
Data consistency only permitted over complete length
Fig.4/7: DP identifiers for inputs (outputs of the SPC200)
I/O signals Address range DP identifiers
EN 50170 Siemens EN 50170 Siemens
Consistent over 1 byte Completelength
I10.0...I10.15
I11.0...I11.15
4 Obytes
*) *)
A3
h
163
d
*)
Data consistency only permitted over complete length
Fig.4/8: DP identifiers for outputs (inputs of the SPC200)
4. Commissioning
419 Festo P.BESPC200COMPDPEN en 0901c
4.4.4 DP identifiers for the parameter channel (optional)
In order to use the parameter channel, you will require:
a field bus module with firmware version as from V 2.0
the SPC200 with operating system version as from V 4.6
WinPISA as from version 4.3.
For the parameter channel data consistency is only permitted
over the complete length. If the parameter channel is to be
used, the DP identifier must be entered once.
Further information on the parameter channel of the SPC200
can be found in chapter 5.
Parameter
channel
Address range DP identifiers
channel
EN 50170 Siemens EN 50170 Siemens
Consistent over 1 byte Completelength
4 I/O words 4 Iwords
4 Owords
*) *)
F3
h
4AX
*)
Data consistency only permitted over complete length
Fig.4/9: DP identifiers for the parameter channel
4. Commissioning
420 Festo P.BESPC200COMPDPEN en 0901c
4.4.5 DP identifiers for transmitting the actual postions (optional)
In order to transmit the actual positions you will require:
a field bus module with firmware version as from V2.0
the SPC200 with operating system version as from V4.6
WinPISA as from version 4.3.
For transmitting the actual positions data consistency is only
permitted over the complete length. The DP identifier must be
entered separately for each axis.
Actual
iti
Address range DP identifiers
position
EN 50170 Siemens EN 50170 Siemens
Consistent over 1 byte Completelength
2 Iwords 2 Iwords
*) *)
D1
h
209
d
*)
Data consistency only permitted over complete length
Fig.4/10: DP identifiers for transmitting the actual positions
The assignment on the relevant axes is made in the confi
gured sequence. DP identifiers for nonconfigured axes are
not permitted.
First DP identifier for actual position (DP identifier with
the lowest slot number): Xaxis
Second DP identifier for actual position: Yaxis
Third DP identifier for actual position: Zaxis
Fourth DP identifier for actual position: Uaxis
Actual positions
Value range 99.999.900 ... +99.999.900
Unit 0,1 m
Actual positions: 9.999,99 ... +9,999.99 mm (Integer32, see A.1.5)
4. Commissioning
421 Festo P.BESPC200COMPDPEN en 0901c
4.4.6 DP identifier for transmission of the setpoint positions (optional)
In order to transmit the setpoint positions you will require:
fieldbus module with firmware version as from V 2.1
SPC200 with operating system version as from V 4.82
WinPISA as from version 4.41.
During transmitting of the setpoint positions, data con
sistency is only permitted over the complete length. The DP
identifier must be entered separately for each axis.
Setpoint
iti
Address space DP identifiers
position
EN 50170 Siemens EN 50170 Siemens
Consistent over 1 byte completelength
2 output words 2 output words *) *) E1
h
225
d
*) Data consistency only permitted over complete length!
Fig.4/11: DP identifier for transmitting the setpoint positions
The assignment on the relevant axes is made in the confi
gured sequence. DP identifiers for nonconfigured axes are
not permitted.
First DP identifier for setpoint position (DP identifier with
the lowest slot number): Xaxis
Second DP identifier for setpoint position: Yaxis
Third DP identifier for setpoint position: Zaxis
Fourth DP identifier for setpoint position: Uaxis
Setpoint positions
Value range 99.999.900 ... +99.999.900
Unit 0,1 m
Setpoint positions: 9.999,99 ... +9,999.99 mm (Integer32, s. A.1.5)
4. Commissioning
422 Festo P.BESPC200COMPDPEN en 0901c
4.5 Configuration with a master
The following chapter describes the configuration of the
SPC200 as a PROFIBUS slave especially with a Siemens DP
master. The configuration in general for PROFIBUS masters of
other manufacturers is then described.
Various configuration programs are available for Siemens DP
masters. This manual refers to STEP 7 V5.1 (hardware confi
gurator).
Configuration programs are subject to updates which may
not yet be taken into consideration in this manual. Inform
yourself in this case with the aid of the appropriate product
documentation.
4. Commissioning
423 Festo P.BESPC200COMPDPEN en 0901c
4.5.1 Configuration with STEP 7
General instructions
The software package Simatic Manager serves for project
planning and commissioning in conjunction with PROFIBUS
masters from Siemens or compatible masters. In order to
understand this chapter, you should be sure of how to handle
your configuration program. If necessary, refer to the docu
mentation for the Simatic Manager. This manual refers to soft
ware version 5.1.
An appropriate device master file (GSD file) for the SPC200
must be installed for configuration. Instructions on this can
be found in section 4.3.
Insert SPC200 as slave
The hardware configuration window represents graphically
the structure of the master system. When the GSD file has
been installed, the SPC200 can be selected in the hardware
catalogue. It can be found in the group [PROFIBUSDP]
[Further field devices][ NC/RC] (see Fig.4/12).
In order to insert the SPC200:
1. Click the entry Festo SPC200 (3) and hold the left
hand mouse button pressed down.
2. Pull the mouse cursor onto the PROFIBUS line (2) on
the DP master and release the mouse button again (drag
& drop). A dialogue window will then appear in which you
can set the PROFIBUS address.
3. Select the same PROFIBUS address that you have set with
WinPISA or with the control panel on the SPC200 and con
firm this with OK.
The SPC200 will then be represented graphically (1).
4. Commissioning
424 Festo P.BESPC200COMPDPEN en 0901c
1 2
3
1 Symbols for SPC200
2 PROFIBUS line
3 Entry Festo SPC200 from GSD file
Fig.4/12: Station selection STEP 7
4. Commissioning
425 Festo P.BESPC200COMPDPEN en 0901c
Configuring the Slave properties
After clicking the symbol for the SPC200, you can configure
the Slave properties" in the lower part of the screen. Here
you can determine the number and size of the I/O ranges of
the slave and assign them with address ranges of the master.
In order to configure the Slave properties of the SPC200:
1. open the permitted identifiers in the hardware catalogue
under Festo SPC200
2. then use the mouse to pull the desired identifier into the
appropriate line under Module/DP identifier.
When configuring the I/O address range, observe the rules in
section 4.4.2.
4. Commissioning
426 Festo P.BESPC200COMPDPEN en 0901c
1 2 3 4
1 DP identifiers
2 Xaxis actual position or setpoint
position (optional)
3 Yaxis actual position or setpoint
position (optional)
4 Module/DP identifier
Fig.4/13: Configuring the Slave properties
When the configuration is concluded, transmit the data to the
master.
4. Commissioning
427 Festo P.BESPC200COMPDPEN en 0901c
4.5.2 Configuring with DP masters of other manufacturers
The SPC200 can be controlled by any PLC, PC or industrial PC
with a PROFIBUSDP module in accordance with EN 50170
(DIN 19245).
Bus sequence DP master (standard)
In order to commission the SPC200 correctly, the DP master
must carry out the following functions in the sequence speci
fied here:
1. send a parametrizing telegram
2. send a configuration telegram
3. request diagnostic information
4. start cyclic exchange of data
The composition and contents of the individual telegrams are
described in the following chapters.
Send parametrizing data
The parametrizing data are transferred from the DP master to
the SPC200 with the function Set_Prm.
Byte 1: Station status
Bit Meaning Explanation
0 Reserved
1
2
3 WD_On Response monitoring of the SPC200 on/off:
log. 0": Off
log. "1": On
4 Freeze_Req log. 1": Activate FREEZE
4. Commissioning
428 Festo P.BESPC200COMPDPEN en 0901c
Bit Explanation Meaning
5 Sync_Req log. 1": Activate SYNC
6
7
Unlock_Req
Lock_Req
Bit 7 Bit 6
0 0
0 1
1 0
1 1
min T
SDR
+ SPC200 parameters may be
overwritten
SPC200 released for other masters
SPC200 blocked for other masters
SPC200 released for other masters
Bytes 2 and 3: WD_Fact_1
WD_Fact_2
Bit Meaning Explanation
Range 1...255:
The response monitoring time of the SPC200 is transmitted with these two
bytes: T
WD
[s] = 10ms * WD_Fact_1 * WD_Fact_2
Byte 4: Minimum station delay responder (min T
SDR
)
Bit Meaning Explanation
The minimumtime the SPC200 must wait, before the reply telegrammay
be sent to the DP master.
Bytes 5 and 6: Ident_number
Bit Meaning Explanation
Transmissionof the Ident number (= 00C8
H
) of the SPC200.
Parametrizing telegrams to the SPC200 are only accepted if the
transmitted and the programmed Ident numbers are the same.
4. Commissioning
429 Festo P.BESPC200COMPDPEN en 0901c
Byte 7: Group_Ident
Bit Meaning Explanation
With the SPC200 each bit represents a group.
Bytes 8 ... 32: User_Prm_Data
Bit Meaning Explanation
Not supported by the SPC200
Send configuration data (Chk_Cfg)
The configuration data are transferred from the DP master to
the SPC200 with the function Chk_Cfg.
Please note
The configuration of the SPC200 can be carried out as
follows:
one identifier byte each for the sum of the inputs and
the sum of the outputs
one identifier byte for the parameter channel (optional)
one identifier byte per axis for the transmission of the
actual position (optional).
Overview of parameters:
Byte 1n: Identifier bytes
Permitted identifiers for the SPC200 can be found in the
sections 4.4.3, 4.4.4 and 4.4.5.
Example:
Configuring an SPC200 for Record Select mode with up to
2input bytes and 4 output bytes.
4. Commissioning
430 Festo P.BESPC200COMPDPEN en 0901c
Station no.: 20
Configuration: Function: Chk_Cfg
Byte 1: 145
D
Byte 2: 163
D
Read out configuration data (Get_Cfg)
Operating mode Start/Stop Record select
Byte 1
Byte 2
151
D
167
D
145
D
163
D
Request diagnostic information (Slave_Diag)
The diagnostic data are requested by the SPC200 with the
function Slave_Diag. A description of this function can be
found in chapter 5, in the section Diagnosis via PROFIBUSDP.
Cyclic exchange of data (Data_Exchange)
The cyclic exchange of data is accomplished with the function
Data_Exchange. With this function the output data for the
SPC200 are transmitted as an byte string of length x.
The length of the byte string depends on the size of the ad
dress range used for the exhange of data. It can therefore be
of a different size for input data and output data (Inp_Data,
Outp_Data). This results per byte in an byte string length of1.
Please note
With the function Data_Exchange the SPC200 awaits the
status description for the internal inputs (outputs of the
master). The status of the internal outputs (input informa
tion for the master) is sent as a reply telegram to the
master. The length of the data telegrams depends on the
size of the configured address range.
4. Commissioning
431 Festo P.BESPC200COMPDPEN en 0901c
Overview of implemented functions and service access
points (SAP)
Function Available Destination SAP
(DSAP)
Data_Exchange Yes NIL
RD_Inp Yes 56
RD_Outp Yes 57
Slave_Diag Yes 60
Set_Prm Yes 61
Chk_Cfg Yes 62
Get_Cfg Yes 59
Global_Control Yes 58
Set_Slave_Add No 55
Bus parameter/reaction times
Baud rate (kBit/s) max T
SDR
(T
Bit
) min T
SDR
(T
Bit
)
187.5 60 11
500 100
1500 150
3000 250
6000 450
12000 800
4. Commissioning
432 Festo P.BESPC200COMPDPEN en 0901c
GSD file (device master file)
Information on using the GSD file can be found in section 4.3.
In addition to slavetypical entries (Ident. number, Revision,
etc.), the device master file also contains a selection of ident
ifiers. These identifiers are divided into 4 main groups:
1. address range for digital inputs
2. address range for digital outputs
3. address range for the parameter channel
4. address range for actual positions
When configuring, observe the rules in section 4.4. If con
figuration faults occur, make sure that the rules for configur
ation are observed (see section 4.4.2).
Please note
Outputs of the master are mapped on internal inputs of the
field bus module; internal outputs of the field bus module
are mapped on inputs of the master.
Please note
You must configure one identifier each for inputs and for
outputs.
All internal outputs of the field bus module, which lie
outside the I/O address range configured for communi
cation, can be used as flags in the Start/Stop operating
mode.
4. Commissioning
433 Festo P.BESPC200COMPDPEN en 0901c
4.5.3 Instructions on commissioning the PROFIBUS
Switch on the power supply
Please note
Please observe also the switchingon instructions in the
manual for your controller.
When you switch on your controller, it automatically carries
out a comparison between the NOMINAL and the ACTUAL
configurations. For this configuration run it is important that:
S the configuration specifications are complete and correct.
S the power supplies for the programmable logic controller
and that for the field bus slaves are switched on either
simultaneously or in the sequence indicated below.
Please observe the following points when switching on the
power supply:
Common supply
If there is a common supply for the control system and for
all the field bus slaves, the power should be switched on
via a central power unit or central switch.
Separate supply
If there is a separate supply for the control system and for
the field bus slaves, the power should be switched on in
the following sequence:
1. the power supply for all the field bus slaves
2. the compressed air supply for the axes connected to
the SPC200
3. the power supply for the control system.
4. Commissioning
434 Festo P.BESPC200COMPDPEN en 0901c
4.5.4 Switchon reaction of the field bus module
Please note
When projects are loaded with WinPISA, the field bus mod
ule is reinitialized. There is then no exchange of data until
the field bus module is reconfigured by the master.
Information on the switchon reaction of the SPC200 can be
found in section 4.7.1 as well as in the user manual for the
SPC200. The following diagram shows the switchon reaction
of the field bus module. Detailed information on the fault di
agnosis can be found in chapter 6.
4. Commissioning
435 Festo P.BESPC200COMPDPEN en 0901c
No
BUS ERROR
LED flashes
fast
No Yes
Power LED on
BUS ERROR LED on
Initialization
Self test
Faults?
Hardware
fault?
BUS ERROR LED
flashes slowly (offline)
Configuration
by
master?
Switch off
BUS ERROR LED
Data
exchange OK?
Yes
BUS ERROR
LED flashes
briefly
No
Yes
Yes
No
1
2
1 Set correct PROFIBUS address or operating mode
2 Servicing required
Fig.4/14: Switchon reaction of the field bus module
4. Commissioning
436 Festo P.BESPC200COMPDPEN en 0901c
4.5.5 Response monitoring
The response monitoring influences the reaction when field
bus communication fails, e.g. due to cable fracture. The
SPC200 can be operated with active or inactive response
monitoring.
With active response monitoring, all field bus inputs of the
SPC200 will be reset to 0 when the response monitoring time
has expired.
With inactive response monitoring, the status of the field bus
inputs remains unmodified in the event of failure of the field
bus communication.
4. Commissioning
437 Festo P.BESPC200COMPDPEN en 0901c
4.6 Commissioning on the field bus
Please note
Please observe also the instructions in the manual for your
controller.
Commissioning software for the field bus master usually pro
vides an online operating mode. In this online mode you can
influence the current states of the field bus inputs and out
puts.
As with commissioning with WinPISA, you can also generate
the control signals of the SPC200 via the PROFIBUS master.
By means of the online operating mode of the software for
the PROFIBUS master, you can test the functioning of the
SPC200 on the field bus.
The following tables give an overview of the configurable field
bus address range of the field bus module. Address assign
ment from the point of view of the SPC200.
Please note
Outputs of the master are mapped on internal inputs;
internal outputs of the field bus module are mapped on
inputs of the master.
4. Commissioning
438 Festo P.BESPC200COMPDPEN en 0901c
4.6.1 Internal I/O addresses with the Start/Stop mode
The configured outputs of the master are mapped on the
input bits.
Byte Bit 7
Bit 15
Bit 6
Bit 14
Bit 5
Bit 13
Bit 4
Bit 12
Bit 3
Bit 11
Bit 2
Bit 10
Bit 1
Bit 9
Bit 0
Bit 8
Input bits (I10.0...I13.15)
1)
n
n + 1
I10.7
I10.15
I10.6
I10.14
I10.5
I10.13
Sync_IB
I10.12
Sync_IA
I10.11
STOP
I10.10
START/
RESET
I10.9
ENABLE
I10.8
n+2
n+3
I11.7
I11.15
I11.6
I11.14
I11.5
I11.13
I11.4
I11.12
I11.3
I11.11
I11.2
I11.10
I11.1
I11.9
I11.0
I11.8
n+4
n+5
I12.7
I12.15
I12.6
I12.14
I12.5
I12.13
I12.4
I12.12
I12.3
I12.11
I12.2
I12.10
I12.1
I12.9
I12.0
I12.8
n+6
n+7
I13.7
I13.15
I13.6
I13.14
I13.5
I13.13
I13.4
I13.12
I13.3
I13.11
I13.2
I13.10
I13.1
I13.9
I13.0
I13.8
1)
Address assignment from the point of viewof the SPC200
The internal outputs of the field bus module are mapped on
the configured inputs of the master.
Byte Bit 7
Bit 15
Bit 6
Bit 14
Bit 5
Bit 13
Bit 4
Bit 12
Bit 3
Bit 11
Bit 2
Bit 10
Bit 1
Bit 9
Bit 0
Bit 8
Output bits (Q10.0...Q13.15)
1)
n
n + 1
Q10.7
Q10.15
Q10.6
Q10.14
Q10.5
Q10.13
MC_B
Q10.12
MC_A
Q10.11
Sync_OB
Q10.10
Sync_OA
Q10.9
READY
Q10.8
n+2
n+3
Q11.7
Q11.15
Q11.6
Q11.14
Q11.5
Q11.13
Q11.4
Q11.12
Q11.3
Q11.11
Q11.2
Q11.10
Q11.1
Q11.9
Q11.0
Q11.8
n+4
n+5
Q12.7
Q12.15
Q12.6
Q12.14
Q12.5
Q12.13
Q12.4
Q12.12
Q12.3
Q12.11
Q12.2
Q12.10
Q12.1
Q12.9
Q12.0
Q12.8
4. Commissioning
439 Festo P.BESPC200COMPDPEN en 0901c
Byte Bit 0
Bit 8
Bit 1
Bit 9
Bit 2
Bit 10
Bit 3
Bit 11
Bit 4
Bit 12
Bit 5
Bit 13
Bit 6
Bit 14
Bit 7
Bit 15
n+6
n+7
Q13.7
Q13.15
Q13.6
Q13.14
Q13.5
Q13.13
Q13.4
Q13.12
Q13.3
Q13.11
Q13.2
Q13.10
Q13.1
Q13.9
Q13.0
Q13.8
1)
Address assignment from the point of viewof the SPC200
4.6.2 Internal I/O addresses with Record Selection mode
The configured outputs of the master are mapped on the
input bits (I10.0...I11.15).
Byte Bit 7
Bit 15
Bit 6
Bit 14
Bit 5
Bit 13
Bit 4
Bit 12
Bit 3
Bit 11
Bit 2
Bit 10
Bit 1
Bit 9
Bit 0
Bit 8
Input bits (I10.0...I11.15)
1)
n
n + 1
CLK_B
CLK_A
STOP
RESET
ENABLE
n+2
n+3
RECBIT...
Record number from 0 to 999, output word (2 byte, MSBLSB)
1)
Address assignment from the point of viewof the SPC200
The internal outputs of the field bus module are mapped on
the configured inputs of the master.
Byte Bit 7
Bit 15
Bit 6
Bit 14
Bit 5
Bit 13
Bit 4
Bit 12
Bit 3
Bit 11
Bit 2
Bit 10
Bit 1
Bit 9
Bit 0
Bit 8
Output bits (Q10.0...Q13.15)
1)
n
n + 1
RC_B
RC_A
ACK_B
ACK_A
Ready
1)
Address assignment from the point of viewof the SPC200
4. Commissioning
440 Festo P.BESPC200COMPDPEN en 0901c
4.6.3 Program examples
The following section contains program examples which
should assist you in programming your field bus master. Posi
tion specifications and I/O addresses must be adapted to
your application. The examples are based on the following
symbols:
SPS I/O SPC200 I/O Symbolic
meaning
Function
O20.0 I10.0 ENABLE Enable signal for SPC200
O20.1 I10.1 START/RESET Start/Reset signal
O20.2 I10.2 STOP Stop signal
O20.3 I10.3 SYNC_IA Synchronization input for programA
O20.4 I10.4 SYNC_IB Synchronization input for programB
I20.0 Q10.0 READY SPC200 ready to operate
I20.1 Q10.1 SYNC_OA Start/Stop mode: SYNC_OA
I20.2 Q10.2 SYNC_OB Start/Stop mode: SYNC_OB
I20.3 Q10.3 MC_A Start/Stop mode: MC_A
I20.4 Q10.4 MC_B Start/Stop mode: MC_B
Generating the starting edge
Program in the master
UN READY
S ENABLE Enable controller
S STOP Set stop
S SYNC_IA M00 prepare quit for
program A
S SYNC_IB Preparation for program B
U READY System ready
S START/RESET Generate starting edge
4. Commissioning
441 Festo P.BESPC200COMPDPEN en 0901c
Quit the programmed stop" (M00) with subsystem A
NC program in the SPC200
N0000 G00 XPOS1 Move to POS1
N0001 M00 Programmed stop
N0002 G00 XPOS2 Move to POS2
N0003 G00 XPOS3 Move to POS3
N0004 ....
N0005 ....
N0006 ....
N0007 M30 Program end with repeat
Program in the master
....
U E 0.0 if M00 is to be quited
U SYNC_OA and the SPC200 is in
U SYNC_IA Programmed stop?
R SYNC_IA Quit Programmed stop
....
UN SYNC_IA Has it been quited?
UN SYNC_OA Has quiting been confirmed?
S SYNC_IA Put signal in output position
4. Commissioning
442 Festo P.BESPC200COMPDPEN en 0901c
Example of record selection mode
SPS I/O SPC200 I/O Symbolic
meaning
Function
O20.0 I10.0 ENABLE Enable signal for SPC200
O20.1 I10.1 RESET Reset signal
O20.2 I10.2 STOP Stop positioning task
O20.3 I10.3 CLK_A Start NC record from programA
OW22 I11.0...I11.15 RECBIT... NC record number
I20.0 Q10.0 READY SPC200 ready to operate
I20.1 Q10.1 ACK_A Task accepted (acknowledge) for programA
I20.3 Q10.3 RC_A NC record concluded by programA
Create and start NC record
Program in the master
....
L KH 0001 Determine NC record number
T OW 22 Create NC record
UN CLK_A Master in output position
UN ACK_A SPC200 ready
U RC_A NC record concluded
S CLK_A Start NC record
U CLK_A if task is issued
U ACK_A and task is accepted
UN RC_A NC record is processed
R CLK_A Signal in output position
....
4. Commissioning
443 Festo P.BESPC200COMPDPEN en 0901c
4.6.4 Reading and writing consistent data with the S7
In order that the parameter channel (PKW) can be used,
8bytes of data (data consistency over the complete length)
must be transmitted consistently. With the Load and Transfer
commands of the S7, which access the peripherals or the
processing image of the inputs and outputs, maximum four
bytes can be transmitted together.
For consistent reading and writing of more than four bytes of
data, the system functions SFC14 (Read) and SFC15 (Write)
must be used on the S7. When using the parameter channel,
you must therefore use the system functions SFC14 (Read)
and SFC15 (Write).
4. Commissioning
444 Festo P.BESPC200COMPDPEN en 0901c
4.7 Sequence plans for the programmer
The following sequence plans will assist you in programming
a higherorder PLC/IPC. They show you how to:
create readiness to operate
start NC records in Record Select mode
start NC programs in Start/Stop mode
quit faults.
The signal names are printed in upper case letters. For
example: READY stands for the READY signal, 1 stands for the
1 signal, 0 stands for the 0 signal.
4.7.1 Creating readiness to operate
When the power supply is switched on, the SPC200 performs
the initialization and self test of the connected modules. This
initialization phase can take a certain amount of time, de
pending on the equipment fitted on the system (max. 10 s).
Please note
During this initialization phase no further rising edge may
be generated at the START/RESET input.
After the initialization phase there may be a fault (e.g. hard
ware fault), even if the READY output supplies a 1signal for a
short period. You must therefore wait a further 100ms after
the first recognition of the 1signal at the READY output. The
signal at the READY output must then be scanned once again
for a 1signal (see Fig.4/15 and Fig.4/16; Sequence plan
Creating the readiness to operate").
4. Commissioning
445 Festo P.BESPC200COMPDPEN en 0901c
The following signals must be present at the controller inputs
before the readiness to operate can be created:
Record Select mode
Controller input Signal
ENABLE 0signal
1)
STOP 0signal
RESET 0signal
CLK_B Not relevant
CLK_A Not relevant
1)
Observe the instructions on enabling the controller in section 4.1.
Start/Stop mode
Controller input Signal
ENABLE 0signal
1)
STOP 0signal
START/RESET 0signal
SYNC_IB Not relevant
SYNC_IA Not relevant
1)
Observe the instructions on enabling the controller in section 4.1.
4. Commissioning
446 Festo P.BESPC200COMPDPEN en 0901c
Wait 10 s
Initialization
phase
Switch on the operating
voltage and the load volt
age supplies at the same
time
Set ENABLE
Switch on the load voltage
Wait 1 s
Creating readiness to operate
Wait 10 s
Reset:
ENABLE,
STOP,
RESET or START/RESET
Switch on the operating
voltagesupply
1
Switch on operating
and load voltage
supplies
together?
Yes
No
1
2
2
2
1 Operating and load voltage supplies of the SPC200
2 There must be a stable supply of voltage: 24 V DC 5 %/+25 %
Fig.4/15: Creating readiness to operate
4. Commissioning
447 Festo P.BESPC200COMPDPEN en 0901c
1
Start timer 2 s
No
Timer
expired?
Yes
No
READY =1?
Yes
Wait 100 ms
READY =1?
End
Yes
No
SPC200 is ready to operate
SPC200 is faulty
Wait for thereadiness to operateof thesteppingmotor and the
pneumatic axes (reaction time max. 2 s).
Wait for fault
Set STOP
Wait 10 ms
Debouncingtime
Fig.4/16: Creating readiness to operate (continued)
4. Commissioning
448 Festo P.BESPC200COMPDPEN en 0901c
4.7.2 Start NC record in Record Select mode
ACK_A/B
=0?
Create NC record number
Reset CLK_A/B
Start timer 2 s
No Timer
expired?
Yes
Faults
No
ACK_A/B
=1?
Yes
Start NC record in Record
Select mode
Wait 10 ms
Set CLK_A/B
1
RECBIT1...10
2
No
Yes
Fig.4/17: Start NC record in Record Select mode
4. Commissioning
449 Festo P.BESPC200COMPDPEN en 0901c
No
Timer
expired?
Yes
Faults
No
Yes
Start timer 2 s
RC_A/B
=1?
End
No
Timer
expired?
Yes
Faults
No
Start timer
ACK_A/B
=0?
1
2
Time required depends on application
Yes
Fig.4/18: Start NC record in Record Select mode (continued)
4. Commissioning
450 Festo P.BESPC200COMPDPEN en 0901c
4.7.3 Start program or NC record
Prerequisites
The programmust be in the programmemory
The axis, application and system data must be set correctly
The operating mode must be set
Readiness of the SPC200 to operate has been created (1signal at
the ENABLE and STOP inputs and at the READY output)
Start NC program in Start/Stop mode
In the Start/Stop operating mode, the sequence is started or
continued with a rising edge at the START input. In this case
there must be a 1signal at the STOP input.
If there is a 0signal at the STOP input, a program reset will be
triggered by a rising edge at the START input.
Set START
Reset START
Wait 10 ms
Process NC programin
Start/Stop mode
Prepare newstart
NC programis started
Debouncingtime
End
Fig.4/19: Start NC program in Start/Stop mode
4. Commissioning
451 Festo P.BESPC200COMPDPEN en 0901c
4.7.4 Carry out fault quitting
When serious faults have been quitted, the SPC200 performs
the initialization and self test of the connected modules. This
initialization phase can take a certain amount of time, de
pending on the equipment fitted on the system (max. 10 s).
Please note
During this initialization phase no further rising edge may
be generated at the START/RESET input.
When a fault has been quitted, there may still be other faults
(e.g. hardware faults). Fault quitting should in this case be
repeated up to three times (see sequence plan Fault quit
ting"). If, after this, the SPC200 is still not ready to operate
(READY signal = 0), the fault cannot be quitted, as the cause
of the fault must be quitted first.
A diagnosis can be carried out with WinPISA or with the con
trol panel.
When the load voltage supply is switched off (e.g. after
Emergency stop), an appropriate fault message is generated.
When the load voltage is switched on again, you must wait 1
second until the fault is quitted (see Fig.4/15 Creating the
readiness to operate).
The following signals must be present at the controller inputs
before faults can be quitted:
4. Commissioning
452 Festo P.BESPC200COMPDPEN en 0901c
Record Select mode
Controller input Signal
ENABLE 1signal
STOP When quitting with the RESET signal: 0signal
When quitting with the CLK signal: 1signal
RESET 0signal
CLK_B 0signal
CLK_A 0signal
Fig.4/20: Signal states required in Record Select mode
Start/Stop mode
Controller input Signal
ENABLE 1signal
STOP 1signal
*)
START/RESET 0signal
SYNC_IB Not relevant
SYNC_IA Not relevant
*)
If there is a 0signal at the STOP input, a programreset will be
triggered by a rising edge at the START/RESET input.
Fig.4/21: Signal states required in the Start/Stop mode
4. Commissioning
453 Festo P.BESPC200COMPDPEN en 0901c
Quitting counter =0
No
READY =1?
Yes
Fault treatment
Carry out fault quitting
(see Fig.4/23)
READY =1?
End
No
Increment quitting counter
Yes
No Quitting
counter
> 3 ?
Fault cannot be quitted.
Diagnosisrequired
Yes
SPC200 is ready to operate
Fig.4/22: Fault treatment
4. Commissioning
454 Festo P.BESPC200COMPDPEN en 0901c
Set START or CLK
Start timer 10 s
No
Timer
expired?
Yes
No
READY =1?
Yes
Fault quitting
Wait 10 ms
Reset START or CLK
Debouncingtime
Wait 100 ms
A positive edge starts the fault quitting
Restore standard setting
Max. waiting time until READY signal must be present
Wait for next fault
Generate necessary signal
states
Wait 10 ms
Debouncingtime
The necessary signal states depend on the operating mode
used (see Fig.4/20 and Fig.4/21).
End
Fig.4/23: Carry out fault quitting
Parameter channel
51 Festo P.BESPC200COMPDPEN en 0901c
Chapter 5
5. Parameter channel
52 Festo P.BESPC200COMPDPEN en 0901c
Contents
5.1 General instructions 53 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5.2 Structure of the parameter channel (PKW) 54 . . . . . . . . . . . . . . . . . . . . . . . . . . .
5.2.1 Task identifiers, reply identifiers and fault numbers 55 . . . . . . . . . . . . . . . . . . .
5.2.2 Rules for task reply processing 58 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5.3 Description of the parameters 511 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5. Parameter channel
53 Festo P.BESPC200COMPDPEN en 0901c
5.1 General instructions
The transmission of parameters takes place in cyclic telegram
communication via the parameter channel and is based on
the parameter channel (PKW range; Parameter Identification
Value) of the PROFIdrive profile version 2.
The following are not supported:
Active parameters which are transmitted on the initiative
of the SPC200
Parameter descriptions (PBE) and text concerning the
general description of the parameter function
The parameter channel consists of eight bytes which are
transmitted consistently via the PROFIBUS. The parameters of
the SPC200 are treated as passive parameters. Depending on
the individual parameter, the SPC200 supports the following
tasks in parameter processing:
Reading parameter values and fault messages
Modifying parameter values
Via the parameter channel, the parameter values must be
written with the data type which is assigned to the parameter
(see section 5.3).
Remanent data are retained until they are modified. In the
event of Project Download or Data Reset, they will be set to
the specified values or to the values set in the project. Non
remanent parameters will be initialized with the specified
values when the device is switched on. After being over
written, the new value remains valid until one of the following
events occcurs:
Switch off / System reset
Write a new value
5. Parameter channel
54 Festo P.BESPC200COMPDPEN en 0901c
5.2 Structure of the parameter channel (PKW)
The parameter channel serves for the transmission of para
meters. The parameter channel comprises the following:
Components of the
parameter channel
Description
Parameter
identification (PKE)
Component of the parameter channel which contains the task and reply
identifiers (AK) and the parameter number (PNU).
The parameter number serves for identifying or addressing the individual
parameter. The task or reply identifier (AK) describes the task or the reply
in the form of an identifier number.
Subindex (IND) Addresses an element of an array parameter (subparameter number)
Parameter value (PWE) Value of the parameter (doubleword or word)
If a task of the parameter processing cannot be carried out, a fault number
will be shown instead of the value in the reply telegram. The fault number
describes the cause of the fault.
The parameter channel consists of 8 bytes. The structure of
the parameter channel as a factor of the size or type of the
parameter value is shown in the following table:
PWE
type
Byte
1
Byte
2
Byte
3
Byte
4
Byte
5
Byte
6
Byte
7
Byte
8
Double
word
Parameter identifier
(PKE)
Subindex
(IND)
Reserved Parameter value (PWE)
Word Not relevant Parameter value
(PWE)
Fault
1)
Not relevant Fault number
1)
1)
Fault number in reply telegramif the parameter processing task cannot be carried out.
5. Parameter channel
55 Festo P.BESPC200COMPDPEN en 0901c
Parameter identifier (PKE)
The parameter identifier contains the task or reply identifier
(AK) and the parameter number (PNU). Spontaneous mess
ages via bit 11 are not supported by the SPC200.
Byte 1 Byte 2
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Task or reply identifier
(AK)
Parameter number (PNU)
The parameter number (PNU) serves for identifying or ad
dressing the individual parameter (see section 5.3). The task
or reply identifier indicates the type of task or reply (see sec
tion 5.2.1).
5.2.1 Task identifiers, reply identifiers and fault numbers
The following table shows the task identifiers:
Task identifier
(AK)
Description Reply identifier
(positive)
0 No task 0
1, 2, 3, 4, 5
1)
C
20 ... + 70
C
Weight 80 g
Relativehumidity 95%, noncondensing
Field bus
Design
Transmissiontype
Protocol
Baud rate
Cable length (depending on baud rate and
cable type)
Loading capacity of positive power supply
(P5V) pin 6
RS 485, floating
Serial asynchronous, halfduplex
PROFIBUSDP (standard slave)
tested as per DIN 19245 parts 1 to 4;
EN 50170 vol. 2
9.6...12000 kbits/s, automatic baud rate
recognition
Up to 23.8 km
Max. 100 mA
CE symbol (declaration of conformity)
www.festo.com
In accordance with EU EMC Directive
Vibration and shock
Vibration
Shock
Tested to DIN/IEC 68, part 26
0,15mmpath at 10...58 Hz;
2 g acceleration at 58...150 Hz
Tested to DIN/IEC 68, part 227
30 g at 11ms duration;
5 shocks in each direction
1)
The component is intended for industrial use.
Further technical specifications concerning the SPC200 can
be found in the System Manual for the SPC200 type
P.BESPC200... or in the relevant supplementary description.
A. Technical appendix
A8 Festo P.BESPC200COMPDPEN en 0901c
Index
B1 Festo P.BESPC200COMPDPEN en 0901c
Appendix B
B. Index
B2 Festo P.BESPC200COMPDPEN en 0901c
B. Index
B3 Festo P.BESPC200COMPDPEN en 0901c
A
Abbreviations XI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Activate the test mode 44 . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Active NC record 519 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Active program 518 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Actual positions 18 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Address range 112 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
B
Basic structure for PROFIBUS 15 . . . . . . . . . . . . . . . . . . . . . .
Bit array A5 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Branch line, Connection via a branch line 39 . . . . . . . . . . . . .
C
Carry out fault quitting 451 . . . . . . . . . . . . . . . . . . . . . . . . . .
Connecting and display elements 14 . . . . . . . . . . . . . . . . . . .
Creating readiness to operate 444 . . . . . . . . . . . . . . . . . . . . .
D
Data types A3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Designated use VII . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Diagnosis
Devicerelated diagnosis 611 . . . . . . . . . . . . . . . . . . . . . . .
Diagnosis with WinPISA 65 . . . . . . . . . . . . . . . . . . . . . . . . .
Onthespot diagnosis 64 . . . . . . . . . . . . . . . . . . . . . . . . . .
Overview 63 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Structure of the slave diagnosis of the SPC200 68 . . . . . .
Diagnostic memory 513 . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Digital nominal value specification 18 . . . . . . . . . . . . . . . . . .
B. Index
B4 Festo P.BESPC200COMPDPEN en 0901c
DP identifiers
DP identifier for setpoint positions 421 . . . . . . . . . . . . . . .
DP identifiers for the actual positions 420 . . . . . . . . . . . . .
DP identifiers for the parameter channel 419 . . . . . . . . . .
DP identifiers for the Record Select mode 418 . . . . . . . . .
DP identifiers for the Start/Stop mode 417 . . . . . . . . . . . .
DP master (standard) 427 . . . . . . . . . . . . . . . . . . . . . . . . . . . .
F
Fault messages,
Structure of the 8figure fault messages 611 . . . . . . . . . .
Fault numbers 56 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Field bus cable, Specifications of the field bus cable 35 . . .
Fitting a module 25 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Flag (F) 516 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
FREEZE 414 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
G
GSD file 412 , 432 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
I
I/O control signals (overview) 45 . . . . . . . . . . . . . . . . . . . . . .
I/O signals 18 , 110 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Important user instructions IX . . . . . . . . . . . . . . . . . . . . . . . . .
Inputs 517 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Integer16 A3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Integer32 A5 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
L
List of abbreviations XIII . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
M
Manuals on the SPC200 XIV . . . . . . . . . . . . . . . . . . . . . . . . . . .
B. Index
B5 Festo P.BESPC200COMPDPEN en 0901c
N
Nominal value specification, Digital 18 . . . . . . . . . . . . . . . . .
O
Operating modes 17 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Opticalfibre cable 310 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Outputs 517 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
P
Parameter channel 18 , 53 , 54 . . . . . . . . . . . . . . . . . . . . . . .
Parameter identification (PKE) 54 . . . . . . . . . . . . . . . . . . . . .
Parameter identifier (PKE) 55 . . . . . . . . . . . . . . . . . . . . . . . . .
Parameter value (PWE) 54 . . . . . . . . . . . . . . . . . . . . . . . . . . .
Parameters 511 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Pictograms X . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Position register 514 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
PROFIBUSDP interface 34 . . . . . . . . . . . . . . . . . . . . . . . . . . .
Connecting the bus cable 37 . . . . . . . . . . . . . . . . . . . . . . .
R
Register (R) 515 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Removing a module 26 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Reply identifiers 56 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Response monitoring 436 . . . . . . . . . . . . . . . . . . . . . . . . . . . .
B. Index
B6 Festo P.BESPC200COMPDPEN en 0901c
S
Sequence plans 444 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Sequence plans for the programmer 444 . . . . . . . . . . . . . . .
Service VIII . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Setpoint positions 18 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Status task A, B 520 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Subindex (IND) 54 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Symbol files 412 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
SYNC 415 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
T
Target group VIII . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Task identifiers 55 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Technical specifications A7 . . . . . . . . . . . . . . . . . . . . . . . . . . .
Terminating resistor
Plug with integrated terminating resistor 36 . . . . . . . . . . .
Structure 38 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Text markings X . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
U
Unsigned16 A4 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Unsigned32 A4 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .