Skip to product information
1 of 1

limit switch

Regular price €1,99 EUR
Regular price Sale price €1,99 EUR
Sale Sold out
Description

The FB_LimitSwitch function block evaluates an analog measured value ( #Value ) against a defined limit value ( #Threshold ). Depending on the comparison result, the #Exceed flag is set internally and passed on via normally closed ( #Output_14 ) or normally open ( #Output_22 ) contacts. Additional hardware inputs for NO/NC allow conditional activation, and a simulation mode simulates the behavior without a real sensor connection.

Note: This logic serves as a template. Before productive use, it must be integrated, reviewed, and approved by qualified personnel. Improper use may lead to unexpected behavior.

How it works
Reset

All states are reset: The internal limit value status ( #Exceed ) is cleared, the normally closed contact is reset, and the normally open contact is returned to the safe initial position. Errors are cleared, and the status indicates deactivation.

Disabled

If #Enable is not set, both outputs are inactive and the block does not report any errors, the status is "disabled".

Active – Limit value testing

The input value #Value is compared with the limit value #Threshold . If the value is greater than or equal to, #Exceed is set.

simulation

In simulation mode, the outputs are controlled directly by #Exceed : the normally closed contact follows #Exceed , the normally open contact is inverted. Hardware inputs are not evaluated.

Real operation

During normal operation, the result of the limit check is only sent to the contacts if the corresponding inputs are active:

  • #Output_14 (normally closed) is only set if #Input_13 is set and #Exceed is TRUE.
  • #Output_22 (normally open) is only set if #Input_21 is set and #Exceed is FALSE (inverted).

Errors are reset, status shows OK.

Technical details
  • Inputs: #Enable , #Reset , #SimMode , #Value , #Threshold , #Input_13 , #Input_21
  • Internal state: #Exceed – result of the threshold comparison
  • Outputs: #Output_14 (NO), #Output_22 (NC)
  • Status & Diagnosis: #Error , #Status , #DiagnosticCode
  • Modes: Reset, Disabled, Simulation, Real-time
Possible applications
  • Threshold monitoring of analog values with conditional switching output
  • Pre-validation of limit logic in simulation mode without real actuator action
  • Linking to higher-level control or alarm chains for status feedback
  • Flexible combination of threshold comparison and hardware releases

Note: A complete technical inspection and approval by qualified personnel is required before productive use.

compatibility
  • Can be used in PLC systems with SCL support (e.g. Siemens TIA Portal)
  • Modular integration into process, safety and diagnostic architectures
  • Simulation mode allows testing without real outputs
  • Safe basic state when deactivated
Scope of delivery

You will receive:

  • An SCL file with implemented function block FB_Grenztaster
  • Complete declaration of all inputs, outputs and internal states
  • Commented logic for easy customization
  • Quick guide for integration into existing projects

The download link will be provided after purchase.

Support

I am happy to support you with:

  • Adjustment of threshold values and evaluation logic
  • Integration into higher-level control or alarm systems
  • Simulation and validation before going live
  • Error analysis and extended logic variants

Contact is possible via shop message or email. Individual extensions are available as optional customizations.