20205

46
www.pilz.com Pilz GmbH & Co. Felix-Wankel-Straße 2, 73760 Ostfildern, Germany Telephone +49 (7 11) 34 09-0, Telefax +49 (711) 34 09-1 33 In many countries we are represented by sales partners. Please refer to our Homepage for further details or contact our headquarters. Pilz Ges.m.b.H. Modecenterstraße 14 1030 Wien Austria Telephone (01) 7 98 6263-0 Telefax (01) 7 98 62 64 E-Mail: [email protected] Pilz Australia Industrial Automation LLP. 9/475 Blackburn Road Mt. Waverley, Melbourne VIC 3149 Australia Telephone (03) 95 4463 00 Telefax (03) 95 44 63 11 E-Mail: [email protected] Pilz Belgium BC Building lndustriezone lII lndustrielaan 4 9320 Erembodegem Belgium Telephone (0 53) 83 6670 Telefax (0 53) 83 89 58 E-Mail: [email protected] Pilz do Brasil Sistemas Eletrônicos Industriais Ltda. Rua Ártico, 123 - Jd. do Mar 09726-300 São Bernardo do Campo - SP Brazil Telephone (11) 43 37-12 41 Telefax (11) 43 37-12 42 E-Mail: [email protected] Pilz lndustrieelektronik GmbH Gewerbepark Hintermättli Postfach 6 5506 Mägenwil Switzerland Telephone (0 62) 8 8979 30 Telefax (0 62) 8 89 79 40 E-Mail: [email protected] Headquarters: Pilz GmbH & Co. Felix-Wankel-Straße 2 73760 Ostfildern Germany Telephone (07 11) 3409-0 Telefax (07 11) 34 09-1 33 E-Mail: [email protected] Pilz Skandinavien KS Ellegaardvej 25 L 6400 Sonderborg Denmark Telephone 74 43 63 32 Telefax 74 43 63 42 E-Mail: [email protected] Pilz lndustrieelektronik S.L. Edificio Tilma Avda. Sant Julià 1 08400 Granollers Spain Telephone (93) 8 49 74 33 Telefax (93) 8 49 75 44 E-Mail: [email protected] Pilz France Electronic 1, rue Jacob Mayer BP 12 67037 Strasbourg Cedex France Telephone 03 88 10 40 00 Telefax 03 88 10 80 00 E-Mail: [email protected] Pilz Skandinavien KS Pakilantie 61 00660 Helsinki Finland Telephone (09) 27 09 37 00 Telefax (09) 27 09 37 09 E-Mail: [email protected] Pilz Automation Technology Willow House, Medlicott Close Oakley Hay Business Park Corby Northants NN18 9NF United Kingdom Telephone (015 36) 46 07 66 Telefax (0 15 36) 46 08 66 E-Mail: [email protected] Pilz ltalia srl Via Meda 2/A 22060 Novedrate (CO) Italy Telephone (0 31) 78 95 11 Telefax (0 31) 78 95 55 E-Mail: [email protected] Pilz Ireland Industrial Automation Cork Business and Technology Park Model Farm Road Cork Ireland Telephone (0 21) 4 34 65 35 Telefax (0 21) 4 80 49 94 E-Mail: [email protected] Pilz Japan Co., Ltd. Three One Building 701 3-20-5 Shin-Yokohama Kohoku-ku Yokohama 222-0033 Japan Telephone (0 45) 4 71-22 81 Telefax (0 45) 4 71-22 83 E-Mail: [email protected] Pilz de Mexico S. de R.L. de C.V. Av. San Ignacio 1079 Col. Jardines de San Ignacio C.P. 45000 Guadalajara, Jalisco Mexico Telephone (0 13) 1 2216 81 Telefax (0 13) 6 47 81 85 E-Mail: [email protected] Pilz Nederland Postbus 186 4130 ED Vianen Netherlands Telephone (03 47) 32 0477 Telefax (03 47) 32 04 85 E-Mail: [email protected] Pilz Industrieelektronik S.L. Apartado 2028 2706-909 Colares Portugal Telephone (21) 9 28 9109 Telefax (21) 9 28 91 13 E-Mail: [email protected] Pilz China Representative Office Flat F9/F Huijing Building 134 Siyou Xin Malu Dongshan District Guangzhou 510600 China Telephone (0 20) 87 3716 18 Telefax (0 20) 87 37 35 55 E-Mail: [email protected] Pilz Skandinavien KS Energigatan 10 B 43437 Kungsbacka Sweden Telephone (03 00) 1 3990 Telefax (03 00) 3 07 40 E-Mail: [email protected] Pilz Industrial Automation Pte Ltd. 61, Kaki Bukit Ave 1, #05-01 Shun Li Industrial Park Singapore 417943 Singapore Telephone 8 44 4440 Telefax 8 44 44 41 E-Mail: [email protected] Pilz LP 24850 Drake Road Farmington Hills Michigan 48335 USA Telephone (2 48) 4 73-11 33 Telefax (2 48) 4 73-39 97 E-Mail: [email protected] Safety Relays PDIA 2 Drivers for SIMATIC S5 and S7 Operating Manual Item No. 20 205 20 205-04/02 Printed in Germany

Upload: vishal141189

Post on 25-Oct-2014

23 views

Category:

Documents


6 download

TRANSCRIPT

Page 1: 20205

www.pilz.com

���

� � ���

���

���

���

��

���

��

���

���

Pilz GmbH & Co.Felix-Wankel-Straße 2, 73760 Ostfildern, GermanyTelephone +49 (7 11) 34 09-0, Telefax +49 (7 11) 34 09-1 33

In many countries we are represented by sales partners. Please refer to ourHomepage for further details or contact our headquarters.

Pilz Ges.m.b.H.Modecenterstraße 141030 WienAustriaTelephone (01) 7 98 62 63-0Telefax (01) 7 98 62 64E-Mail: [email protected]

Pilz AustraliaIndustrial Automation LLP.9/475 Blackburn RoadMt. Waverley, Melbourne VIC 3149AustraliaTelephone (03) 95 44 63 00Telefax (03) 95 44 63 11E-Mail: [email protected]

Pilz BelgiumBC Buildinglndustriezone lIIlndustrielaan 49320 ErembodegemBelgiumTelephone (0 53) 83 66 70Telefax (0 53) 83 89 58E-Mail: [email protected]

Pilz do Brasil Sistemas EletrônicosIndustriais Ltda.Rua Ártico, 123 - Jd. do Mar09726-300São Bernardo do Campo - SPBrazilTelephone (11) 43 37-12 41Telefax (11) 43 37-12 42E-Mail: [email protected]

Pilz lndustrieelektronik GmbHGewerbepark HintermättliPostfach 65506 MägenwilSwitzerlandTelephone (0 62) 8 89 79 30Telefax (0 62) 8 89 79 40E-Mail: [email protected]

Headquarters:Pilz GmbH & Co.Felix-Wankel-Straße 273760 OstfildernGermanyTelephone (07 11) 34 09-0Telefax (07 11) 34 09-1 33E-Mail: [email protected]

Pilz Skandinavien KSEllegaardvej 25 L6400 SonderborgDenmarkTelephone 74 43 63 32Telefax 74 43 63 42E-Mail: [email protected]

