TIME() function not available?

Mehr
1 Jahr 2 Wochen her #294 von Sergey Romanov
PT: ULINT; - does that means I should set time in TICKS? How to convert TICK to miliseconds?

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

  • Walter Zögernitz
  • Besucher
  • Besucher
11 Monate 3 Wochen her #305 von Walter Zögernitz
Walter Zögernitz antwortete auf TIME() function not available?
Hello Sergey,

The time from one tick to an other is different from system to system and is also depending on some values of settings. That means that the ratio milliseconds to timer ticks needs to be determined once. It can be used instead of the regular time based time base for "timer" POUs.

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Mehr
11 Monate 3 Wochen her #308 von Sergey Romanov
What I mean by my question what kind of data GET_EP_TICKS sets to GET_EP_TICKS? Is it time in milliseconds from start or is it unix timestamp? Because name of the function GET_EP_TICKS suggests that it returns TICKS not TIME.

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

  • Walter Zögernitz
  • Besucher
  • Besucher
11 Monate 3 Wochen her #310 von Walter Zögernitz
Walter Zögernitz antwortete auf TIME() function not available?
The ticks are system specific. Windows systems have per default 10kHz sampling rate for ticks, linux systems 1MHz.
You can determine the elapsed time by substracting of the two tick values and dividing it by the frequency.
Please note, that timer ticks are relative "time values". logi.RTS will get these values out of the operating system.

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

logi.cals Österreich

Adresse

Europaplatz 7/1,
3100 St. Pölten

logi.cals Deutschland

Adresse

Postfach 1306,
40738 Langenfeld

Benutzer

Registrieren
© 1987 - 2019 logi.cals GmbH