Sie sind auf Seite 1von 43

Programmable

Safety Systems PSS-Range


ST SB DeviceNet-Slave
Software

Operating Manual Item No. 19 600-03

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

Standard Function Block

3-1

SB235: DevNet-S, DeviceNet-Slave Connection

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

DeviceNet-Slave Operating Manual

Contents

Data Blocks

4-1

DB_O: Data Block for Send Data


DB_I: Data Block for Receive Data
DB_S: Data Block for Status Data

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

Commissioning Sequence (Bus-Master Configuration)


EDS (Electronic Data Sheet)

Examples

Settings with DeviceNet Manager


Calling-up in OB001
Listing

6-2
6-4
6-6

Appendix

7-1

Changes to the operating manual

7-1

DeviceNet-Slave Operating Manual

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.

Fig. 1-1: Structure of the PSS

Knowledge of the safety regulations for the particular area of application is


assumed.
To fully understand this manual you will need to be conversant with the
information found in the general documentation for the Pilz range of safety
systems (System Description, Installation Manual, Programming Device
and Programming Manual)
The standard function block SB235 from the software package is used to
set parameters for the PSS DN-S module or the PSS1 DN-S module as
Device Net-bus subscribers (Slave) and for communicating on the
DeviceNet. The SB runs in the standard section of the PSS.
The DeviceNet Standard defines different methods for data transport. The
PSS DN-S or PSS1 DN-S module supports the exchange of I/O
information via polling. This must be taken into account when setting to the
master module.

DeviceNet-Slave Operating Manual

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

DeviceNet-Slave Operating Manual

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.

DeviceNet-Slave Operating Manual

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

DeviceNet-Slave Operating Manual

Range / Intended Application


Range
The software package consists of:
one disk and
one operating manual: ST SB DeviceNet-Slave Software
The disk contains
the standard function block SB235
the Electronic Data Sheet EDS
one sample program
The software can be used for either module.

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.

DeviceNet-Slave Operating Manual

2-1

Range / Intended Application


Standard Function Block SB235
SB235 is for linking the PSS module to the DeviceNet. The SB235 must
be used in the standard section of the PSS.
The SB235 has the following functions:
DeviceNet-Slave connection
Transfer of user data
permitted word range: 0 ... 32 words (can be set through parameters)
Automatic ready position of a status word on the Master side
Automatic ready position from network and module status.

2-2

DeviceNet-Slave Operating Manual

Standard Function Block


SB235: DevNet-S, DeviceNet-Slave Connection
Block Header

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:

Modules start address (Offset).


The start address may be 0 or a multiple of 1024 (max.
30720).
The module occupies 1024 words from the given start address.
These words may not be used or modified by the application
program.
Format: fixed point number / word

OLen:

Length of send data (PSS Master)


Permitted value range: 1 ... 33
Format: fixed point number / word
INFORMATION
The first word during data transfer is reserved for the status
word. This means that when setting parameters for OLen
Length of send data = Length of user data + 1 status word

DeviceNet-Slave Operating Manual

3-1

Standard Function Block

3-2

SB235

DB_O:

Data block for the send data (PSS Master)


Name of DB: DB_O
Valid input (DB-number): 10 ... 255
Format: data block
(further information can be found in the section DB_O: Data
Block for Send Data on page 4-2).

DW_O:

First data word in the send-DB (DB_O)


After this data word, the data from the send data block is sent
to the Master.
Valid input: 1 ... 1023
Format: fixed point number / word

ILen:

Length of the receive data (PSS Master)


Permitted value range: 0 ... 32
Format: fixed point number / word

DB_I:

Data block for the receive data (PSS Master)


Name of the DB: DB_I
Valid input (DB-number): 10 ... 255
Format: data block
(further information can be found in the section DB_I: Data
Block for Receive Data on page 4-4).

DW_I:

First data word in the receive-DB (DB_I)


After this data word, the data which will be sent from the Master is entered in the receive data block.
Valid input: 0 ... 1023
Format: fixed point number / word

DB_S:

Data block for status information (DB_S)


The status data is made available by the module.
Name of the DB: DB_S
Valid input (DB-number): 10 ... 255
Format: data block
(further information can be found in the section DB_S: Data
Block for Send Data on page 4-5).

DW_S:

First data word in the DB for status data (DB_S)


After this data word, the status data is entered in DB_S .
Valid input: 0 ... 1009
Format: fixed point number / word

DeviceNet-Slave Operating Manual

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)

Error Messages in the Output Parameter ERR


