Sign in to follow this  
Followers 0
Jurgen

SECOND function to convert time

5 posts in this topic

Hello, I'm trying to convert time into seconds using the SECOND function. I use Word(signed) array 0..2 but get an error message saying "wrong input data type". What data type do I need? Thank you, Jurgen

Share this post


Link to post
Share on other sites
What CPU / Software are you using. GXWorks2 gives a pretty good explaination in the help file. Also gives programming example of -[sECONDP D0 D100]-|

Share this post


Link to post
Share on other sites
Hello Delbert, I'm using Works2 version 1.501X and a Q00JCPU. I've copied the help file programming but no luck. Thanks, Jurgen

Share this post


Link to post
Share on other sites
Just double click on the function and you will get that info: In this case you need a [Array 1..3] of word or INT Edited by Gambit

Share this post


Link to post
Share on other sites
Thanks for your help. It works now, not sure what I did wrong the first time round.

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