
Deavis (Customer) asked a question.
I decided to try an implement some custom function blocks to allow me to reduce redundancy in ST code I have written. However, I can't seem to make even the simplest custom function block work with the CPU, it times out and never comes to a breakpoint in debug mode. Even with extremely simple examples, it never works. I'm sure there is some small setting or format that is missing but I can't find anything to help solve this issue.
This compiles without error but when you try to run it, nothing until it disconnects.
function block simply scales the input and writes it to the output
I declare an instance and a simple program that assigns a variable and puts it through.
kills the PLC. Is there a memory mapping secret that needs to be addressed?
What version of XG5000 are you using? What OS version is in the PLC (this can be check by going to Online->System Diagnostics->PLC Info)?
I tried your example with OS V3.30 and XG5000 V4.81 and it works fine for me.
I have 4.8 and 3.1. It would be great if in the video where they show how to update the CPU OS that there was a link to the Flash Down tool that seems to not be available on the LS software page. It doesn't seem to exist because it is in the driver package which is great but not exactly intuitive when you are looking for a tool to load firmware. Perhaps a note that the required tool is in the driver package would be helpfulso people aren't searching to find a download that doesn't exist. I will update and try again.
No, still fails even with 4.81 and 3.30. Never hits a debug point, what else could it be?
I have duplicated your issue. I will have to forward to LS Electric for a response.
Great, I'm glad it doesn't work for you either. Look forward to seeing what the solution is.