Michael Bell
Member
Hi all,
I have come across this problem when trying to use a CALL, Pointer and RET in GX IEC DEV. The PLC is an FX3U. The program consists of a number of POU's. I am trying to use a subroutine in one of them. If I write the code and compile it seems ok. However when I download to the PLC I get an error 'RET Instruction not found, even though one exists.
I have uploaded the ladder into GX Dev, and I can see the FEND and it is immediately before the END instruction, I have no control over this.This means that the FEND is after the pointer to the subroutine, which is incorrect.
I have no idea what is happening!
Any ideas, thanks.
I have come across this problem when trying to use a CALL, Pointer and RET in GX IEC DEV. The PLC is an FX3U. The program consists of a number of POU's. I am trying to use a subroutine in one of them. If I write the code and compile it seems ok. However when I download to the PLC I get an error 'RET Instruction not found, even though one exists.
I have uploaded the ladder into GX Dev, and I can see the FEND and it is immediately before the END instruction, I have no control over this.This means that the FEND is after the pointer to the subroutine, which is incorrect.
I have no idea what is happening!
Any ideas, thanks.