OP10-CNC Rough Machining

5-Axis CNC Machine - Station 1
Modbus TCP

The first station in the production line performs rough machining operations on raw aluminum castings. This 5-axis CNC removes bulk material and creates the primary geometry of the brake caliper housing. Use Modbus TCP to read real-time machine state, production counters, sensor data, and fault information.

Connection: localhost:5020 Unit ID: 1 Update Rate: 50ms (20 Hz)

Business Purpose

Why Connect to This Simulator?

OEE Monitoring: Read production counters (good/bad parts) and machine states to calculate availability, performance, and quality metrics.

Predictive Maintenance: Monitor spindle load, vibration, and temperature sensors to detect wear patterns before failures occur.

Energy Management: Track power consumption per part for energy cost allocation and efficiency optimization.

Downtime Analysis: Capture fault codes and state transitions to build Pareto charts of downtime causes.

Station Specifications

Cycle Time
15 seconds
Load/Unload
3s / 3s
Process Time
9 seconds
Tools
Face Mill, Rough Bore

Modbus Register Map

All registers are holding registers (function code 03). Addresses follow Modbus convention (40001 = register 0).

AddressNameTypeDescription
40001Stateuint160=OFF, 1=IDLE, 2=RUNNING, 3=FAULTED, 4=BLOCKED, 5=STARVED
40002Stepuint160=IDLE, 1=LOADING, 2=PROCESSING, 3=UNLOADING
40005PartsProduceduint16Cumulative parts count
40006PartsGooduint16Good parts count
40007PartsBaduint16Bad parts (scrap + rework)
40008FaultActiveuint160=No fault, 1=Fault active
40009FaultCodeuint161001=Spindle Overload, 1002=Tool Break, 1003=Coolant Low
40010SpindleSpeeduint16RPM (0-12000)
40011SpindleLoaduint16Load % x10 (45.2% = 452)
40015Vibrationuint16mm/s x1000 (0.5 = 500)
40016Temperatureuint16Celsius x10 (35.2 = 352)
40022PowerKWuint16kW x100 (15.5 = 1550)
40110-11RunTimeuint32Accumulated run time (seconds)
40112-13DownTimeuint32Accumulated down time (seconds)

OP30-WASH Parts Washer

Aqueous Cleaning Station - Station 3
Modbus TCP

The parts washer uses high-pressure aqueous cleaning to remove machining chips, coolant residue, and contaminants from the brake caliper housing. Clean parts are essential for accurate leak testing at the next station. Monitor wash temperature, pressure, and filter status to ensure cleaning quality.

Connection: localhost:5021 Unit ID: 1 Update Rate: 50ms (20 Hz)

Business Purpose

Why Connect to This Simulator?

Quality Correlation: Monitor wash temperature and pressure to correlate cleaning parameters with downstream leak test results.

Maintenance Scheduling: Track filter pressure differential to schedule filter replacements before clogging causes downtime.

Process Optimization: Analyze cycle times and temperature profiles to optimize cleaning without affecting quality.

Environmental Compliance: Log water usage and chemical consumption for sustainability reporting.

Station Specifications

Cycle Time
12 seconds
Load/Unload
2s / 2s
Wash Time
8 seconds
Faults
Temp Low, Filter Clog

Modbus Register Map

AddressNameTypeDescription
40001Stateuint160=OFF, 1=IDLE, 2=RUNNING, 3=FAULTED, 4=BLOCKED, 5=STARVED
40002Stepuint160=IDLE, 1=LOADING, 2=WASHING, 3=UNLOADING
40005PartsProduceduint16Cumulative parts washed
40006PartsGooduint16Successfully cleaned parts
40007PartsBaduint16Parts requiring re-wash
40008FaultActiveuint160=No fault, 1=Fault active
40009FaultCodeuint163001=Temp Low, 3002=Filter Clogged
40013WashPressureuint16bar x10 (6.5 = 65)
40014WashTempuint16Celsius x10 (55.0 = 550)
40022PowerKWuint16kW x100

OP20-CNC Finish Machining

Precision CNC Machine - Station 2
OPC UA

The finish machining station performs precision operations to achieve final dimensions and surface quality. This station is critical for bore tolerances and thread quality. OPC UA provides a rich, hierarchical data structure with strong typing and metadata for enterprise integration.

Endpoint: opc.tcp://localhost:4840 Security: None (Anonymous)

Business Purpose

Why Connect to This Simulator?

Precision Monitoring: Track bore diameter measurements and surface finish parameters for SPC analysis.

Tool Life Management: Monitor tool wear counters to optimize tool change intervals and reduce scrap from worn tools.

Traceability: Capture part serial numbers with timestamps for full genealogy tracking through the production line.

Enterprise Integration: OPC UA's standardized information model enables seamless connection to MES and ERP systems.

Station Specifications

Cycle Time
12 seconds
Load/Unload
2s / 2s
Process Time
8 seconds
Tools
Finish Bore, M10 Tap

OPC UA Node Structure

Nodes are organized under namespace index 1. Browse from ns=1;s=OP20-CNC

