professor_jonny

Timer datatype in cx programmer

6 posts in this topic

what is the timer datatype used for in cx programmer as it just causes compile error when you try to use it on a timer or timer output bit.

 

I have just allways wondered but never have figured it out.

Share this post


Link to post
Share on other sites

I believe the TIMER Data Type is only allowed in the CJ2 Series PLCs.

Share this post


Link to post
Share on other sites

I have allways just used the bool datatype as i could not get the timer one to work.

Share this post


Link to post
Share on other sites

Yep - use the BOOL - it works.

Share this post


Link to post
Share on other sites

In the end it makes no difference. The PLC will process it just the same. I remember when Omron introduced Data Types. I believe it created more confusion for many new programmers at the time. They are merely a convenience for the programmer to understand what he/she is dealing with, and to give compile warnings. I've programmed many CJ2s and didn't even know the TIMER Data Type existed until a few years ago.

The IEC platform (NJ) is a different story.

Share this post


Link to post
Share on other sites

As I recall there were a few versions of CX-P that would default to the Timer data type on PLC's that did not support it resulting in a compile error. Rather irritating!!

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