@ -204,6 +204,7 @@ public class PlcService {
LocalDateTime endTime = LocalDateTime . now ( ) ;
LocalDateTime endTime = LocalDateTime . now ( ) ;
Order order = orderMapper . getOneByOrderNum ( plcCmdInfo . getOrderNum ( ) ) ;
Order order = orderMapper . getOneByOrderNum ( plcCmdInfo . getOrderNum ( ) ) ;
order . setEndTime ( endTime ) ;
if ( order = = null ) {
if ( order = = null ) {
log . error ( "订单结束信号, 订单不存在, orderNum:{}" , plcCmdInfo . getOrderNum ( ) ) ;
log . error ( "订单结束信号, 订单不存在, orderNum:{}" , plcCmdInfo . getOrderNum ( ) ) ;
return ;
return ;
@ -354,7 +355,6 @@ public class PlcService {
long delayTime = 0 ;
long delayTime = 0 ;
if ( code . startsWith ( "C1" ) ) {
if ( code . startsWith ( "C1" ) ) {
delayTime = configProperties . getCameraConfig ( ) . getC1DelayCaptureTime ( ) ;
delayTime = configProperties . getCameraConfig ( ) . getC1DelayCaptureTime ( ) ;
} else if ( code . startsWith ( "C2" ) ) {
} else if ( code . startsWith ( "C2" ) ) {
if ( sep = = 1 ) {
if ( sep = = 1 ) {
@ -362,7 +362,7 @@ public class PlcService {
} else {
} else {
delayTime = configProperties . getCameraConfig ( ) . getC2OutDelayCaptureTime ( ) ;
delayTime = configProperties . getCameraConfig ( ) . getC2OutDelayCaptureTime ( ) ;
}
}
if ( configProperties . getOrderTest ( ) = = 1 & & plcCmdInfo . getFromAround ( ) = = 2 ) {
if ( configProperties . getOrderTest ( ) = = 1 ) {
checkTest ( plcCmdInfo ) ;
checkTest ( plcCmdInfo ) ;
}
}
} else if ( code . startsWith ( "C3" ) ) {
} else if ( code . startsWith ( "C3" ) ) {
@ -829,8 +829,8 @@ public class PlcService {
//古井贡酒没有side使用双伸单伸Separation代替全部side
//古井贡酒没有side使用双伸单伸Separation代替全部side
plcCmdInfo = new PlcCmdInfo ( dataInfo . getSRMNumber ( ) , dataInfo . getTaskId ( ) ,
plcCmdInfo = new PlcCmdInfo ( dataInfo . getSRMNumber ( ) , dataInfo . getTaskId ( ) ,
dataInfo . getFromSeparation ( ) , dataInfo . getFromDirection ( ) , dataInfo . getFromColumn ( ) ,
dataInfo . getFromSeparation ( ) , dataInfo . getFromDirection ( ) , dataInfo . getFromColumn ( ) ,
dataInfo . getFrom Row ( ) , dataInfo . getFromSeparation ( ) , dataInfo . getToSeparation ( ) ,
dataInfo . getFrom Storey ( ) , dataInfo . getFromSeparation ( ) , dataInfo . getToSeparation ( ) ,
dataInfo . getToDirection ( ) , dataInfo . getToColumn ( ) , dataInfo . getTo Row ( ) ,
dataInfo . getToDirection ( ) , dataInfo . getToColumn ( ) , dataInfo . getTo Storey ( ) ,
dataInfo . getToSeparation ( ) , lotnum ) ;
dataInfo . getToSeparation ( ) , lotnum ) ;
plcCmdInfo . setFromDirection ( dataInfo . getFromDirection ( ) ) ;
plcCmdInfo . setFromDirection ( dataInfo . getFromDirection ( ) ) ;
plcCmdInfo . setToDirection ( dataInfo . getToDirection ( ) ) ;
plcCmdInfo . setToDirection ( dataInfo . getToDirection ( ) ) ;
@ -882,10 +882,6 @@ public class PlcService {
} else if ( Cmd . B2 . name ( ) . equals ( cmdName ) ) {
} else if ( Cmd . B2 . name ( ) . equals ( cmdName ) ) {
//B2 C4 一起发的, 需要停止等B2
orderStop ( plcCmdInfo ) ;
orderStop ( plcCmdInfo ) ;
}
}
} else if ( Cmd . C . name ( ) . equals ( ksecInfo . getType ( ) ) ) {
} else if ( Cmd . C . name ( ) . equals ( ksecInfo . getType ( ) ) ) {