Pilz lndustrieelektronik S.L.Edificio TilmaAvda. Sant Julià 108400 GranollersSpainTelephone (93) 8 49 74 33Telefax (93) 8 49 75 44E-Mail: [email protected]

Pilz France Electronic1, rue Jacob MayerBP 1267037 Strasbourg CedexFranceTelephone 03 88 10 40 00Telefax 03 88 10 80 00E-Mail: [email protected]

Pilz Skandinavien KSPakilantie 6100660 HelsinkiFinlandTelephone (09) 27 09 37 00Telefax (09) 27 09 37 09E-Mail: [email protected]

Pilz Automation TechnologyWillow House, Medlicott CloseOakley Hay Business ParkCorbyNorthants NN18 9NFUnited KingdomTelephone (0 15 36) 46 07 66Telefax (0 15 36) 46 08 66E-Mail: [email protected]

Pilz ltalia srlVia Meda 2/A22060 Novedrate (CO)ItalyTelephone (0 31) 78 95 11Telefax (0 31) 78 95 55E-Mail: [email protected]

Pilz Ireland Industrial AutomationCork Business and Technology ParkModel Farm RoadCorkIrelandTelephone (0 21) 4 34 65 35Telefax (0 21) 4 80 49 94E-Mail: [email protected]

Pilz Japan Co., Ltd.Three One Building 7013-20-5 Shin-YokohamaKohoku-kuYokohama 222-0033JapanTelephone (0 45) 4 71-22 81Telefax (0 45) 4 71-22 83E-Mail: [email protected]

Pilz de Mexico S. de R.L. de C.V.Av. San Ignacio 1079Col. Jardines de San IgnacioC.P. 45000Guadalajara, JaliscoMexicoTelephone (0 13) 1 22 16 81Telefax (0 13) 6 47 81 85E-Mail: [email protected]

Pilz NederlandPostbus 1864130 ED VianenNetherlandsTelephone (03 47) 32 04 77Telefax (03 47) 32 04 85E-Mail: [email protected]

Pilz Industrieelektronik S.L.Apartado 20282706-909 ColaresPortugalTelephone (21) 9 28 91 09Telefax (21) 9 28 91 13E-Mail: [email protected]

Pilz China Representative OfficeFlat F9/F Huijing Building134 Siyou Xin MaluDongshan DistrictGuangzhou 510600ChinaTelephone (0 20) 87 37 16 18Telefax (0 20) 87 37 35 55E-Mail: [email protected]

Pilz Skandinavien KSEnergigatan 10 B43437 KungsbackaSwedenTelephone (03 00) 1 39 90Telefax (03 00) 3 07 40E-Mail: [email protected]

Pilz Industrial Automation Pte Ltd.61, Kaki Bukit Ave 1, #05-01Shun Li Industrial ParkSingapore 417943SingaporeTelephone 8 44 44 40Telefax 8 44 44 41E-Mail: [email protected]

Pilz LP24850 Drake RoadFarmington HillsMichigan 48335USATelephone (2 48) 4 73-11 33Telefax (2 48) 4 73-39 97E-Mail: [email protected]

Safety Relays

PDIA 2 Drivers for SIMATIC S5 and S7Operating ManualItem No. 20 205

20 2

05-0

4/02

Prin

ted

in G

erm

any

Page 2: 20205

All rights to this manual are reserved by the publishers. Copies may be made for internalpurposes.

While every effort has been made to ensure that the information in this manual is accurate, noresponsibility can be accepted for errors or omissions contained within it.

We reserve the right to amend specifications without prior notice. We are grateful for anyfeedback on the contents of this manual.

The names of products, goods and technologies used in this manual are trademarks of therespective companies.

I , 05/2000

Page 3: 20205

PDIA 2 Drivers for SIMATIC S5 and S7: Operating Manual 1

Introduction 1-1

Overview of manual 1-1Terminology 1-2Definition of symbols 1-3

Overview 2-1

Range 2-2

Intended Use 3-1

PDIA 2 driver SIMATIC S5 3-1PDIA 2 driver SIMATIC S7 3-1

PDIA 2 Driver SIMATIC S5 4-1

PDIA 2 driver SIMATIC S5 4-1Block header 4-1Input parameters 4-1Output parameters 4-1Local flags 4-2Function 4-2Programming guidelines 4-2Reading diagnostic data 4-3Output parameter STAT 4-3Error word ERR 4-3Blocks required 4-4Connection: SIMATIC S5 - PDIA 2 4-5Structure of the data block 4-6Example 4-14

Contents

Page 4: 20205

Contents

2 PDIA 2 Drivers for SIMATIC S5 and S7: Operating Manual

PDIA 2 Driver SIMATIC S7 5-1

PDIA 2 Driver SIMATIC S5 5-1Block header 5-1Input parameters 5-1Output parameters 5-1Function 5-2Programming guidelines 5-2Reading diagnostic data 5-2Output parameter State 5-3Error word Error 5-3Blocks required 5-4Connection: SIMATIC S7 - PDIA 2 5-5Structure of the data range for diagnostic data 5-6Example 5-14

Page 5: 20205

1-1PDIA 2 Drivers for SIMATIC S5 and S7: Operating Manual

Introduction

This operating manual describes the PDIA2 drivers for the SIMATIC S5 andSIMATIC S7 controllers.

For those working with the PDIA 2 interface module and PNOZplus safetyrelays, you should also be familiar with the information found in the followingoperating manuals:

• PDIA 2 operating manual

• PNOZ XM1 operating instructions

• PNOZ XE1 operating instructions

• PNOZ XE2 operating instructions

Knowledge and understanding of information contained in the "PDIA 2Operating Manual" is assumed.

This manual is intended for instruction and should be retained for futurereference.

Overview of manual

This operating manual is divided into the following chapters:

1 IntroductionThe introduction is designed to familiarise the user with the content andstructure of the manual and the definition of symbols used.

2 OverviewProvides information on the most important features of the driver andgives a brief outline of the application area.

3 Intended UseContains information about the intended use of the PDIA 2 drivers.

4 PDIA 2 Driver SIMATIC S5Provides detailed information on the functionality of the PDIA 2 driver forthe SIMATIC S5 and the structure of the data block.

5 PDIA 2 Driver SIMATIC S7Provides detailed information on the functionality of the PDIA 2 driver forthe SIMATIC S7 and the structure of the data block.

Page 6: 20205

Introduction

1-2 PDIA 2 Drivers for SIMATIC S5 and S7: Operating Manual

Terminology

“PNOZplus” is the general designation for safety relays with diagnosticoutput. Throughout this manual the designation “PNOZplus” is used when thedescription is valid for all relays in the series.

If a description in the manual relates to a specific unit, then the product namefor that unit will be used (e.g. PNOZ XM1).

Page 7: 20205

1-3PDIA 2 Drivers for SIMATIC S5 and S7: Operating Manual

Definition of symbols

Information in this manual that is of particular importance can be identified asfollows:

DANGER!

This warning must be heeded! It warns of a hazardous situation thatposes an immediate threat of serious injury and death, and indicatespreventive measures that can be taken.

