How zineddinemanamani/automated-warehouse-control-system works
This is a full-stack AS/RS simulation and operator-control system: STEP 7 logic runs the crane, conveyors, slot allocation, and RFID tracking; a Node.js service exchanges S7 data, schedules manual jobs, and reports state; a React dashboard monitors and commands it. The main workflow is operator action or automatic box arrival → PLC execution → polled state and event updates → dashboard. PLC project internals are represented at their enclosing directory based on README descriptions; their individual program files were not sampled.
Main entry points: App.tsx Dashboard App · index.js Polling Server · Step7-Project S7-300 Logic · plc.js Snap7 Client
Components 24
PLC Control
- S7-300 Logic
Step7-Project
Backend Services
- Polling Server
Warehouse-App/server/index.js - Snap7 Client
Warehouse-App/server/plc.js - API Controllers
Warehouse-App/server/automatedWarehouse/warehouseControllers.js - Warehouse Routes
Warehouse-App/server/automatedWarehouse/warehouseRoutes.js - Job Queue
Warehouse-App/server/services/queue.js - PLC Commands
Warehouse-App/server/services/plcService.js
Operator Dashboard
- Dashboard App
Warehouse-App/client/src/App.tsx - HTTP API Client
Warehouse-App/client/src/services/api.ts - Slot Grid
Warehouse-App/client/src/components/Warehouse.tsx - Slot Actions
Warehouse-App/client/src/components/Slot.tsx - Machine Controls
Warehouse-App/client/src/components/Controls.tsx - Queue Panel
Warehouse-App/client/src/components/Queue.tsx - Box ID Search
Warehouse-App/client/src/components/UnloadByBoxId.tsx - Event Log View
Warehouse-App/client/src/components/EventLog.tsx - Status Panels
Warehouse-App/client/src/components/CurrentBox.tsx - Slot Statistics
Warehouse-App/client/src/components/Stats.tsx - Connection Header
Warehouse-App/client/src/components/Header.tsx - Active Operation
Warehouse-App/client/src/components/CurrentOp.tsx
State and Events
- SQLite Event Store
Warehouse-App/server/database/db.js - Event Logging
Warehouse-App/server/database/logger.js
Other components
- Operator
- Factory I/O
- NetToPLCSim
Connections 30
- Factory I/O → S7-300 Logic: simulates equipment
README.md - S7-300 Logic → NetToPLCSim: PLC communication
README.md - NetToPLCSim → Snap7 Client: bridges S7
README.md - Polling Server → Snap7 Client: polls and reads
Warehouse-App/server/index.js - Polling Server → Job Queue: schedules jobs
Warehouse-App/server/index.js - Polling Server → PLC Commands: sends next job
Warehouse-App/server/index.js - Polling Server → Event Logging: records events
Warehouse-App/server/index.js - Polling Server → Warehouse Routes: mounts routes
Warehouse-App/server/index.js - Warehouse Routes → API Controllers: dispatches requests
Warehouse-App/server/automatedWarehouse/warehouseRoutes.js - API Controllers → Job Queue: adds or cancels
Warehouse-App/server/automatedWarehouse/warehouseControllers.js - API Controllers → Snap7 Client: writes commands
Warehouse-App/server/automatedWarehouse/warehouseControllers.js - PLC Commands → Snap7 Client: writes PLC commands
Warehouse-App/server/services/plcService.js - Event Logging → SQLite Event Store: persists events
Warehouse-App/server/database/logger.js - Polling Server → S7-300 Logic: polls and commands
README.md - Polling Server → Dashboard App: streams machine state
Warehouse-App/server/index.js - Dashboard App → HTTP API Client: sends operator requests
Warehouse-App/client/src/App.tsx - HTTP API Client → Warehouse Routes: calls REST endpoints
README.md - Dashboard App → Slot Grid: renders slots
Warehouse-App/client/src/App.tsx - Slot Grid → Slot Actions: renders each slot
Warehouse-App/client/src/components/Warehouse.tsx - Dashboard App → Machine Controls: renders controls
Warehouse-App/client/src/App.tsx - Dashboard App → Queue Panel: renders queue
Warehouse-App/client/src/App.tsx - Dashboard App → Box ID Search: renders search
Warehouse-App/client/src/App.tsx - Dashboard App → Event Log View: renders events
Warehouse-App/client/src/App.tsx - Dashboard App → Status Panels: renders box status
Warehouse-App/client/src/App.tsx - Dashboard App → Slot Statistics: renders counts
Warehouse-App/client/src/App.tsx - Dashboard App → Connection Header: renders connection
Warehouse-App/client/src/App.tsx - Dashboard App → Active Operation: renders active job
Warehouse-App/client/src/App.tsx - Operator → Dashboard App: monitors and controls
README.md - Dashboard App → Polling Server: receives live updates
README.md - S7-300 Logic → S7-300 Logic: allocates and tracks boxes
README.md