abdoon89 Posted August 23, 2016 Report Posted August 23, 2016 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.
Gambit Posted August 23, 2016 Report Posted August 23, 2016 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
Gambit Posted August 23, 2016 Report Posted August 23, 2016 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
abdoon89 Posted August 23, 2016 Author Report Posted August 23, 2016 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.
Gambit Posted August 23, 2016 Report Posted August 23, 2016 (edited) For TON you need a variable with Data Type TIME Edited August 23, 2016 by Gambit
Crossbow Posted August 24, 2016 Report Posted August 24, 2016 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now