BokuNoNamae

Calling a subroutine in FX3U GX IEC dev

2 posts in this topic

Dear all,

I am trying to program a simple subroutine, to just turn on a led on the plc, in order 

to grasp the workings of the call function. I did not find any examples or 
anything similar online. I was wondering if someone could help me out with 
instructions.

First off: I have created a new project in GX dev and have only one POU.
this is registered in the Task pool. In the POU i have drawn one call function,
one fend instruction, driving one output, and one sret command.

When i try to build i get 2 errors, saying that there can only be one FEND instruction.
when i click on the show button, it shows me one red fend function block and the other one 
shows a red Task Pool.

I have scratched my head bald over this, any help?

Greatly appreciated,

Jean-Phillipe

Share this post


Link to post
Share on other sites

The GX IEC Developer compiler will create the FEND instruction.

You do not have to do this yourself

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