Posted 27 Feb 2013 I am new to PL7 - can someone please explain the following program rung? Share this post Link to post Share on other sites
Posted 28 Feb 2013 If M12=1 then ( if M2 =0 then (Set timer 10 preset value to 28 Set timer 11 preset value to 4) else (Set timer 10 preset value to 47 Set timer 11 preset value to 1) end if ) end if Share this post Link to post Share on other sites
Posted 28 Feb 2013 Koyeap - many thanks that now makes a lot more sense. However in the following example what value does the timer %TM2 have? 25 or 50 ?? Share this post Link to post Share on other sites
Posted 1 Mar 2013 The timer has 50 as value multiplied with timebase 10ms so 0,5s (If you are online you will se the right value on timer.. Share this post Link to post Share on other sites
Posted 1 Mar 2013 Many thanks again. I am just trying to understand some of the code before I go on site next week. One more question concerning the second example above - What is the advantage of programming the %TM2 parameter with the "OPERATE" command instead of directly in the Timer ? Share this post Link to post Share on other sites
Posted 5 Mar 2013 The advatage is that it is easier to make online changes to the timer with the operatte command. Her you also could say %TM2.P:=%MWx to make the time like an variable and just change it in a animationtable. Share this post Link to post Share on other sites