Author Topic: Data types in TwinCatCOM  (Read 1211 times)

KariM

  • Newbie
  • *
  • Posts: 33
    • View Profile
Data types in TwinCatCOM
« 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)
« Last Edit: October 16, 2014, 06:05:12 AM by KariM »