current relay
Couldn't load pickup availability
Description
The FB_CurrentRelay function block monitors a current value and evaluates whether it lies within a defined range ( #LO_Limit
< #Current
< #HI_Limit
). The result is stored internally as #tempOK
. The switching behavior is controlled via simulated inputs for normally closed and normally open contacts ( #Input_13
, #Input_21
): The corresponding contact pattern (NO/NC) is only activated when the respective input is set. Reset and deactivation modes are available for security.
Note: This logic is intended as a template and test block. It must be integrated, validated, and released by qualified personnel before productive use. Improper use may result in unexpected switching behavior.
How it works
Disabled
If #Enable
is not set, all outputs remain inactive. Errors are not reported, and the block behaves passively.
Reset
#Reset
resets the relay to its initial state: The normally closed contact ( #NO_14
) is energized (signal OK), the normally open contact is open. The status shows "Reset," and errors are reset.
Active
The current current value is checked. If it is within the specified range, the internal indicator #tempOK
is set to TRUE.
-
#NO_14
(normally closed) is only set if#Input_13
is active and#tempOK
is TRUE. -
#NC_22
(normally open) is only set if#Input_21
is active and#tempOK
is FALSE (inverted).
At the end, the status is set to OK and errors are reset.
Technical details
-
Inputs:
#Enable
,#Reset
,#Current
,#LO_Limit
,#HI_Limit
,#Input_13
,#Input_21
-
Internal state:
#tempOK
– TRUE if the current is within the allowed range -
Outputs:
#NO_14
(normally closed contact),#NC_22
(normally open contact) -
Status & Diagnosis:
#Error
,#Status
,#DiagnosticCode
- Modes: Disabled, Reset, Normal Operation
- Logic: Area monitoring with conditional contact release via simulated inputs
Possible applications
- Monitoring of current ranges with conditional transmission via NO/NC contacts
- Simulation of hardware releases for validation without real sensors
- Integration into control and diagnostic chains to display valid or invalid current states
- Protection of systems through defined thresholds and clearly controlled output signals
Note: Before productive use, a technical inspection and approval by qualified personnel is required.
compatibility
- Can be used in PLC environments with SCL support (e.g. Siemens TIA Portal)
- Modular integration into test, control and safety architectures
- Deactivated state without unexpected switching states
- Simulation-capable without real actuator/sensor connection
Scope of delivery
You will receive:
- An SCL file with the implemented function block FB_CurrentRelay
- Complete declaration of all inputs and outputs as well as internal states
- Commented structure for easy adaptation
- Short guide for integration into existing control projects
The download link will be provided after purchase.
Support
I am happy to support you with:
- Adjustment of limit values and evaluation logic
- Integration into diagnostic and control chains
- Simulation before live use
- Special adaptations for your application
Contact is possible via shop message or email. Extensions are available as optional customizations.