Frequency relay
Couldn't load pickup availability
Description
The FB_FrequencyRelay function block monitors a frequency and checks whether it is within a defined range. The logic realistically maps normally closed ( #NO_13_14
) and normally open ( #NC_21_22
) contacts, allowing virtual inputs to be used for enabling (e.g., for testing or grading). In simulation mode, the behavior can be reproduced without real signals.
Note: This logic is intended as a template. Before productive use, it must be integrated, tested, and approved by qualified personnel. Inadequate integration can lead to faulty switching states.
How it works
Reset
#Reset
resets the block to a safe initial state: normally closed contact inactive, normally open contact active (error/idle state). Status indicates reset.
Disabled
If #Enable
is not set, both contacts remain off. The block behaves passively without error warning.
Frequency rating
The measured frequency ( #Freq
) is checked against the lower and upper limits ( #LO_Limit
, #HI_Limit
). If it is within the range, #FreqOK
is set.
simulation
In simulation mode, #FreqOK
directly controls the outputs: normally closed contact shows valid frequency, normally open contact shows invalid frequency.
Normal operation
In real operation, the inputs also act as releases:
-
#NO_13_14
is only active if#Input_13
is set and the frequency is valid. -
#NC_21_22
is only active if#Input_21
is set and the frequency is out of range (inverted).
Status and diagnostics are reset if no errors are present.
Technical details
-
Inputs:
#Enable
,#Reset
,#SimMode
,#Freq
,#LO_Limit
,#HI_Limit
,#Input_13
,#Input_21
-
Internal state:
#FreqOK
– TRUE if frequency is within the allowed bandwidth -
Outputs:
#NO_13_14
(normally closed),#NC_21_22
(normally closed) -
Status & Diagnosis:
#Error
,#Status
,#DiagnosticCode
- Modes: Reset, Disabled, Simulation, Real-time
- Logic: Frequency range test with optional input enable and contact mapping
Possible applications
- Frequency monitoring in power supply and drive systems
- Pre-validation of frequency conditions in simulation mode
- Integration into control and alarm chains for transparency of frequency deviations
- Linking measured values with enabled contacts for adaptive controls
Note: A complete technical inspection and approval by qualified personnel is required before productive use.
compatibility
- Can be used in PLC environments with SCL (e.g. Siemens TIA Portal)
- Modular integration into diagnostic, control and safety architectures
- Simulation enables safe tests without real frequency signals
- Safe basic state when deactivated
Scope of delivery
You will receive:
- An SCL file with the implemented function block FB_FrequencyRelay
- Complete declaration of all inputs/outputs and internal states
- Commented logic for easy customization
- Quick guide to integration
The download link will be provided after purchase.
Support
I am happy to support you with:
- Adjustment of frequency limits and logic
- Integration into higher-level control or alarm chains
- Simulation and validation before real operation
- Specific extensions for your application
Contact is possible via shop message or email. Extensions are available as optional customizations.