Basic
20 min

Safety Mat Monitor

safetymatlatchingalarmreset

Ready to build this?

Sign up free — no credit card required. This scenario requires the Basic plan.

Sign up to play this scenario →

Already have an account? Log in

Safety Mat Monitor scenario preview

Briefing

A safety mat system protects two hazardous zones. When a worker steps onto a mat (MAT_ZONE_1 or MAT_ZONE_2 goes true), the corresponding zone lamp latches on, HORN sounds, and MACHINE_STOP is asserted. The SILENCE_PB quiets the HORN without clearing the zone lamp. The RESET_PB clears the zone lamp and releases MACHINE_STOP — but only while the corresponding mat is unoccupied. Both mats can be tripped simultaneously.

Objectives

  • MAT_ZONE_1 pressed latches ZONE_1_LAMP and asserts MACHINE_STOP + HORN
  • MAT_ZONE_2 pressed latches ZONE_2_LAMP and asserts MACHINE_STOP + HORN
  • SILENCE_PB silences HORN but zone lamps remain on
  • RESET_PB clears zone lamp only when the corresponding mat is released
  • MACHINE_STOP de-energises only when both zone lamps are cleared
  • Both mats pressed simultaneously latches both zone lamps

Hints

  • Use separate latch bits (ZONE1_BIT, ZONE2_BIT): S= on mat press, R= on RESET_PB AND mat released
  • HORN: S= on any mat press, R= on SILENCE_PB OR when both lamps clear
  • MACHINE_STOP := ZONE1_BIT OR ZONE2_BIT
  • ZONE_1_LAMP := ZONE1_BIT; ZONE_2_LAMP := ZONE2_BIT
  • Mat inputs default FALSE (no one on mat). TRUE = person present.

I/O Table

Inputs

MAT_ZONE_1

Safety mat zone 1 (true = pressed)

BOOL · %I0.0

MAT_ZONE_2

Safety mat zone 2 (true = pressed)

BOOL · %I0.1

RESET_PB

Reset push-button (momentary)

BOOL · %I0.2

SILENCE_PB

Horn silence push-button (momentary)

BOOL · %I0.3

Outputs

ZONE_1_LAMP

Zone 1 fault indicator lamp

BOOL · %Q0.0

ZONE_2_LAMP

Zone 2 fault indicator lamp

BOOL · %Q0.1

HORN

Audible alarm horn

BOOL · %Q0.2

MACHINE_STOP

Machine stop relay (energised = stop)

BOOL · %Q0.3

Your program will be tested against:

All test cases run automatically when you submit. Assertions are hidden until you pass.

  1. #1MAT_ZONE_1 pressed latches ZONE_1_LAMP and asserts MACHINE_STOP

    Step on mat 1 — lamp latches, horn sounds, machine stops

  2. #2ZONE_1_LAMP stays latched after mat released (no reset)

    Mat released without reset — lamp must stay on, stop must stay asserted

  3. #3SILENCE_PB mutes HORN but zone lamp stays on

    Press SILENCE_PB — horn silences, zone lamp stays latched

  4. #4RESET_PB clears lamp only when mat is released

    Release mat then press RESET_PB — lamp clears and machine stop releases

  5. #5Both mats pressed latch both zone lamps independently

    Trip both mats; release mat 1 and reset clears only zone 1 lamp

Ready to build this?

Sign up free — no credit card required. This scenario requires the Basic plan.

Sign up to play this scenario →

Already have an account? Log in

Runnable simulator field guide

Safety-mat monitoring scenario: test checklist

Direct answer

The learner can distinguish clear, occupied, faulted and reset states, prevent hazardous command while occupied and test release without automatic restart.

Written for automation learners studying how a pressure-sensitive protective device can be represented in a bounded machine-state model.

a guarded machine-safety training cell with an emergency stop, two-hand station, safety mat, light curtain and inspectable relay panel while studying pressure-sensitive safety-mat state, channel monitoring, reset and hazardous-motion inhibition
System map / 02

NODE 01observable

Scenario setup

Hazard, detection zone, clear state, occupied state, channel status, monitor fault, machine request, stopping state, reset permission and restart prevention.

NODE 02observable

I/O and state map

Mat actuation through sensing channels and monitor state into safety request, final elements, modeled stopping response and reset feedback.

NODE 03observable

Normal run

Clear zone permitting a separate deliberate start, mat actuation removing hazardous request and release alone not restarting motion.

NODE 04observable

Boundary run

Partial actuation, stuck state, open channel, short condition, reset held, person remains in zone, final-element fault, restart and power return.

NODE 05observable

Injected fault

A mat, channel, monitor, request, final element, stopping, zone-clear, reset or restart mismatch.

NODE 06observable

Target check

The real application risk-assessed and validated using device response, stopping time, placement, environment and applicable standards.

Answer surface / 07

What should happen when a safety mat is stepped on?

The protective function should request the defined stop or inhibit hazardous motion; the exact response depends on the risk assessment and validated safety architecture.

Should a machine restart when someone steps off a safety mat?

No automatic restart should result merely from clearing the mat. A separate controlled reset and deliberate start should follow the approved design.