Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC: Afficher la date ( Mois / année ) et l'heure ?

Afficher la date ( Mois / année ) et l'heure ? 1 year 9 months ago #11549

  • Sébastien
  • Sébastien's Avatar
  • OFFLINE
  • Gold Boarder
  • Posts: 175
  • Thank you received: 2
  • Karma: 0
Bonjour à tous,

je cherche à afficher la DATE HEURE ANNEE sur le synoptique ?

J'ai essayé current time et Local Time mais ça m'affiche 122 ( nombre de jour ), existe t'il un objet DATE ?

Merci

/seb
SEB
The administrator has disabled public write access.

Afficher la date ( Mois / année ) et l'heure ? 1 year 9 months ago #11550

  • Sébastien
  • Sébastien's Avatar
  • OFFLINE
  • Gold Boarder
  • Posts: 175
  • Thank you received: 2
  • Karma: 0
Hi Claes,

En cherchant dans la doc :

j'ai mis un signal ATv :


Capturedcran2022-07-1720.29.39.jpg



Capturedcran2022-07-1720.32.46.jpg


Je fais dans le run time Ctrl + B ensuite dans le chemin Xtt > rt_ini mais la date reste toujours au 01 Janvier 1970 ?
Et pour l'heure aussi ?

Merci

/seb
SEB
The administrator has disabled public write access.

Afficher la date ( Mois / année ) et l'heure ? 1 year 9 months ago #11553

  • claes
  • claes's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 3179
  • Thank you received: 502
  • Karma: 133
Hi Seb,

ATv is a time value where you can store a time.

If you want to display the current time, connect the value field to the SystemTime attribute in the $Node object.

/Claes
The administrator has disabled public write access.

Afficher la date ( Mois / année ) et l'heure ? 1 year 9 months ago #11554

  • Sébastien
  • Sébastien's Avatar
  • OFFLINE
  • Gold Boarder
  • Posts: 175
  • Thank you received: 2
  • Karma: 0
Hi Claes,
I'm looking for the "SystemTime" attribute but I don't see it in "$Node". But the default value is AtZero?


Capturedcran2022-07-1917.54.19.jpg



Thank you

/seb
SEB
The administrator has disabled public write access.

Afficher la date ( Mois / année ) et l'heure ? 1 year 9 months ago #11555

  • Sébastien
  • Sébastien's Avatar
  • OFFLINE
  • Gold Boarder
  • Posts: 175
  • Thank you received: 2
  • Karma: 0
Hi Claes,
I'm looking for the "SystemTime" attribute but I don't see it in "$Node". But the default value is AtZero?


Capturedcran2022-07-1917.54.19.jpg


I did this:


Capturedcran2022-07-1918.06.32.jpg


Value : %4t format


/seb
SEB
The administrator has disabled public write access.

Afficher la date ( Mois / année ) et l'heure ? 1 year 9 months ago #11556

  • claes
  • claes's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 3179
  • Thank you received: 502
  • Karma: 133
SystemTime is not displayed in the configuratur, but you can type in the connection by hand in Value.Attribute, "Nodes-Projet.SystemTime##Time". The time will be updated by the fastest plc thread in runtime.

/Claes
The administrator has disabled public write access.
The following user(s) said Thank You: Sébastien
  • Page:
  • 1
  • 2
Time to create page: 8.092 seconds