UAT 202 Fundamentals of Automation Technology
Worksheet 5 Designing the battery-swap station
Objective
Design the station sequence as a state machine, link devices with Modbus TCP, command a drone relay and draw the overall system
Equipment and materials
- CODESYS with a simulated PLC and Modbus TCP server
- Computer on the lab's internal network
- ArduPilot SITL and a mission planner
- Python and the module 5 example code
Safety
- Simulation and internal network only; no real flights
- Expose Modbus only on the lab network because the protocol has no authentication
Steps
- Write the state machine in SFC or ST as in Figure 1 with a timeout for each state
- Test normal, timeout in every state and emergency stop; compare with Example 1
- Start the Modbus TCP server and read registers from a PC program; check against Example 2
- Configure a relay in SITL, command DO_SET_RELAY in a mission and check the log
- Compute arm capacity with Example 4
- Draw how drone, station and mission system communicate and where emergency stops are needed
Record of results
| Test case | Event sequence (time s) | Expected final state | Actual final state | Pass? |
|---|---|---|---|---|
| Item | Value obtained | Expected or reference value | Notes |
|---|---|---|---|
Questions
Why must the FAULT state not exit automatically, and what should a person check before the station resumes?
Classic Modbus has no authentication. What could a stranger on the PLC's network do, and how does your group's setup prevent it?
From Record 3, how many drones can one station serve at no more than 80% arm utilisation? How many if the self-test grows to 30 s?
In the system diagram, where are emergency stops needed, and why can a DO_SET_RELAY command from the drone not replace the station's emergency stop?
Check before you hand in
What to hand in
- State-machine program and test table
- Register readout and SITL log
- Capacity calculation
- System diagram with emergency-stop points