IanSCo

GX Works2 Structured Text Not Working

1 post in this topic

Hi. Newbie PLC user here.

I wrote a test program in structured text using GX Works2. Everything works in simulation.

(* === SIMPLE === *)
Y0 := X0;

(* === COUNTER === *)
counter( RESET:=X2, CV:=counterValue, CU:=X1, PV:=3 );
Y1 := counter.Q;

(* === TIMER === *)
timer( IN:=X3, PT:=T#2s, Q:=Y2, ET:=timerValue );

On an actual hardware FX1N, only Y0 := X0 works.

I inspected the compiled program and it shows "CALL P30" and "CALL P31".

Questions:
1. Do I need to take extra steps to load some libraries?
2. How do I view the automatically added function blocks to make sure it was indeed loaded?

Thanks,

 

test ST.gxw

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