limit switch
Couldn't load pickup availability
Description
The FB_ContactLogic function block evaluates a control signal ( #Coil_A1
) along with NO/NC inputs and switches the output contacts accordingly. When the block is activated, the normally closed or normally open signal is only passed on if both the corresponding input and the control signal (or its inversion) are met. When deactivated, all outputs are safely reset.
Note: This logic is intended as a template. It must be integrated, reviewed, and approved by qualified personnel before productive use. Improper integration may result in unexpected behavior.
How it works
Disabled
If #Enable
is not set, all outputs are disabled. The block does not report any errors, but the status displays "disabled."
Active
In active operation, the control signal #Coil_A1
is combined with the inputs:
-
"Output 14" := #Input_13 AND #Coil_A1
– Normally closed contact passes when input and coil are active. -
"Output 22" := #Input_21 AND NOT #Coil_A1
– Normally open contact passes when input is set and coil is not active.
The block resets errors and shows an OK status.
Technical details
-
Inputs:
#Enable
,#Coil_A1
,#Input_13
,#Input_21
-
Outputs:
"Output 14"
(NO),"Output 22"
(NC) - Logic: Conditional forwarding or inversion of the control signal depending on the inputs
-
Status & Diagnosis:
#Error
,#Status
,#DiagnosticCode
- Operating mode: Active / deactivated
Possible applications
- Easy switching of NO/NC contacts based on a control or coil signal
- Redundant or conditional contact forwarding in machine processes
- Preparation of switching states for higher-level control chains
- Integration into diagnostic chains for clear feedback of contact states
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 higher-level process and security logic
- Safe fallback in deactivated state
Scope of delivery
You will receive:
- An SCL file with the implemented function block
- Complete declaration of all inputs and outputs
- Annotated structure for quick adaptation
- Quick guide to integration
The download link will be provided after purchase.
Support
I am happy to support you with:
- Adapting the contact logic to your requirements
- Integration into higher-level control processes or HMI
- Interpretation of status and diagnostic information
- Special adaptations for individual application scenarios
Contact is possible via shop message or email. Extensions are available as optional customizations.