WARNING!

This warning must be heeded! It warns of a hazardous situation thatcould lead to serious injury and death, and indicates preventivemeasures that can be taken.

CAUTION!

This refers to a hazard that can lead to a less serious or minor injury plusmaterial damage, and also provides information on preventive measures thatcan be taken.

NOTICEThis describes a situation in which the product or devices in its immediateenvironment could be damaged. It also provides information on preventivemeasures that can be taken.

INFORMATIONThis gives advice on applications and provides information on specialfeatures, as well as highlighting areas within the text that are of particularimportance.

Page 8: 20205

Introduction

1-4 PDIA 2 Drivers for SIMATIC S5 and S7: Operating Manual

Notes

Page 9: 20205

2-1PDIA 2 Drivers SIMATIC S5 and S7: Operating Manual

Overview

The PDIA 2 drivers for the SIMATIC S5 and S7 read the diagnostic data of aPNOZplus safety relay from the PDIA 2. Diagnostic data is transmittedserially.

Following data is regarded as diagnostic data:

• Type of connected E-Stop or safety gate monitor(e.g. single-channel or dual-channel circuit etc.)

• Circuit status (open/closed)

• Start-up monitoring

• Synchronisation exceeded

• Partial operation error

• Wiring error

• Acknowledgement status (only with acknowledgement module PQUI)

• Relay status, start input, feedback control loop, reset button, start-upmonitoring, time monitoring

• Non-volatile stored information for any repairs on the PNOZ XM1 (anyrepairs are carried out by Pilz exclusively).

INFORMATIONExact information for diagnostic data of a PNOZplus relay can be found in thePDIA 2 operating manual.

Page 10: 20205

Overview

2-2 PDIA 2 Drivers SIMATIC S5 and S7: Operating Manual

Range

The software package “PDIA 2 Driver for SIMATIC S5 and S7” consists of

• one disk and

• “PDIA 2 Drivers for SIMATIC S5 and S7” operating manual

The disk contains the following files:

Doku directory:

• 20205.PDF English operating manual

S5 directory:

• PDIA2DST.S5D S5 program

• PDIA2DZ0.SEQ S5 allocation list

S7 directory:

• PDIA2D.ZIP S7 project archive

Page 11: 20205

3-1PDIA 2 Driver SIMATIC S5 and S7: Operating Manual

Intended Use

PDIA 2 driver SIMATIC S5

The PDIA 2 driver SIMATIC S5 has been designed to be used with aSIMATIC S5 controller.

Parameters can be set for the driver and used in the following way:

• It can be connected to the PDIA 2 interface module

• It can be used to read diagnostic data from a PNOZplus safety relay via thePDIA 2 interface module.

INFORMATIONThe PDIA 2 driver SIMATIC S5 is not suitable to use with the followingcontrollers:

• S5-90U

• S5-100U CPU 1

• S5-100U CPU 2

PDIA 2 driver SIMATIC S7

The PDIA 2 driver SIMATIC S7 has been designed to be used with aSIMATIC S7 controller

Parameters can be set for the driver and used in the following way:

• It can be connected to the PDIA 2 interface module

• It can be used to read the diagnostic data from a PNOZplus safety relay viathe PDIA 2 interface module.

INFORMATIONThe PDIA 2 driver SIMATIC S7 is not suitable to be used with the S7-500controller.

NOTICEPlease refer to the respective operating manuals for the intended use andproper application of PNOZplus safety relays and the PDIA 2 interface. Anysafety guidelines stated should be followed and observed.

Page 12: 20205

Intended Use

3-2 PDIA 2 Driver SIMATIC S5 and S7: Operating Manual

Notes

Page 13: 20205

4-1PDIA 2 Driver SIMATIC S5 and S7: Operating Manual

PDIA2 S5 driver

Block header

Input parameters

• DATA: Data signal of PDIA 2 output Od

• RDY: Data Ready Signal of PDIA2 output Or

• STRT: Start reading

• DB: Data blockDiagnostic data and internal data of the function block fbPDIA 2are stored in this data block.Note: the data block must be ³ 200 words.

• TMR: Free timer

Output parameters

• CLK Clock signal for PDIA2 input Ic

• STRB Strobe signal for PDIA2 input Is

• ERR Error code(see error word ERR, pg. 4-3)

• STAT Status of the function block(see output parameter STAT, pg. 4-3)

PDIA2

BI - DATABI - RDYBI - STRTB - DBT - TMR

CLK - BISTRB - BI

ERR - WSTAT - BY

PDIA 2 Driver SIMATIC S5

Page 14: 20205

PDIA 2 Driver SIMATIC S5

4-2 PDIA 2 Driver SIMATIC S5 and S7: Operating Manual

Local flags

The range MW 248 ... MW 254 is used internally for local flags.

Function

The PDIA 2 driver SIMATIC S5 reads diagnostic data from a PNOZplussafety relay via the PDIA 2 interface module. The driver has 2 inputs and 2outputs to enable the SIMATIC S5 to communicate with the PDIA 2.Diagnostic data is transmitted serially and stored in a data block.

Programming guidelines

The Ready-Signal RDY for the function block fbPDIA2 must be delayed byone cycle when

• the inputs from the input card have a different response time during a signalchange from 0 to 1 and 1 to 0.

• and the difference of the input times > 0.4 ms.

One bit from the PDIA 2 can be read per each PLC cycle when

• the inputs required are loaded direct from the peripheries before thefunction block fbPDIA2 is called up

• and the outputs are transferred to the peripheries immediately after the blockhas been called up.

INFORMATIONTo calculate the minimum scan time, see the PDIA 2 operating manual underthe section “Data transfer sequence”. Refer also to the programmingexample on page 4-14.

Page 15: 20205

4-3PDIA 2 Driver SIMATIC S5 and S7: Operating Manual

Reading diagnostic data

Diagnostic data is read when there is a positive edge at the input parameterSTRT.

The block sets the output parameter STAT to 0000.

INFORMATIONReading diagnostic data from the PDIA 2 interface module can take as longas 10 seconds. The length of time taken will depend on the number of circuitsand the PLC scan time.

Output parameter STAT

Once the data has been read from the PDIA 2 interface module, one bit ofthe output parameter STAT is set.

The output parameter STAT is bit-oriented.The following are valid for bit 00 ... 03 = 1:

• Bit 00: Diagnostic data is in the data block(see the data block description on page 4-6)

• Bit 01: Error is present (global message)

• Bit 02: Communication errorthe completer error message is in error word ERR, see page4-3

• Bit 03: Fatal error on the PNOZ XM1the complete error message is in error word ERR, see page4-3

Error word ERR

If bit 01 and bit 02 = 1 in the output parameter STAT a communication erroris present. In addition you will receive the following possible messages inerror word ERR:

Page 16: 20205

PDIA 2 Driver SIMATIC S5

4-4 PDIA 2 Driver SIMATIC S5 and S7: Operating Manual

• 0001H: Time Out for the block (no reaction from the energised PDIA 2)

• 0002H: Invalid length (< 2 or > 20) for the number of circuits

