Skip to main content

SF_MutingPar

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 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.

Important

This block deviates from the PLCopen specification (see: status diagram).

Interface description

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

Table 59. VAR_INPUT

Name

Data Type

Initial Value

Description, parameter values

Activate

BOOL

FALSE

General input parameters

S_AOPD_In

SAFEBOOL

FALSE

Variable

Output switching signal (OSSD) of the active opto-protection device (AOPD)

FALSE: Protection field interrupted.

TRUE: Protection field not interrupted.

MutingSwitch11

BOOL

FALSE

Variable

Status of muting sensor 11.

FALSE: Mutingsensor11 not actuated.

TRUE: Workpiece actuates Mutingsensor11.

Note: Depending on the safety requirements, SAFEBOOL must be connected instead of BOOL.

MutingSwitch12

BOOL

FALSE

Variable.

Status of muting sensor 12.

FALSE: Mutingsensor12 not actuated.

TRUE: Workpiece actuates MutingSwitch12

Note: Depending on the safety requirements, SAFEBOOL must be connected instead of BOOL.

MutingSwitch21

BOOL

FALSE

Variable.

Status of muting sensor 21.

FALSE: Mutingsensor21 not actuated.

TRUE: Workpiece actuates Mutingsensor21.

Note: Depending on the safety requirements, SAFEBOOL must be connected instead of BOOL.

MutingSwitch22

BOOL

FALSE

Variable

Status of muting sensor 22.

FALSE: Mutingsensor22 not actuated.

TRUE: Workpiece actuates Mutingsensor22

Note: Depending on the safety requirements, SAFEBOOL must be connected instead of BOOL.

S_MutingLamp

SAFEBOOL

FALSE

Variable or constant

Shows the state of the muting lamp.

FALSE: Muting lamp faulty

TRUE: Muting lamp not faulty.

DiscTime11_12

TIME

T#0s

Constant 0 .. 4 s

Maximum discrepancy time for MutingSwitch11 and MutingSwitch12

The "DiscTime11_12, DiscTime21_22, and MaxMutingTime" caution note must be observed.

DiscTime21_22

TIME

T#0s

Constant 0 .. 4 s

Maximum discrepancy time for MutingSwitch21 and MutingSwitch22

The "DiscTime11_12, DiscTime21_22, 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 "DiscTime11_12, DiscTime21_22, 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 active

TRUE: Start of the muting function activated.

S_StartReset

SAFEBOOL

FALSE

General input parameters

Reset

BOOL

FALSE

General input parameters



DiscTime11_12, DiscTime21_22, and MaxMutingTime

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

Table 60. 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: OPD 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

A short circuit in the muting sensor signals, or a functional application error in supporting these signals, is not detected by this function block, but is interpreted as an incorrect muting sequence. (Data type BOOL (not safe), supplied by the functional user hardware or software.) Nevertheless, this should not lead to unwanted muting. Users should consider this in their respective risk analyses.

Figure 88. Function block: SF_MutingPar
Function block: SF_MutingPar


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 or four 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 four muting sensors is used in this block. An execution of the forward direction of transport is listed below. The FB can be used in both directions: forward and backward. Muting should be activated by the MutingEnable signal from the process to prevent tampering.

