// Automatik operation.
if (GlobalState.MachineType==540) {
TransportSystem.MachineTargetVelocity=GetRelativeVelocityFromRegisterValue(AI_TargetVelocity)*TransportSystem.AutoVelocity*(TP_Backup_Outfeed_1.Q?0.80f:1.00f);
} else {
TransportSystem.MachineTargetVelocity=TransportSystem.AutoVelocity*(TP_Backup_Outfeed_1.Q?0.80f:1.00f);
}
if (TransportSystem.AutoRequest) {
if (GlobalState.MachineType==540) {
SplitStarwheelDrive.AO_Velocity=GetRegisterValueFromRelativeVelocity(TransportSystem.MachineTargetVelocity);
// Control infeed bottle stream.
// Gap at the bottle present sensor -> machine stop and error message.
if (!BottleDetection.DI_BottlePresent_Infeed) {
SetMessage(25,1);
}
// Gap at the bottle
backup sensor -> machine halt and warning message.
if (!BottleDetection.DI_Backup_Infeed) {
// Gap in bottle stream at infeed -> make machine halt.
SplitStarwheelDrive.DO_Enable_Bottom=0;
SetMessage(202,1);
} else if (!Peripheral.DI_ExternalEnable) {
// External enable missing -> make machine halt.
SplitStarwheelDrive.DO_Enable_Bottom=0;
SetMessage(203,1);
} else if (TransportSystem.Outfeed_1_Backup_Cnt>3) {
// Backup on production outfeed conveyor -> make machine halt.
SplitStarwheelDrive.DO_Enable_Bottom=0;
SetMessage(204,1);
} else {
// Regular automatic operation.
SplitStarwheelDrive.DO_Enable_Bottom=1;
SetMessage(202,0);
SetMessage(203,0);
SetMessage(204,0);
}
} else if (GlobalState.MachineType==550) {
// Control infeed bottle stream.
Peripheral.DI_ExternalEnable=1;
// Gap at the bottle backup sensor -> machine halt and warning message.
/*if (!BottleDetection.DI_Backup_Infeed) {
// Gap in bottle stream at infeed -> make machine halt.
LinosBeltDrive.EnableMovement=0;
SetMessage(202,1);
} else */if (!Peripheral.DI_ExternalEnable) {
// External enable missing -> make machine halt.
LinosBeltDrive.EnableMovement=0;
SetMessage(203,1);
} else if (TransportSystem.Outfeed_1_Backup_Cnt>40) {
// Backup on production outfeed conveyor -> make machine halt.
LinosBeltDrive.EnableMovement=0;
Peripheral.PausedWithAutoRestart=1;
SetMessage(204,1);
} else {
// Regular automatic operation.
LinosBeltDrive.EnableMovement=1;
SetMessage(202,0);
SetMessage(203,0);
SetMessage(204,0);
}
}
} else {
if (GlobalState.MachineType==540) {
SplitStarwheelDrive.DO_Enable_Bottom=0;
} else if (GlobalState.MachineType==550) {
LinosBeltDrive.EnableMovement=0;
}
TransportState=1000;
}
}
//----------------------------------------------------------------------------
Bei dem fett markiertem Text, heißt es doch, wenn Stau auf dem Produktionsauslaufband -> Maschine anhalten.
Unten steht dann LionsBeltDrive.EnableMovement = 0, was heißt die 0? Was heißt die 1 bei auto restart