Jump to content

leuzierre

Members
  • Posts

    7
  • Joined

  • Last visited

Everything posted by leuzierre

  1. Google traduction Thanks Joe Taucher and Ausman for your help. Sorry for not having answered earlier, I am working hard on this project. I found out why I couldn't subtract, it was due to the memory format to use. When there were hours, minutes and seconds (ex: 13h30mn50s), I did the calculation to convert in seconds then I save in ML (32 bits). And my variable which contained the minutes, second (ex: 20mn30s), I converted it into second and I save it in MI (16 bits). If I don't put these 2 values in ML, the value was wrong. Lack of time, i haven't try in BCD if that will work too. I just got some BCD encoding lessons, I will be working on it this weekend. For the subroutines in my program, which I had put on this site, I had purposely put an example in the hand for simplicity. My program is progressing well, and if you want it so that its help has someone else i will post it on this site. LJ
  2. google traduction Thanks for your help Me, I had to try it during the weekend. I can see that I am far from the mark. As you asked me Joe Tauser, I enclose my program example.vlp
  3. google traduction Hello, I have been stuck on my project for several days and I specify that I am a beginner in programming. My plan is that I have to sound a buzzer several times during the day is this setting made by HMI. On my HMI, I create 2 variables. Variable 1 is the hour and variable 2 is the minutes that I need to subtract. The problem, this variable that I created on the HMI, time function should I convert it to seconds in the ladder program? If it is necessary to convert it in second, for the obtained result I must use the block rtc to utc to compare it with SI31? I tried to do a comparison but it doesn't work for me. Thank you in advance for your help.
  4. Bonjour J'ai réussit a en BCD l'addition des variables , j'obtiens bien l'heure souhaiter mais l'opération pour soustraire me donne pas la bonne valeur. J'ai ajouter 6 (hex : 0110) dans des exemple de calcul que je vois sur internet mais c'est toujours pas . Quelqu'un a t'il une solutions ? Google traduction: Hello I succeeded in adding the variables in BCD, I got the desired time, but the operation to subtract gave me the wrong value. I added 6 (hex: 0110) in some example calculation that I see on the internet but it's still not. Does anyone have a solution?
  5. La responsable de la maintenance veut que ce soit en BCD, c'est plus simple pour lui a lire le programme. Google traduction The maintenance manager wants it to be in BCD, it's easier for him to read the program.
  6. Bonjour et merci pour votre aide. Pour mon projet on m'oblige d'utiliser le BCD pour les variables 1 (MI 1) et variables 2 (MI2) . Dans mon exemple , lorsque que l'on rentre l'HEURE (ex: 5h ) et 10 mn , je dois lancer une sonnerie pour 5h50 et a 6h une deuxième sonnerie se lance . Je pense que mon erreur vient de ADD MI1 et MI2 et le résultat est plus en BCD. Je me vois pas comment je peux faire . Je joins 2 photo de mon program. google traduction Hello and thank you for your help. For my project I am forced to use the BCD for variables 1 (MI 1) and variables 2 (MI2). In my example, when we enter the TIME (ex: 5h) and 10 mn, I have to start a ringing for 5:50 a.m. and at 6 a.m. a second ringing starts. I think my error comes from ADD MI1 and MI2 and the result is more in BCD. I do not see myself how I can do. I attach 2 photos of my program.
  7. Bonjour , je travaille sur un projet d'où je suis bloquer sur les variables de temps .Je dois utiliser des heures fixes . J'utilise le logicielle visilogic. Pour mon exemple, j'ai 2 variables , l'heure et les minutes a soustraire . Variables 1 : 14h00 , variable 2 : 20mn , le résultat est 13h40. Dans mon IHM , j'utilise les variables TIMES FONCTIONS et sous ladder je les convertir en NUM TO BCD, puis j'utilise le bloc SUB pour le calcul et le résultat converti en BCD TO NUM . Et pour finir , je le compare avec SI 31 pour enclencher un évènement. Le problème est je m'arrive pas a faire le calcul et le comparer vu que les valeurs sont différentes. Je me comprend ou est le problème et je vous remercie d'avance pour être aide .
×
×
  • Create New...