Nul risico, 100% betrouwbaarheid
Virtuele inbedrijfstelling vermindert fouten ter plaatse drastisch. Door PLCSIM Advanced te gebruiken in combinatie met T-IA Connect kunt u uw volledige installatie simuleren, randgevallen testen en de veiligheid van de machine valideren zonder enig risico op hardwareschade.
Vereisten
- Siemens PLCSIM Advanced V4.0 of hoger geïnstalleerd
- T-IA Connect (AI Pro of Enterprise editie)
- TIA Portal-project gecompileerd voor simulatie
Stap 1: PLCSIM-instantie configureren
Maak en start een virtuele simulatie-instantie via de API. U kunt de netwerkinterface (PLCSIM Virtual Ethernet Adapter) configureren voor echte TCP/IP-communicatie.
curl -X POST http://localhost:9000/api/simulation/instances \
-H "Content-Type: application/json" \
-d '{
"instanceName": "Sim_Conveyor_V1",
"cpuType": "S71500",
"ipAddress": "192.168.0.10",
"subnetMask": "255.255.255.0",
"startAfterCreate": true
}'{
"success": true,
"instance": {
"name": "Sim_Conveyor_V1",
"id": "inst_01j2k3l4",
"status": "Running",
"ip": "192.168.0.10",
"cpu": "S71500",
"port": 102
}
}Stap 2: Het programma in de simulator laden
Gebruik de API om uw TIA Portal-project rechtstreeks in de actieve PLCSIM-instantie te laden, precies zoals u zou doen met een fysieke PLC.
curl -X POST http://localhost:9000/api/simulation/instances/Sim_Conveyor_V1/load \
-H "Content-Type: application/json" \
-d '{
"projectPath": "C:\\Projects\\Machine_V1\\Project.ap19",
"stationName": "PLC_Main",
"fullDownload": true
}'{
"success": true,
"loadStatus": "Completed",
"blocksLoaded": 42,
"hardwareConfigured": true,
"executionMode": "RUN"
}Stap 3: Eenheidstests en scenario's uitvoeren
Zodra het programma is geladen, gebruikt u de API om ingangen te forceren, uitgangen te lezen en uw logicasequenties op een geautomatiseerde manier te valideren.
curl -X POST http://localhost:9000/api/simulation/tags/force \
-H "Content-Type: application/json" \
-d '{
"tagName": "Sensor_Pallet_At_Stop",
"value": true,
"durationMs": 500
}'{
"success": true,
"currentValue": true,
"monitoredOutputs": [
{ "name": "Conveyor_Motor_Start", "value": false },
{ "name": "Conveyor_Brake_Active", "value": true }
],
"testResult": "PASS"
}Virtuele inbedrijfstelling identificeert tot 80% van de softwarefouten voordat de eerste elektrische behuizing zelfs maar bedraad is.