If bit 01 and bit 03 = 1 in the output parameter STAT, a fatal error is presentin one of the PNOZplus devices. In addition you will receive a message inerror word ERR (x is any hexadecimal digit):

• xxxxH: error message (hex code)

INFORMATIONIf this error occurs, contact Pilz. Give the configuration for your PNOZplusand the hex code for the error word.

Blocks required

• FB10 fbPDIA2 Function block to read the data from the PDIA 2

• DB10 dbPDIA2Data Data block for the diagnostic data and theinternal data of the function block fbPDIA2

Blocks FB10 and DB10 can be re-addressed using any address.

Page 17: 20205

4-5PDIA 2 Driver SIMATIC S5 and S7: Operating Manual

+ 24V0V

PDIA 2

OdIs Or

A2A1Ic

PNOZplus

SIMATIC S5

E1

E0

A0

A1

+24 V

0 V

fbPDIA 2

DATA

RDY

STRB

CLK

Fig. 4-1: Connection of the SIMATIC S5 to the PDIA 2

Connection SIMATIC S5 - PDIA 2

Fig. 4-1 shows the connection of the SIMATIC S5 to the PDIA 2 interfacemodule. They also detect the allocation of the inputs and outputs of thecontroller and the PDIA 2 to the input and output parameters of the PDIA 2drivers.

Page 18: 20205

PDIA 2 Driver SIMATIC S5

4-6 PDIA 2 Drivers SIMATIC S5 and S7: Operating Manual

Structure of the data block (input parameter DB)

The contents of the data block is valid if the output parameter State bit 01 =1(see page 4-3).

INFORMATIONA full description of the structure of the diagnostic data, the data transfersequence and the allocation of modules and circuits can be found in the“PDIA 2 Operating Manual”.

On the following pages you will find the data block divided into varioussections:

INFORMATIONThe data block must consist of ³ 200 words.

Section

Unit_ID

Version_Ch_A/B

Additional_inputs

Fatal_Error

Number_ circuit

Module_n_circuit type

Module_n_LED_code

Circuit_n_LED_colour

Circuit_n_Flag

Module_n_PII

Circuit test

Page

4-7

4-7

4-7

4-7

4-7

4-8

4-9

4-10

4-11

4-12

4-13

Page 19: 20205

4-7PDIA 2 Drivers SIMATIC S5 and S7: Operating Manual

Address

DR 001

DR 002

DR 003

DR 004

DR 005

DR 006

DR 007

Name

Unit_ID

Version_Ch_A

Version_Ch_B

Addit_inputs

Fatal_Error_Low

Fatal_Error_High

Number_circuits

Value

0B PNOZ XM10C PQUI with PNOZ XM1

Software version PNOZ XMIAchannel A

Software version PNOZ XMIAchannel B

Bit 0 = 0 relay A energisedBit 0 = 1 relay A de-energisedBit 1 = 0 relay B energisedBit 1 = 1 relay B de-energisedBit 2 = 0 start input, start button

pressed (24V)Bit 2 = 1 Start input, start button

not pressed (0V)Bit 3 = 0 Feedback loop contac-

tor de-energised (24V)Bit 3 = 1 Feedback loop contac-

tor energised (0V)Bit 4 = 0 Reset button

not pressedBit 4 = 1 Reset button

pressedBit 5 = 0 Start monitoring not

activated (24V)Bit 5 = 1 Start monitoring

activated(0V)Bit 6 = 0 Time monitoring

deactivated (24V)Bit 6 = 1 Time monitoring

activated (0V)Bit 7 Always 0

2-20

Note

Section: unit_ID, version, addit_inputs, fatal_error, no. _circuit

Page 20: 20205

PDIA 2 Driver SIMATIC S5

4-8 PDIA 2 Drivers SIMATIC S5 and S7: Operating Manual

Section: module_n_circuit type

Note

Circuit 01:upperCircuit 02:lower

Value

Bit 0-3 = circuit 01Bit 4-7 = circuit 02Value 0 Single-channelValue 1 Dual-channelValue 2 Single-channel

position monitoringValue 3 Single-channel start testValue 4 Triple-channelValue 5 Dual-channel

position monitoringValue 6 Dual-channel start-up

testingValue 7 Not usedValue 8 After power-up, all

switch contacts openValue 9-15 Not used

As for module_01_circuit type

As for module_01_circuit type

As for module_01_circuit type

As for module_01_circuit type

As for module_01_circuit type

As for module_01_circuit type

As for module_01_circuit type

As for module_01_circuit type

As for module_01_circuit type

Address

DR 008

DR 009

DR010

DR011

DR012

DR013

DR014

DR015

DR016

DR017

Name

Module_01_circuit type

Module_02_circuit type

Module_03_circuit type

Module_04_circuit type

Module_05_circuit type

Module_06_circuit type

Module_07_circuit type

Module_08_circuit type

Module_09_circuit type

Module_10_circuit type

Page 21: 20205

4-9PDIA 2 Drivers SIMATIC S5 and S7: Operating Manual

Section: module_n_LED code

Value

Bit 0-3 = circuit 01Bit 4-7 = circuit 02Value 0 LED offValue 1 LED onValue 2 LED flashesValue 3 LED flashes once

wiring error S12/S42Value 4 LED flashes twice

wiring error S22/S52Value 5 LED flashes three times

wiring error S32/S62Value 6 LED flashes four times

partial operationValue 7 LED flashes five times

synchronisation exceededValue 8 LED flashes six times

wiring error due toundefined circuit type

Value 9-15 Not used

As for module_01_LED_code

As for module_01_LED_code

As for module_01_LED_code

As for module_01_LED_code

As for module_01_LED_code

As for module_01_LED_code

As for module_01_LED_code

As for module_01_LED_code

As for module_01_LED_code

Address

DR 018

DR019

DR020

DR021

DR022

DR023

DR024

DR025

DR026

DR027

Note

Circuit 01:upperCircuit 02:lower

Name

Module_01_LED_Code

Module_02_LED_Code

Module_03_LED_Code

Module_04_LED_Code

Module_05_LED_Code

Module_06_LED_Code

Module_07_LED_Code

Module_08_LED_Code

Module_09_LED_Code

Module_10_LED_Code

Page 22: 20205

PDIA 2 Driver SIMATIC S5

4-10 PDIA 2 Drivers SIMATIC S5 and S7: Operating Manual

Section: circuit_n_LED_colour

Value

Bit 0-5 = For internal purposesBit6=1/Bit7=0 LED is greenBit6=0/Bit7=1 LED is redBit6=1/Bit7=1 LED is yellow

As for circuit_01_LED_colour

As for circuit_01_LED_colour

As for circuit_01_LED_colour

As for circuit_01_LED_colour

As for circuit_01_LED_colour

As for circuit_01_LED_colour

As for circuit_01_LED_colour

As for circuit_01_LED_colour

As for circuit_01_LED_colour

As for circuit_01_LED_colour

As for circuit_01_LED_colour

As for circuit_01_LED_colour

As for circuit_01_LED_colour

As for circuit_01_LED_colour

As for circuit_01_LED_colour

As for circuit_01_LED_colour

As for circuit_01_LED_colour

As for circuit_01_LED_colour

As for circuit_01_LED_colour