Node IDTypeDescription
ns=1;s=OP20-CNC.StateStringIDLE, RUNNING, FAULTED, BLOCKED, STARVED
ns=1;s=OP20-CNC.StepStringIDLE, LOADING, PROCESSING, UNLOADING
ns=1;s=OP20-CNC.CurrentPartStringSerial number of part being processed
ns=1;s=OP20-CNC.Counters.PartsProducedInt64Total parts completed
ns=1;s=OP20-CNC.Counters.PartsGoodInt64Good parts count
ns=1;s=OP20-CNC.Counters.PartsBadInt64Scrap + rework count
ns=1;s=OP20-CNC.Sensors.SpindleSpeedFloat64Current spindle RPM
ns=1;s=OP20-CNC.Sensors.SpindleLoadFloat64Spindle load percentage
ns=1;s=OP20-CNC.Sensors.TemperatureFloat64Machine temperature (Celsius)
ns=1;s=OP20-CNC.Energy.PowerKWFloat64Current power consumption (kW)
ns=1;s=OP20-CNC.Energy.EnergyKWHFloat64Cumulative energy (kWh)
ns=1;s=OP20-CNC.Tool.LifeCountInt32Current tool usage count
ns=1;s=OP20-CNC.Tool.LifeRemainingInt32Remaining tool life
ns=1;s=OP20-CNC.Fault.ActiveBooleanTrue if fault is active
ns=1;s=OP20-CNC.Fault.CodeStringE2001=Bore OOS, E2002=Tap Break
ns=1;s=OP20-CNC.Time.RunTimeSecFloat64Accumulated run time
ns=1;s=OP20-CNC.Time.DownTimeSecFloat64Accumulated down time

OP40-TEST Leak Test

Pressure Decay Test Station - Station 4
OPC UA

The final quality gate uses pressure decay testing to verify hydraulic integrity of the brake caliper. Parts are pressurized and held while monitoring for pressure drop. This station determines if parts pass to finished goods or are rejected. Critical for safety-related automotive components.

Endpoint: opc.tcp://localhost:4841 Security: None (Anonymous)

Business Purpose

Why Connect to This Simulator?

Quality Assurance: Every part's leak test result determines final pass/fail status - essential for quality KPIs.

Defect Root Cause: Correlate leak failures with upstream machining parameters to identify process issues.

Compliance Documentation: Automotive safety regulations require traceable test records for every brake component.

Yield Analysis: Monitor first-pass yield trends to detect quality drift before it impacts production targets.

Station Specifications

Cycle Time
35 seconds
Load/Unload
7s / 7s
Test Time
21 seconds
Test Pressure
15 bar

OPC UA Node Structure

Nodes are organized under namespace index 1. Browse from ns=1;s=OP40-TEST. Test-specific sensors provide leak rate and pressure decay measurements.

Node IDTypeDescription
ns=1;s=OP40-TEST.StateStringMachine state
ns=1;s=OP40-TEST.StepStringIDLE, LOADING, PRESSURIZING, TESTING, UNLOADING
ns=1;s=OP40-TEST.CurrentPartStringPart serial number under test
ns=1;s=OP40-TEST.Counters.PartsProducedInt64Total parts tested
ns=1;s=OP40-TEST.Counters.PartsGoodInt64Parts passed leak test
ns=1;s=OP40-TEST.Counters.PartsBadInt64Parts failed leak test
ns=1;s=OP40-TEST.Sensors.TestPressureFloat64Current test pressure (bar)
ns=1;s=OP40-TEST.Sensors.LeakRateFloat64Measured leak rate (cc/min)
ns=1;s=OP40-TEST.Sensors.PressureDecayFloat64Pressure drop during test (mbar)
ns=1;s=OP40-TEST.Fault.ActiveBooleanFault status
ns=1;s=OP40-TEST.Fault.CodeStringE4001=Air Pressure Low, E4002=Seal Wear

MES REST API

Manufacturing Execution System
REST API

The MES API provides production execution and shop floor control capabilities. Manage work orders, track production records with full part traceability, monitor quality measurements, record downtime events, and access real-time equipment status. All data is JSON-formatted for easy integration.

Base URL: http://localhost:8080/api/v1

Business Purpose

Why Connect to This Simulator?

Analytics Platform Integration: Structured JSON responses designed for BI tools and data warehouses.

OEE Calculation: Production counters, downtime events, and quality records provide all inputs for OEE metrics.

Part Traceability: Every part's complete production history including cycle times, measurements, and tool usage.

Master Data Sync: Equipment definitions, product routings, and reason codes for maintaining data consistency.

Available Endpoints

Master Data

GET /master/factory Factory and line definitions
GET /master/products Product definitions with routing
GET /master/equipment Equipment/station definitions
GET /master/downtime-reasons Downtime reason codes

Work Orders

GET /production/orders List all work orders
GET /production/orders/current Current active work order
POST /production/orders/:id/start Start a work order
POST /production/orders/:id/complete Complete a work order

Production Data

GET /production/records Part production history
GET /production/counters Raw production counters

Quality & Downtime

GET /quality/records Quality measurements
GET /downtime/events Downtime event history
GET /downtime/faults Fault events with codes

Real-Time Status

GET /realtime/equipment Current equipment states
GET /realtime/buffers Buffer levels
GET /energy/readings Energy consumption
Click "Try" to test an endpoint

ERP REST API

Enterprise Resource Planning
REST API

The ERP API provides business-level data for inventory management and stock movements. Use this API to simulate material replenishment, finished goods shipping, and inventory tracking operations that typically come from enterprise resource planning systems.

Base URL: http://localhost:8081/api/v1

Business Purpose

Why Connect to This Simulator?

Inventory Visibility: Real-time stock levels for raw materials, WIP, and finished goods.

Material Flow: Track stock movements from receiving through production to shipping.

Automation Control: Configure automatic material replenishment and shipping rules.

Available Endpoints

Inventory

GET /inventory All inventory levels
GET /inventory/raw Raw material stock
GET /inventory/finished Finished goods stock
POST /inventory/receive Receive raw materials {"quantity": 50}
POST /inventory/ship Ship finished goods {"quantity": 25}

Automation & Movements

GET /movements Stock movement history
GET /automation Automation status & config
PUT /automation/mode Switch mode {"mode": "automatic"}
Click "Try" to test an endpoint