Sign in to follow this  
Followers 0
Moggie

PL7

6 posts in this topic

I am new to PL7 - can someone please explain the following program rung?

Share this post


Link to post
Share on other sites
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
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
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
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
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0