Address

DL 028

DL 029

DL 030

DL 031

DL 032

DL 033

DL 034

DL 035

DL 036

DL 037

DL 038

DL 039

DL 040

DL 041

DL 042

DL 043

DL 044

DL 045

DL 046

DL 047

NoteName

Circuit_01_LED_colour

Circuit_02_LED_colour

Circuit_03_LED_colour

Circuit_04_LED_colour

Circuit_05_LED_colour

Circuit_06_LED_colour

Circuit_07_LED_colour

Circuit_08_LED_colour

Circuit_09_LED_colour

Circuit_10_LED_colour

Circuit_11_LED_colour

Circuit_12_LED_colour

Circuit_13_LED_colour

Circuit_14_LED_colour

Circuit_15_LED_colour

Circuit_16_LED_colour

Circuit_17_LED_colour

Circuit_18_LED_colour

Circuit_19_LED_colour

Circuit_20_LED_colour

Page 23: 20205

4-11PDIA 2 Drivers SIMATIC S5 and S7: Operating Manual

Section: circuit_n_flag

Value

Bit 0 = 1 Wiring error(see also LED code)

Bit 1 = 1 Start-up monitoring(safety gate open/close)

Bit 2 = 1 Fully openBit 3 = 1 ClosedBit 4 = 1 Synchronisation monitoringBit 5 = 1 Synchronisation exceededBit 6 + 7 For internal purposes

As for circuit_01_flag

As for circuit_01_flag

As for circuit_01_flag

As for circuit_01_flag

As for circuit_01_flag

As for circuit_01_flag

As for circuit_01_flag

As for circuit_01_flag

As for circuit_01_flag

As for circuit_01_flag

As for circuit_01_flag

As for circuit_01_flag

As for circuit_01_flag

As for circuit_01_flag

As for circuit_01_flag

As for circuit_01_flag

As for circuit_01_flag

As for circuit_01_flag

As for circuit_01_flag

Address

DL 048

DL 049

DL 050

DL 051

DL 052

DL 053

DL 054

DL 055

DL 056

DL 057

DL 058

DL 059

DL 060

DL 061

DL 062

DL 063

DL 064

DL 065

DL 066

DL 067

Note

If bit 0,3,5 = 1, theother bits are notvalid.If, for example bit 0=1the status of circuitcannot be deterninedusing the other bits

Name

Schalter_01_Flag

Circuit_02_flag

Circuit_03_flag

Circuit_04_flag

Circuit_05_flag

Circuit_06_flag

Circuit_07_flag

Circuit_08_flag

Circuit_09_flag

Circuit_10_flag

Circuit_11_flag

Circuit_12_flag

Circuit_13_flag

Circuit_14_flag

Circuit_15_flag

Circuit_16_flag

Circuit_17_flag

Circuit_18_flag

Circuit_19_flag

Circuit_20_flag

Page 24: 20205

PDIA 2 Driver SIMATIC S5

4-12 PDIA 2 Drivers SIMATIC S5 and S7: Operating Manual

Value

Bit 0 = 0 S12 openBit 0 = 1 S12 closedBit 1 = 0 S22 openBit 1 = 1 S22 closedBit 2 = 0 S32 openBit 2 = 1 S32 closedBit 3 Always 0Bit 4 = 0 S42 openBit 4 = 1 S42 closedBit 5 = 0 S52 openBit 5 = 1 S52 closedBit 6 = 0 S62 openBit 6 = 1 S62 closedBit 7 Always 0

Module_01_PII

Module_01_PII

Module_01_PII

Module_01_PII

Module_01_PII

Module_01_PII

Module_01_PII

Module_01_PII

Module_01_PII

Address

DL 068

DL 069

DL 070

DL 071

DL 072

DL 072

DL 073

DL 074

DL 076

DL 077

Note

The PII is only displayedwhen all circuits arenot closed (e-stop,gate switch) !

Name

Module_01_PII

Module_02_PII

Module_03_PII

Module_04_PII

Module_05_PII

Module_06_PII

Module_07_PII

Module_08_PII

Module_09_PII

Module_10_PII

Section: module_n_PII

Page 25: 20205

4-13PDIA 2 Drivers SIMATIC S5 and S7: Operating Manual

Section: circuit monitoring:

The circuits can be easily tested using the following bit-oriented data.

7

08

16

08

16

08

16

08

16

08

16

08

16

Byteaddress

DL078

DL079

DL080

DL081

DL082

DL083

DL084

DL085

DL086

DL087

DL088

DL089

DL090

DL091

DL092

DL093

DL094

DL095

Note

True = present

True = present

True = present

True = closed

True = closed

True = closed

True = test

True = test

True = test

True = open

True = open

True = open

True = error

True = error

True = error

True = acknowledge(PQUI only)

True = acknowledge(PQUI only)

True = acknowledge(PQUI only)

Name

Circuit_present_no

Circuit_present_no

Circuit_present_no

CIrcuit_closed_no.

CIrcuit_closed_no.

CIrcuit_closed_no.

Circuit_test_no.

CIrcuit_test_no.

Circuit_test_no.

Circuit_open_no.

Circuit_open_no.

Circuit_open_no.

CIrcuit_error-no.

Circuit_error-no.

Circuit_error-no.

Circuit_acknowledge_no.

Circuit_acknowledge_no.

Circuit_acknowledge_no.

6

07

15

07

15

07

15

07

15

07

15

07

15

5

06

14

06

14

06

14

06

14

06

14

06

14

4

05

13

05

13

05

13

05

13

05

13

05

13

3

04

12

20

04

12

20

04

12

20

04

12

20

04

12

20

04

12

20

2

03

11

19

03

11

19

03

11

19

03

11

19

03

11

19

03

11

19

1

02

10

18

02

10

18

02

10

18

02

10

18

02

10

18

02

10

18

0

01

09

17

01

09

17

01

09

17

01

09

17

01

09

17

01

09

17

Bit address

Page 26: 20205

PDIA 2 Driver SIMATIC S5

4-14 PDIA 2 Drivers SIMATIC S5 and S7: Operating Manual

Example

The PDIA 2 interface module is conneced to the I/Os of the SIMATIC S5 asdescribed in the following table.

Connection PDIA 2

Od

Or

Ic

Is

SIMATIC S5

E8.1

E8.0

A4.1

A4.0

FB PDIA 2

DATA

RDY

CLK

STRB

E 9.0 = 1: start to read the diagnostic data

E 9.1 = 1: stop a continual reading of diagnostic data

Segment 1 0000 Application example

:***

Segment 2 0001 Form start flag

