19.08.2013 Views

Safety Integrated - Industry - Siemens

Safety Integrated - Industry - Siemens

Safety Integrated - Industry - Siemens

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Ex. No.<br />

5.2<br />

Example Code<br />

Preliminary remark<br />

Enclosed you will find the SIMOCODE pro and STEP 7 Project<br />

example codes with which you can reconstruct the functionality<br />

described here.<br />

The example code is always assigned to the components used<br />

in the Function Examples and functions as necessary. Any further<br />

problems to be solved must be dealt with individually by<br />

the user. However, the example code can serve as a basis.<br />

Downloading the STEP 7 Project<br />

To access the corresponding project file, open the proffered<br />

"CD-FE-I-039-V10-proC.zip" file and extract this into any directory.<br />

To download the S7 Project in the CPU you must have a connection<br />

between the MPI interface of your PG/PC and the MPI<br />

interface of the CPU.<br />

Please proceed as follows:<br />

■ First load the hardware configuration in the S7 CPU<br />

■ Change to SIMATIC Manager<br />

■ Activate the Module folder<br />

■ Click the Load button<br />

The assignment of the cyclical control and signal data that has<br />

been exchanged between the DP Master and SIMOCODE once<br />

in each DP mode is listed in the following table. The control<br />

data is sent to SIMOCODE from the DP Master. SIMOCODE answers<br />

by sending the signal data to the master module. The<br />

CPU 315-2DP is the master in this example. In the PLC program,<br />

access to the cyclical data is via the inputs (signal data)<br />

and the outputs (control data).<br />

Note<br />

The program code for creating the control commands<br />

to switch the direct starter on and off must be individually<br />

created by the user.<br />

The program code for further processing the<br />

"EMERGENCY STOP" signal in the PLC must be individually<br />

created by the user.<br />

The "EMERGENCY STOP" signal is not safety oriented.<br />

150 Functional Example No. CD-FE-I-039-V10-EN<br />

Table of controls at the PLC interface<br />

Cyclical control data<br />

Bit 0.0 ON<<br />

Bit 0.1 OFF<br />

Bit 0.2 ON><br />

Bit 0.3 Not assigned<br />

Bit 0.4 Not assigned<br />

Bit 0.5 Mode Selector S1<br />

Bit 0.6 Not assigned<br />

Bit 0.7 Not assigned<br />

Table of signals at the PLC interface<br />

Cyclical signal data<br />

Bit 0.0 ON<<br />

Bit 0.1 OFF<br />

Bit 0.2 ON><br />

Bit 0.3 Pre-warning Overload<br />

Bit 0.4 Interlocking time active<br />

Bit 0.5 REMOTE operating mode<br />

Bit 0.6 General Fault<br />

Bit 0.7 General Warning<br />

Bit 1.0 EMERGENCY STOP<br />

Bit 1.1 Actuator failure<br />

Bit 1.2 Not assigned<br />

Bit 1.3 Not assigned<br />

Bit 1.4 Not assigned<br />

Bit 1.5 Not assigned<br />

Bit 1.6 Not assigned<br />

Bit 1.7 Not assigned

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!