# PLC And HMI Output Templates Use these templates to keep answers consistent and implementable. ## PLC Clarifying Questions Ask only the missing items that matter: - PLC model/series: - XDPPro version and firmware: - Task type: new logic, modification, upload/download, communication, HMI, debugging: - Connection method: USB, serial, Ethernet, remote: - Machine state: stopped, running, maintenance, simulation: - I/O list and device names: - Safety/interlock requirements: - HMI variables, alarms, recipes, or communication devices: ## I/O Table | Type | Address | Name | Device | Normal State | Notes | |---|---|---|---|---|---| | Input | X0 | Start PB | Button | OFF | Rising-edge or maintained? | | Input | X1 | Stop PB | Button | ON/OFF | Confirm wiring logic | | Output | Y0 | Motor Run | Contactor/Drive | OFF | Include overload permissive | ## Soft-Element Table | Address | Name | Purpose | Retentive | HMI Visible | Notes | |---|---|---|---|---|---| | M0 | Auto mode | Mode latch | No | Yes | Set from HMI/manual switch | | M10 | Run command | Internal command | No | Yes | Gated by permissives | | D100 | Set speed | Parameter | Yes | Yes | Unit and range required | ## Ladder Network Plan Use this format when writing ladder logic in text: 1. Network 1 - Mode and reset - Inputs: - Logic: - Outputs/soft elements: - Notes: 2. Network 2 - Permissives and interlocks - Inputs: - Logic: - Outputs/soft elements: - Notes: 3. Network 3 - Output control - Inputs: - Logic: - Outputs/soft elements: - Notes: 4. Network 4 - Alarms and HMI status - Inputs: - Logic: - Outputs/soft elements: - Notes: ## HMI Variable List | HMI Object | PLC Address | Data Type | Access | Display/Input Range | Notes | |---|---|---|---|---|---| | Run status lamp | M10 | Bit | Read | ON/OFF | Green when running | | Speed setting | D100 | Word | Read/Write | 0-3000 rpm | Add bounds check | | Alarm code | D200 | Word | Read | 0-999 | Map to alarm text | ## Alarm Table | Alarm No. | Trigger | Message | Reset Condition | Stop Level | HMI Address | |---|---|---|---|---|---| | 1 | X10 OFF | Emergency stop active | E-stop reset and reset PB | Immediate stop | M200 | | 2 | M301 ON | Servo fault | Servo reset complete | Controlled stop | M201 | ## Debug Record | Step | Check Item | Expected | Actual | Result | Notes | |---|---|---|---|---|---| | 1 | PLC connection | Online | | | USB/serial/Ethernet | | 2 | Inputs monitor | Matches field devices | | | Test one by one | | 3 | Outputs manual test | Safe action | | | One output at a time | | 4 | Auto sequence dry-run | Correct order | | | No product/load |