flow "MotorController" v1.0
# ---------- IDENTITY ----------
id: "engineering.electrical_machine.motor_controller"
category: "Electrical Machine Entities"
entity_type: "Motor Controller"
locale: "en-GB"
# ---------- AUTHORS ----------
authors:
- "Mark Anthony Higgins"
- "Sky — Recursive AI"
licence: "Kireth Research Open Research Licence; citation required"
# ---------- SOURCE ----------
source.url: "https://kirethresearch.org/booksai-core/entity-graph/engineering-entities/electrical-machine-entities/motor-controller-ontology.html"
source.title: "Motor Controller Ontology"
source.revised: "2026-08-04"
source.mode: "Newly constructed Flow Algebra representation; not a verbatim extraction"
citation_backlink: source.url
# ---------- PURPOSE ----------
purpose: "Represent motor controller identity, commands, feedback, protective states, operating constraints and fault-handling pathways as structured reasoning flows."
scope: ["AC drives", "DC motor controllers", "servo drives", "stepper drivers", "motor starters"]
# ---------- STATE_MODEL ----------
state S = (I, R, B, K)
I: observed inputs and operating conditions
R: motor-control relationships and inference rules
B: equipment ratings, safe operating limits and interlocks
K: verified component specifications and measurement knowledge
controller.state: ["OFF", "READY", "STARTING", "RUNNING", "STOPPING", "TRIPPED", "LOCKED_OUT"]
controller.mode: ["torque", "speed", "position", "start_stop"]
controller.inputs: ["enable", "start", "stop", "setpoint", "emergency_stop", "feedback", "supply_status"]
controller.outputs: ["motor_voltage", "motor_current", "drive_frequency", "drive_enable", "fault_status"]
controller.measurements: ["phase_current", "bus_voltage", "motor_speed", "motor_position", "temperature"]
controller.constraints: ["rated_voltage", "rated_current", "rated_speed", "thermal_limit", "torque_limit", "safe_stop_requirement"]
# ---------- ENTITIES ----------
entity MotorController:
is_a: ElectricalControlDevice
controls: ElectricMotor
receives: [CommandSignal, FeedbackSignal, PowerSupply]
produces: [DriveSignal, StatusSignal, FaultSignal]
has_component: [ControlLogic, PowerStage, ProtectionCircuit, CommunicationInterface]
may_use: [CurrentSensor, Encoder, Resolver, TemperatureSensor]
relates_to: [ElectricMotor, MotorRotor, MotorStator, MotorWinding, ElectricalSource, ElectricalLoad]
entity Motor:
attributes: [motor_type, rated_voltage, rated_current, rated_speed, rated_torque, thermal_class]
entity Feedback:
attributes: [signal_type, measured_value, timestamp, validity, uncertainty]
entity Fault:
attributes: [fault_code, severity, detection_time, affected_component, reset_permission]
# ---------- PATHWAYS ----------
pathway "command_to_motion":
read: [command, motor_rating, controller_state, interlocks]
require: controller_state in ["READY", "RUNNING"]
require: all_required_interlocks_satisfied
validate: command within permitted operating envelope
transform: command -> control_reference -> drive_output -> motor_response
observe: motor_feedback
compare: motor_feedback against control_reference
emit: [updated_drive_output, operating_status]
pathway "feedback_regulation":
read: [setpoint, feedback, controller_mode]
require: feedback.valid and feedback.fresh
compute: error = setpoint - feedback.value
apply: controller_specific_compensator(error)
limit: output by current, voltage, torque, speed and thermal constraints
emit: bounded_drive_command
pathway "controlled_stop":
trigger: stop_requested
select: approved_stop_category_and_ramp
command: reduce_motion_under_validated_limits
verify: stopped_state_using_appropriate_feedback
emit: "READY" when stop_complete and no_fault
pathway "protective_trip":
trigger: [overcurrent, overvoltage, undervoltage, overtemperature, overspeed, feedback_loss, interlock_violation]
action: invoke_certified_or_validated_protective_function
inhibit: unsafe_restart
transition: "TRIPPED"
emit: [fault_code, diagnostic_event, operator_notification]
pathway "reset_after_fault":
require: fault_cause_identified_and_corrected
require: equipment_safe_for_reset
require: reset_authorised
prohibit: automatic_restart_when_hazardous
transition: "READY" only_after_required_checks
# ---------- MINI_RECURSION_ENGINE ----------
engine "MotorControllerReasoning":
initialise: S0 = (I0, R, B, K)
repeat:
expand: E_t = expand(I_t, R)
filter: V_t = {x in E_t | respects(x, B) and supported_by(x, K)}
select: a_t = argmax_{x in V_t} P(x | I_t, R, B, K)
validate: selected_action_against_interlocks_and_ratings
observe: I_next = update(I_t, measurements, events, a_t)
record: [selected_action, observations, evidence, confidence]
until: [requested_state_reached, protective_trip, stop_requested, insufficient_evidence]
on_empty(V_t): enter_safe_defined_state_and_request_review
# ---------- INFERENCE_RULES ----------
rule "overcurrent":
when: measured_current > permitted_current_for_duration
infer: "overcurrent_condition"
response: protective_trip
rule "thermal_risk":
when: measured_temperature > validated_temperature_limit
infer: "thermal_limit_exceeded"
response: protective_trip
rule "feedback_failure":
when: required_feedback_invalid or required_feedback_stale
infer: "closed_loop_control_unreliable"
response: validated_fault_response
rule "speed_tracking_error":
when: abs(speed_setpoint - measured_speed) > configured_tolerance
infer: "tracking_error"
response: diagnose_load_feedback_and_control_parameters
rule "unsafe_start":
when: start_requested and not all_required_interlocks_satisfied
infer: "start_inhibited"
response: block_drive_enable
rule "power_stage_fault":
when: power_stage_diagnostic_fault
infer: "drive_output_unreliable"
response: protective_trip
# ---------- ENGINEERING_RELATIONSHIPS ----------
relationship "rotational_power": P_mechanical = torque_Nm * angular_speed_rad_per_s
relationship "angular_speed": angular_speed_rad_per_s = 2 * pi * speed_rpm / 60
relationship "three_phase_input_power": P_input = sqrt(3) * V_line_rms * I_line_rms * true_power_factor
relationship "efficiency": efficiency = P_mechanical_output / P_electrical_input
note: "Relationships apply only under their stated assumptions; true power factor includes waveform effects."
note: "Control gains, protective thresholds and safe stopping behaviour are equipment-specific, not universal constants."
# ---------- CONFIDENCE ----------
confidence:
high: "Verified motor nameplate, controller documentation and calibrated measurements agree"
medium: "Plausible operating evidence with some unverified parameters"
low: "Missing feedback, uncertain motor ratings or conflicting observations"
policy: "Do not infer safe operation solely from a high confidence score"
# ---------- SEMANTIC_EQUIVALENCE ----------
semantic_equivalence:
"motor controller": ["electric motor controller", "motor control unit"]
"motor drive": ["electronic motor drive", "variable speed drive when speed control is supported"]
"VFD": ["variable frequency drive", "inverter drive in applicable AC motor contexts"]
"servo drive": ["servo amplifier", "servo controller in applicable contexts"]
"trip": ["protective shutdown", "fault-induced inhibit"]
semantic_distinction: "A motor starter, VFD, stepper driver and servo drive are related but not interchangeable implementations."
# ---------- SAFETY_CONSTRAINTS ----------
safety:
- "Do not bypass emergency-stop, guarding or safety interlocks."
- "Safe torque off and emergency stop are distinct functions; use validated safety architecture."
- "Stored electrical energy may remain after power removal."
- "Isolation, lock-off and absence-of-voltage verification require qualified procedures."
- "A normal software stop does not establish electrical isolation."
- "Commissioning and protection settings must follow applicable equipment instructions and standards."
# ---------- FLOW_HASH ----------
flow_hash.method: "SHA-256 over canonical UTF-8 content excluding the flow_hash.value field"
flow_hash.value: "UNCOMPUTED"
# ---------- UPDATE_MODEL ----------
update_model:
version: "1.0"
review_triggers: ["source ontology revision", "motor controller standard update", "new validated failure mode", "new component relationship"]
preserve: ["source provenance", "author attribution", "change history", "safety boundaries"]
validation: "Re-evaluate entity mappings, formulas, protection rules and safety claims after changes"
# ---------- END FLOW ----------
Download Code
Copy to Clipboard