PLCnext Starter Kit... "An error occurred while writing changes to the device" ... along with the FAIL LED lit
Trying to get started with the PLCnext starter kit... can't seem to run the starter kit example program...
I've set up my network, plugged the AXCF2152 into my laptop using the patch cable. I've gone through the firmware update to 2021.03.LTS
I select the correct firmware and model number on the startup page when opening PLCnext Engineer. I open the starter kit example project.
My AXCF2152 is recognized when I scan for online devices. The default 192.168.1.10 is showing up, I get the check mark in the status for this device for online controller. I can access the setup page in my browser. My date and time are updated. I can connect to the PLC in PLCnext Engineer software. Everything seems fine...
When I select the "Write and start project" the progress bar goes green, things appear to be working... but then at the end in my log I get the ""An error occurred while writing changes to the device"
My PLC is showing the red FAIL led lit, and I also notice that my AXL F BP SE4 lights are flashing all amber.
In my Axioline F section of the PLCnext Engineer, the modules are the default set up from the example project (which matches what I received in my PLCnext starter kit) and I have not changed those. I have also not changed anything in the project. I cannot access the eHMI page either.
Any ideas where to look next? I am new to the entire PLCnext ecosystem... I actually had this same result / behavior before updating the firmware, I already tried the stage 1 reset, then updated the firmware. Same result each time.
Thank you
I've set up my network, plugged the AXCF2152 into my laptop using the patch cable. I've gone through the firmware update to 2021.03.LTS
I select the correct firmware and model number on the startup page when opening PLCnext Engineer. I open the starter kit example project.
My AXCF2152 is recognized when I scan for online devices. The default 192.168.1.10 is showing up, I get the check mark in the status for this device for online controller. I can access the setup page in my browser. My date and time are updated. I can connect to the PLC in PLCnext Engineer software. Everything seems fine...
When I select the "Write and start project" the progress bar goes green, things appear to be working... but then at the end in my log I get the ""An error occurred while writing changes to the device"
My PLC is showing the red FAIL led lit, and I also notice that my AXL F BP SE4 lights are flashing all amber.
In my Axioline F section of the PLCnext Engineer, the modules are the default set up from the example project (which matches what I received in my PLCnext starter kit) and I have not changed those. I have also not changed anything in the project. I cannot access the eHMI page either.
Any ideas where to look next? I am new to the entire PLCnext ecosystem... I actually had this same result / behavior before updating the firmware, I already tried the stage 1 reset, then updated the firmware. Same result each time.
Thank you
Comments
https://www.plcnext.help/te/PLCnext_Runtime/output_log.htm
If you don't mind posting the file here, we could also look at that file if you want.
Have you tried creating a new project from the correct project template, setting the IP address, and just downloading that project without any other changes? The I/O won't match, but the project should still download and run.
You said that you made no changes to the example project before downloading. After you open the example project, what is the IP address of the controller? Does this match the IP address of the PLC? After you open the example project, what is the firmware version of the controller in the Settings window? Does this match the firmware version of the PLC?
From your description, it sounds like you may have set up an empty project with the correct settings. As soon as you open another project, like the example project, the settings in the first project no longer apply, and you will need to check these settings again.
Hope this helps.
Thank you for your response. I have attached the log file.
Your description is what I did from the start. I opened the starterkit package, followed the instructions from the Phoenix website. Plugged everything in, started PLCnext Engineer, selected the correct project template and opened the example program without making any changes. I was able to connect to the PLC and use the default IP settings of 192.168.1.10
The IPs match in the "online controllers" section after scanning my network. Both the (project) and (online) are set to 192.168.1.10 and the default gateway is 192.168.1.1
I can successfully connect to the controller as I can open the cockpit and see the status of the indicators etc. The firmware versions all match up both in PLCnext Engineer and when I visit the web configuration page at the PLC IP.
All of this is in the example project file, not in an empty project.
Perhaps the log file will provide you with more information... I tried to go through some of it but at this point since I am just starting it doesn't mean much to me.
Thank you
The workaround in this case is to delete all the Axioline I/O modules from the PLCnext Engineer project, and add them all again in the same order. You will also need to re-connect any port variables that were connected to the process data on those I/O modules.
Alternatively, if it is OK with you, I can email you a working version of that project for PLCnext Engineer 2021.3, to the email address you used to register on this forum.
Thank you
I have just emailed you a repaired PLCnext Engineer project.
~ Martin.
The new file resolved my issues with the fail status and I was able to upload the new program to my PLC but I noticed a few things.
1. I was not able to get the eHMI working in my browser... instead it redirects me to the setup page. I could get the HMI simulator started in my PLCnext Engineer though. The simulator produces the expected results on the simulated webpage, but:
2. The physical buttons/slider do not appear to be working in the sense that the controller is not seeing their input. The connections to them are fine, I checked with a multimeter, and the led light on the digital input card lights up when the corresponding push button is pressed, but it does not run the example program as expected. The LED lights to indicate the brewing coffee etc, also do not work.
3. Eventually with the HMI simulator working PLCnext Engineer crashed and the following report was generated:
After PLCnext Engineer crashed, oddly the eHMI page started working in my browser. Is it not possible to have this running with PLCnext Engineer also running / connected to the PLC?
The PLC still does not recognize physical button / slider input nor does it give the expected LED outputs on the actual PLC.
I'm going to try and start my own project from scratch but it is unfortunate that the starter kit and the example seems to be so problematic to get working.
I may have missed some I/O data connections when I was patching the project this morning. I will also need to look at this tomorrow.
I am sorry that there are problems using this example project with the latest version of PLCnext Engineer. I hope we can have a resolution to this problem soon.
Hello, I'm having the same issue. Could you please send me the updated working version of the demo as well?
Thank you.
A new version of the Starter Kit project should appear in the PLCnext Store early next week.
That version of the project will work with PLCnext Engineer 2021.3.
Sorry for the trouble.
~ Martin.