Professional Documents
Culture Documents
Suggestions and comments for improving this documentation will be gratefully received.
Pilz®, PIT®, PMI®, PNOZ®, Primo®, PSEN®, PSS®, PVIS®, SafetyBUS p®, SafetyEYE®,
SafetyNET p®, the spirit of safety® are registered and protected trademarks of
Pilz GmbH & Co. KG in some countries.
Contents
Introduction 1-1
Definition of symbols 1-2
Overview 2-1
PSS-range 2-1
Failsafe section 2-1
Standard section 2-2
Hardware 2-2
Modular PSS 2-2
Compact PSS 2-3
Configuration and programming 2-4
Safety 3-1
Safety guidelines 3-1
Programming 5-1
Programming model 5-1
Creating a project 5-3
Program transfer 5-4
Addressing 5-5
Organisation blocks 5-6
Standard function blocks 5-7
Standard function block SB254 5-7
Operation 6-1
Communication with the periphery 6-1
Direct periphery access 6-1
Periphery access via process images 6-2
Program cycle 6-3
Blocks which are executed once 6-3
Blocks which are executed cyclically 6-4
Scan time and the block run times 6-6
Self-test 6-7
Registered hardware 6-7
Start adresses of word modules 6-7
Offset für freie Adressierung 6-9
Actual configuration 6-10
Hardware registry test 6-11
Output on the CPU display 6-12
Adjusting the system time of the safety system 6-13
Select FS data block 6-14
Communication with the FS section 6-15
Commissioning 7-1
Initial commissioning 7-1
Recommissioning 7-2
Changing the configuration or the user program 7-3
General reset 7-3
Appendix 9-1
System data blocks 9-1
DB000 9-1
DB004 9-8
DB005 9-8
DB006 9-9
DB007 9-11
DB008 9-12
DB009 9-13
Operating system calls with SB254 9-14
Changes in the documentation 9-15
Index 10-1
This System Description forms part of the PSS system manual. It explains
how the standard section of the PSS-range of programmable safety
systems functions and operates. This description is divided into the
following chapters:
1 Introduction
2 Overview
Provides information about the most important features of a safety
system.
3 Safety
Contains safety guidelines.
4 Structure (hardware)
Explains the structure of the hardware and the functions of the
individual system units.
5 Programming
Describes the programming and the addressing for the safety
systems.
6 Operation
Explains the PSS system processes and the changes which can be
made by the operator.
7 Commissioning
Explains the procedure during initial commissioning and after a reset,
e.g. after a fault.
8 Fault diagnostics and correction
Explains how fault messages are evaluated and how faults can be
rectified.
9 Appendix
Contains the assignment of the system data blocks and an overview
of the operating system calls with SB254.
10 Index
Definition of symbols
DANGER!
This warning must be heeded! It warns of a hazardous situation which
poses an immediate threat of serious injury or death and indicates
preventive measures that can be taken.
WARNING!
This warning must be heeded! It warns of a hazardous situation which
could lead to serious injury or death and indicates preventive measures
that can be taken.
CAUTION!
This refers to a hazard that can lead to a less serious or minor injury plus
material damage, and also provides information on preventive measures
that can be taken.
NOTICE
This describes a situation in which the unit(s) could be damaged and also
provides information on preventive measures that can be taken.
INFORMATION
This gives advice on applications and provides information on special
features, as well as highlighting areas within the text that are of particular
importance.
PSS-range
Failsafe section
The failsafe section (FS section) processes all of the safety-relevant tasks
and is designed with multi-channel diversity. Each channel has its own
microprocessor which processes the FS user program. If the microproces-
sors are not identical, the controller will immediately switch to a safe condi-
tion and switch off all the outputs.
The FS user program is created and then, once taken into operation,
approved by a body for official approval, such as the BG or TÜV, or by the
company’s internal test/quality control department.
The FS section and the ST section communicate without feedback. This
means that errors in the user program of the ST section will have no effect
on the FS section and vice versa.
Standard section
Hardware
Modular PSS
Fig. 2-2: Example of a PSS 3000 layout (from left to right): Power supply, CPU, 4 FS
modules and 5 ST modules
On the compact PSS, the power supply, CPU and periphery modules are
fixed in a housing.
PSS 3074
24 V 1 24 V 1
· ·
0V X0 0V X7
· ·
3 3
RUN ST
O -2.16 1 O -1.16 1
RUN FS O+2.16 · O+1.16 ·
O 2.8 · O -1.17 ·
POWER · ·
O 2.9 O+1.17
O 2.10 X1 O -1.18 X8
AUTO PG O 2.11 · O+1.18 ·
ST SPS O 2.12 · O 4.0 ·
· ·
PG O 2.13 O 4.1
F-STACK O 2.14 9 O 4.2 9
RUN
FS O -2.17 1 O -1.19 1
STOP O +2.17 · O +1.19 ·
· O -1.20 ·
O 2.15 · ·
O/T 2.0 O +1.20
O/T 2.1 X2 O - 1.21 X9
O/T 2.2 · O +1.21 ·
· O 4.8 ·
O/T 2.3 · ·
O 4.9
9 O 4.10 9
PG USER
0V 1 0V 1 0V 1
I 1.0 · I 0.0 · I 0.16 ·
I 1.1 · I 0.1 · I 0.17 ·
· · ·
I 1.2 I 0.2 I 0.18
I 1.3 X5 I 0.3 X3 I 0.19 X10
I 1.4 · I 0.4 · I 0.20 ·
I 1.5 · I 0.5 · I 0.21 ·
· · ·
I 1.6 I 0.6 I 0.22
I 1.7 9 I 0.7 9 I 0.23 9
0V 1 0V 1 0V 1
I 1.8 · I 0.8 · I 0.24 ·
I 1.9 · I 0.9 · I 0.25 ·
· · ·
I 3.0 I 0.10 I 0.26
I 3.1 X6 I 0.11 X4 I 0.27 X11
I 3.2 · I 0.12 · I 0.28 ·
I 3.3 · I 0.13 · I 0.29 ·
· · ·
I 3.4 I 0.14 I 0.30
I 3.5 9 I 0.15 9 I 0.31 9
Fig. 2-3: PSS 3074 with power supply, CPU and periphery (example)
Safety guidelines
Refer to the safety guidelines in the operating manual for the safety system
used.
WARNING!
The standard part of a safety system must only be used for non-safety-
relevant applications.
Notes
Compact controller
1
2
3
Fig. 4-1: Layout of a compact controller using the PSS 3056 system as an example
Modular controller
2 3 4 5
Fig. 4-2: Layout of a modular controller using the PSS 3000 system as an example
The base unit consists of a base module rack, power supply and CPU.
Input and output modules are required to input and output data.
There are different base module racks. On some base module racks you
can use only FS modules or only ST modules, whereas on other base
module racks you can use a combination of both FS and ST modules.
For accurate information about the module racks please refer to the "Instal-
lation Manual" of the modular safety system and the descriptions of the
module racks.
Power supply
The power supply provides the internal supply voltage to the CPU and bus.
Power supplies are available for different supply voltages, e.g. 230 V AC
and 24 V DC.
The power supply on modular safety systems must always occupy the first
slot on the rack.
Battery
All PSS have a battery, which acts as a buffer for the CPU memories.
On modular programmable control systems, the battery is located within
the power supply. If the CPU or power supply is removed from the module
rack, the data will be retained in the memory for one day.
On PSS with an FS operating system version >= 70, the unit can also be
operated without a battery. Operation without a battery results in the
following restrictions:
• FS section: Remanant data blocks cannot be used.
• ST section: A general reset is performed each time the section switches
from STOP-RUN.
CPU
The CPU is the safety system’s central processing unit. It controls the input
and output modules, and processes and stores the FS and ST user pro-
gram. The CPU has different operating elements and interfaces, e.g.:
• 4-digit display
• LEDs for operating mode and mains voltage
• 3-position switch for selecting the operating mode of the ST section (ST
selector switch)
• Button for scrolling through the error stack
• 2-position switch for selecting the operating mode of the FS section (FS
selector switch)
• Serial programming device interface or Ethernet-2 interface
• User interface
Memory
The CPU makes available the following memories for the ST section:
• Program memory
• Data memory
Program memory
The microprocessor which processes the ST user program has a separate
memory for the ST user program. Depending on which operations are
used in the user program and how many data blocks are used, the
program memory can store between 4,000 and 5,000 operations. Third
generation systems can have up to 10,000 operations. The program
memory is checked by CRC and is non-volatile.
Data memory
Variable data such as set data, error messages and system data are
stored in the data memory. The size of the data memory will depend on the
safety system used.
The data memory is divided into data blocks which each have a maximum
of 1,024 memory cells. Each memory cell has a length of 16 bits and is
called a data word (DW). Bit 0 ... 7 of the data word is referred to as the
right data byte (DR) and bit 8 ... 15 as the left data byte (DL).
PG interface
User interface
The user interface can be used for communication between the safety
system and other devices (refer also to the chapter "Operation", section
"User interface ST section").
Timer
The ST section has read access to the timers T064 ... T127 of the FS
section.
32-bit timer
Counters
The ST section has read access to the counters Z064 ... Z127 of the FS
section.
CPU display
Error messages are saved in an error stack. The current error message is
always displayed on the CPU display. To display the previous error mes-
sage, press the error stack button (see chapter 8, section "Display of
errors on the CPU display").
Input/output modules
Programming model
SafetyBUS p configuration
Project
Diagnostic configuration
PSS configuration
FS project ST project
section section
FS program ST program
SBp
configuration DB
OBs OBs
DBs DBs
PBs PBs
FBs FBs
SBs SBs
The project section includes the actual program that is transmitted to the
PSS plus the allocation table.
Symbols can be assigned to the operands in the allocation table, for exam-
ple the symbol "START" to the operand "E02.08".
For the sake of clarity, the program is divided into blocks. There are five
different types of blocks:
• Organisation blocks (OB), which form the interface between the user
program and the operating system
• Program blocks (PB), which contain fundamental and plant-specific
functions
• Function blocks (FB), which are made up of functions for specific indi-
vidual tasks
• Standard function blocks (SB), which carry out standardised functions
• Data blocks (DB), which contain fixed or variable data
The PSS configuration contains all of the key settings for the safety
system.
• Basic settings (e.g. PSS type, scan time, ...)
• Registered hardware
• Test pulse configuration
• Alarm configuration for PSS and SafetyBUS p
• Configuration of word modules
• Definition of password for the FS section
Creating a project
The following steps are identical for the FS and ST project sections. They
must be performed for both project sections.
• Create an allocation table
• Program the blocks
• Link the program
After the project has been created, the FS program and the ST program
need to be linked. The programming is checked in the process.
If any errors are found, these will need to be rectified and the linking
process performed again. The program cannot be transferred to the
programmable safety system until it has been linked without error.
• Transfer the program
See next section
INFORMATION
Creating projects is covered in detail in the online help of PSS WIN-PRO.
Program transfer
PSS
Interface adapter
(e.g. PSS CONV RS 232/485)
Ethernet
Ethernet
The connection can be established via the serial PG interface of the safety
system or, if available, via the ETH-2 interface. If the connection is estab-
lished via the serial PG interface, then, depending on its design (RS-485
interface or combined RS-232/RS-485 interface), you may require an
additional PAP interface adapter. To set up the connection via an ETH-2
interface, please refer to the operating manual of the compact safety sys-
tem or the module with Ethernet-2 interface.
The address of a central module results from its slot. Each slot is then
divided further into two sub-slots.
With the modular safety systems, the first sub-slot usually corresponds to
the first two plugs and the second sub-slot to the 3rd and 4th plugs on the
module.
PSS 3000
PSS 3100
0 2 4 6 8 10 12 14 10
16 Sub-slots
PS CPU 1 3 5 7 9 11 13 15 17 Sub-slots
0 1 2 3 4 5 6 7 8 Slots
Fig. 5-3: Addressing of slots using the PSS 3000 and PSS 3100 as examples
The way in which the slots and sub-slots are arranged on compact safety
systems varies from system to system. Details for each case can be found
in the operating manual of the relevant compact controller.
Each slot is allocated a slot number. The digital inputs and outputs are
addressed through the slot number and a bit number. The two entries are
separated by a full stop.
On modular safety systems the first two slots are always occupied by the
power supply and the CPU. Subsequent numbering starts from 0.
Modules which have more than 32 bits are called word modules. The word
modules of the ST section are freely addressable, i.e. the addresses can
be chosen from the range 0 ... 16383. The "Programming Manual” of the
PSS WIN-PRO system software contains a detailed description of free
addressing.
Organisation blocks
The functions of the organisation blocks (OB) are set by the operating
system. Each user program must contain the cycle organisation block
OB001, which among other things, manages the program cycle. The
blocks of the user program are called up in the cycle OB. All other organi-
sation blocks are reserved for specific applications, but they do not neces-
sarily have to be used.
INFORMATION
The "PSS WIN-PRO Programming Manual" contains information about
which organisation blocks there are and what their functions are.
Standard function blocks (SB) contain the standard functions which are
shared by several machines or plants. Standard function blocks are divided
into two groups:
• Available SBs
SB002 ... 199 are freely available. They can be used for any functions.
Exception: SB003, SB007, SB011, SB015 and SB041 are reserved.
• Pre-defined/reserved SBs
SB001, SB003, SB007, SB011, SB015, SB041, SB200 ... SB255 are
pre-defined and are supplied by Pilz.
The standard function block can be called up via the operation "CAL" or
"CALC" in the user program. It has the following layout:
SB 254
StBsCall
W FUNK ERG W
The function of the block is defined by the input parameter "FUNK". De-
pending on the function, additional parameters may be required. These are
specified in data block DB004, DB006 or DB007. The output parameter
"ERG" reports whether the function has been executed correctly. In the
event of an error message the data block DB000, DB006, DB007 or
DB008 will contain the error cause.
INFORMATION
Some of the functions of the SB254 are described in this System Descrip-
tion (refer to the overview in the Appendix). There are also further functions
for special applications (e.g. operation of the Interbus interface). These are
described in the corresponding manuals and operating manuals.
The direct access has the advantage that signals shorter than the scan
time can also be processed. The user program can scan the inputs and
outputs several times during the program cycle and always receives the
current status.
The input states are read in at the start of a program cycle and saved in
the process image for the PII inputs. Afterwards the user program is called
up and run with the values in the process image. The generated PII
process image is sent to the outputs after the user program is completed.
INFORMATION
There is no process image for ST word modules. ST word modules are
only accessed through direct periphery access.
Before the safety system starts with the cyclic processing of the FS and
ST user program, a reset block and a start-up block are executed once.
The time required by the safety system to process the FS and ST user
program once is referred to as the scan time.
The FS and ST user programs are processed independently of each other,
i.e. if for example the FS section is in the STOP condition, then only the ST
user program is processed.
PSS STOP-RUN-
on transition
FS-PSS FS block run time ST-PSS ST block run time FS- and Test Waiting
ST-PIO slices period
Fig. 6-1: Program cycle
RESET block
The RESET block is run through once when the safety system is switched
on. During this time the CPU display shows "❚ ❚ ❚ ❚".
In the reset block the safety system performs a self-test of the hardware
and software. After completion of the test the microprocessors are
initialised and synchronised. The safety system is then in the STOP
condition and the display shows "0000".
Duration: approximately 30 s, on 3rd generation PSS: 10 s
STOP-RUN transition
Depending on the setting of the FS selector switch, the FS section will
either switch automatically to RUN, or it will wait to do this until the FS
selector switch is operated. The same is true for the ST section.
Start-up block
As soon as the FS section changes to RUN, the start-up block is executed
for it. The same is true for the ST section.
The start-up blocks for the FS section and the ST section can be executed
at the same time. If either section is still in the STOP condition, then only
the start-up for the other section is executed. The start-up of the other
section is integrated into the cycle later on.
FS start-up: The system checks the FS user program and the structure of
the internal administration tables. Afterwards the configuration test is
carried out, the modules are tested and the start-up OB is called up.
ST start-up: The system checks the ST user program and the structure of
the internal administration tables. Afterwards the configuration test is
performed (only if the option "Configuration test" is selected in the PSS
configurator of the system software), the modules are tested and the start-
up OB or the general reset OB is called up. If the “Operate PSS without
battery” option has been selected when programming the PSS in the
system software’s PSS Configurator, a general reset will be performed on
each start-up.
FS and ST-PIO (output block for PIO and XW-PIO of the FS section
and PIO of the ST section)
The process images for the outputs created during execution of the FS and
ST user programs are output.
The process of outputting of the process image for the outputs and the
process image for the output segments of the FS section is described in
detail in the FS system description.
Duration: 0.3 ms
Test slices
A test block is processed at the end of a cycle. All of the tests on the
system are divided into slices with a duration of 1 ms. The operating
system automatically performs one test slice in each test block.
The number of test slices can be influenced by the user via an operating
system call in the FS section.
The minimum scan time must be less than or equal to 100 ms.
The minimum scan time and the FS and ST block run times are pre-
assigned in the FS section (see FS system description).
If no FS user program is loaded into the safety system, then the maximum
scan time is automatically 100 ms. It is not possible to pre-assign a
minimum scan time.
If a value of 0 is entered for the ST block run time in the FS section, then
the ST section is not called up.
If the ST block run time is exceeded, then the ST section changes to the
STOP condition.
FS alarms can interrupt the ST user program. The processing time for the
alarms is part of the FS block run time.
In the event of an error in the alarm processing, the ST section is
interrupted and not continued until the next cycle, i.e. in this cycle there is
no output of the process image for the outputs, and in the next cycle there
is no reading in of the process image for the inputs in the ST section.
Registered hardware
The start address for the word modules can be entered in the PSS
configurator of the PSS WIN-PRO system software (see PSS WIN-PRO
Online Help). The PSS configurator then enters the start addresses at the
correct points in the DB005.
The start addresses can also be entered in the DB005 in the OB020 (start-
up OB, see PSS WIN-PRO programming manual) or OB022 (general reset
OB, see PSS WIN-PRO programming manual).
The start addresses must be entered in the format "F" (16-bit fixed point
number).
Example:
Addressing the PSS AIO module on a PSS 3000
Module addresses:
XW4096 1st Input
XW4097 2nd Input
XW4098 3rd Input
XW4099 4rd Input
XW4100 5rd Input
XW4101 6rd Input
Actual configuration
INFORMATION
The actual configuration only shows the ST modules, not the FS modules.
During the hardware registry test, the actual hardware is compared with
the registered hardware. The registered hardware must be specified in
DB004, DW0020 ... 0043.
If a configuration error is found, then "S-05" is shown on the CPU display,
error OB OB023 is processed and then the ST section changes to a STOP
condition. If OB023 is not available, the ST section will immediately switch
to a STOP condition.
You can configure whether and when the hardware registry test should be
performed in the PSS configurator of the PSS WIN-PRO system software
(see PSS WIN-PRO Online Help), or you can enter this information in
DB004.
INFORMATION
Error messages from the system are displayed as the top priority.
The number currently displayed on the CPU display is saved in data blocks
DB000, DW0015. The message type is encoded in DW0014.
The real-time clock of the safety system can be adjusted using the PSS
WIN-PRO system software (see Online Help) or via the operating system
call SB254, FUNK = 12.
The real-time clock is reset every time SB254, FUNK=12 is called up, and
the current time is copied to the data block DB000, DW000 ... DW003.
A data block needs to be selected before its data words can be accessed.
The "Select data block" operation is available in all programming
languages for selecting the ST data blocks. Operating system call SB254,
FUNK = 36 is used to select FS data blocks.
After selecting an FS data block, the ST section has read access to this
DB. If the FS data block which is to be selected does not exist, then the ST
section switches to a STOP condition.
INFORMATION
FS data blocks can only be selected if the FS section is in RUN mode. This
can be checked with the aid of the FS status flags (see section
"Communication with the ST section").
Various flags are available for communication between the FS section and
the ST section:
• Communication flags
M100.00 ... 104.31
M105.00 ... 109.31 (only on PSS with operating system ≥ 43)
The communication flags can be written to and read by the ST user
program. The FS section only has read-access to these flags. The flags
are available to the user for free use.
• Fixed flags
Flag Description
M110.00 FALSE (RLO-0)
Flag content is always = 0
M110.01 TRUE (RLO-1)
Flag content is always = 1
The fixed flags have a fixed status. They are often used to set the RLO
to "1" or "0". To do this, the corresponding flag is loaded with the "Load"
operation.
The FS section and the ST section only have read access.
• Arithmetic flags
Flag Description
M111.00 Carry
= 1 if the carry flag has been set by an arithmetic operation
M111.01 Overflow
= 1 if the overflow flag has been set by an arithmetic operation
M111.02 Zero
= 1 if the zero flag has been set by an arithmetic operation
M111.03 Sign
= 1 if the sign flag has been set by an arithmetic operation
• FS status flags
Flag Description
M113.00 = 0 if status of FS section is STOP
= 1 if status of FS section is RUN, only set after the first cycle
M113.01 = 0 if status of FS section is "No error"
= 1 if status of FS section is "Error"
M113.02 = 1 if FS section has been stopped by a STOP operation
M113.03 = 1 after start-up (STOP > RUN) of the FS section, only
active for one cycle
M113.04 = 1 after restart (OFF > RUN) of the FS section, only active for
one cycle
M113.05 = 1, if SafetyBUS p 0 is in a RUN condition
M113.06 = 1, if SafetyBUS p 1 is in a RUN condition
M113.08 = 1 if the remanent DBs in the FS section have been reset;
flag must be reset through SB255, FUNK = 50. Provided the
flag is set, the remanent DBs will be reset each time the PSS
is cold/warm started. The flag is non-volatile.
INFORMATION
The FS section cannot access the operands of the ST section. Communi-
cation is only possible via the above flags.
The ST section can obtain read access to the process images of the inputs
and outputs (PII and PIO, but not XW-PII and XW-PIO), the flags, the data
blocks, the timers and counters of the FS section.
The user interface (refer also to the chapter "Structure", section "User
interface") can be used either in the FS section or in the ST section for
communication with other devices. The section which accesses the user
interface first obtains the access rights. If the user interface has already
been configured for the FS section, then it cannot be used by the ST sec-
tion again until a general reset is performed in the ST section and the
power supply to the PSS is switched off and back on again.
Access from the ST section to the user interface is provided with the aid of
the following functions of the SB254:
FUNK Description
000 Status poll for the configuration
001 Configure
002 Acknowledge configuration error
004 Status poll for sending
005 Send
006 Acknowledge send error
008 Status poll for receiving
010 Acknowledge receive error
011 Acknowledge receipt
PSS 3000
RS 232/
RS 485
Master
PSS 3000 PSS 3000 PSS 3000
In order to form a network using 1st and 2nd generation controllers, you will
need to use a PAP interface adapter (RS 232 -> RS 485).
PSS 3000
RS 485
RS 232 PAP
Master PAP PAP PAP
Handshaking
During data transfers without handshaking the input signals DSR and
CTS are not taken into account. The output signals DTR and RTS are
used.
During data transfers with handshaking the output signals DTR and RTS
are used to control the partner, and the input signals CTS and DTS are
used for synchronisation with the partner. The signals have the following
meaning:
• DTR output signal
The output signal signals to the partner when the user interface is ready
to receive data:
- DTR = 1: User interface ready to receive
- DTR = 0: User interface not ready to receive, either because the
receive buffer is full or because the received data are being processed
(see Assignment of the interface configuration-DB DB006, DW012).
Communication protocol
During a transfer without protocol, the data which are to be sent are output
without change from the send buffer via the interface.
The received data are written block by block without change to the receive
buffer. Expiry of the receive timeout time signals the end of a block.
The receive timeout time is an aid which can be used to detect the end of
a data block during a data transfer without protocol. A timer is started when
a character is received. Each further character which is received re-
triggers this timer. The interface interprets it as the end of a data block If
the timer expires, and writes the received data to the receive buffer. The
timeout time is configurable (see Assignment of the interface configuration-
DB DB006, DW010). Output signal DTR is set to 0 when the data block
end is detected.
During a transfer with ISI protocol, the data in the send buffer are given a
protocol framework:
ID handling
• If the safety system is the Master:
After the interface has been configured the telegram is sent with ID = 0.
After an error-free answer from the slave the ID byte for this slave is
increased by 1. If ID = 3 and the answer to a telegram is error-free, then
the ID byte for this Slave is reset to 1.
If a Slave does not answer without errors, then the safety system repeats
the telegram 3 times with the same ID byte. If there is also no response
to the repetition, then the ID byte for this Slave is set to 0. ID = 0 for the
next telegram sent to this slave.
• If the safety system is a slave:
An addressed slave always answers with the received ID byte. If the ID
byte remains the same between two received telegrams, then this is a
repetition request for the last sent telegram. The safety system automati-
cally responds to the repetition request. If ID-Byte = 0, then the Slave is
requested to perform an initialisation.
The configuration can be performed with the aid of the following three
operating system calls.
Properties
Length: at least 13 data words
Access right: Read/Write
Assignment
DW000 Reserved
DW001 Fault detected if SB254, FUNK = 000, 001 or 002 reports a
configuration error (ERG = 16).
0002H ... 000CH: Number of the faulty data word in the DB006
FFF0H: Interface is assigned to the FS section
DW001 can only be read.
DW002 Transmission rate
Value Transmission rate in bit/s
0 150
1 300
2 600
3 1,200
4 2,400
5 4,800
6 9,600 Default value
7 19,200
8* 38,400
DW006 Handshake
Value Handshake
0 No
1 Yes Default value
Value Timeout
0 none Default value
1 ... Timeout in ms
65535
Value Timeout
15 15 ms Default value
1 ... Timeout in ms
65,535
Call up SB255, FUNK = 000 and evaluate ERG. The configuration must
only be performed if ERG = 1 or ERG = 16.
ERG = 1
or
ERG = 16 The interface can be configured.
The process of sending data via the user interface takes place with the aid
of the following operating system calls.
The data which are to be sent are entered in the send-DB (DB007).
Properties
Length: at least 3 data words
Access right: Read/Write
Assignment
DW000 Number of bytes to be sent
DW001 Fault detected if SB254, FUNK = 004, 005 or 006 reports a
send error (ERG = 16).
0: Timeout exceeded on send (partner not ready to re-
ceive)
16: Number of bytes to be sent is too high
17: Send command currently not available, e.g. because a
telegram is just being sent.
18: Interface not yet configured
FFF0H: Interface is assigned to the FS section
FFFFH: No error
DW002 with ISI protocol: Slave address if the safety system is the
Master
without ISI protocol: first send data word
DW003 ... 1023 Send data
Send sequence without ISI protocol:
DR2 (2nd right data word), DL2 (2nd left data word), DR3,
DL3, ....
Send sequence with ISI protocol:
DR3, DL3, DR4, DL4, ...
Example
ERG = 1
or
ERG = 16 Data can be sent.
The process of receiving data via the user interface takes place with the
aid of the following operating system calls.
Receive-DB
Properties
Length: at least 3 data words
Access right: Read/Write
Assignment
DW000 Number of bytes received
DW001 Error detected if SB254, FUNK = 008, 010 or 011 re-
ports a receive error (ERG = 16).
0: Send timeout exceeded (for ISI protocol only)
1: Parity error
2: Receive "Break"
3: Stop bit error
8: Overflow error; characters have been lost, e.g. because
the last telegram received was not acknowledged
quickly enough.
9: Number of the receive-DB
10: Slave not answering in time (for ISI protocol only)
11: Number of received bytes incorrect (for ISI protocol
only)
12: CRC error (for ISI protocol only)
13: ID error (for ISI protocol only)
14: Incorrect Slave answering (for ISI protocol only)
15: End identifier missing or end of telegram contains too
few characters (for ISI protocol only)
17: Command not permitted at this time
18: Interface not yet configured
19: Telegram header contains too few characters (for ISI
protocol only)
FFF0H: Interface is assigned to the FS section
FFFFH: No error
DW002 with ISI protocol: not relevant
without ISI protocol: first received data word
DW003...1023 Receive data
Send sequence without ISI protocol:
DR2 (2nd right data word), DL2 (2nd left data word), DR3,
If an error occurs while receiving, then ERG = 16. DW001 of DB008 con-
tains the error identifier. The error must be rectified and acknowledged with
SB254, FUNK = 10 or FUNK = 11. ERG = 32 during the processing of the
acknowledgement. Once the processing has finished, ERG = 1.
A regular status poll needs to be performed with SB254, FUNK = 8 to
enable the user program to detect whether data have been received via
the interface.
If the safety system is the Master, then any exceeding of the send timeout
is reported as a receive error. The receive status must be polled while
waiting for the answer from the slave. The next telegram cannot be sent
until the receipt or receive error has been acknowledged.
If the safety system is a Slave, then faulty telegrams or telegrams which
are not addressed to the selected Slave address are discarded by the
operating system without warning. Repetition requests (ID byte is
unchanged) are automatically answered by the safety system.
PSS
switched off
Switch on
voltage
1
ST-STOP
LED "ST RUN":
off
CPU display:
"0000", "S-xx or "F-xx"
2 no
or STOP operation
system software or minor
system software error
ST-RUN
LED "ST RUN":
on
CPU display:
"0000" or "F-xx"
The numbers identify status changes which are described on the next
pages.
Operating statuses
Status "ST-STOP"
• The ST user program is not processed and all ST outputs are switched
off (safe condition).
• Processing of the FS user program continues unchanged.
• All of the functions of the system software (PG) are available.
• "ST RUN" LED: Off
• CPU display: Error class of the error "S-xx" (if any FS errors are also
entered in the error stack, then these are displayed as the top priority "F-
xx")
Status "ST-RUN"
• The ST user program is processed.
• Processing of the FS user program continues unchanged.
• All of the functions of the system software (PG) are available
(Exceptions: transfer or delete program).
• "ST RUN" LED: On
• CPU display: "0000" or "F-xx"
Switch on voltage ➀
The following happens after the voltage is switched on:
• All of the outputs of the ST modules are switched off.
• The system time (real-time clock) is read out and the current time is
entered in DB000. Exception: If the “Operate PSS without battery” option
has been selected when programming the PSS in the system software’s
PSS Configurator, the system time is set to zero.
• ST status flag M112.04 = 1 (this only remains set for one cycle), all other
ST status flags are set to 0.
• The system checks whether the contents of the read/write data memory
were changed while the safety system was switched off (memory is
"corrupted"); if "yes" then a general reset is performed (see chapter
"Commissioning").
If the “Operate PSS without battery” option has been selected when
programming the PSS in the system software’s PSS Configurator, a
general reset will be performed in each case.
• The communication flags are set to 0.
• The PIO and the PII of the FS section are assigned the value 0.
• The dynamic program display is switched off.
• The variable display is shut down.
• The ST section switches to a STOP condition.
If the ST section is in STOP mode due to an error which has occurred (if
no FS error "F-xx" is present, then the CPU display shows: "S-xx") then
you will need to proceed as follows to return to the RUN condition:
• Read out the error stack (see chapter "Fault diagnostics and correction",
section "Error stack").
• If necessary use the dynamic program display (system software) to
search for the error.
• Rectify the error.
• Start the ST section (move the ST selector switch from the "PG" setting
to the "PLC" or "AUTO PG" setting, or start the ST section with the aid of
the system software).
Initial commissioning
Hardware requirements
• Supply voltage connected to PSS
(modular PSS: see power supply operating manual; compact PSS: see
PSS operating manual)
• Supply voltage for inputs and outputs connected
(modular PSS: see I/O modules operating manual; compact PSS: see
PSS operating manual)
• For modular PSS: Correct module rack configuration
(first slot must be occupied by the power supply and the second by the
CPU module)
Software requirements
• Configuration data (slot configuration, start addresses of the word mod-
ules etc.) entered in the PSS configurator of the system software are
correct.
• Executable user program is available in a linked form (see "Link" in the
online help of the system software).
If a configuration error is indicated, this may also have been caused by the
registered hardware entered in the PSS during the function test (at Pilz).
The remedy in this case is to perform a general reset (set the ST selector
switch to the "PG" setting, then press the "Error Stack" button and, at the
same time, set the ST selector switch back from "PG" to "PLC").
Recommissioning
Sequence:
• Enter the changes to the configuration, e.g. changed registered hard-
ware, in the PSS configurator (see online help of the system software).
• If necessary change the user program (see online help of the system
software)
• Re-link the program (see online help of the system software).
• Proceed as for the initial commissioning procedure
General reset
The CPU carries out the following steps during a general reset:
• A message that a "general reset" is to be performed is entered in the
error stack (S-20, error number 14).
• All of the flags of the ST section are set to 0.
• ST timers are stopped and set to 0.
• ST counters are set to 0.
• General reset flag M112.05 = 1.
• The PIO and the PII of the ST section are assigned the value 0.
• All of the outputs of the ST modules are switched off.
• The system time (real-time clock) is set to 00:00 (not on 3rd generation
controllers)
• The current ST block run time and the maximum ST block run time in
DB000 are set to 0.
• The actual configuration is entered in DB000 and DB004.
• The cyclic configuration test is switched off.
• The configuration test during start-up is switched on.
• Parameters for operating system calls (SB254) in DB004 are assigned
the value 0.
• The dynamic program display and the variable display are switched off.
The tables are assigned the value 0.
• If a valid ST user program is present in the safety system, then the read/
write data blocks are assigned the same values again that were entered
in the read/write data blocks during programming (see chapter "Structure
(hardware)", section "Data memory").
Error management
The safety system continuously checks the hardware and software during
the program cycle. If an error is discovered, the following sequence is
triggered:
• The fault detection is displayed on the CPU display.
• The error is entered in the error stack.
• Execution of the error reaction.
ST-RUN
LED "ST RUN":
on
CPU display:
"0000" or "F-xx"
Minor
error
Error yes
OB
no
ST-STOP
Fatal error Fatal error
in FS LED "ST RUN": in ST
section off section
CPU display:
"0000", "S-xx or "F-xx"
Minor errors
Possible causes
• Error in the user program
• Battery error
PSS reaction
An error OB is called up for some minor errors (see Programming Manual
for PSS WIN-PRO). A reaction to the error can be programmed in this error
OB. If an error OB is present, it is processed, and the ST section remains
in RUN mode. If no error OB is available, the ST section will switch to a
STOP condition.
The following happens during the switch to the STOP condition:
• All of the outputs of the ST modules are switched off.
• The ST user program is stopped.
• The PIO of the ST section is assigned the value 0.
• Status flags M112.00 = 0 and M112.01 = 1
Remedy
• Read out the error stack (see section "Error stack").
• If necessary use the dynamic program display (system software) to
search for the error.
• Rectify the error.
• Start the ST section (move the ST selector switch from the "PG" setting
to the "PLC" or "AUTO PG" setting, or start the ST section with the aid of
the system software).
Possible causes
• Major defect in the ST section
Reaction
The ST section changes status to "ST Fatal Error". The following happens
during the switch to this status:
• All the outputs are shut down.
• The ST user program is stopped.
Remedy
It is not possible for the user to rectify the error. If the ST section is in this
state then the only option is to:
• Note the conditions under which the error occurred.
• Write down the displayed fault detection.
• Switch the PSS off and back on again and then read out the error stack
(see section "Error stack").
• Contact Pilz.
Possible causes
• Major system defect
• Error during self-test
Reaction
The safety system changes to "Fatal Error". The following happens during
the switch to this status:
• All the outputs are shut down.
• The FS and ST user programs are stopped.
Remedy
It is not possible for the user to rectify the error. If the PSS is in this state,
then the only option is to:
• Note the conditions under which the error occurred.
• Write down the displayed fault detection.
• Switch the PSS off and back on again and then read out the error stack
(see section "Error stack").
• Contact Pilz.
The error stack can record a maximum of 16 error entries. In system data
block DB000 it occupies data words DW085 ... DW148. Each error entry
occupies 4 words.
DW Assignment
084 Indicator pointing to current error entry
1st Error entry:
085 Bit 0 ... 7: Error class
Bit 8: if = 1 => it is an FS-error
if = 0 => it is an ST-error
Bit 9 ... 15: ID of the microprocessor
086 Bit 0 ... 6: Error number
Bit 7: if = 1 then error parameters -1/-2 are
present
087 Error parameter -1
088 Error parameter -2
089 ... 092 2nd Error entry
093 ... 096 3rd Error entry
097 ... 100 4th Error entry
101 ... 104 5th Error entry
105 ... 108 6th Error entry
109 ... 112 7th Error entry
113 ... 116 8th Error entry
117 ... 120 9th Error entry
121 ... 124 10th Error entry
125 ... 128 11th Error entry
129 ... 132 12th Error entry
133 ... 136 13th Error entry
137 ... 140 14th Error entry
141 ... 144 15th Error entry
145 ... 148 16th Error entry
As the error stack is organised as a ring memory, data words are accessed
via the indicator in DW084. The indicator always points to the data word
containing the error class of the current error entry.
If more than 16 errors occur, the first entry is overwritten. The error stack
contains errors from both the FS and ST sections.
The "error list" in the "PSS System Manual" describes the information
behind an error entry. The errors can however also be displayed as plain
text messages, i.e. with descriptive text (see section "Display of errors as
plain text").
INFORMATION
Messages are also entered in the error stack which are not error mes-
sages. Instead, these are information messages intended for the user.
These messages neither have an influence on the operating status nor the
program cycle. This could for example be the information that a restart of
the FS section was carried out (error class: F-20; error number: 01).
The display of errors as plain text, i.e. with a descriptive text, is possible for
example as follows:
• with the system software
Connect the programming device and display the error stack of the PSS
in the system software (PG) (see online help of the system software). A
plain text message is displayed for every error in the error stack. A rem-
edy can be displayed for each error as required.
• with a text display
Connect a text display. If the FS section has changed to the STOP con-
dition because of an error, then the ST section can read out the error
stack or the content of DB000, DW085 ... DW0148 and output a plain
text message to the text display. Standard function blocks from the "Error
evaluation" software package from Pilz can be used for this purpose.
If no error has occurred in the FS or ST section since the last change into
RUN, then the CPU display will show the following:
0000
The errors saved in the error stack can be displayed on the CPU display by
pressing the "Error stack" button.
Press and hold the error stack button. The data for the first entry in the
error stack are shown on the display in sequence, e.g.:
F020
N=03
Error number (hexadecimally encoded)
ID for the error number
Release the error stack button again, then press and hold it again. The
data for the next entry in the error stack are now displayed, e.g.:
N=07
Error number (hexadecimally encoded)
ID for the error number
INFORMATION
It depends on the error whether or not error parameters are displayed. The
way in which the error parameters should be interpreted also depends on
the error. The error parameters for every error are described in detail in the
"Error list" in the "PSS System Manual". Help on the evaluation of the data
in the error parameters can be found in the section "Evaluation of the error
parameters" in this chapter.
If you press and hold the error stack button again, then the data for the
next entry will be displayed. After the last entry in the error stack, the
display goes back to the first entry.
F-06
To manually exit the rotation mode, press the error stack button for at least
3 seconds.
If the operating status changes while the rotation mode is active (e.g. due
to the operation of a selector switch on the PSS, or due to the FS section
changing to the STOP condition in response to an error), then the rotation
mode is also stopped.
If an entry in the error stack has error parameters, the system displays
error parameter-1 first and then error parameter-2. The display is
introduced by means of an ID:
PARA
AT
For some errors a range is indicated, e.g. the first and last defective input
of a module:
INFORMATION
It depends on the error whether or not error parameters are displayed. The
way in which the error parameters should be interpreted also depends on
the error. The error parameters for every error are described in detail in the
"Error list" in the "PSS System Manual". Help on the evaluation of the data
in the error parameters can be found in the section "Evaluation of the error
parameters" in this chapter.
1200
5668
254:
060.
001
255:
255.
240
254:
060.
001
8080
1025
ON DHCP is activated
1)
Only on PSS with Ethernet interface and an FS operating system version
≥ 60. This information is only available if the network connection is active.
This can take 1 to 2 minutes after a PSS cold start.
In order to evaluate the error parameters of an error, you will first need to
look at the "Error list" in the "PSS System Manual" to see what the content
of the error parameters is for the particular error (e.g. "Block" or "Slot
number"). You can then interpret the display on the CPU according to the
content.
Each error parameter corresponds to one data word in the error stack. As
the CPU display has four digits, the error parameters are usually displayed
as a hexadecimal number. The two left-hand digits on the display corres-
pond to the left data byte (DL) and the two right-hand digits to the right
data byte (DR).
The error parameters listed below require a special evaluation. All other
error parameters are numbers in hexadecimal format or, if specified expli-
citly in the error list, numbers in decimal format.
Block
4-digit display, hexadecimal code
• DL indicates the block type
08 = DB
10 = SB
20 = PB
40 = FB
80 = OB
• DR contains the block number in hexadecimal code
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
7- 6- 5- 4- 3- 2- 1- 0- 7+ 6+ 5+ 4+ 3+ 2+ 1+ 0+
23- 22- 21- 20- 19- 18- 17- 16- 23+ 22+ 21+ 20+ 19+ 18+ 17+ 16+
In order to determine the absolute bit address, you also need to know the
slot and sub-slot. These details can be found in error parameter-2.
INFORMATION
If more than one input/output is faulty, then there will be a 0 at the relevant
positions.
Example: "FAFB" corresponds to "1111 1010 1111 1011", i.e. the bits 10, 8
and 2 are defective.
Error code
2 or 4-digit display in hexadecimal code
The error code is used by Pilz for fault diagnostics. The error code cannot
be evaluated by the user.
I/O group
2-digit display, hexadecimal code
00 ... 1F = Hexadecimally coded number of the I/O group
FE = All I/O groups which are assigned to the LD
FF = All I/O groups
Item
2-digit display in hexadecimal code
00 = Item 0, corresponds to I/OD A
FF = Item 1, corresponds to I/OD B
Sub-slot
2-digit display, hexadecimal code
00 = Total module
(for single-pole I/O modules: Bit addresses 0 ... 31;
for two-pole I/O modules: Bit addresses 0+/- ... 23+/-)
01 = Upper sub-slot
(for single-pole I/O modules: Bit addresses 0 ... 15;
for two-pole I/O modules: Bit addresses 0+/- ... 7+/-)
02 = Lower sub-slot
(for single-pole I/O modules: Bit addresses 16 ... 31;
for two-pole I/O modules: Bit addresses 16+/- ... 23+/-)
Various tools are available for fault diagnostics in the system software
(PG):
• Displays of variables
• Dynamic program display
• Control/Force variables
Control/force variables
Display of variables
In the system software (PG), the values of any operand(s) from one or
more blocks are displayed as part of the variables display. The system can
also display the absolute addresses of the safety system (e.g. inputs and
outputs).
Information on how to display the variables can be found in the online help
of the system software (PG).
Notes
Data blocks are available for communication between the ST user program
or the system software (PG) and the operating system. The tables below
give an overview of their assignment.
DB000
DB000 contains general program data. It cannot be changed from the user
program.
INFORMATION
DB000 can only be read from the standard section.
DB000 continued
DB000 continued
DB000 continued
1)
Only on PSS with Ethernet interface and an FS operating system version
≥ 60. This information is only available if the network connection is active.
2)
Only on PSS with an FS operating system version ≥ 60.
DB004
DB005
DB006 continued
DB008
DB006 is the receive DB for the user interface.
Data Word Format Assignment
000 KF Number of bytes to be received
001 KF Error identifiers for receive errors
0: Send timeout exceeded (for ISI protocol
only)
1: Parity error
2: Receive "Break"
3: Stop bit error
8: Overflow error; characters have been lost,
e.g. because the last telegram received
was not acknowledged quickly enough.
9: Number of the receive-DB
10: Slave not answering in time (for ISI
protocol only)
11: Number of received bytes incorrect (for ISI
protocol only)
12: CRC error (for ISI protocol only)
13: ID error (for ISI protocol only)
14: Incorrect Slave answering (for ISI protocol
only)
15: End identifier missing or end of telegram
contains too few characters (for ISI
protocol only)
17: Command not permitted at this time
18: Interface not yet configured
19: Telegram header contains too few charac-
ters (for ISI protocol only)
FFF0H: Interface is assigned to the FS section
FFFFH: No error
002 KF with ISI protocol: not relevant
without ISI protocol: first received data word
003 ... KF Receive data
1023 Send sequence without ISI protocol: DR2, DL2,
DR3, DL3, ....
Receive sequence with ISI protocol: DR3, DL3,
DR4, DL4, ...
INFORMATION
There are also further functions for special applications (e.g. operation of
the Interbus interface). These are described in the corresponding manuals
and operating manuals.
Notes
A Communication
FS - ST 6-15
Access rights 6-17
User interface 6-18
Accumulator
Communication flags 6-15
display 8-23
Compact PSS 2-3, 4-1
Addresses
Configuration 5-2
display 8-22
Block run time 6-6
Addressing 5-5
changing 7-3
free 5-6
Registered hardware 6-7
Alarms 6-6
Scan time 6-5
Allocation table 5-2
Test 6-11
Arithmetic flags 6-15
Configuration data block
Auxiliary accumulator
User interface 6-26
display 8-23
Configuration error 6-11
Configurator 5-2
B Control
Base module rack 4-2 Counter 8-21
Battery 4-2 Data words 8-21
Binary code 8-15 Flags 8-21
Bit encoding 8-17 Inputs 8-21
Bit numbers 5-5 Outputs 8-21
Bit sequences 8-17 Timer 8-21
Block run time 6-3 Controller
Definition of 6-6 Compact 2-3, 4-1
Blocks 5-2 Modular 2-2, 4-1
Data blocks 5-2 Counter
Interface configuration DB 6-26 Display status 8-22
Receive-DB 6-34 Counter bit 4-8
Send-DB 6-31 Counter word 4-8
Function blocks 5-2 Counters 4-8
Organisation blocks 5-2, 5-6 Control 8-21
Error organisation blocks 8-2 CPU 4-3
Program blocks 5-2 CPU display 4-8
Standard function blocks 5-2, 5-7 Error display 8-8
Bus 4-3 CRC calculation 6-22
CTS 6-21
Cycle OB 5-6
C
Central processing unit 4-3 D
Channels 2-1
Checksum calculation 6-22 Data blocks 4-4, 5-2
Clock 6-13 Interface configuration DB 6-26
Code Read-only 4-4
binary 8-15 Read/write 4-4
Error code 8-20 Receive-DB 6-34
hexadecimal 8-15 Select FS 6-14
Commissioning Send-DB 6-31
Recommissioning 7-2 System data blocks 9-1
Data memory 4-4
S T
Safety guidelines 2-1 Telegrams 6-22
SafetyBUS p Test block 6-5
Configuration 5-3 Test slices 6-5
SB254 5-7, 9-14 Tests
FUNK 000 6-25 Hardware registry test 6-11
FUNK 001 6-25 Self-test 6-7
FUNK 002 6-25 Time base 4-7
U
User interface 4-6, 6-18
Configuring 6-25
Receive 6-33
Send 6-30
User program 4-3, 5-1
changing 7-3
Cycle 6-3
Errors 8-2
V
Variable
Control 8-21
Force 8-21
Variable display 8-22
W
Word modules 6-7
Direct periphery access 6-1
Word operands
Display 8-23
Write protection 4-4
X
XW 6-8
Notes
•… • www
In many countries we are www.pilz.com
represented by our subsidiaries
and sales partners.
• Technical
Please refer to our homepage
for further details or contact our support
headquarters. +49 711 3409-444