Error Messages in the High-Byte
Bit 08 = 1: Input parameter BASE does not lie within the permitted value
range (permitted value range: 0 ... 31744)
Remedy: change input parameter and transfer to the PSS,
switch off the PSS (switch off voltage applied) and switch on
again.
Bit 09 = 1: Input parameter OLen does not lie within the permitted value
range (permitted value range: 1 ...33)
Remedy: change the input parameter and transfer it to the
PSS, switch off the PSS (switch off voltage applied) and
switch on again.
Bit 10 = 1: Input parameter DW_O does not lie within the permitted value
(permitted value range: 1 ... 1023)
Remedy: change the input parameter and transfer to the PSS,
switch off the PSS (switch off voltage applied) and switch on
again.
Bit 11 = 1: Input parameter ILen does not lie within the permitted value
range (permitted value range: 0 ... 32)
Remedy: change the input parameter and transfer to the PSS,
switch off the PSS (switch off voltage applied) and switch on
again.
Bit 12 = 1: Input parameter DW_I does not lie within the permitted value
range (permitted value range: 0 ... 1023)
Remedy: change the input parameter and transfer to the PSS,
switch off the PSS (switch off voltage applied) and switch on
again.

DeviceNet-Slave Operating Manual

3-3

Standard Function Block

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

Error Messages in the Low-Byte


Network status
01hex:

Dup-Mac-ID Test not carried out yet


Remedy: - none-

02hex:

Online, no connection in the established state


Remedy: - none-

04hex:

Connection in the Timeout


Remedy: check bus structure and the settings at the Master.

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:

Module not configured


Remedy: switch off the PSS (switch off voltage applied) and
switch on again. If the error occurs again, change the module.

53hex:

Semaphor-conflict
Remedy: switch off the PSS (switch off voltage applied) and
switch on again. If the error occurs again, change the module.

DeviceNet-Slave Operating Manual

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:

Watchdog has triggered a reset


Remedy: switch off the PSS (switch off the voltage to the PSS)
a switch on again. If an error occurs again, change the module.

DeviceNet-Slave Operating Manual

3-5

Standard Function Block

SB235

Reserved Flag Range


The standard function block uses different flag words to store variable
values. The contents of these flag words are changed continually by
SB235.
INFORMATION
Do not use flags from the reserved flag range for your own applications.
Under no circumstances should you use the flags
- as input / output parameters for standard function blocks
- as global parameters
Malfunctions may occur if you use the flags from the reseved flag range.
The following flag words are part of the reserved flag range:
MW 63.16
MW 63.00
MW 62.16
MW 62.00

3-6

DeviceNet-Slave Operating Manual

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

Fig.: 3-7-1: Structure of a status word

Meaning of the Data-bits in the status word:


Bit No.

Signal Status

00

1
01 ... 15

DeviceNet-Slave Operating Manual

Meaning
The PSS standard section is in the STOP
condition
The PSS standard section is in the
RUN condition

Not occupied / assigned

3-7

Standard Function Block

SB235

Notes

3-8

DeviceNet-Slave Operating Manual

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)

DeviceNet-Slave Operating Manual

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 =

Length of send data


(input parameter OLen)

1st DW of send data


(input parameter DW_O)

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

DeviceNet-Slave Operating Manual

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

DeviceNet-Slave Operating Manual

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

Length of receive data


(input parameter ILen)

first DW of receive data


(input parameter DW_I)

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

DeviceNet-Slave Operating Manual

DB_S: Data Block for Status Data


DB_S is the data block in which the PSS-module makes available status
data for diagnostic purposes. DB_S is written automatically by SB235.
DB_S must be supplied during configuration.
Der DB_S must have READ/WRITE status.
The min. block length of DB_S can be calculated using the formula:
Block length =

first DW of the status information


+ 14
(input parameter DW_S)

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

Status information with the


following parameters

000Chex

Number of
parameter in words

Number always fixed

XXXXhex

1st parameter

XXXX Network status

DeviceNet-Slave Operating Manual

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

Connection "Time out"

0005hex

Critical error

4-5

Data Blocks

DW

Contents

Meaning
Basic

XXXXhex

2nd parameter

Special
XXXX Modules status
0000hex

Not present

0050hex

Self check error

0051hex

Module not
configured

0052hex

Module ready
(no error)

0053hexhex Semaphor conflict

4-6

0054hex

Recoverable error

0055hex

Critical error

0056hex

Station address
outside the
permitted range
(0 ... 63) or
invalid baud rate

XXXXhex

3rd parameter

XXXX Ready for


command
0000hex = Not ready
5555hex = Status after the
run-up
AAAAhex = Ready

XXXXhex

4th parameter

XXXX At the switch the set


station address in hex,
(with run-up read in
station address)

XXXXhex

5th parameter

XXXX At the switch the set


station address in hex,
(current station address)

XXXXhex

6th parameter

XXXX Baud rate coded


0000hex = 125 kBaud
0001hex = 250 kBaud
0002hex = 500 kBaud

DeviceNet-Slave Operating Manual

DW

Contents

Meaning
Basic

Special

XXXXhex

7th parameter

Series number high-word

XXXXhex

8th parameter

Series number low-word

10

XXXXhex

9th parameter

Send data length in words


(Slave Master)

11

XXXXhex

10th parameter

Receive data length in words


(Master Slave)

12

XXXXhex

11th parameter

XXXXhex Command

13

XXXXhex

12th parameter

0001hex

Poll status

0002hex

Initialising
I/O data length

XXXX Error number


0000hex

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.

