GeirN

TON syntax error

2 posts in this topic

I am trying to do a TON timer in GX Works2 on a FX2N PLC. If I simulate the code I have done in GX Works it works the way I need it to, but as soon as I upload it to the PLC it goes into error state. When I look up the PLC diagnostic there are two entries in the list. 
NO 6502 Error Step 35 Syntax error
No 0000 Error Step 35 Unregistration error
If I remove the timer from the program, all other things works fine. 

This is the code that makes it give the syntax error. 
Forward( IN:=%IX004, PT:=eTime);
%QX004:=Forward.Q;

Also tried this
Forward( IN:=%IX004, PT:=T#5S);
%QX004:=Forward.Q;
I have also set up the same in ladder, but get the exact same syntax error from the PLC once it's uploaded. 
Does anyone have an idea of what the problem can be? 

 

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