The input parameters of the function block contains the signals of the 4 muting sensors (MutingSwitch11, MutingSwitch12, MutingSwitch21, and MutingSwitch22), the OSSD signal of the "active opto-electronic protective device" S_AOPD_In, as well as 3 parameterizable times (DiscTime11_12, DiscTime21_22, 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 61. Example of SF_MutingPar in forward direction with four sensors

No.

Image

Explanation

1

SF_MutingPar_Example1.png

If the muting sensors MutingSwitch11 (MS_11) and MutingSwitch12 (MS_12) are actuated by a workpiece within the time DiscTime11_12, then the muting mode is activated (S_MutingActive = TRUE).

2

SF_MutingPar_Example2.png

Muting mode remains active as long as MutingSwitch11 (MS_11) and MutingSwitch12 (MS_12) are actuated by the workpiece. The workpiece can pass through the light grid without causing a machine stop.

3

SF_MutingPar_Example3.png

Before the muting sensors MutingSwitch11 (MS_11) and MutingSwitch12 (MS_12) are deactivated, MutingSwitch21 (MS_21) and MutingSwitch22 (MS_22) have to be activated. This ensures that the muting mode remains active. The discrepancy time between the switching of MutingSwitch21 and MutingSwitch22 is monitored by the time DiscTime21_22.

4

SF_MutingPar_Example4.png

Muting mode is ended when either MutingSwitch21 (MS_21) or MutingSwitch22 (MS_22) is deactivated by the workpiece. MaxMutingTime is the maximum time that the muting mode may remain active.



Status diagram

Figure 89. sil3_status_SF_MutingPar
sil3_status_SF_MutingPar


Important

sil3_mark1.png NOT S_AOPD_In only in states 8011/80311 or 8122/8422

This represents a deviation from the PLCopen specification.

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 90. sil3_time_SF_MutingPar.png
sil3_time_SF_MutingPar.png


Muting conditions

. Forward direction
  • Muting condition 1 (to status 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 AND NOT MS_21 AND NOT MS_22)

  • Muting condition 1 (to status 16#8311) (MS_12 is the first actuated input sensor) Start of timers MaxMutingTime and DiscTime11_12:

    MutingEnable AND (NOT MS_11 AND R_TRIG at MS_12 AND NOT MS_22)

  • Muting condition 2 (from status 16#8011) (MS_12 is the second damped input sensor). Stop timer: DiscTime11_12:

    MutingEnable AND (MS_11 AND R_TRIG at MS_12 AND NOT MS_21 AND NOT MS_22)

  • Muting condition 2 (from status 16#8311) (MS_11 is the second damped input sensor). Stop timer: DiscTime11_12:

    MutingEnable AND(R_TRIG at MS_11 AND MS_12 AND NOT MS_21 And NOT MS_22;

  • Muting condition 3 (both input sensors actuated in the same cycle). Start of timer Timer MaxMutingTime:

    MutingEnable AND (R_TRIG at MS_11 AND R_TRIG at MS_12 AND NOT MS_21 AND NOT MS_22)

  • Muting condition 4 (all sensors actuated): MS_11 AND MS_12 AND MS_21 AND MS_22

  • Muting condition 24 (to 16#8014) (MS_21 is the first actuated output sensor) Start timer DiscTime21_22:

    MS_11 AND MS_12 AND R_TRIG at MS_21 AND NOT MS_22

  • Muting condition 24 (to 16#8314) (MS_22 is the first actuated output sensor). Start timer: DiscTime21_22:

    MS_11 AND MS_12 AND NOT MS_21 AND R_TRIG at MS_22

  • Muting condition 25 (from 16#8014) (MS_22 is the second actuated output sensor). Stop timer: DiscTime21_22:

    MS_11 AND MS_12 AND MS_21 AND R_TRIG at MS_22

  • Muting condition 25 (from 16#8314) (MS_21 is the second actuated output sensor). Stop timer: DiscTime21_22:

    MS_11 AND MS_12 AND R_TRIG at MS_21 AND MS_22

  • Muting condition 5 (one of the output sensors actuated). Stop timer: MaxMutingTime:

    NOT MS_11 AND NOT MS_12 AND (F_TRIG at MS_21 OR F_TRIG at MS_22)

. Backward direction
  • Muting condition 11 (to 16#8122) (MS_21 is the first actuated sensor). Start of timers MaxMutingTime and DiscTime21_22:

    MutingEnable AND (NOT MS_22 AND R_TRIG at MS_21 AND NOT MS_11 AND NOT MS_12)

  • Muting condition 11 (to 16#8422) (MS_22 is the first actuated input sensor). Start of timers MaxMutingTime and DiscTime21_22:

    MutingEnable AND (R_TRIG at MS_22 AND NOT MS_21 AND NOT MS_11 AND NOT MS_12)

  • Muting condition 12 (from 16#8122) (MS_22 is the second actuated input sensor). Stop timer: DiscTime21_22:

    MutingEnable AND (MS_21 AND R_TRIG at MS_22 AND NOT MS_11 AND NOT MS_12)

  • Muting condition 12 (from 16#8422) (MS_21 is the second actuated input sensor). Stop timer: DiscTime21_22:

    MutingEnable AND (R_TRIG at MS_21 AND MS_22 AND NOT MS_11 AND NOT MS_12)

  • Muting condition 13 (both input sensors actuated in the same cycle). Start timer: MaxMutingTime:

    MutingEnable AND (R_TRIG at MS_21 AND R_TRIG at MS_22 AND NOT MS_11 AND NOT MS_12)

  • Muting condition 14 (all sensors actuated):

    MS_11 AND MS_12 AND MS_21 AND MS_22

  • Muting condition 44 (to 16#8114) (MS_11 is the first actuated output sensor). Start timer: DiscTime11_12:

    MS_21 AND MS_22 AND R_TRIG at MS_11 AND NOT MS_12

  • Muting condition 44 (to 16#8414) (MS_12 is the first actuated output sensor). Start timer: DiscTime11_12:

    MS_21 AND MS_22 AND NOT MS_11 AND R_TRIG at MS_12

  • Muting condition 45 (from 16#8114) (MS_12 is the second actuated output sensor). Stop timer: DiscTime11_12:

    MS_21 AND MS_22 AND MS_11 AND R_TRIG at MS_12

  • Muting condition 45 (from 16#8414) (MS_11 is the second actuated output sensor). Stop timer: DiscTime11_12: MS_21 AND MS_22 AND R_TRIG at MS_11 AND MS_12

  • Muting condition 15 (one of the two output sensors actuated) Stop timer MaxMutingTime:

    NOT MS_21 AND NOT MS_22 AND (F_TRIG at MS_11 OR F_TRIG at MS_12)

. Incorrect muting sequences:
  • State 16#8000:

    (MutingEnable = FALSE when muting sequence starts) OR

    ((MS_11 OR MS_12) AND (MS_21 OR MS_22))OR

    (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

    (R_TRIG at MS_21 AND MS_22 AND NOT R_TRIG at MS_22) OR

    (R_TRIG at MS_22 AND MS_21 AND NOT R_TRIG at MS_21) OR

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

    ((MS_21 AND NOT R_TRIG at MS_21) AND (MS_22 AND NOT R_TRIG at MS_22))

  • Status 16#8011: NOT MutingEnable OR NOT MS_11 OR MS_21 OR MS_22

  • Status 16#8311: NOT MutingEnable OR NOT MS_12 OR MS_21 OR MS_22

  • Status 16#8012: NOT MS_11 OR NOT MS_12

  • Status 16#8021: R_TRIG at MS_11 OR R_TRIG at MS_12 OR R_TRIG at MS_21 OR R_TRIG at MS_22

  • Status 16#8014: NOT MS_11 OR NOT MS_12 OR NOT MS_21

  • Status 16#8314: NOT MS_11 OR NOT MS_12 OR NOT MS_22

  • Status 16#8122: NOT MutingEnable OR MS_11 OR MS_12 OR NOT MS_21

  • Status 16#8422: NOT MutingEnable OR MS_11 OR MS_12 OR NOT MS_22

  • Status 16#8121: NOT MS_21 OR NOT MS_22

  • Status 16#8112: R_TRIG at MS_11 OR R_TRIG at MS_12 OR R_TRIG at MS_21 OR R_TRIG at MS_22

  • Status 16#8114: NOT MS_21 OR NOT MS_22 OR NOT MS_11

  • Status 16#8414: NOT MS_21 OR NOT MS_22 OR NOT MS_12

Error detection

. The FB detects the following error conditions:
  • DiscTime11_23 and DiscTime21_22 were set to values less than T#0s or greater than T#4s.

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

  • The discrepancy time for the sensor pairs MutingSwitch11/MutingSwitch12 or MutingSwitch21/MutingSwitch22 has been exceeded.

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

  • The muting sensors MutingSwitch11, MutingSwitch12, MutingSwitch21 and MutingSwitch22 were activated in the wrong order.

  • The muting sequence starts without activation by MutingEnable.

  • 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 output displays the relevant error code and the Error output is set to TRUE.

A restart is prevented until the error conditions are clarified and the safe state is confirmed with Reset by the operator.

FB-Specific Error and Status Codes

Table 62. 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 detected in muting sequence in status 16#8000, 16#8011,16#8311,16#8012, 16#8021,16#8014,16#8314, 16#8122, 16#8422,16#8121, 16#8112,16#8114, or 16#8414 .

Ready = TRUE

S_AOPD_Out = FALSE

S_MutingActive = FALSE

Error = TRUE

Y = status in the sequence (6 statuses for forward direction and 6 statuses for backward direction).

16#C0x4 = Error occurs in Status16# 8000

16#C1x4 = Error occurs in forward status 8011

16#C2x4 = Error occurs in forward status 8311

16#C3x4 = Error occurs in forward status 8012

16#C4x4 = Error occurs in forward status 8014

16#C5x4 = Error occurs in forward status 8314

16#C6x4 = Error occurs in forward status 8021

16#C7x4 = Error occurs in backward status 8122

16#C8x4 = Error occurs in backward status 8422

16#C9x4 = Error occurs in backward status 8121

16#CAx4 = Error occurs in backward status 8114

16#CBx4 = Error occurs in backward status 8414

16#CCx4 = Error occurs in backward status 8112

16#CFx4 = Muting Enable missing

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

16#C005

Parameter Error

DiscTime11_12, DiscTime21_22, 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 MS11_12

Timing error: Discrepancy time for switching MutingSwitch11 and MutingSwitch12 is greater than DiscTime11_12

Ready = TRUE

S_AOPD_Out = FALSE

S_MutingActive = FALSE

Error = TRUE

16#C008

Error Timer MS21_22

Timing error: Discrepancy time for switching MutingSwitch21 and MutingSwitch22 is greater than DiscTime21_22

Ready = TRUE

S_AOPD_Out = FALSE

S_MutingActive = FALSE

Error = TRUE



Table 63. 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 Forward Start 1

Muting forward sequence is in start phase after rising trigger edge of MutingSwitch11. Monitoring of DiscTime11_12 is activated. Monitoring of MaxMutingTime is activated.

Ready = TRUE

S_AOPD_Out = TRUE

S_MutingActive = FALSE

Error = FALSE

16#8311

Muting Forward Start 2

Muting forward sequence is in start phase after rising trigger edge of MutingSwitch12. Monitoring of DiscTime11_12 is activated. Monitoring of MaxMutingTime is activated.

Ready = TRUE

S_AOPD_Out = TRUE

S_MutingActive = FALSE

Error = FALSE

16#8012

Muting Forward Active 1

Muting forward sequence is active, either:

  • After detection of a rising trigger edge of the second input MutingSwitch12 or 11

or

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

Monitoring of DiscTime11_12 is stopped. Monitoring is activated if the transition came directly from status 16#8000.

Ready = TRUE

S_AOPD_Out = TRUE

S_MutingActive = TRUE

Error = FALSE

16#8014

Muting Forward Step 1

Muting forward sequence is active. MutingSwitch21 is the first actuated output sensor. Monitoring of DiscTime21_22 started.

Ready = TRUE

S_AOPD_Out = TRUE

S_MutingActive = TRUE

Error = FALSE

16#8314

Muting Forward Step 2

Muting forward sequence is active. MutingSwitch22 is the first actuated output sensor. Monitoring of DiscTime21_22 started.

Ready = TRUE

S_AOPD_Out = TRUE

S_MutingActive = TRUE

Error = FALSE

16#8021

Muting Forward Active 2

Muting forward sequence is still active. Both MutingSwitch21 and 22 are actuated, monitoring of DiscTime21_22 is stopped.

Ready = TRUE

S_AOPD_Out = TRUE

S_MutingActive = TRUE

Error = FALSE

16#8122

Muting Backward Start 1

Muting backward sequence is in start phase after rising trigger edge of MutingSwitch21. Monitoring of DiscTime21_22 is activated. Monitoring of MaxMutingTime is activated.

Ready = TRUE

S_AOPD_Out = TRUE

S_MutingActive = FALSE

Error = FALSE

16#8422

Muting Backward Start 2

Muting backward sequence is in start phase after rising trigger edge of MutingSwitch22. Monitoring of DiscTime21_22 is activated. Monitoring of MaxMutingTime is activated.

Ready = TRUE

S_AOPD_Out = TRUE

S_MutingActive = FALSE

Error = FALSE

16#8121

MutingBackward Active 1

Muting backward sequence is active, either:

  • After detection of a rising trigger edge of the second input MutingSwitch21 or 22

or

  • If both MutingSwitch21 and 22 were actuated in the same cycle.

Monitoring of DiscTime21_22 stopped. Monitoring of MaxMutingTime is activated if the transition came directly from status 8000.

Ready = TRUE

S_AOPD_Out = TRUE

S_MutingActive = TRUE

Error = FALSE

16#8114

Muting Backward Step 1

Muting backward sequence is active. MutingSwitch11 is the first actuated output sensor. Monitoring of DiscTime11_12 started.

Ready = TRUE

S_AOPD_Out = TRUE

S_MutingActive = TRUE

Error = FALSE

16#8414

Muting Backward Step 2

Muting backward sequence is active. MutingSwitch12 is the first actuated output sensor. Monitoring of DiscTime11_12 started.

Ready = TRUE

S_AOPD_Out = TRUE

S_MutingActive = TRUE

Error = FALSE

16#8112

Muting Backward Active 2

Muting backward sequence is still active. Both MutingSwitch11 and 12 output sensors are actuated, monitoring of DiscTime11_12 is stopped.

Ready = TRUE

S_AOPD_Out = TRUE

S_MutingActive = TRUE

Error = FALSE