marcinmrag

edit time variable in Recipe NA HMI

4 posts in this topic

Hello,

I would like to use one recipe parameter which is time variable. But I have problem to use time variable in HMI recipie. Can someone help me with this? How i can handle this? I can put value in INT but how can i convert it to TIME in PLC program?

Share this post


Link to post
Share on other sites

Look for NanoSecondToTime, or MillisecondsToTime instruction in NJ. You put LINT valeus of Timespan in Nanoseconds / Milliseconds in HMI then convert it to time by program.
If your time requires Hour, Minutes, Seconds, you can put each individually then calculate the total value in Nanosecs / Millisecs before converting to Time.

 

Alternatively you can implement a Custom Time Keypad in NA to input Time values directly to Time variables, although it's more complicated (requires VB Scripting)

Share this post


Link to post
Share on other sites

@innoaloe

Do you have an example of using the custom time keypad to edit the time variables directly?

This would be very much appreciated.

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