abdoon89

Editable Timer in Structure Ladder

6 posts in this topic

Hello Dears,

I am trying to write a program in structured ladder. However, the timer will be adjusted by the user via HMI. I have no idea how to address this in  GX works 2 Structure, as it my first structure program. I also have no idea how to assign the time value i.e. seconds, minutes or hours in this case.

Thank you in advanced.

 

Share this post


Link to post
Share on other sites

First you have to chose which timer you will use:

Timer_M which is a normal timer.

TON / TOFF Timer_100FB. there are many variants

1 person likes this

Share this post


Link to post
Share on other sites

I would suggest Timer100FB but and use decimal values but if you want to use a TIME input then you need TON or TOFF.

I would handle to conversion in the HMI or program

1 person likes this

Share this post


Link to post
Share on other sites

Thank you Gambit.

I see that there is no way to assign editable values to TON_E timers.

I will manage to use the time as decimal values.

 

Share this post


Link to post
Share on other sites

For TON you need a variable with Data Type TIME

Edited by Gambit

Share this post


Link to post
Share on other sites

You should be able to use an integer input and a command in the PLC to convert it from say seconds to data type TIME.  Many HMI products cannot display or edit data type TIME yet.

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