:U E 9.0 Start:U(:ON M 15.0 Start pulse:O E 9.1 No start:= M 15.3 Start reading:***

Segment 3 0008 Inputs from peripheries

:L PY 8:T MB 10 Current periphery image:***

Segment 4 000B Block call up

Page 27: 20205

4-15PDIA 2 Drivers SIMATIC S5 and S7: Operating Manual

:SPA FB 10Name: PDIA2DATA: M 10.1 PDIA2 Od (from peripheries)RDY : M 15.4 PDIA2 Or (dealyed by one cycle)STRT: M 15.3 Start readingDB : DB 10 Diagnostic dataTMR : T 1 Time function element for timingCLK : A 4.1 PDIA2 IcSTRB: A 4.0 PDIA2 IsERR : MW 12 Error wordSTAT: MB 14 Status

: :***

Segment 5 0018 Outputs to the peripheries

:L AB 4:T PY 4:***

Segment 6 001B Ready delayed by one cycle

:U M 10.0 PDIA2 Or (from peripheries):= M 15.4 PDIA2 Or (delayed by one cycle):***

Segment 7 001E Edge evaluation for start

:U M 14.0 Reading complete:UN M 15.1 Auxiliary flag pulse start:= M 15.0 Pulse start:***

Segment 8 0022 Auxiliary flag edge start

:U M 14.0 Reading finished:= M 15.1 Auxiliary flag pulse start:***

Segment 9 0025 Block end

:BE

Page 28: 20205

PDIA 2 Driver SIMATIC S5

4-16 PDIA 2 Drivers SIMATIC S5 and S7: Operating Manual

Notes

Page 29: 20205

5-1PDIA2 Drivers SIMATIC S5 and S7: Operating Manual

PDIA 2 Driver SIMATIC S7

PDIA2

ENBOOL - DataBOOL - ReadyBOOL - Start

POINTER - DiagData

ENOClock - BOOL

Strobe - BOOLError - WORDState - BYTE

PDIA2 S7 driver

Block header

Input parameter

• EN: Enable input

• Data: Data signal of the PDIA2 output Od

• Ready: Data ready signal of the PDIA2 output Or

• Start: Start the reading process

• DiagData:Pointer for the start of the memory range for diagnostic dataNote: the memory range in a data block must be³ 101 bytes.

Output parameter

• ENO: Enable output

• Clock: Clock signal for PDIA2 input Ic

• Strobe: Strobe signal for PDIA2 input Is

• Error: Error word(see error word Error, S.5-3)

• State: Status of the block function(see output parameter State, page 5-3)

Page 30: 20205

PDIA-2 Driver SIMATIC S7

5-2 PDIA2 Drivers SIMATIC S5 and S7: Operating Manual

Function

The PDIA 2 driver SIMATIC S7 reads the diagnostic data from a PNOZplussafety relay via the PDIA 2 interface module. The driver has 2 inputs and 2outputs for a SIMATIC S7 to communicate with the PDIA 2 interface module.Diagnostic data is transmitted serially and is stored in a data block.

Programming notes

The signal Ready for the function block fbPDIA2 must be delayed by onecycle if

• the inputs for the input card have a different response time during a signalchange from 0 to 1 and 1 to 0.

• and the difference in the response times > 0.4 ms.

One bit from the PDIA 2 can be read per each PLC-cycle if

• the inputs required are loaded directly from the peripheries before callingup the function block fbPDIA2

• and the outputs are transferred to the peripheries immediately after the blockfbPDIA2 has been called up.

INFORMATIONTo calculate the minimum scan time, please refer to the PDIA 2 operatingmanual “Sequence for data transfer”. Refer also to the programming exampleon page 5-14.

Reading diagnostic data

The positive edge of the input parameter Start triggers reading thediagnostic data.

The block sets the output parameter State = 0000.

Page 31: 20205

5-3PDIA2 Drivers SIMATIC S5 and S7: Operating Manual

INFORMATIONReading diagnostic data from the PDIA2 interface module can take up to 10seconds. The length of time taken will depend on the number of circuits andthe PLC scan time.

Output parameter State

Once the diagnostic data has been read from the PDIA 2 interface module,one bit of the output parameter State is set.

The output parameter State is bit-oriented. The following are valid for bit 00... 03 = 1:

• Bit 00: Diagnostic data is in the data block(see data block description on page 5-5)

• Bit 01: An error is present (global message)

• Bit 02: Communication errorthe full error message is in the error word Error, see page 5-3

• Bit 03: Fatal error on the PNOZ XM1the full error message is in the error word Error, see page 5-3

Error word Error

If bit 01 and bit 02 = 1 for the output parameter State, a communication erroris present. In addition you will receive the following possible messages in theerror word Error:

• 0001H: Time Out of the block (no reaction from the energised PDIA 2)

• 0002H: Length is invalid (< 2 or > 20) for the number of circuits

If bit 01 and bit 03 = 1 for the output parameter State, a fatal error is presentin a PNOZplus device. In addition you will receive a message in the errorword Error (x is any hexadecimal digit):

• xxxxH: error message (hex code)

Page 32: 20205

PDIA-2 Driver SIMATIC S7

5-4 PDIA2 Drivers SIMATIC S5 and S7: Operating Manual

INFORMATIONIf this occurs, contact Pilz. State the configuration for your PNOZplus andthe hex code for the error word.

Blocks required

• FB1* fbPDIA2 Function block to read data from the PDIA 2

• DB1* diPDIA2 Instance block for function blockfbPDIA2

• DB10* dbDiagData Data block for the daignostic data

• UDT10* udtDiagData Data type for the diagnostic data

• SFC21 sfcFILL System function "Assign field"

• SFC64 sfcTIMETCK System function "Read system time"

* These blocks can be re-addressed.

Page 33: 20205

5-5PDIA2 Drivers SIMATIC S5 and S7: Operating Manual

+ 24V0V

PDIA 2

OdIs Or

A2A1Ic

PNOZplus

SIMATIC S7

E1

E0

A0

A1

+24 V

0 V

fbPDIA 2

Data

Ready

Strobe

Clock

Fig. 5-1: Connecting the SIMATIC S7 to the PDIA 2

Connection: SIMATIC S7 - PDIA 2

Fig. 5-1 shows the connection of the SIMATIC S7 to the PDIA 2 interfacemodule. They detect the allocation of the I/Os from the controller and thePDIA 2 to the I/O parameters of the PDIA 2 driver.

Page 34: 20205

PDIA 2 Driver SIMATIC S7

5-6 PDIA 2 Drivers SIMATIC S5 and S7: Operating Manual

Structure of the data range for diagnostic data(input parameter DiagData )

There is a user data type udtDiagData available to establish the memoryrange for the diagnostic data.

The contents of the memory range is valid if the output parameter State bit01 =1 (see page 5-3).

INFORMATIONDetailed description of the structure of the diagnostic data, the data transfersequence and the allocation of modules and circuits can be found in the“PDIA 2 operating manual”.

On the following pages you will find the structure of the user data type that issupplied. This has been divided into sections:

Section

Unit_ID

Version_Ch_A/B

Addit_inputs

Fatal_Error

No._ circuit

Module_n_circuit type

Module_n_LED_code

Circuit_n_LED_colour

Circuit_n_Flag

Module_n_PII

Circuit test

Page

5-7

5-7

5-7

5-7

5-8

5-8

5-9

5-10

5-11

5-12

5-13

INFORMATIONThe memory range must be ³ 101 bytes.

Page 35: 20205

5-7PDIA 2 Drivers SIMATIC S5 and S7: Operating Manual

Adresse

+ 0.0

+ 1.0

+ 2.0

+ 3.0

+ 4.0

+ 5.0

+ 6.0

Name

Unit_ID

Version_Ch_A

Version_Ch_B

Addit_inputs

Fatal_Error_Low

Fatal_Error_High

Number_ circuits

Value

0B PNOZ XM10C PQUI mit PNOZ XM1

Software version PNOZ XMIAchannel A

Software version PNOZ XMIAchannel B

Bit 0 = 0 Relay A energisedBit 0 = 1 Relay A de-energisedBit 1 = 0 Relay B energisedBit 1 = 1 Relay B de-energisedBit 2 = 0 Start input, start button

pressed (24V)Bit 2 = 1 Start input, start button

not pressed (0V)Bit 3 = 0 Feedback loop contac-

tors de-energised (24V)Bit 3 = 1 Feedback loop contac-

tors energised (0V)Bit 4 = 0 Reset button

not pressedBit 4 = 1 Reset button

pressedBit 5 = 0 Start monitoring

deactivated (24V)Bit 5 = 1 Start monitoring

activated (0V)Bit 6 = 0 Time monitoring

deactivated (24V)Bit 6 = 1 Time monitoring

activated (0V)Bit 7 Always 0

2-20

NoteType

Byte

Byte

Byte

Byte

Byte

Byte

Byte

Section: unit_ID, version, addit_inputs, fatal_error, no._circuits

Page 36: 20205

PDIA 2 Driver SIMATIC S7

5-8 PDIA 2 Drivers SIMATIC S5 and S7: Operating Manual

Section: module_n_circuit type

Note

Circuit 01:upperCircuit 02:lower

Value

Bit 0-3 = Circuit 01Bit 4-7 = Circuit 02Value 0 Single-channelValue 1 Dual-channelValue 2 Single-channel

position monitoringValue 3 Single-channel start testValue 4 Triple-channelValue 5 Dual-channel

position monitoringValue 6 Dual-channel start-up testValue 7 not usedValue 8 After power on

All switch contacts openValue 9-15 Not used

As for module_01_circuit type

As for module_01_circuit type

As for module_01_circuit type

As for module_01_circuit type

As for module_01_circuit type

As for module_01_circuit type

As for module_01_circuit type

As for module_01_circuit type

As for module_01_circuit type

Address

+ 7.0

+ 8.0

+ 9.0

+ 10.0

+ 11.0

+ 12.0

+ 13.0

+ 14.0

+ 15.0

+ 16.0

Name

Module_01_circuit type

Module_02_circuit type

Module_03_circuit type

Module_04_circuit type

Module_05_circuit type

Module_06_circuit type

Module_07_circuit type

Module_08_circuit type

Module_09_circuit type

Module_10_circuit type

Type

Byte

Byte

Byte

Byte

Byte

Byte

Byte

Byte

Byte

Byte

Page 37: 20205

5-9PDIA 2 Drivers SIMATIC S5 and S7: Operating Manual

Section: module_n_LED code

Value

Bit 0-3 = circuit 01Bit 4-7 = circuit 02Value 0 LED offValue 1 LED onValue 2 LED flashesValue 3 LED flashes once

wiring errorS12/S42

Value 4 LED flashes twicewiring errorS22/S52

Value 5 LED flashes three timeswiring errorS32/S62

Value 6 LED flashes four timespartial operation

Value 7 LED flashes five timessynchronisationexceeded

Value 8 LED flashes six timeswiring errordue to undefined circuittype

Value 9-15 Not used

As for module_01_LED_code

As for module_01_LED_code

As for module_01_LED_code

As for module_01_LED_code

As for module_01_LED_code

As for module_01_LED_code

As for module_01_LED_code

As for module_01_LED_code

As for module_01_LED_code

Address

+ 17.0

+ 18.0

+ 19.0

+ 20.0

+ 21.0

+ 22.0

+ 23.0

+ 24.0

+ 25.0

+ 26.0

Note

Circuit 01:upperCircut 02:lower

Name

Module_01_LED_code

Module_02_LED_code

Module_03_LED_code

Module_04_LED_code

Module_05_LED_code

Module_06_LED_code

Module_07_LED_code

Module_08_LED_code

Module_09_LED_code

Module_10_LED_code

Type

Byte

Byte

Byte

Byte

Byte

Byte

Byte

Byte

Byte

Byte

Page 38: 20205

PDIA 2 Driver SIMATIC S7

5-10 PDIA 2 Drivers SIMATIC S5 and S7: Operating Manual

Value

Bit 0-5 = For internal purposesBit 6=1/bit 7=0 LED is greenBit 6=0/bit 7=1 LED is redBit 1/bit 7=1 LED is yellow

As for circuit_01_LED_colour

As for circuit_01_LED_colour

As for circuit_01_LED_colour

As for circuit_01_LED_colour

As for circuit_01_LED_colour

As for circuit_01_LED_colour

As for circuit_01_LED_colour

As for circuit_01_LED_colour

As for circuit_01_LED_colour

As for circuit_01_LED_colour

As for circuit_01_LED_colour

As for circuit_01_LED_colour

As for circuit_01_LED_colour

As for circuit_01_LED_colour

As for circuit_01_LED_colour

As for circuit_01_LED_colour

As for circuit_01_LED_colour

As for circuit_01_LED_colour

As for circuit_01_LED_colour

Address

+ 27.0

+ 28.0

+ 29.0

+ 30.0

+ 31.0

+ 32.0

+ 33.0

+ 34.0

+ 35.0

+ 36.0

+ 37.0

+ 38.0

+ 39.0

+ 40.0

+ 41.0

+ 42.0

+ 43.0

+ 44.0

+ 45.0

+ 46.0

NoteName

Circuit_01_LED_colour

Circuit_02_LED_colour

Circuit_03_LED_colour

Circuit_04_LED_colour

Circuit_05_LED_colour

Circuit_06_LED_colour

Circuit_07_LED_colour

Circuit_08_LED_colour

Circuit_09_LED_colour

Circuit_10_LED_colour

Circuit_11_LED_colour

Circuit_12_LED_colour

Circuit_13_LED_colour

Circuit_14_LED_colour

Circuit_15_LED_colour

Circuit_16_LED_colour

Circuit_17_LED_colour

Circuit_18_LED_colour

Circuit_19_LED_colour

Circuit_20_LED_colour

Type

Byte

Byte

Byte

Byte

Byte

Byte

Byte

Byte

Byte

Byte

Byte

Byte

Byte

Byte

Byte

Byte

Byte

Byte

Byte

Byte

Section: circuit_n_LED_colour

Page 39: 20205

5-11PDIA 2 Drivers SIMATIC S5 and S7: Operating Manual

Section: circuit_n_flag

Value

Bit 0 = 1 Wiring error(see also LED code)

Bit 1 = 1 Start-up monitoring(safety gate open/close)Bit 2 = 1 Fully openBit 3 = 1 ClosedBit 4 = 1 Synchronis. monitoringBit 5 = 1 Synchronisation

exceededBit 6 + 7 For internal purposes

As for circuit_01_flag

As for circuit_01_flag

As for circuit_01_flag

As for circuit_01_flag

As for circuit_01_flag

As for circuit_01_flag

As for circuit_01_flag

As for circuit_01_flag

As for circuit_01_flag

As for circuit_01_flag

As for circuit_01_flag

As for circuit_01_flag

As for circuit_01_flag

As for circuit_01_flag

As for circuit_01_flag

As for circuit_01_flag

As for circuit_01_flag

As for circuit_01_flag

As for circuit_01_flag

Address

+ 47.0

+ 48.0

+ 49.0

+ 50.0

+ 51.0

+ 52.0

+ 53.0

+ 54.0

+ 55.0

+ 56.0

+ 57.0

+ 58.0

+ 60.0

+ 60.0

+ 61.0

+ 62.0

+ 63.0

+ 64.0

+ 65.0

+ 66.0

Note

If Bit 0,3,5 = 1, theother bits are notvalid.If, for example bit0 = 1 the status ofthe circuit cannotbe determinedfrom the other bits

Name

Circuit_01_flag

Circuit_02_flag

Circuit_03_flag

Circuit_04_flag

Circuit_05_flag

Circuit_06_flag

Circuit_07_flag

Circuit_08_flag

Circuit_09_flag

Circuit_10_flag

Circuit_11_flag

Circuit_12_flag

Circuit_13_flag

Circuit_14_flag

Circuit_15_flag

Circuit_16_flag

Circuit_17_ flag

Circuit_18_flag

Circuit_19_ flag

Circuit_20_flag

Type

Byte

Byte

Byte

Byte

Byte

Byte

Byte

Byte

Byte

Byte

Byte

Byte

Byte

Byte

Byte

Byte

Byte

Byte

Byte

Byte

Page 40: 20205

PDIA 2 Driver SIMATIC S7

5-12 PDIA 2 Drivers SIMATIC S5 and S7: Operating Manual

Value

Bit 0 = 0 S12 openBit 0 = 1 S12 closedBit 1 = 0 S22 openBit 1 = 1 S22 closedBit 2 = 0 S32 openBit 2 = 1 S32 closedBit 3 Always 0Bit 4 = 0 S42 openBit 4 = 1 S42 closedBit 5 = 0 S52 openBit 5 = 1 S52 closedBit 6 = 0 S62 openBit 6 = 1 S62 closedBit 7 Always 0

Module_01_PII

Module_01_PII

Module_01_PII

Module_01_PII

Module_01_PII

Module_01_PII

Module_01_PII

Module_01_PII

Module_01_PII

Address

+ 67.0

+ 68.0

+ 69.0

+ 70.0

+ 71.0

+ 72.0

+ 73.0

+ 74.0

+ 75.0

+ 76.0

Note

The PII is onlydisplayed whenall circuits (e-stop, gate switchetc) are notclosed

Name

Module_01_PII

Module_02_PII

Module_03_PII

Module_04_PII

Module_05_PII

Module_06_PII

Module_07_PII

Module_08_PII

Module_09_PII

Module_10_PII

Type

Byte

Byte

Byte

Byte

Byte

Byte

Byte

Byte

Byte

Byte

Section: module_n_PII

Page 41: 20205

5-13PDIA 2 Drivers SIMATIC S5 and S7: Operating Manual

Section:circuit testing:

The circuit can be checked quickly using the following bit-oriented data.

7

08

16

08

16

08

16

08

16

08

16

08

16

Byteaddress

+ 78.

+ 79.

+ 80.

+ 82.

+ 83.

+ 84.

+ 86.

+ 87.

+ 88.

+ 90.

+ 91.

+ 92.

+ 94.

+ 95.

+ 96.

+ 98.

+ 99.

+ 100.

Note

True = available

True = available

True = available

True = closed

True = closed

True = closed

True = test

True = test

True = test

True = open

True = open

True = open

True = error

True = error

True = error

True = acknowledge(PQUI only)

True = acknowledge(PQUI only)

True = acknowledge(PQUI only)

Name

Circuit_avaialbe_no.

Circuit_available_no.

Circuit_available_no

Circuit_closed_no.

Circuit_closed_no.

Circuit_closed_no.

Circuit_test_no.

Circuit_test_no.

Circuit_test_no.

Circuit_open_no.

Circuit_open_no.

Circuit_open_no.

Circuit_error-no.

Circuit_error-no.

Circuit_error-no.

Circuit_acknowledge_no.

Circuit_acknowledge_no.

Circuit_acknowledge_no.

6

07

15

07

15

07

15

07

15

07

15

07

15

5

06

14

06

14

06

14

06

14

06

14

06

14

4

05

13

05

13

05

13

05

13

05

13

05

13

3

04

12

20

04

12

20

04

12

20

04

12

20

04

12

20

04

12

20

2

03

11

19

03

11

19

03

11

19

03

11

19

03

11

19

03

11

19

1

02

10

18

02

10

18

02

10

18

02

10

18

02

10

18

02

10

18

0

01

09

17

01

09

17

01

09

17

01

09

17

01

09

17

01

09

17

Bit address

Page 42: 20205

PDIA 2 Driver SIMATIC S7

5-14 PDIA 2 Drivers SIMATIC S5 and S7: Operating Manual

Example

The PDIA 2 interface module is connected to the SIMATIC S7 I/Os asdescribed in the following table (refer also “Connection: SIMATIC S7 - PDIA2”, page 5-5).

Connection PDIA 2

Od

Or

Ic

Is

SIMATIC S7

E4.1

E4.0

A4.1

A4.0

FB PDIA 2

Data

Ready

Clock

Strobe

E 0.7 = 1: start to read diagnostic data

E 0.6 = 1: stop reading the diagnostic data

FUNCTION FC 1 : VOIDTITLE =Application exampleVERSION : 0.0

BEGINSEGMENTTITLE =form start flag

U E 0.7; // StartU( ;ON M 15.0; // pulse for startO E 0.6; // no start) ; = M 15.3; // start reading

SEGMENTTITLE = Get inputs from the peripheries

L PEB 4;T MB 10; // current periphery image

Page 43: 20205

5-15PDIA 2 Drivers SIMATIC S5 and S7: Operating Manual

SEGMENTTITLE =Block call up

CALL FB 1 , DB 1 (Data := M 10.1,// PDIA2 Od (from peripheries)Ready := M 15.4,// PDIA2 Or (delayed by one cycle)Start := M 15.3,// Start readingDiagData := DB10.DBX 0.0,// Diagnostic dataClock := A 4.1,// PDIA2 IcStrobe := A 4.0,// PDIA2 IsError := MW 12,// Error wordState := MB 14);// Status

SEGMENTTITLE =Transfer outputs to peripheries

L AB 4;T PAB 4;

SEGMENTTITLE =Ready Signal from PDIA2 delayed by one cycle

U M 10.0; // PDIA2 Or (from peripheries)= M 15.4; // PDIA2 Or (delayed by one cycle)

NETWORKTITLE =Edge evaluation for start

U M 14.0; // reading completedFP M 15.1; // auxiliary flag pulse start= M 15.0; // pulse flag start

END_FUNCTION

Page 44: 20205

PDIA 2 Driver SIMATIC S7

5-16 PDIA 2 Drivers SIMATIC S5 and S7: Operating Manual

Notes

Page 45: 20205
Page 46: 20205