Skip to main content

SF_MutingPar_2Sensor

Tip

The version of the function block as described here corresponds to the latest version of the function block in Version list of function blocks.

Applicable safety standards

SF_MutingPar_2Sensor is a certified PLCopen function block. For detailed information about applied standards, see "PLCopen – Technical Committee 5 – Safety Software".

Important

The requirements listed in the standards must be fulfilled by the user.

Interface description

Muting is the deliberate suppression of a safety function. Parallel muting with two muting sensors is specified in this block.

Table 64. VAR_INPUT

Name

Data Type

Initial Value

Description, parameter values

Activate

BOOL

FALSE

General input parameters

S_AOPD_In

SAFEBOOL

FALSE

Variable

OSSD signal from AOPD.

FALSE: Protection field interrupted.

TRUE: Protection field not interrupted.

S_MutingSwitch11

SAFEBOOL

FALSE

Variable

Status of muting sensor MutingSwitch11.

FALSE: MutingSwitch 11 not actuated.

TRUE: Workpiece actuates MutingSwitch11.

S_MutingSwitch12

SAFEBOOL

FALSE

Variable.

Status of muting sensor MutingSwitch12.

FALSE: MutingSwitch 12 not actuated.

TRUE: Workpiece actuated MutingSwitch 12

S_MutingLamp

SAFEBOOL

FALSE

Variable or constant.

Shows the state of the muting lamp.

FALSE: Muting lamp faulty

TRUE: Muting lamp not faulty.

DiscTimeEntry

TIME

T#0s

Constant 0..4 s;

Maximum discrepancy time for S_MutingSwitch11 and S_MutingSwitch12

The "DiscTimeEntry and MaxMutingTime" caution note must be observed.

MaxMutingTime

TIME

T#0s

Constant 0 .. 10 min.

Maximum time for complete muting sequence, timer is started when the first muting sensor is actuated.

The "DiscTimeEntry and MaxMutingTime" caution note must be observed.

MutingEnable

BOOL

FALSE

Variable or constant.

Command of the control system which activates the start of the muting function when required by the machine cycle. After starting the muting function, this signal can be switched off.

FALSE: Muting not active

TRUE: Start of the muting function activated.

S_StartReset

SAFEBOOL

FALSE

General input parameters

Reset

BOOL

FALSE

General input parameters



DiscTimeEntry and MaxMutingTime

For developers in Extended Level: The DiscTimeEntry and MaxMutingTime inputs have to be set to constant values. This means that these values must not be changed for the calls.

Table 65. VAR_OUTPUT

Name

Data Type

Initial Value

Description, parameter values

Ready

SAFEBOOL

FALSE

General output parameters

S_AOPD_Out

SAFEBOOL

FALSE

Safety-oriented output, indicates the status of the non-isolating guard of the muting application.

FALSE: AOPD protection field is interrupted and muting is not active.

TRUE: AOPD protection field is not interrupted or muting is active.

S_MutingActive

SAFEBOOL

FALSE

Displays the status of the muting process.

FALSE: Muting not active

TRUE: Muting active

Error

BOOL

FALSE

General output parameters

DiagCode

WORD

16#0000

Diagnostic codes



Important

Line control of the muting sensor signals must be active in the safety loop.

Figure 91. Function block: SF_MutingPar_2Sensor
Function block: SF_MutingPar_2Sensor


Functional description

Muting is the deliberate suppression of a safety function. This is necessary, for example, when material is to be transported into the hazardous area without causing the machine to stop. Muting is triggered by a muting sensor. The use of two muting sensors and the correct integration into the production process has to ensure that no person enters the hazardous area while the light grid is muted. Muting sensors can be proximity switches, photoelectronic barriers, limit switches, etc. which do not have to be fail-safe. Active muting mode has to be indicated by indicator lamps.

There are sequential and parallel muting methods. Parallel muting with two muting sensors is used in this block. An example is given below. The positioning of the sensors should be done according to IEC standards. The FB can be used in both directions: forward and backward. In this case, the current direction cannot be determined. Muting should be activated with the MutingEnable signal of the process control to prevent tampering.

The input parameters of the function block contain the signals of the 2 muting sensors (S_MutingSwitch11 and S_MutingSwitch12), the OSSD signal of the "active opto-electronic protective device" S_AOPD, as well as the two parameterizable times DiscTimeEntry and MaxMutingTime.

