1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
| int imat, pct, pd, pt, pcv, label
imat = IMMATRICULATION_CAMION.getStringValue();
pct = POIDS_CAMION_TOTALE.getIntValue();
pd = POIDS_DECHETS.getIntValue();
pt = POIDS_TREMIE.getIntValue();
pcv = poids_camion_vide.getIntValue();
label = _RecipeControlDefault.RecipeLabel.getStringValue();
if (imat!= recette tableau_camion )
{
"camion non existant"
}
String imatRecherche = dbHMI_GeneriqueCde.Indexpcv.getStringValue();
String pcv = "";
int intIndexRec = 0;
boolean bolExit = true;
do
{
// Sélection du groupe de recette
_RecipeControlDefault.tableau_camion.write(1);
// Sélection de la recette
_RecipeControlDefault.RecipeNumber.write(intIndexRec);
// Chargement de la recette
_RecipeControlDefault.Operation.write(4);
// Récupération de l'étiquette de la recette
pcv = _RecipeControlDefault.RecipeLabel.getStringValue();
// Test
if (imat.compareTo(pcvRecherche) == 0)
{
bolExit = false;
}
// Incrément de la boucle
intIndexRec += 1;
IndexRecette.write(intIndexRec);
}
while (bolExit = true);
if(imat== RecipeLabel ) //si a correspond à une valeur d'une rectte du tableau_camion
{
pd(== pct-recette tableau_camion) //alors c prend la valeurs du poids camion totale (-)
//la valeurs de la recette correspondante
//incrémentation poids déchet : poids trémie//
(POIDS_TREMIE== POIDS_DECHETS + POIDS_TREMIE ); |
Partager