Posted 11 Nov 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 Share this post Link to post Share on other sites
Posted 12 Nov 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]-| Share this post Link to post Share on other sites
Posted 12 Nov 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 Share this post Link to post Share on other sites
Posted 12 Nov 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 12 Nov 2014 by Gambit Share this post Link to post Share on other sites
Posted 12 Nov 2014 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