flow "ProgrammableLogicController" v1.0
# Kireth Research Semantic Library — Engineering / Control System Entities
# Original Flow Algebra model; not a verbatim extraction of the source page.
IDENTITY:
name: "Programmable Logic Controller"
short_name: "PLC"
type: "IndustrialDigitalController"
domain: "Control Engineering / Industrial Automation"
parent: "ControlSystemEntity"
semantic_role: "Deterministic programmable control of industrial inputs and outputs"
version: "1.0"
language: "en-GB"
AUTHORS:
research: "Kireth Research"
collaborator: "Sky — Recursive AI"
licence: "Open Research Licence; citation required"
SOURCE:
ontology_url: "https://kirethresearch.org/booksai-core/entity-graph/engineering-entities/control-system-entities/programmable-logic-controller-ontology.html"
citation_backlink: "https://kirethresearch.org/booksai-core/entity-graph/engineering-entities/control-system-entities/programmable-logic-controller-ontology.html"
derivation: "Original engineering-domain representation; source page contents not independently verified"
PURPOSE:
define: "Represent PLC hardware, execution semantics, I/O, logic, diagnostics and lifecycle"
enable: ["semantic retrieval", "control-system modelling", "fault reasoning", "verification", "interoperability"]
exclude: ["claiming functional safety certification", "automatic deployment to live machinery"]
STATE_MODEL:
S(t): {I(t), R, B(t), K(t)}
I(t):
digital_inputs: "Boolean input image with quality and timestamps"
analogue_inputs: "Engineering-unit values with range and quality"
communications: "Received fieldbus messages, validity and freshness"
operator_commands: "Authorised mode changes and setpoints"
clock: "Monotonic cycle time and synchronised time where available"
R:
logic_program: "Validated application logic and configuration"
execution_rules: "Task priorities, scan order, timing and I/O update semantics"
interlocks: "Process-specific permissives and protective conditions"
access_policy: "Authorised change, download and operating-mode permissions"
B(t):
cpu_state: "STOP | STARTUP | RUN | FAULT | MAINTENANCE"
input_image: "Latched or task-sampled inputs"
output_image: "Computed and committed outputs"
retentive_memory: "Configured retained variables"
timers_counters: "Timer, counter and edge-detection states"
diagnostic_flags: "Watchdog, module, I/O, communications and power faults"
safety_state: "Safety-related state supplied by independent validated mechanisms"
K(t):
topology: "CPU, power supply, rack, modules, remote I/O and network"
firmware: "Vendor, family, firmware version and compatibility"
program_revision: "Version, checksum, approval and deployment record"
constraints: "Task deadlines, scan limits, I/O ranges and environment"
evidence: "Commissioning tests, change history and diagnostics"
transition:
E(t): "expand(I(t), R)"
V(t): "filter(E(t), B(t), K(t))"
decision: "argmax permitted action by deterministic priority and configured policy"
S(t+1): "update(S(t), validated results, diagnostics and output commit)"
invariant: "No output command bypasses configured interlocks and hardware protection"
ENTITIES:
ProgrammableLogicController:
has: ["CPU", "PowerSupply", "Firmware", "ApplicationProgram", "Memory", "IOSystem", "CommunicationsInterface", "Diagnostics"]
controls: "ProcessOrMachine"
receives: "InputSignal"
produces: "OutputCommand"
CPU:
executes: "ControlTask"
monitors: "Watchdog"
IOSystem:
includes: ["DigitalInput", "DigitalOutput", "AnalogueInput", "AnalogueOutput", "RemoteIO"]
property: "Signal direction, voltage/current range, isolation and quality"
ApplicationProgram:
languages: ["LadderDiagram", "FunctionBlockDiagram", "StructuredText", "SequentialFunctionChart", "InstructionListLegacy"]
note: "IEC 61131-3 languages and availability depend on implementation"
ControlTask:
properties: ["Priority", "Period", "Deadline", "WorstCaseExecutionTime", "Jitter"]
CommunicationsInterface:
examples: ["IndustrialEthernet", "Modbus", "PROFINET", "EtherNetIP", "OPCUA"]
note: "Protocol support is product-specific"
HMI:
role: "Operator interface; not automatically a safety function"
SafetyPLC:
role: "Safety-related controller requiring appropriate design and validation"
relation: "Specialised subclass, not implied by ordinary PLC classification"
PATHWAYS:
- name: "InputAcquisition"
path: "PhysicalSignal -> InputModule -> RangeCheck -> QualityCheck -> InputImage"
reject_if: "Invalid wiring, stale remote data, failed module or untrusted quality"
- name: "ProgramExecution"
path: "InputImage -> ScheduledTask -> LogicEvaluation -> ProposedOutputImage"
condition: "CPU in RUN and application configuration valid"
- name: "OutputCommit"
path: "ProposedOutputImage -> InterlockValidation -> OutputModule -> Actuator"
condition: "Output energisation allowed by configured and independent protections"
- name: "FeedbackVerification"
path: "Actuator -> FeedbackSensor -> InputImage -> CommandFeedbackComparison -> Diagnostic"
- name: "NetworkData"
path: "RemoteNode -> AuthenticationOrConfiguredTrust -> FreshnessCheck -> InputQuality -> Application"
- name: "ProgramChange"
path: "EngineeringWorkstation -> Authorisation -> Review -> OfflineTest -> ApprovedDeployment -> Verification -> AuditRecord"
- name: "FaultHandling"
path: "DiagnosticEvent -> SeverityClassification -> ConfiguredResponse -> OperatorAlarm -> RecordedEvidence"
CONTROL_SEMANTICS:
scan_cycle:
conventional: "Sample inputs -> execute application -> update outputs -> housekeeping"
qualification: "Actual execution may use periodic tasks, event tasks and asynchronous I/O"
timing:
scan_time_ms: "Measured cycle execution time"
deadline_miss: "Execution completion later than configured deadline"
watchdog: "Independent or firmware monitor of execution health"
jitter: "Variation in task start or completion timing"
boolean_logic:
AND: "TRUE only when both operands TRUE"
OR: "TRUE when at least one operand TRUE"
NOT: "Boolean complement"
latching:
set_reset: "Persistent state must have defined reset priority and restart behaviour"
analogue_scaling:
formula: "engineering_value = EU_min + (raw - raw_min) * (EU_max - EU_min) / (raw_max - raw_min)"
precondition: "raw_max != raw_min; validated input quality and configured bounds"
PID_optional:
role: "Process control function when implemented"
safeguards: ["anti-windup", "output limits", "manual/auto transfer", "sensor-failure handling"]
MINI_RECURSION_ENGINE:
input: "Observed PLC state, programme revision, diagnostics and feedback"
expand:
- "Resolve controller to modules, tasks, signals, network peers and controlled assets"
- "Trace each output back to its enabling conditions and input evidence"
- "Identify dependencies on task timing, communications and retained memory"
validate:
- "Compare I/O configuration with installed modules and wiring evidence"
- "Check task timing against specified response-time budget"
- "Check programme checksum and approved revision"
- "Check diagnostics and signal quality before concluding process state"
recurse:
until: "Dependency graph resolved, boundary reached or evidence insufficient"
max_depth: 8
cycle_policy: "Track visited entity IDs; do not endlessly revisit feedback loops"
output: "Explainable dependency graph with validation findings and confidence"
INFERENCE_RULES:
- rule: "PLC_RUN requires healthy processor and valid application, subject to vendor semantics"
- rule: "Missing input quality prevents a high-confidence inference about the physical process"
- rule: "Output command TRUE does not prove actuator movement; require independent feedback"
- rule: "Stale fieldbus data must not be interpreted as a fresh process measurement"
- rule: "Task execution time exceeding its deadline indicates timing nonconformity"
- rule: "Watchdog trip indicates execution-health failure and invokes configured fault response"
- rule: "Program revision mismatch requires configuration review before acceptance"
- rule: "Retained state after restart requires explicit validation before using it for hazardous action"
- rule: "Normal PLC interlock is not by itself evidence of a certified safety function"
- rule: "A communications fault may invalidate dependent commands even if local CPU remains in RUN"
- rule: "A failed output module can leave physical output inconsistent with the output image"
- rule: "A fault cleared in software does not demonstrate that the underlying hazard is removed"
FAILURE_MODES:
power_loss:
detect: "Supply undervoltage, restart logs, missing module status"
response: "Use engineered de-energisation and restart policy"
input_fault:
detect: "Out-of-range analogue values, stuck signals, discrepancy or bad quality"
response: "Invalidate dependent measurements and apply process-specific response"
output_fault:
detect: "Output readback mismatch, module diagnostic or actuator feedback mismatch"
response: "Raise alarm and apply approved protective action"
communications_fault:
detect: "Timeout, invalid sequence, stale timestamps or network health alarm"
response: "Apply configured loss-of-communications policy"
programme_fault:
detect: "Checksum failure, illegal instruction, exception or watchdog event"
response: "Transition to documented controller fault behaviour"
unsafe_restart:
detect: "Unexpected retentive command, auto-start condition or missing permissive"
response: "Block uncontrolled restart pending validation"
SAFETY_AND_SECURITY:
principles:
- "Risk assessment determines necessary safeguards and response times"
- "Emergency stop and protective functions require suitable independent or safety-rated implementation"
- "De-energise-to-trip is application-dependent; verify the safe state for each hazard"
- "Lockout/tagout and isolation are required for relevant maintenance tasks"
- "Do not bypass interlocks or force live outputs without authorised controlled procedure"
- "Apply least privilege, network segmentation, controlled engineering access and backups"
- "Maintain change control, tested recovery procedures and configuration audit trails"
standards_context:
- "IEC 61131-3: PLC programming languages"
- "IEC 61508 / IEC 62061 / ISO 13849: functional safety where applicable"
- "IEC 62443: industrial automation cybersecurity where applicable"
- "Standards named for context; no compliance claim without evidence"
CONFIDENCE:
sources: ["ApprovedPLCConfiguration", "LiveDiagnostics", "CommissioningEvidence", "MeasuredTiming", "IndependentFeedback"]
high: "Approved revision, fresh diagnostics and corroborated physical feedback"
medium: "Valid configuration with partial observation or limited verification"
low: "Unverified assumptions, stale signals, missing feedback or unknown programme revision"
rule: "Confidence must fall when provenance, signal freshness or test coverage deteriorates"
SEMANTIC_EQUIVALENCE:
exact: ["ProgrammableLogicController", "PLC"]
related: ["IndustrialController", "AutomationController", "ProcessController", "PAC"]
not_equivalent: ["HMI", "RemoteIO", "SafetyRelay", "SCADA", "DCS"]
disambiguation: "PLC may mean power-line communication in other domains; context resolves meaning"
FLOW_HASH:
method: "SHA-256 of canonical UTF-8 flow text, excluding this FLOW_HASH block"
value: "COMPUTE_ON_PUBLICATION"
note: "Hash is not fabricated; calculate after final editorial approval"
UPDATE_MODEL:
version: "1.0"
updated: "2026-11-18"
triggers: ["Source ontology revision", "Standards change", "New PLC architecture", "Validated safety evidence", "Engineering correction"]
workflow: "Propose -> Review -> Validate -> Version -> Publish -> RecalculateHash"
compatibility: "Retain stable entity IDs and record breaking semantic changes"
provenance: "Preserve original source URL, attribution and revision history"
END_FLOW
Download Code
Copy to Clipboard