Siemens PLC Timer Instruction

  • Thread starter Raghupathy Padmanarthan
  • Start date
R

Thread Starter

Raghupathy Padmanarthan

I'm using Simatic Step 7 V5.2. I'm facing a problem while using Timers. Whenever I assign timer preset time value (TV) as a DB variable, it shows type conflict. But no issues with M memory or with constant.

Can anybody give a solution to overcome this problem?

Thanks in advance.
 
Hello,

If you are using Simatic timers (from the instruction library) then they expect a S5Time type value. Simply write S5Time in the TYPE column of your DB when you define your timer preset; expected format is S5T#xH_xM_xS_10MS (where x is a numerical value).
Maximum value for a S5Time register is 2H_46M_30S.

If you are using timers from the IEC functions library, the expected data type is TIME, expressed T#0D_1H_1M_0S_0MS; maximum value is
T#24D_20H_31M_23S_647MS. Note that the contents of the register are actually a 32-bit Integer value representing the equivalent number of ms; so it can easily be used for compare or math instructions.

Hope this helps,
Daniel Chartier
 
Top