DeviceNet-Slave Operating Manual

4-7

Data Blocks

Notes

4-8

DeviceNet-Slave Operating Manual

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.

Commissioning Sequence (Module)


Hardware
Install the module as described in the DeviceNet-Slave - Hardware
Operating Manual.
On the module, set the:
- Baud rate
- Station address
Connect the module with DeviceNet.

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).

DeviceNet-Slave Operating Manual

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

DeviceNet-Slave Operating Manual

Commissioning Sequence (Bus-Master Configuration)


The following text describes the configuration of the module with the help
of DeviceNet Managers from Allen Bradley. With DeviceNet Manager from
other manufacturers differences may occur.
EDS (Electronic Data Sheet)
It is possible to configure the module via the network. The standard states
that to configure a unit via the network specific configuration data must be
available.
The data for the module from Pilz is stored in an EDS file. This EDS file
contains, amongst other things, the following data:
Vendor code :
181
Product type :

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

(EDS file directory)

12.TYP
generic.bmp
80.COD
1.eds
device.bmp
SB235

(sample directory)

Fig. 5-3-1: Structure of the directory

DeviceNet-Slave Operating Manual

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

DeviceNet-Slave Operating Manual

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.

DeviceNet-Slave Operating Manual

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.

Fig. 6-2-1: Settings with the DeviceNet Manager

6-2

DeviceNet-Slave Operating Manual

Fig. 6-3-1: Setting with the DeviceNet Manager

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.

DeviceNet-Slave Operating Manual

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) :

Input parameter O_Len


Length of send data (PSS Master):
10 words user data + 1 status word
(see the section entitled Status Word on page 3-7).
Please note:
One word for the status information must be added to the actual send
data.
Input parameter DB_O
Send data (module Master) can be found in DB020
Input parameter DW_O
The 1st word of the send data (module Master) can be found in
DB020/DW0001
Input parameter ILen
Length of the receive data (module Master):
2 words user data
Input parameter DB_I
Receive data (module Master) can be found in DB030
Input parameter DW_I
The 1st word of the receive data (module Master) can be found in
DB030/DW0001
Input parameter DB_S
Status data can be found in DB040
Input parameter DW_S
The 1st word of the status range can be found in DB040/DW0000
INFORMATION
It is possible to use a single DB in which the data from DB_O, DB_I and
DB_S is contained. Please note: in this case the data range must not be
exceeded.
6-4

DeviceNet-Slave Operating Manual

Meaning of the Output Parameter


Output parameter ERR
The error messages will be stored in MW10.00.
INFORMATION
The DeviceNet module in this example is in slot 0.

DeviceNet-Slave Operating Manual

6-5

Examples
Listing
OB001
MAIN

6-6

: Segment 02

Cyclical operation of the input and


output data

: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

Copy output data in the data block DB_O

: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

In this example the input words


EW 02.00 - EW 04.16,
the flag words MW 01.00, MW 01.16,
MW 80.00 and MW 80.16 are sent to the
Master

Copy input data (PSS Master) in


flag words

SB 235

DeviceNet-Slave Operating Manual

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

This network is run through once


during a cold start or new start
: Segment 01
DB 004
KH BB20
DW 0020
DB 005

:L
:T
:
:A
:L
:T
:
:T

KF 000000
DW 0000

:T
:T
:T
:T

DW 0002
DW 0003
DW 0004
DW 0005

DeviceNet-Slave Operating Manual

Enter module code on slot 0

Enter the modules start address (Offset)


on slot 0

DB 020
KH 0000
DW 0000

Pre-assign reserved data words with 0

DW 0001

Pre-assign output data (PSS Master)


with 0

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

Pre-assign input data (PSS Master)


with the 0

Pre-assign data blocks for status


information with 0

DeviceNet-Slave Operating Manual

Appendix

Changes to the operating manual


Changes from Version I to Version II
Old
page

New
page

Change

3-2

3-2

DB_O, DB_I und DB_S have the format data block

4-2

4-2

INFO: Initialisation is carried out in OB020

5-1

5-1

Initialisation is carried out in OB020

6-6

6-6

Listing

Changes in Version 19 600-03


Old
page

New
page

Change

4-3

4-3

Input word 1 ... 33

DeviceNet-Slave Operating Manual

7-1

Appendix

Notes

7-2

DeviceNet-Slave Operating Manual

Notes

DeviceNet-Slave Operating Manual

7-3

Appendix

Notes

7-4

DeviceNet-Slave Operating Manual

In many countries we are


represented by our subsidiaries
and sales partners.
Please refer to our Homepage
for further details or contact our
headquarters.

Pilz GmbH & Co. KG


Sichere Automation
Felix-Wankel-Strae 2
73760 Ostfildern, Germany
Telephone: +49 711 3409-0
Telefax:
+49 711 3409-133
E-Mail:
pilz.gmbh@pilz.de

www

www.pilz.com

Technical support
+49 711 3409-444

19 600-03, 2007-01 Printed in Germany

...

Das könnte Ihnen auch gefallen