AdvancedHMI Software

General Category => Support Questions => Topic started by: KariM on October 02, 2014, 04:13:28 AM

Title: Data types in TwinCatCOM
Post by: KariM on October 02, 2014, 04:13:28 AM
Hi
Does TwinCatCOM driver support data type TIME?
Did not find way to get seconds from PLC.
Need to change timers time in PLC.
Or do I have to make dataconversion in PLC?
And if, will it be int, real word, or what?

Later I tryed next with succes.

VAR
DelayTimeReal : REAL :=1500;
tonDelay : TON
END_VAR

tonDelay.IN := REAL_TO_TIME(DelayTimeReal);
(result is 1s500ms)