Jurgen Posted November 11, 2014 Report Posted November 11, 2014 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
Delbert Posted November 12, 2014 Report Posted November 12, 2014 What CPU / Software are you using. GXWorks2 gives a pretty good explaination in the help file. Also gives programming example of -[sECONDP D0 D100]-|
Jurgen Posted November 12, 2014 Author Report Posted November 12, 2014 Hello Delbert, I'm using Works2 version 1.501X and a Q00JCPU. I've copied the help file programming but no luck. Thanks, Jurgen
Gambit Posted November 12, 2014 Report Posted November 12, 2014 (edited) 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 November 12, 2014 by Gambit
Jurgen Posted November 12, 2014 Author Report Posted November 12, 2014 Thanks for your help. It works now, not sure what I did wrong the first time round.
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