19.08.2013 Views

Safety Integrated - Industry - Siemens

Safety Integrated - Industry - Siemens

Safety Integrated - Industry - Siemens

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

FB "SET_ACT" (FB 3, DB 3)<br />

Network 1<br />

#ACK<br />

The status of the SR flip-flop (#EN) is evaluated in OB 1 as a<br />

precondition for a start command. In case of a detection zone<br />

violation OSSD becomes "0" and resets the SR flip-flop as well<br />

as the #RELEASE (used in network 2).<br />

Note<br />

For this type of flip-flop it is reset if the S input and the<br />

R input are controlled with a "1" signal (resetting has priority).<br />

Network 2<br />

#COND1<br />

#RELEASE<br />

#N #EN<br />

N SR<br />

S<br />

#OSSD<br />

R Q<br />

The actuator (here simulated by an indicator light) only becomes<br />

active if<br />

■ the start condition could be transmitted (see OB 1 or<br />

OB 35) and<br />

■ an enable was given (see previous network 1)<br />

FB "FIELD_PAIR_SWITCHING" (FB 4)<br />

The following table describes the parameters.<br />

&<br />

#RELEASE<br />

=<br />

#ACTUATOR<br />

=<br />

Parameter Input / output Convention<br />

SEN_FIELD1 Position switch (NC) "1": Switch not activated<br />

SEN_FIELD2 Position switch (NC) "1": Switch not activated<br />

SEN_FIELD3 Memory bit Dummy<br />

SEN_FIELD4 Memory bit Dummy<br />

FIELD_BIT0 Bits of the cyclic output –<br />

FIELD_BIT1<br />

FIELD_BIT2<br />

data<br />

A maximum of four zone pairs (one zone pair consists of a<br />

safety and a warning zone) can be actively switched. However,<br />

only one zone pair must be active at any time. In this example<br />

zone pair 1 or 2 can be active. Zone pair 3 and 4 are not<br />

G_FB_XX_189<br />

G_FB_XX_190<br />

ready. If you also wish to use these zone pairs, replace the<br />

memory bits (in this example the dummys) by sensors (e.g.<br />

further position switches). These zone pairs 3 and/or 4 must<br />

previously have been configured with the LS4Soft software.<br />

In the prepared example, it can be switched from zone pair 1<br />

to 2 and from zone pair 2 to 1. Which zone pair is now active<br />

depends on bits 0, 1, 2 of the cyclic output data (parameter<br />

"FIELD_BIT0", "FIELD_BIT1", "FIELD_BIT2").<br />

Note<br />

When switching the zone pairs, the PC adapter must not<br />

be connected (PC adapter must not be connected at the<br />

LS4).<br />

7<br />

Cyclic<br />

output data<br />

0<br />

The following assignments apply:<br />

FIELD_BIT0<br />

FIELD_BIT1<br />

FIELD_BIT2<br />

FIELD_BIT2 FIELD_BIT1 FIELD_BIT0 Active<br />

zone pair<br />

0 0 1 1 –<br />

0 1 0 2 –<br />

Note<br />

0 1 1 3 Not real-<br />

1 0 0 4<br />

ized in the<br />

example<br />

The statuses of these three bits are determined by the status<br />

of the position switches (SEN_FIELD1 and SEN_FIELD2). The<br />

realization in the program code is displayed below.<br />

Functional Example No. AS-FE-I-010-V11-EN 313<br />

G_FB_XX_191<br />

Ex. No.<br />

10

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

Saved successfully!

Ooh no, something went wrong!