Posted 21 May 2011 hello somebody is what can explain the "interval timer" Bitim citim ? if I board understood (after the site Siemens), an input that is activated (output.. M..) it "captures" that moment (Bitim) and recorded , for example, and we put it in "out"of bitim. and "in" CITIM this entry when it returns to zero disables another box of operation is "CITIM" result out of CITIM question how to use this output citim ? it can be used like any byte ? .. or is it a decimal value ? what is the maximum speed of this reading ? (Bitim /on --> citim /off) equivalent to the cycle time ? thanks Share this post Link to post Share on other sites
Posted 22 May 2011 BITIM Reads the current value of the built-in 1 millisecond counter and stores the value in OUT. The maximum timed interval for a DWORD millisecond value is 2 raised to the 32 power or 49.7 days. CITM Calculates the time difference between the current time and the time provided in IN. Store the difference in OUT.The maximum timed interval for a DWORD millisecond value is 2 raised to the 32 power or 49.7 days. The CAL_ITIME instruction will automatically handle the one millisecond timer rollover that will occur within the maximum interval, depending on when the BGN_ITIME instruction was executed. See also the attached on.bmp Share this post Link to post Share on other sites