Caution

The S_StartReset input shall only be activated if it is ensured that no hazardous situation can occur when the S-PLC is started.

Table 66. Example of SF_MutingPar in forward direction with 2 light barriers

No.

Image

Explanation

1

SF_MutingPar_2Sensor_Example.png

When retroreflective sensors are used as muting sensors, they are generally arranged diagonally. In general, this arrangement of retroreflective sensors as muting sensors requires only two photoelectric sensors and only S_MutingSwitch11 (MS_11) and S_MutingSwitch12 (MS_12) are assigned.



Status diagram

Figure 92. Status diagram: SF_MutingPar_2Sensor
Status diagram: SF_MutingPar_2Sensor


Tip

Note: The transition from any state to the Idle state, initiated by Activate = FALSE, is not shown. In every case, these transitions have the highest priority.

Typical timing diagram

Figure 93. Typical time diagram SF_MutingPar_2Sensor (S_StartReset = TRUE, Reset = FALSE, S_MutingLamp = TRUE)
Typical time diagram SF_MutingPar_2Sensor (S_StartReset = TRUE, Reset = FALSE, S_MutingLamp = TRUE)


. Muting conditions
  • Muting condition 1 (to 16#8011) (MS_11 is the first actuated input sensor) Start timer DiscTimeEntry and MaxMutingTime:

    MutingEnable AND R_TRIG at MS_11 AND NOT MS_12

  • Muting condition 2 (to 16#8311) (MS_12 is the first actuated input sensor): Start timer DiscTimeEntry and MaxMutingTime:

    MutingEnable AND NOT MS_11 AND R_TRIG at MS_12

  • Muting condition 3 (from 16#8011 to 16#8012) (MS_12 is the second actuated input sensor): Stop timer DiscimeEntry:

    MutingEnable AND MS_11 AND R_TRIG at MS_12

  • Muting condition 4 (from 16#8311 to 16#8012) (MS_11 is the second actuated input sensor): Stop timer DiscTimeEntry:

    MutingEnable AND R_TRIG at MS_11 AND MS_12

  • Muting condition 5 (from 16#8000 to 16#8012) (both sensors actuated in the same cycle): Start timer MaxMutingTime:

    MutingEnable AND R_TRIG at MS_11 AND R_TRIG at MS_12

  • Muting condition 6 (from 16#8012 to 16#8000) (both sensors resolved in the same cycle or MS_11 and MS_12 resolved one after the other). Stop timer: MaxMutingTime: NOT MS_11 OR NOT MS_12

. Incorrect muting sequences
  • State 16#8000:(R_TRIG at MS_11 AND MS_12 AND NOT R_TRIG at MS_12) OR

    (R_TRIG at MS_12 AND MS_11 AND NOT R_TRIG at MS_11) OR

    ((MS_11 AND NOT R_TRIG at MS_11) AND (MS_12 AND NOT R_TRIG at MS_12)) OR

    (NOT MutingEnable AND R_TRIG at MS_11) OR

    (NOT MutingEnable AND R_TRIG at MS_12)

  • State 16#8011: NOT MutingEnable OR NOT MS_11

  • State 16#8311: NOT MutingEnable OR NOT MS_12

  • State 16#8012: all possible transitions allowed

Error detection

The FB detects the following error conditions:

  • DiscTimeEntry was set to a value less than T#0s or greater than T#4s.

  • MaxMutingTime was set to a value less than T#0s and greater than T#10min.

  • The discrepancy time for the pair S_MutingSwitch11/S_MutingSwitch12 was exceeded.

  • The muting function (S_MutingActive = TRUE) exceeds the maximum time MaxMutingTime.

  • The muting sensors S_MutingSwitch11, MutingSwitch12 were actuated in the wrong order.

  • The muting sequence starts without activation by MutingEnable.

  • Static signals of the muting sensor

  • A faulty muting lamp is indicated by S_MutingLamp = FALSE.

  • A static reset condition is detected in status 8001 and 8003.

Error behavior

In case of an error event, the outputs S_AOPD_Out and S_MutingActive are set to FALSE. The DiagCode ouput displays the relevant error code and the Error output is set to TRUE.

FB-Specific Error and Status Codes

Table 67. FB-specific error codes

DiagCode

Statue Name

Status description and output setting

16#C001

Reset Error 1

Static reset condition detected after block activation in status 16#8001

Ready = TRUE

S_AOPD_Out = FALSE

S_MutingActive = FALSE

Error = TRUE

16#C002

Reset Error 2

Static reset condition detected in status 16#8003

Ready = TRUE

S_AOPD_Out = FALSE

S_MutingActive = FALSE

Error = TRUE

16#C003

Error Muting Lamp

Error detected with muting lamp

Ready = TRUE

S_AOPD_Out = FALSE

S_MutingActive = FALSE

Error = TRUE

16#CYx4

Error Muting sequence

Error in muting sequence in status 16#8000,16# 8011, 16#8311

Ready = TRUE

S_AOPD_Out = FALSE

S_MutingActive = FALSE

Error = TRUE

Y = Status in the sequence

16#C0x4 = Error occurs in status 16#8000.

16#C1x4 = Error occurs in status 16#8011.

16#C2x4 = Error occurs in status 16#8311.

16#CFx4 = Muting Enable missing

x = status of the sensor when an error occurs (4 bits: LSB = MS_11; besides LSB = MS_22).

16#C005

Parameter Error

DiscTimeEntry or MaxMutingTime value out of range.

Ready = TRUE

S_AOPD_Out = FALSE

S_MutingActive = FALSE

Error = TRUE

16#C006

Error timer MaxMuting

Timing error: Active muting time (if S_MutingActive = TRUE) exceeds MaxMutingTime.

Ready = TRUE

S_AOPD_Out = FALSE

S_MutingActive = FALSE

Error = TRUE

16#C007

Error timer Entry

Timing error: Discrepancy time for switching MutingSwitch11 and MutingSwitch12 from FALSE to TRUE is greater than DiscTimeEntry

Ready = TRUE

S_AOPD_Out = FALSE

S_MutingActive = FALSE

Error = TRUE



Table 68. FB-specific status codes

DiagCode

Statue Name

Status description and output setting

16#0000

Idle

The function block is not active (basic state).

Ready = FALSE

S_AOPD_Out =FALSE

S_MutingActive = FALSE

Error = FALSE

16#8000

AOPD Free

Muting not active and no safety requirement from AOPD. If the timers of the following muting are still running, then they will be stopped.

Ready = TRUE

S_AOPD_Out = TRUE

S_MutingActive = FALSE

Error = FALSE

16#8001

Init

The block has been activated.

Ready = TRUE

S_AOPD_Out = FALSE

S_MutingActive = FALSE

Error = FALSE

16#8002

Safety Demand AOPD

Safety request detected by AOPD, muting not active.

Ready = TRUE

S_AOPD_Out = FALSE

S_MutingActive = FALSE

Error = FALSE

16#8003

Wait for Reset

Safety requirement or error was discovered and is now cleared. Operator confirmation with Reset requested.

Ready = TRUE

S_AOPD_Out = FALSE

S_MutingActive = FALSE

Error = FALSE

16#8005

Safe

Safety function activated

Ready = TRUE

S_AOPD_Out = FALSE

S_MutingActive = FALSE

Error = FALSE

16#8011

Muting Start 1

Muting sequence is in start phase after rising trigger edge of MutingSwitch11 in the start phase; monitoring of DiscTimeEntry is activated.

Ready = TRUE

S_AOPD_Out = TRUE

S_MutingActive =FALSE

Error = FALSE

16#8311

Muting Start 2

Muting sequence is in start phase after rising trigger edge of MutingSwitch12. Monitoring of DiscTimeEntry is activated.

Ready = TRUE

S_AOPD_Out = TRUE

S_MutingActive =FALSE

Error = FALSE

16#8012

Muting Active

Muting sequence is active, either:

  • After a rising trigger edge of the second input MutingSwitch12 or MutingSwitch11 has been detected

or

  • If both MutingSwitch11 and 12 were actuated in the same cycle.

Monitoring of DiscTimeEntry is stopped. Monitoring of MaxMutingTime is activated.

Ready = TRUE

S_AOPD_Out = TRUE

S_MutingActive = TRUE

Error = FALSE