|
|
@@ -1249,7 +1249,7 @@ namespace VehicleControlSystem.ControlLayer
|
|
|
|
|
|
this.SetConveyorSpeed( true );
|
|
|
this.OnOffConveyor( true , true );
|
|
|
- this.iO.WriteOutputIO( "OUT_PIO_RECEIVE_RUN" , true );
|
|
|
+ this.iO.WriteOutputIO( "OUT_PIO_RECEIVE_RUN" , true, 1000 );
|
|
|
loggerPIO.I( "[Vehicle] - Conveyor Run" );
|
|
|
this.OnConveyorStart?.Invoke( true );
|
|
|
|
|
|
@@ -1304,7 +1304,12 @@ namespace VehicleControlSystem.ControlLayer
|
|
|
this.OnConveyorStop?.Invoke( true );
|
|
|
|
|
|
this.iO.WriteOutputIO( "OUT_PIO_RECIVE_COMPLITE" , true );
|
|
|
- this.iO.WriteOutputIO( "OUT_PIO_RECIVE_COMPLITE" , false , 1000 );
|
|
|
+ if ( !this.iO.WaitChangeInputIO(true, pioTimeout, "IN_PIO_SEND_COMPLITE" ) )
|
|
|
+ {
|
|
|
+ this.iO.WriteOutputIO( "OUT_PIO_RECIVE_COMPLITE", false );
|
|
|
+ loggerPIO.E( "[Port] IN_PIO_SEND_COMPLITE On Time Out" );
|
|
|
+ }
|
|
|
+ this.iO.WriteOutputIO( "OUT_PIO_RECIVE_COMPLITE", false );
|
|
|
|
|
|
this.OnLoadComplete?.Invoke();
|
|
|
#endif
|