Beruflich Dokumente
Kultur Dokumente
All rights to this documentation are reserved by Pilz GmbH & Co. KG. Copies may be made
for internal purposes.
Suggestions and comments for improving this documentation will be gratefully received.
The names of products, goods and technologies used in this documentation are registered
trademarks of the respective companies. Automation Workbench, Pilz, PIT, PMI,
PNOZ, Primo, PSS, SafetyBUS p are registered trademarks of Pilz GmbH & Co. KG.
Contents
Introduction
1-1
Function
Differences in Modules
Definition of Symbols
Terminology
Overview of Manual
1-1
1-2
1-2
1-3
1-4
Range/Intended Application
2-1
Range
Intended Application
Modules
SB235 Standard Function Block
2-1
2-1
2-1
2-2
3-1
3-1
3-1
3-1
3-3
3-3
3-6
3-7
Block Header
Input Parameters
Output Parameters
Error Messages in Output Parameter ERR
Reserved Flag Range
Status Word
Contents
Data Blocks
4-1
4-2
4-4
4-5
Commissioning
5-1
Configuration
Commissioning Sequence (Module)
5-1
5-1
5-1
5-1
5-1
5-3
Hardware
Software
Examples
6-2
6-4
6-6
Appendix
7-1
7-1
Introduction
This manual describes the software of DeviceNet-Slave modules.
The hardware is described in a separate manual, which is included with
the module (Order no.: 301 152 for PSS 3000 PSS DN-S,
Order no. 301 252 for PSS1 3000 PSS DN-S).
Function
Pilz programmable safety systems (PSS) have been designed for use in
plant and machinery safety circuits. They consist of a failsafe (FS) section
and a standard (ST) section.
This manual contains all the information required for the proper application
of the standard function block SB235 within the standard section of the
PSS.
PSS
Control andvon
monitoring of
Steuerung
safety-related
sicherheitsgerichteten
tasks
Aufgaben
e.g.:
circuits
z.
B.:E-STOP
NOT-AUS
usw. etc.
Fail-safeFailsafe
Section
Teil
StandardStandard
Section
Teil
Steuerung
Control of und
Regelung
von
non-safety-related
nicht
tasks sicherheitsgerichteten
Aufgaben
e.g.: diagnostics etc.
z. B.: Diagnose usw.
1-1
Introduction
Modules
There are individual modules for the PSS 3000 and PSS 3100.
The PSS DN-S module may only be used with the PSS 3000.
The PSS1 DN-S module may only be used with the PSS 3100.
There is no difference in software for the two modules and therefore it can
be used for both PSS DN-S and PSS 1 DN-S.
1-2
Definition of Symbols
Information in this manual which is of particular importance can be
identified as follows:
NOTICE
This describes a situation in which the unit(s) could be damaged and also
provides information on preventive measures which can be taken.
INFORMATION
This gives advice on applications and provides information on special
features, as well as highlighting areas within the text which are of
particular importance.
Terminology
Throughout this manual the description module will be used if the
description is valid for all module versions.
If the description relates to a specific module, then the product name for
that module will be used (e.g. PSS DN-S).
Throughout this manual, the term PSS will be used as an abbreviation
for both the PSS 3000 and PSS 3100.
If the description relates to a specific system, then the product name for
that system will be used (e.g. PSS 3000).
In this manual, data transfer is regarded as viewed from the PSS:
Input data / receive data is sent from the Master to the PSS (Slave).
Output data / send data is sent form the PSS (Slave) to the Master.
1-3
Introduction
Overview of Manual
This manual is divided into 6 chapters:
Chapter 1 provides an overview of the application areas for the software.
Chapter 2 contains the intended application and important safety
information which must be read.
Chapter 3 provides information on parameters and their functions with the
standard function block.
Chapter 4 describes which data blocks are required and how the data
blocks must be assigned.
Chapter 5 describes the commissioning of the module using the software.
Chapter 6 contains a sample program.
1-4
Intended Application
Modules
The PSS DN-S module may only be used in the standard bus of the
PSS 3000.
The PSS1 DN-S module may only be used in the standard bus of the
PSS 3100.
The module must be incorporated within the DeviceNet as a Slave.
INFORMATION
The modules are designed for use in non-safety-related applications only.
The modules are designed for use in an industrial environment. Problems
of interference could occur if used in a domestic environment.
2-1
2-2
SB235
DevNet-S
W - BASE
W - OLen
D - DB_O
W - DW_O
W - ILen
D - DB_I
W - DW_I
D - DB_S
W - DW_S
ERR - W
Input Parameters
BASE:
OLen:
3-1
3-2
SB235
DB_O:
DW_O:
ILen:
DB_I:
DW_I:
DB_S:
DW_S:
Output Parameters
ERR:
Error messages
ERR = 0: no error found
Format: word
High-Byte
Low-Byte
Bit15 Bit14 Bit13 Bit12 Bit11Bit10 Bit09Bit08Bit07 Bit06 Bit05 Bit04 Bit03Bit02 Bit01Bit00
Fig.: 3-3-1: Structure of an output word (output parameter ERR)
3-3
SB235
Bit 13 = 1: Input parameter DW_S does not lie within the permitted value
range (permitted value range: 0 ... 1023)
Remedy: change input parameter and transfer to the PSS,
switch off the PSS (switch off voltage applied) and switch on
again.
Bit 14 = 1: Waiting for the end of initialisation
Remedy: check the bus structure, switch off the PSS (switch
off voltage applied) and switch on again.
Bit 15 = 1: Fatal error, defective module
Remedy: change the module
02hex:
04hex:
05hex:
Critical status
Remedy: check the bus structure and settings at the Master.
20hex:
Not available.
Module status
3-4
50hex:
Self-check error
Remedy: switch off the PSS (switch off voltage applied) and
switch on again. If the error occurs again, change the module.
51hex:
53hex:
Semaphor-conflict
Remedy: switch off the PSS (switch off voltage applied) and
switch on again. If the error occurs again, change the module.
54hex:
Recoverable error
Remedy: switch off the PSS (switch off voltage applied) and
switch on again. If the error occurs again, change the module.
55hex:
Critical error
Remedy: switch off the PSS (switch off voltage applied) and
switch on again. If the error occurs again, change the module.
56hex:
Station address does not lie within the permitted value range
(permitted value range: 0 ... 63)
or
invalid baud rate has been set
Remedy: switch offf the PSS (switch off voltage applied), set
the station address or baud rate on the module, switch on the
PSS again.
80hex:
Not available
81hex:
3-5
SB235
3-6
Status Word
The module creates a status word automatically. In this status word the
operating status (RUN/STOP) of the ST section of the PSS is passed on to
the Master. When sending data (PSS Master) this status word appears
as the first input word at the Master.
It is not possible to access the status word in the PSS (Slave).
High-Byte
Low-Byte
Bit15 Bit14 Bit13 Bit12 Bit11Bit10 Bit09Bit08Bit07 Bit06 Bit05 Bit04 Bit03Bit02 Bit01Bit00
x
x
x
x
x
x
x
x
x
x
x
x 1/0
x
x
x
Signal Status
00
1
01 ... 15
Meaning
The PSS standard section is in the STOP
condition
The PSS standard section is in the
RUN condition
3-7
SB235
Notes
3-8
Data Blocks
For data exchange via DeviceNet different data blocks must be stored in
the PSS.
The following data blocks are:
DB_O
Data block for send data (PSS Master)
DB_I
Data block for receive data (PSS Master)
DB_S
Data block for status data (diagnostic information)
4-1
Data Blocks
DB_O: Data Block for Send Data
DB_O is the data block from where the data from the PSS (Slave) is sent
to the Master.
DB_O must be supplied during configuration.
DB_O must have READ/WRITE-Status.
The min. block length of DB_O can be calculated using the formula:
Block
length =
In data block DB_O, data word DW0000 is for cycle control of the SB
and is therefore reserved. DW0000 is not transferred during data
transfer.
INFORMATION
- Do not use this reserved data word for any other reason as it can lead
to malfunctions.
- Initialise DW0000 with KH0000 during configuration
Initialisation is carried out in OB020 .
(Please refer to the sections Commissioning Procedure (Module) on
page 5-1 and Listing on page 6-6.)
Description of DB_O
This description is valid for setting the input parameter DW_O with
KF000001 (see also the section Input Parameters from page 3-1).
The status word is created independently by the module. It appears
always as the first input word at the Master when sending data
(also see the section Status Word on page 3-7).
4-2
Master
Module
PSS (Slave)
Data transfer
Status word (RUN/STOP)
DB_O
(output data)
Data word
Contents
reserved
Input data
Input word
32
33
Contents
status word
Fig.: 4-1-1: Send data PSS (Slave) when the input parameter DW_O = 1
4-3
Data Blocks
DB_I: Data Block for Receive Data
DB_I is the data block where data is stored in the PSS which has been
sent from the Master.
DB_I must be supplied during configuration.
DB_I must have READ/WRITE status.
The min. block length of DB_I can be calculated using the formula:
Block
length
Description of DB_I
This description is valid for setting the input parameter DW_I with
KF000001 (see also the section Input Parameters on page 3-1).
Module
Master
PSS (Slave)
DB_I
(Input data)
Data word
Contents
Output data
Data transfer
Output word
32
32
Contents
Fig.: 4-2-1: Receive data PSS (Slave) when the input parameter DW_ I = 1
4-4
Description of DW_S
This description is valid for setting the input parameter DW_S with
KF000000 (see also the section Input Parameters on page 3-1).
DW
Contents
Meaning
Basic
Special
0001hex
Reference
000Chex
Number of
parameter in words
XXXXhex
1st parameter
0000hex
not available
0001hex
"Dup-Mac-ID Test"
not yet carried out
0002hex
Online,
no connection in the
"established state"
0003hex
Online,
after successful
"DUP-Mac-ID Test"
and at least one
connection in the
"established state"
0004hex
0005hex
Critical error
4-5
Data Blocks
DW
Contents
Meaning
Basic
XXXXhex
2nd parameter
Special
XXXX Modules status
0000hex
Not present
0050hex
0051hex
Module not
configured
0052hex
Module ready
(no error)
4-6
0054hex
Recoverable error
0055hex
Critical error
0056hex
Station address
outside the
permitted range
(0 ... 63) or
invalid baud rate
XXXXhex
3rd parameter
XXXXhex
4th parameter
XXXXhex
5th parameter
XXXXhex
6th parameter
DW
Contents
Meaning
Basic
Special
XXXXhex
7th parameter
XXXXhex
8th parameter
10
XXXXhex
9th parameter
11
XXXXhex
10th parameter
12
XXXXhex
11th parameter
XXXXhex Command
13
XXXXhex
12th parameter
0001hex
Poll status
0002hex
Initialising
I/O data length
No error
0001hex
Command not
carried out,
incorrect parameter
0002hex
Command not
accepted
INFORMTION
DB_S will be written independently by SB235. DB_S provides additional
information to the user which can be used for diagnostic purposes.
4-7
Data Blocks
Notes
4-8
Commissioning
Configuration
Before commissioning determine the following values:
Number of inputs and outputs in words
Modules station address
(see the operating manual for DeviceNet-Slave - Hardware)
Baud rate of the whole Bus system.
Software
A sample program is supplied with the software. It can be found on the
disk in the directory SB235 (see Fig. 5-3-1: Structure of the directory).
For ease and efficiency the sample program can be loaded into the user
program and configured as per the application.
Otherwise:
To ensure that the module is initialised correctly when the PSS is cold or
warm started, create a start-up organisation block OB 020 and assign all
the necessary parameters to it (see sample program in Chapter 6, under
Listing).
Enter the module code for the corresponding slot.
In DB005 enter the Offset for the free address area (refer also to the
PSS ST System Description and the example in the section Listing on
page 6-6).
5-1
Commissioning
Assign the value 0 to the reserved data word DW0000 in DB_0 (see the
example in the section Listing on page 6-6).
We recommend data words DB_0, DB_I and DB_S be assigned with 0 at
the beginning during initialisation (see the example in the section
Listing on page 6-6).
Ensure a cyclical ready of the input and output data (see the example in
the section Listing on page 6-6).
Ensure a cyclical call-up of SB235. SB235 must be called up once only in
each PSS cycle (see the example in the section Listing on page 6-6).
Transfer the following blocks to the PSS:
- OB001
- OB020
- SB235
- the data blocks DB004, DB005, DB_O, DB_I and DB_S
- plus any additional blocks required by the user.
For the transfer of the modules initialisation values, switch off the PSS
(switch off voltage applied) and switch on again (re-apply voltage). Further information on the modules settings can be found in the DeviceNetSlave - Hardware Manual.
The PSS with the module is now ready.
5-2
12
Product code :
80
The EDS file is a component part of the package supplied. The structure of
the directory is configured to the requirements of the DeviceNet Manager
from Allen Bradley.
a:\
181.VND
12.TYP
generic.bmp
80.COD
1.eds
device.bmp
SB235
(sample directory)
5-3
Commissioning
Copy the entire directory 181.VND in the existing structure in the
EDS-directory(...\EDS\...) of DeviceNet Manager from Allen Bradley.
When using a DeviceNet Manager from a different manufacturer the EDS
file may need to be copied into another directory. Any information given
by the other manufacturer should be taken into account
Configuration can be continued as per usual (refer also to the section
Settings with DeviceNet Manager on page 6-2).
5-4
Examples
The following example should help you to set parameters for SB235 and to
link it into your application program. It is also necessary to define, from the
outset, some peripheral settings.
These settings and parameters are valid as sample settings. It is however
possible that for your own applications other settings and parameters are
required.
The sample program can be found on the disk supplied in the directory
SB235.
6-1
Examples
Settings with DeviceNet Manager
In this example the DeviceNet Manager from Allen Bradley has been used.
The settings have been made using the following values:
Exchange of I/O-information via polling ("polled")
Please note:
The module from Pilz supports exclusively this type of data exchange.
Data length during transfer
- send data (PSS Master):
2 words (4 Bytes)
- receive data (PSS Master):
10 words + 1 word status information (22 Bytes)
The polling should be carried out in each poll cycle.
6-2
All additional settings which must be made with DeviceNet Manager are
specific and dependent on the application.
Further information is available in documentation for DeviceNet or
DeviceNet Manager.
6-3
Examples
Calling up in OB001
The following listing shows how calling up SB235 in OB001 can look. The
parameters set here are used purely as example settings. For individual
applications other parameter settings can be created.
The module is initialised in OB 020.
Meaning of the Input Parameters
Input parameter BASE
Modules start address (Offset) :
6-5
Examples
Listing
OB001
MAIN
6-6
: Segment 02
:A
:L
:T
:L
:T
:L
:T
:L
:T
:L
:T
:L
:T
:L
:T
:L
:T
:L
:T
:L
:T
:
:A
DB 020
EW 02.00
DW 0001
EW 02.16
DW 0002
EW 03.00
DW 0003
EW 03.16
DW 0004
EW 04.00
DW 0005
EW 04.16
DW 0006
MW 001.00
DW 0007
MW 001.16
DW 0008
MW 080.00
DW 0009
MW 080.16
DW 0010
:L
:T
:L
:T
:
:CAL
DW 0001
MW 100.00 .COMMW_01 Communication flag word, fsst
DW 0002
MW 100.16 .COMMW_02 Communication flag word, fsst
DB 030
SB 235
SB235
DevNet-S
KF 000000
KF 000011
DB 020
KF 000001
KF 000002
DB 030
KF 000001
DB 040
KF 000000
W - BASE
W - OLen
D - DB_O
W - DW_O
W - ILen
D - DB_I
W - DW_I
D - DB_S
W - DW_S
ERR - W
-MW 010.00 .Error
:
BS_ENDE: Segment 01
:BE
OB020
INIT
:A
:L
:T
:
:A
:L
:T
:
:A
:L
:T
:
:T
KF 000000
DW 0000
:T
:T
:T
:T
DW 0002
DW 0003
DW 0004
DW 0005
DB 020
KH 0000
DW 0000
DW 0001
6-7
Examples
6-8
:T
:T
:T
:T
:T
:
:A
DW 0006
DW 0007
DW 0008
DW 0009
DW 0010
:L
:T
:T
:T
:
:A
KH 0000
DW 0000
DW 0001
DW 0002
:L
:T
:T
:T
:T
:T
:T
:T
:T
:T
:T
:T
:T
:T
:T
:BE
KH 0000
DW 0000
DW 0001
DW 0002
DW 0003
DW 0004
DW 0005
DW 0006
DW 0007
DW 0008
DW 0009
DW 0010
DW 0011
DW 0012
DW 0013
DB 030
DB 040
Appendix
New
page
Change
3-2
3-2
4-2
4-2
5-1
5-1
6-6
6-6
Listing
New
page
Change
4-3
4-3
7-1
Appendix
Notes
7-2
Notes
7-3
Appendix
Notes
7-4
www
www.pilz.com
Technical support
+49 711 3409-444
...