Bonjour,
Je viens vers vous concernant un Automate TSX Premium sous PL7 PRO.
Est-ce qu'il est possible de faire afficher l'horodatage sur une page "Ecran Exploitation" au niveau du logiciel PL7 ?
Bonne journée à vous
[TSX Premium]
- itasoft
- Mi homme - Mi automate
- Messages : 7167
- Enregistré le : 20 oct. 2015, 10:15
- Localisation : Lyon
- Contact :
Re: [TSX Premium]
OUI
faut d'abord convertir l'heure courante en décimal pour l'afficher
ex:
Jour:=BCD_TO_INT(%SW52 AND 16#00FF);
Mois:=BCD_TO_INT(SHR(%SW52,8));
Annee:=BCD_TO_INT(%SW53);
Heure:=BCD_TO_INT(SHR(%SW51,8));
Minute:=BCD_TO_INT(%SW51 AND 16#00FF);
faut d'abord convertir l'heure courante en décimal pour l'afficher
ex:
Jour:=BCD_TO_INT(%SW52 AND 16#00FF);
Mois:=BCD_TO_INT(SHR(%SW52,8));
Annee:=BCD_TO_INT(%SW53);
Heure:=BCD_TO_INT(SHR(%SW51,8));
Minute:=BCD_TO_INT(%SW51 AND 16#00FF);
Automaticien privé (de tout)
itasoft@free.fr
itasoft@free.fr
Re: [TSX Premium]
Bonjour,
Parfait, cela est résolu.
Bonne journée
Parfait, cela est résolu.
Bonne journée
- itasoft
- Mi homme - Mi automate
- Messages : 7167
- Enregistré le : 20 oct. 2015, 10:15
- Localisation : Lyon
- Contact :
Re: [TSX Premium]
c'est résolu comment ? avec l'exemple ?
Automaticien privé (de tout)
itasoft@free.fr
itasoft@free.fr