Upload
maickits
View
218
Download
0
Embed Size (px)
Citation preview
7/23/2019 19600_03
http://slidepdf.com/reader/full/1960003 1/43
ST SB DeviceNet-Slave
Software
Programmable
Safety Systems PSS®-Range
Operating Manual – Item No. 19 600-03
7/23/2019 19600_03
http://slidepdf.com/reader/full/1960003 2/43
7/23/2019 19600_03
http://slidepdf.com/reader/full/1960003 3/43
DeviceNet-Slave Operating Manual 1
Contents
Introduction 1-1
Function 1-1
Differences in Modules 1-2
Definition of Symbols 1-2
Terminology 1-3
Overview of Manual 1-4
Range/Intended Application 2-1
Range 2-1
Intended Application 2-1
Modules 2-1SB235 Standard Function Block 2-2
Standard Function Block 3-1
SB235: DevNet-S, DeviceNet-Slave Connection 3-1
Block Header 3-1
Input Parameters 3-1
Output Parameters 3-3
Error Messages in Output Parameter ERR 3-3
Reserved Flag Range 3-6
Status Word 3-7
7/23/2019 19600_03
http://slidepdf.com/reader/full/1960003 4/43
2 DeviceNet-Slave Operating Manual
Contents
Data Blocks 4-1
DB_O: Data Block for Send Data 4-2
DB_I: Data Block for Receive Data 4-4
DB_S: Data Block for Status Data 4-5
Commissioning 5-1
Configuration 5-1
Commissioning Sequence (Module) 5-1
Hardware 5-1
Software 5-1
Commissioning Sequence (Bus-Master Configuration) 5-1
EDS (Electronic Data Sheet) 5-3
Examples
Settings with DeviceNet Manager 6-2
Calling-up in OB001 6-4
Listing 6-6
Appendix 7-1
Changes to the operating manual 7-1
7/23/2019 19600_03
http://slidepdf.com/reader/full/1960003 5/43
DeviceNet-Slave Operating Manual 1-1
This manual describes the software of DeviceNet-Slave modules.The hardware is described in a separate manual, which is included withthe 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) sectionand a standard (ST) section.This manual contains all the information required for the proper applicationof the standard function block SB235 within the standard section of thePSS.
Introduction
Fig. 1-1: Structure of the PSS
Steuerung vonsicherheitsgerichtetenAufgabenz. B.: NOT-AUS usw.
Steuerung undRegelung vonnicht sicherheitsgerichtetenAufgabenz. B.: Diagnose usw.
Fail-safe-
Teil
Standard-
Teil
PSS
Failsafe
Section
Standard
Section
Control and monitoring ofsafety-relatedtaskse.g.: E-STOP circuits etc.
Control ofnon-safety-relatedtaskse.g.: diagnostics etc.
Knowledge of the safety regulations for the particular area of application isassumed.To fully understand this manual you will need to be conversant with the
information found in the general documentation for the Pilz range of safetysystems (System Description, Installation Manual, Programming Deviceand 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 asDevice 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. ThePSS DN-S or PSS1 DN-S module supports the exchange of I/Oinformation via polling. This must be taken into account when setting to themaster module.
7/23/2019 19600_03
http://slidepdf.com/reader/full/1960003 6/43
Introduction
1-2 DeviceNet-Slave Operating Manual
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.
7/23/2019 19600_03
http://slidepdf.com/reader/full/1960003 7/43
DeviceNet-Slave Operating Manual 1-3
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 alsoprovides information on preventive measures which can be taken.
INFORMATION
This gives advice on applications and provides information on specialfeatures, as well as highlighting areas within the text which are ofparticular 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 forthat module will be used (e.g. PSS DN-S).
• Throughout this manual, the term “PSS” will be used as an abbreviationfor both the PSS 3000 and PSS 3100.
If the description relates to a specific system, then the product name forthat 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.
7/23/2019 19600_03
http://slidepdf.com/reader/full/1960003 8/43
Introduction
1-4 DeviceNet-Slave Operating Manual
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 safetyinformation which must be read.
Chapter 3 provides information on parameters and their functions with thestandard function block.
Chapter 4 describes which data blocks are required and how the datablocks must be assigned.
Chapter 5 describes the commissioning of the module using the software.
Chapter 6 contains a sample program.
7/23/2019 19600_03
http://slidepdf.com/reader/full/1960003 9/43
DeviceNet-Slave Operating Manual 2-1
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 thePSS 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.
Range / Intended Application
7/23/2019 19600_03
http://slidepdf.com/reader/full/1960003 10/43
Range / Intended Application
2-2 DeviceNet-Slave Operating Manual
Standard Function Block SB235
SB235 is for linking the PSS module to the DeviceNet. The SB235 mustbe 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.
7/23/2019 19600_03
http://slidepdf.com/reader/full/1960003 11/43
DeviceNet-Slave Operating Manual 3-1
Standard Function Block
SB235: DevNet-S, DeviceNet-Slave Connection
Block Header
Input Parameters
• BASE : Module’s 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 applicationprogram.
Format: fixed point number / word
• OLen : Length of send data (PSS→ Master)Permitted value range: 1 ... 33Format: fixed point number / word
INFORMATION
The first word during data transfer is reserved for the statusword. This means that when setting parameters for OLen
Length of send data = Length of user data + 1 status word
SB235DevNet-S
W - BASEW - OLenD - DB_OW - DW_O
W - ILenD - DB_IW - DW_ID - DB_SW - DW_S
ERR - W
7/23/2019 19600_03
http://slidepdf.com/reader/full/1960003 12/43
Standard Function Block SB235
3-2 DeviceNet-Slave Operating Manual
• DB_O : Data block for the send data (PSS→ Master)Name of DB: DB_OValid input (DB-number): 10 ... 255Format: data block
(further information can be found in the section “DB_O: DataBlock 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 sentto the Master.
Valid input: 1 ... 1023Format: fixed point number / word
• ILen : Length of the receive data (PSS← Master)Permitted value range: 0 ... 32Format: 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 ... 255Format: data block
(further information can be found in the section “DB_I: DataBlock 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 Ma-ster is entered in the receive data block.Valid input: 0 ... 1023Format: 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 ... 255Format: data block(further information can be found in the section “DB_S: DataBlock 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
7/23/2019 19600_03
http://slidepdf.com/reader/full/1960003 13/43
DeviceNet-Slave Operating Manual 3-3
Output Parameters
• ERR : Error messagesERR = 0: no error found
Format: word
High-Byte Low-Byte
Bit15Bit14 Bit12 Bit11Bit10Bit09Bit08Bit07Bit06 Bit04Bit03Bit02 Bit01Bit00Bit05Bit13
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 valuerange (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 thePSS, switch off the PSS (switch off voltage applied) andswitch 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 valuerange (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 onagain.
• Bit 12 = 1: Input parameter DW_I does not lie within the permitted valuerange (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 onagain.
7/23/2019 19600_03
http://slidepdf.com/reader/full/1960003 14/43
Standard Function Block SB235
3-4 DeviceNet-Slave Operating Manual
• Bit 13 = 1: Input parameter DW_S does not lie within the permitted valuerange (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 (switchoff voltage applied) and switch on again.
• Bit 15 = 1: Fatal error, defective moduleRemedy: change the module
Error Messages in the Low-Byte
Network status
• 01hex
: Dup-Mac-ID Test not carried out yetRemedy: - none-
• 02hex
: Online, no connection in the “established state”Remedy: - none-
• 04hex
: Connection in the TimeoutRemedy: check bus structure and the settings at the Master.
• 05hex
: Critical statusRemedy: check the bus structure and settings at the Master.
• 20hex
: Not available.
Module status
• 50hex: Self-check errorRemedy: 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) andswitch on again. If the error occurs again, change the module.
• 53hex
: Semaphor-conflictRemedy: switch off the PSS (switch off voltage applied) andswitch on again. If the error occurs again, change the module.
7/23/2019 19600_03
http://slidepdf.com/reader/full/1960003 15/43
DeviceNet-Slave Operating Manual 3-5
• 54hex
: Recoverable errorRemedy: switch off the PSS (switch off voltage applied) andswitch on again. If the error occurs again, change the module.
• 55hex
: Critical errorRemedy: switch off the PSS (switch off voltage applied) andswitch 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)
orinvalid baud rate has been setRemedy: switch offf the PSS (switch off voltage applied), setthe station address or baud rate on the module, switch on thePSS again.
• 80hex
: Not available
• 81hex
: Watchdog has triggered a resetRemedy: switch off the PSS (switch off the voltage to the PSS)a switch on again. If an error occurs again, change the module.
7/23/2019 19600_03
http://slidepdf.com/reader/full/1960003 16/43
Standard Function Block SB235
3-6 DeviceNet-Slave Operating Manual
Reserved Flag Range
The standard function block uses different flag words to store variablevalues. 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
7/23/2019 19600_03
http://slidepdf.com/reader/full/1960003 17/43
DeviceNet-Slave Operating Manual 3-7
Status Word
The module creates a status word automatically. In this status word theoperating status (RUN/STOP) of the ST section of the PSS is passed on tothe Master. When sending data (PSS → Master) this status word appearsas 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 Bit12 Bit11Bit10 Bit09Bit08Bit07Bit06 Bit04Bit03Bit02 Bit01Bit00Bit05Bit13
x x x x x x x x x x x x x 1/0xx
Fig.: 3-7-1: Structure of a status word
Meaning of the Data-bits in the status word:
Bit No. Signal Status Meaning
00 0 The PSS standard section is in the STOPcondition
1 The PSS standard section is in the
RUN condition
01 ... 15 x Not occupied / assigned
7/23/2019 19600_03
http://slidepdf.com/reader/full/1960003 18/43
Standard Function Block SB235
3-8 DeviceNet-Slave Operating Manual
Notes
7/23/2019 19600_03
http://slidepdf.com/reader/full/1960003 19/43
DeviceNet-Slave Operating Manual 4-1
Data Blocks
For data exchange via DeviceNet different data blocks must be stored inthe 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_SData block for status data (diagnostic information)
7/23/2019 19600_03
http://slidepdf.com/reader/full/1960003 20/43
Data Blocks
4-2 DeviceNet-Slave Operating Manual
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 of send data+
1st DW of send data length (input parameter OLen ) (input parameter DW_O )
• In data block DB_O, data word DW0000 is for cycle control of the SBand 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 leadto malfunctions.
- Initialise DW0000 with KH0000 during configurationInitialisation is carried out in OB020 .(Please refer to the sections “Commissioning Procedure (Module)” onpage 5-1 and “Listing” on page 6-6.)
Description of DB_O
This description is valid for setting the input parameter DW_O withKF000001 (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).
7/23/2019 19600_03
http://slidepdf.com/reader/full/1960003 21/43
DeviceNet-Slave Operating Manual 4-3
DB_O
(output data)
Fig.: 4-1-1: Send data PSS (Slave) when the input parameter DW_O = 1
Input word Contents
status word
Data word Contents
reserved
Data transfer
Status word (RUN/STOP)
Master
Input data
ModulePSS (Slave)
7/23/2019 19600_03
http://slidepdf.com/reader/full/1960003 22/43
Data Blocks
4-4 DeviceNet-Slave Operating Manual
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 of receive data + first DW of receive datalength (input parameter ILen ) (input parameter DW_I )
Description of DB_I
This description is valid for setting the input parameter DW_I withKF000001 (see also the section “Input Parameters” on page 3-1).
1
2
3
4
.
.
.
32
1
2
3
4
.
.
.
32
Module MasterPSS (Slave)
DB_I
(Input data)Output data
Data transfer
Fig.: 4-2-1: Receive data PSS (Slave) when the input parameter DW_ I = 1
Data word Contents Output word Contents
7/23/2019 19600_03
http://slidepdf.com/reader/full/1960003 23/43
DeviceNet-Slave Operating Manual 4-5
DB_S: Data Block for Status Data
DB_S is the data block in which the PSS-module makes available statusdata 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 withKF000000 (see also the section “Input Parameters” on page 3-1).
DW Contents Meaning Basic Special
0 0001hex Reference Status information with thefollowing parameters
1 000Chex
Number of Number always fixedparameter in words
2 XXXXhex
1st parameter XXXX Network status
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 oneconnection in the"established state"
0004hex
Connection "Time out"
0005hex
Critical error
7/23/2019 19600_03
http://slidepdf.com/reader/full/1960003 24/43
Data Blocks
4-6 DeviceNet-Slave Operating Manual
DW Contents Meaning
Basic Special
3 XXXXhex
2nd parameter XXXX Modules’ status
0000hex
Not present
0050hex
Self check error
0051hex
Module notconfigured
0052hex Module ready(no error)
0053hexhex
Semaphor conflict
0054hex
Recoverable error
0055hex
Critical error
0056hex
Station addressoutside thepermitted range(0 ... 63) or
invalid baud rate
4 XXXXhex
3rd parameter XXXX Ready for
command0000
hex= Not ready
5555hex
= Status after the run-up
AAAAhex
= Ready
5 XXXXhex
4th parameter XXXX At the switch the setstation address in “hex”,
(with run-up read instation address)
6 XXXXhex
5th parameter XXXX At the switch the set
station address in “hex”,(current station address)
7 XXXXhex
6th parameter XXXX Baud rate coded0000
hex= 125 kBaud
0001hex
= 250 kBaud0002
hex= 500 kBaud
7/23/2019 19600_03
http://slidepdf.com/reader/full/1960003 25/43
DeviceNet-Slave Operating Manual 4-7
DW Contents Meaning Basic Special
8 XXXXhex
7th parameter Series number high-word
9 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 XXXX
hex11th parameter XXXX
hex Command
0001hex
Poll status
0002hex
InitialisingI/O data length
13 XXXXhex
12th parameter XXXX Error number
0000hex
No error
0001hex
Command not
carried out,incorrect parameter
0002hex
Command notaccepted
INFORMTION
DB_S will be written independently by SB235. DB_S provides additionalinformation to the user which can be used for diagnostic purposes.
7/23/2019 19600_03
http://slidepdf.com/reader/full/1960003 26/43
Data Blocks
4-8 DeviceNet-Slave Operating Manual
Notes
7/23/2019 19600_03
http://slidepdf.com/reader/full/1960003 27/43
DeviceNet-Slave Operating Manual 5-1
Configuration
Before commissioning determine the following values:
• Number of inputs and outputs in words
• Module’s 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 thedisk 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 userprogram and configured as per the application.
Otherwise:
• To ensure that the module is initialised correctly when the PSS is cold orwarm started, create a start-up organisation block OB 020 and assign allthe 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 thePSS “ST System Description” and the example in the section “Listing” on
page 6-6).
Commissioning
7/23/2019 19600_03
http://slidepdf.com/reader/full/1960003 28/43
Commissioning
5-2 DeviceNet-Slave Operating Manual
• Assign the value 0 to the reserved data word DW0000 in DB_0 (see theexample in the section “Listing” on page 6-6).
• We recommend data words DB_0, DB_I and DB_S be assigned with 0 atthe 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 inthe 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 module’s initialisation values, switch off the PSS(switch off voltage applied) and switch on again (re-apply voltage). Furt-her information on the module’s settings can be found in the “DeviceNet-Slave - Hardware” Manual.
The PSS with the module is now ready.
7/23/2019 19600_03
http://slidepdf.com/reader/full/1960003 29/43
DeviceNet-Slave Operating Manual 5-3
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 fromother manufacturers differences may occur.
EDS (Electronic Data Sheet)
It is possible to configure the module via the network. The standard statesthat 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 filecontains, 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 ofthe directory is configured to the requirements of the DeviceNet Managerfrom Allen Bradley.
Fig. 5-3-1: Structure of the directory
(EDS file directory)
(sample directory)
7/23/2019 19600_03
http://slidepdf.com/reader/full/1960003 30/43
Commissioning
5-4 DeviceNet-Slave Operating Manual
Copy the entire directory “181.VND” in the existing structure in theEDS-directory(...\EDS\...) of DeviceNet Manager from Allen Bradley.When using a DeviceNet Manager from a different manufacturer the EDSfile 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).
7/23/2019 19600_03
http://slidepdf.com/reader/full/1960003 31/43
DeviceNet-Slave Operating Manual 6-1
Examples
The following example should help you to set parameters for SB235 and tolink it into your application program. It is also necessary to define, from theoutset, some peripheral settings.These settings and parameters are valid as sample settings. It is howeverpossible that for your own applications other settings and parameters arerequired.
The sample program can be found on the disk supplied in the directory“SB235”.
7/23/2019 19600_03
http://slidepdf.com/reader/full/1960003 32/43
6-2 DeviceNet-Slave Operating Manual
Examples
Fig. 6-2-1: Settings with the DeviceNet Manager
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.
7/23/2019 19600_03
http://slidepdf.com/reader/full/1960003 33/43
DeviceNet-Slave Operating Manual 6-3
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 orDeviceNet Manager.
7/23/2019 19600_03
http://slidepdf.com/reader/full/1960003 34/43
6-4 DeviceNet-Slave Operating Manual
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 individualapplications other parameter settings can be created.The module is initialised in OB 020.
Meaning of the Input Parameters
• Input parameter BASE
Module’s start address (Offset) : 0
• 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 senddata.
• 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 inDB030/DW0001
• Input parameter DB_S
Status data can be found in DB040
• Input parameter DW_SThe 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 andDB_S is contained. Please note: in this case the data range must not beexceeded.
7/23/2019 19600_03
http://slidepdf.com/reader/full/1960003 35/43
DeviceNet-Slave Operating Manual 6-5
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.
7/23/2019 19600_03
http://slidepdf.com/reader/full/1960003 36/43
6-6 DeviceNet-Slave Operating Manual
Examples
ListingOB001
MAIN : Segment 02 Cyclical operation of the input andoutput data
:A DB 020 Copy output data in the data block DB_O:L EW 02.00
:T DW 0001 In this example the input words:L EW 02.16 EW 02.00 - EW 04.16,:T DW 0002 the flag words MW 01.00, MW 01.16,:L EW 03.00 MW 80.00 and MW 80.16 are sent to the:T DW 0003 Master:L EW 03.16
:T DW 0004:L EW 04.00:T DW 0005:L EW 04.16
:T DW 0006:L MW 001.00
:T DW 0007:L MW 001.16:T DW 0008:L MW 080.00:T DW 0009:L MW 080.16:T DW 0010
::A DB 030 Copy input data (PSS← Master) in
flag words:L DW 0001:T MW 100.00 .COMMW_01 Communication flag word, fs↔st:L DW 0002:T MW 100.16 .COMMW_02 Communication flag word, fs↔st
::CAL SB 235
7/23/2019 19600_03
http://slidepdf.com/reader/full/1960003 37/43
DeviceNet-Slave Operating Manual 6-7
KF 000000 -MW 010.00 .ErrorKF 000011DB 020KF 000001
KF 000002
DB 030KF 000001DB 040KF 000000
:
BS_ENDE: Segment 01
:BE
OB020 This network is run through onceduring a cold start or new start
INIT : Segment 01:A DB 004 Enter module code on slot 0:L KH BB20:T DW 0020::A DB 005 Enter the module’s start address (Offset)
on slot 0:L KF 000000
:T DW 0000::A DB 020 Pre-assign reserved data words with 0:L KH 0000:T DW 0000
::T DW 0001 Pre-assign output data (PSS→ Master)
with 0:T DW 0002:T DW 0003
:T DW 0004:T DW 0005
SB235DevNet-S
W - BASE
W - OLenD - DB_OW - DW_OW - ILenD - DB_I
W - DW_ID - DB_S
W - DW_S
ERR - W
7/23/2019 19600_03
http://slidepdf.com/reader/full/1960003 38/43
6-8 DeviceNet-Slave Operating Manual
Examples
:T DW 0006:T DW 0007:T DW 0008
:T DW 0009:T DW 0010::A DB 030 Pre-assign input data (PSS← Master)
with the 0:L KH 0000
:T DW 0000:T DW 0001:T DW 0002::A DB 040 Pre-assign data blocks for status
information with 0
:L KH 0000
:T DW 0000:T DW 0001:T DW 0002:T DW 0003:T DW 0004:T DW 0005
:T DW 0006:T DW 0007:T DW 0008:T DW 0009:T DW 0010:T DW 0011
:T DW 0012
:T DW 0013:BE
7/23/2019 19600_03
http://slidepdf.com/reader/full/1960003 39/43
7-1DeviceNet-Slave Operating Manual
Changes to the operating manual
Changes from Version I to Version II
Old New Changepage page
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 New Changepage page
4-3 4-3 Input word 1 ... 33
Appendix
7/23/2019 19600_03
http://slidepdf.com/reader/full/1960003 40/43
Appendix
7-2 DeviceNet-Slave Operating Manual
Notes
7/23/2019 19600_03
http://slidepdf.com/reader/full/1960003 41/43
7-3DeviceNet-Slave Operating Manual
Notes
7/23/2019 19600_03
http://slidepdf.com/reader/full/1960003 42/43
Appendix
7-4 DeviceNet-Slave Operating Manual
Notes
7/23/2019 19600_03
http://slidepdf.com/reader/full/1960003 43/43
... wwwwww.pilz.com
+49 711 3409-444
In many countries we arerepresented by our subsidiariesand sales partners.
Please refer to our Homepagefor further details or contact ourheadquarters.
Technical support
G e r m a n y