Store PLCnext CommunityPLCnext on LinkedInPLCnext on Instagram  PLCnext on YouTube Github PLCnext CommunityStore PLCnext Community

  1. doublec4
  2. PLCnext Engineer
  3. Saturday, 24 April 2021
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
Martin PLCnext Team Accepted Answer Pending Moderation
0
Votes
Undo
You could look for clues in the Output.log file.
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.
Phoenix Contact Electronics Headquarters - PLCnext Runtime Product Management and Support
doublec4 Accepted Answer Pending Moderation
0
Votes
Undo
HI Martin,

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
Attachments (1)
Martin PLCnext Team Accepted Answer Pending Moderation
0
Votes
Undo
OK, I am reading the log file from the bottom up (newest to oldest), and the first unusual thing I notice is this error message:

24.04.21 14:43:16.077 Arp.Plc.Domain.Internal.PlcManager ERROR - Exception occurs while setting up plc component 'Arp.Io.FbIo.AxlC': Exception of type 'Arp::System::Commons::ArgumentException' was thrown
InsertVariable: Variable 'http://Arp.Io.AxlC/0.IN01' already exists!

We have seen this error reported by others. It seems that when a project is upgraded to PLCnext Engineer 2021.3, the I/O configuration sometimes gets corrupted. This problem is currently being investigated by the PLCnext Engineer developers.

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.
Phoenix Contact Electronics Headquarters - PLCnext Runtime Product Management and Support
doublec4 Accepted Answer Pending Moderation
0
Votes
Undo
Hi Martin, yes that would be great, please use my registered email.

Thank you
doublec4 Accepted Answer Pending Moderation
0
Votes
Undo
Hi Martin, I wanted to follow up. I have not seen anything come through in my inbox. Please let me know if you can send the files. Thank you
Martin PLCnext Team Accepted Answer Pending Moderation
0
Votes
Undo
Sorry for the delay.
I have just emailed you a repaired PLCnext Engineer project.
~ Martin.
Phoenix Contact Electronics Headquarters - PLCnext Runtime Product Management and Support
doublec4 Accepted Answer Pending Moderation
0
Votes
Undo
HI 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:


PLCnext Engineer, Version 2021.3 (Build 4.9.232.0)

Unexpected Exception
======================================================================
Cannot access a disposed object.
Object name: 'System.Net.WebSockets.ClientWebSocket'.

Exception chain:
----------------------------------------------------------------------
ObjectDisposedException

======================================================================

Details
----------------------------------------------------------------------

ObjectDisposedException
==============================
Message:
------------------------------
Cannot access a disposed object.
Object name: 'System.Net.WebSockets.ClientWebSocket'.

Stack trace:
------------------------------
at System.Net.WebSockets.ClientWebSocket.ConnectAsync(Uri uri, CancellationToken cancellationToken)
at Ade.Hmi.OnlineImpl.Services.HmiSimulator.hdwag.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at Ade.Hmi.OnlineImpl.Services.HmiSimulator.hdwad.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at Ade.Hmi.OnlineImpl.Services.HmiEditorOnlineService.vrjjq.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at Ade.Hmi.OnlineImpl.Services.HmiEditorOnlineService.vrjjr.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.DispatcherOperation.InvokeImpl()
at MS.Internal.CulturePreservingExecutionContext.CallbackWrapper(Object obj)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state)
at System.Windows.Threading.DispatcherOperation.Invoke()
at System.Windows.Threading.Dispatcher.ProcessQueue()
at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
at System.Windows.Application.RunDispatcher(Object ignore)
at System.Windows.Application.RunInternal(Window window)
at Ade.Application.ApplicationStarter.Run()
at (String[] )
at PCWorxNext.Startup.Main(String[] args)




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.
Martin PLCnext Team Accepted Answer Pending Moderation
0
Votes
Undo
It should be possible to view the eHMI in a web browser while PLCnext Engineer is running on the same machine. I will need to investigate this tomorrow.
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.
Phoenix Contact Electronics Headquarters - PLCnext Runtime Product Management and Support
Martin PLCnext Team Accepted Answer Pending Moderation
0
Votes
Undo
I have sent a new PLCnext Engineer project by email, with the correct data connections. Please try the eHMI with that project.
Phoenix Contact Electronics Headquarters - PLCnext Runtime Product Management and Support
thriftynick Accepted Answer Pending Moderation
0
Votes
Undo
I have sent a new PLCnext Engineer project by email, with the correct data connections. Please try the eHMI with that project.


Hello, I'm having the same issue. Could you please send me the updated working version of the demo as well?
Thank you.
Martin PLCnext Team Accepted Answer Pending Moderation
0
Votes
Undo
Hi thriftynick,
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.
Phoenix Contact Electronics Headquarters - PLCnext Runtime Product Management and Support
Martin PLCnext Team Accepted Answer Pending Moderation
0
Votes
Undo
Update: A new version of the Starter Kit project is now available in the PLCnext Store.
Phoenix Contact Electronics Headquarters - PLCnext Runtime Product Management and Support
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.