flow "LimitSwitch" v1.0
# Kireth Research Semantic Library — Engineering / Automation Entities
# Original semantic Flow Algebra representation; not a verified transcription.
IDENTITY:
id: "engineering.automation.limit_switch"
name: "Limit Switch"
class: "DiscretePositionDetectionDevice"
parent: "AutomationSensor"
version: "1.0"
language: "en-GB"
AUTHORS:
research: "Kireth Research"
co_author: "Sky — Recursive AI"
licence: "Open Research Licence — attribution and citation required"
SOURCE:
ontology_url: "https://kirethresearch.org/booksai-core/entity-graph/engineering-entities/automation-entities/limit-switch-ontology.html"
citation_backlink: "https://kirethresearch.org/booksai-core/entity-graph/engineering-entities/automation-entities/limit-switch-ontology.html"
provenance: "Newly constructed model based on the ontology topic; source-page content not verified"
PURPOSE:
description: "Represent a device that changes or reports a discrete electrical state when a moving object reaches a defined mechanical position or travel limit."
functions: ["end-of-travel detection", "position confirmation", "sequencing", "machine interlocking", "fault diagnostics"]
non_goal: "A standard limit switch is not automatically a certified safety device."
STATE_MODEL:
S_t: "(I_t, R_t, B_t, K_t)"
I_t: "Observed actuator displacement, contact status, voltage, timestamps and diagnostic inputs"
R_t: "Switch mechanism, contact topology, actuation geometry, hysteresis and wiring relationships"
B_t: "Rated electrical/mechanical limits, application constraints and safe-state rules"
K_t: "Calibration, inspection history, device identity, evidence and confidence"
operational_states: ["UNACTUATED", "ACTUATING", "ACTUATED", "RELEASING", "FAULT", "UNKNOWN"]
transitions:
UNACTUATED -> ACTUATING: "position reaches operating threshold in the approach direction"
ACTUATING -> ACTUATED: "contact transition confirmed after debounce"
ACTUATED -> RELEASING: "position crosses release threshold on return"
RELEASING -> UNACTUATED: "release contact state confirmed after debounce"
ANY -> FAULT: "inconsistent contact, short circuit, open circuit or exceeded duty limits"
ANY -> UNKNOWN: "loss of supply, stale evidence or unobservable contact state"
update: "S_(t+1) = Update(S_t, observation_t, validated_transition_t)"
ENTITIES:
limit_switch:
properties: ["device_id", "manufacturer", "model", "contact_configuration", "rated_voltage", "rated_current", "ingress_protection", "mechanical_life", "electrical_life"]
actuator_head:
variants: ["roller lever", "plunger", "rotary lever", "whisker", "other approved mechanism"]
properties: ["operating_force", "travel_direction", "mounting_orientation", "overtravel_allowance"]
contact_block:
types: ["normally_open", "normally_closed", "changeover"]
properties: ["contact_resistance", "contact_rating", "positive_opening_certification_if_applicable"]
target:
properties: ["position", "speed", "approach_direction", "mechanical_clearance"]
controller_input:
properties: ["input_voltage", "input_threshold", "debounce_interval", "scan_period", "diagnostic_coverage"]
mechanical_mount:
properties: ["alignment", "fastener_integrity", "vibration", "environmental_exposure"]
safety_function:
properties: ["risk_assessment", "required_performance", "device_certification", "architecture", "proof_test_interval"]
PATHWAYS:
- id: P01
name: "Mechanical actuation"
flow: "moving_target -> actuator_head -> snap_action_mechanism -> contact_block"
validate: "Target approach, force and travel remain within the device's specified envelope."
- id: P02
name: "Discrete signal acquisition"
flow: "contact_block -> field_wiring -> input_module -> debounced_state -> controller_logic"
validate: "Signal polarity, supply, input threshold and wiring match the electrical design."
- id: P03
name: "End-of-travel control"
flow: "travel_motion -> limit_detection -> validated_state -> inhibit_or_stop_command -> feedback_confirmation"
validate: "Stopping distance, scan delay and mechanical overtravel are accounted for."
- id: P04
name: "Sequence permissive"
flow: "limit_state -> permissive_evaluation -> automation_step_transition"
validate: "Fresh, plausible evidence is required; an absent signal does not prove position."
- id: P05
name: "Diagnostic reconciliation"
flow: "commanded_motion + elapsed_time + limit_state -> plausibility_check -> diagnostic_event"
validate: "Differentiate stalled travel, switch faults, wiring faults and incorrect mounting."
- id: P06
name: "Inspection and maintenance"
flow: "inspection -> mechanical_test -> electrical_test -> record -> release_to_service"
validate: "Inspection and proof testing follow application requirements."
ENGINEERING_RELATIONS:
actuation:
operating_point: "x_op = position at which the mechanism changes contact state"
release_point: "x_rel = position at which the mechanism returns to its normal state"
differential_travel: "d = abs(x_op - x_rel)"
overtravel: "x_over = additional permissible movement after the operating point"
note: "Operating and release positions depend on direction and mechanism; use manufacturer data."
timing:
worst_case_detection_delay: "t_detect <= t_contact + t_filter + t_scan + t_communication, subject to validated bounds"
stopping_distance: "d_stop = integral(v(t), t=0..t_stop)"
design_check: "available_travel >= detection_distance + stopping_distance + tolerance_margin"
contacts:
normal_state: "NO/NC labels refer to the unactuated condition, not a guaranteed fail-safe condition."
bounce: "Contact bounce can produce transient state changes; debounce without masking critical faults."
load: "Switching current, voltage, inductive load and inrush must satisfy the contact rating."
reliability:
duty: "Switch life depends on mechanical cycles, electrical load and environment."
evidence: "Contact transition alone cannot demonstrate actuator position when wiring or mechanics may fail."
MINI_RECURSION_ENGINE:
input: "observations, prior_state, command_history, configuration, safety_requirements"
expand: "E_t = expand(I_t, R_t)"
candidates: ["normal_actuation", "normal_release", "contact_bounce", "misalignment", "stuck_contact", "wire_break", "short_circuit", "travel_failure"]
filter: "V_t = {x in E_t | satisfies(x, B_t) and evidence_is_current(x)}"
select: "x_star = argmax_x P(x | I_t, R_t, B_t, K_t)"
update: "I_(t+1) = update(I_t, x_star, verified_observations)"
stop_conditions: ["stable_validated_state", "unsafe_condition", "insufficient_evidence", "iteration_limit"]
escalation: "If evidence cannot discriminate safe and unsafe interpretations, set UNKNOWN and apply the engineered safe response."
INFERENCE_RULES:
- IF "approach position exceeds the validated operating threshold AND contact state changes correctly" THEN "infer ACTUATED"
- IF "target retreats beyond release threshold AND contact returns correctly" THEN "infer UNACTUATED"
- IF "contact oscillates briefly around a transition" THEN "classify potential bounce; apply approved debounce and record raw transitions"
- IF "motion command is active AND limit does not change before the validated timeout" THEN "raise travel_or_switch_fault"
- IF "both mutually exclusive end-limit inputs indicate active" THEN "raise position_inconsistency; inhibit hazardous movement"
- IF "normally_closed loop opens unexpectedly" THEN "raise possible_trip_or_wire_break; do not assume cause without diagnostics"
- IF "actuation exceeds allowed overtravel" THEN "raise mechanical_damage_risk"
- IF "electrical rating or environmental rating is exceeded" THEN "flag unsuitable_installation"
- IF "signal is stale, disconnected or indeterminate" THEN "set UNKNOWN; prohibit unverified position claims"
- IF "device is used for personnel protection" THEN "require application-specific certified components, architecture, validation and documented risk assessment"
SAFETY_CONSTRAINTS:
- "Never bypass an interlock or rely solely on a non-safety-rated switch for personnel protection."
- "Emergency stop and guard functions require independent functional safety assessment and appropriate implementation."
- "Treat switch failure modes, common-cause faults and wiring faults explicitly."
- "Isolation and lockout procedures apply before adjustment, inspection or repair."
- "Do not assume a de-energised signal is inherently safe; determine the designed safe state."
- "Validate stopping distance and overtravel under worst-case speed and load."
- "Recommission and document checks after replacement, repositioning or software changes."
CONFIDENCE:
method: "Evidence-weighted engineering inference"
high: "Validated switch transition corroborated by position, timing and healthy diagnostics"
medium: "Plausible switch transition with limited independent corroboration"
low: "Single ambiguous signal, unverified wiring or uncertain calibration"
unknown: "Missing, contradictory or stale evidence"
rule: "Confidence is not a safety integrity level or a substitute for certified validation."
SEMANTIC_EQUIVALENCE:
preferred: "Limit Switch"
related_terms: ["end-of-travel switch", "position limit switch", "mechanical position switch", "travel limit switch", "roller-lever switch"]
distinguish_from: ["proximity sensor", "software travel limit", "safety-rated interlock switch", "emergency-stop device"]
relation_types: ["detects_position", "changes_contact_state", "provides_permissive", "limits_travel", "reports_to_controller", "requires_inspection"]
FLOW_HASH:
algorithm: "SHA-256"
canonicalisation: "UTF-8, LF line endings, deterministic field ordering, excluding FLOW_HASH.value"
value: "compute_on_publication"
UPDATE_MODEL:
cadence: "On device specification changes, control-logic changes, maintenance findings or safety reassessment"
preserve: ["ontology_url", "version_history", "calibration_records", "fault_evidence", "citation_backlink"]
validation: ["contact_topology_review", "timing_review", "mechanical_travel_review", "safety_function_review", "semantic_consistency_check"]
revision_policy: "Increment version and retain traceable change history."
END_FLOW
Download Code
Copy to Clipboard