Questions about PLCnextBase
Hello Sir,
I had a strange problem in the test
PLC:AXC F 2152 :2020.3
PLCnext Engineer:2020.3
PLCnextBase:PLCnextBase_1_3_0
I use the putty command to override the running project, but I report an error and restart.
root@axcf2152:~# cp -r /opt/projects2/* /opt/plcnext/projects/
2020 Aug 10 10:39:10 axcf2152 Arp.System.Acf.Internal.Sm.ProcessesController FATAL - Process 'PLCnextBase' has exited unexpectedly.
2020 Aug 10 10:39:10 axcf2152 Arp.System.Acf.Internal.Sm.ProcessesController FATAL - All other living processes terminated immediately.
2020 Aug 10 10:39:10 axcf2152 shutting down the system because of error 3 = 'No such process'
(Ps.Please see the attachment for specific questions. I don't know why the pictures can't be uploaded.)
After restart, the RUN and FAIL LEDs flash.
I think it should be that some system services of plcnextbase have not been stopped, but how to handle them is not clear. Please give suggestions.
Thanks a lot!
*************************************************
Best Regards,
Zhang Wu
IMA Marketing & Technical Support
IMA Segment
Comments
Hello Zhang,
I am not sure of the exact cause of this behaviour, but it is not surprising that something like this might happen if you replace the entire
projects
directory on a running PLC, since this directory contains the running PLCnext Engineer project and any libraries and other important files that are used by the PLCnext Runtime.I don't understand the circumstances where one would need to perform that copy operation. If you are able to explain what you want to achieve with this copy operation, then perhaps we can suggest suitable alternatives.
Regards,
Martin.
Hello Martin,
Customers need to configure different hardware and programs, but they don't want to open the program with plcnext engineer and download it again.
This method is the most simple and direct way, if the customer modifies tic file, need certain technical ability
Regards,
Zhangwu
Hi Zhangwu,
One possibility to switch between a set of PLCnext Engineer projects is to do the following:
/opt/plcnext/projects/PCWE
)./opt/plcnext/projects/PCWE
).Now, you can see that there is a symbolic link in the
/opt/plcnext/projects
directory, namedcurrent
. This is a link to the project that is loaded by the PLCnext Runtime. If you change the destination of this link to another directory, e.g. PCWE2, and then restart the PLCnext Runtime, then the project in that directory will be loaded instead of the project in the PCWE directory.If any of the PLCnext Engineer projects include custom-written C++ programs, then there are additional steps required - please let us know if this is the case.
Also, this process can be made quite a bit simpler if you package each of the PLCnext Engineer projects as a "Solution App" for the PLCnext Store. Then, all the Solution Apps can be loaded to the PLC via the Web-Based Management interface, and the user can activate the required Solution App through the WBM.
Hope this helps.
~ Martin.
Hello Martin,
Customers will be involved in a part of C + + programming, please tell me how to deal with it.
In addition, if there are loaded library files in the program, such as PLCnextBase, if you use the method described by you, will it not affect?
In fact, we have tried the method you mentioned.
It is not very stable. Sometimes it can, but sometimes the RUN and FAIL LEDs will flash; and sometimes the D light is always on, and the system cannot start.
If possible, you can test it yourself.
Thanks!
Hi Zhangwu,
The problem relates to the contents of the
pcwe.plm.config
file, which is generated by the PLCnext Engineer project. You can see this file on the PLC, in the directory/opt/plcnext/projects/PCWE/Plc/Plm
.In that file, when you use the PLCnext Base library (or any other PLM component), you will see an entry like this:
I have highlighted the problem - the PCWE directory is hard-coded into this file. So, if you copy the PCWE directory to (for example) PCWE2, you will also need to update the contents of this file to point to the new directory. This is a bug in PLCnext Engineer. I have not been told if or when this will be fixed.
If you are installing Solution Apps, I cannot think of a good work-around for this problem, because you cannot edit the
.plm.config
file in a solution app once it is installed on the PLC. So, I can only recommend that you do not use libraries that include PLM components (including the PLCnext Base library) in Solution Apps.If this is a serious problem for you, please let me know and I will raise it with the Product Manager again.
It should work OK. The instability might be related to the issue described above, or it may be a different issue. In cases where you see a problem, please send us the contents of the Output.log file, and this will help us to diagnose the cause of the problem.
Regards,
Martin.
Hello Martin,
Other problems are OK, but sometimes the D LED will go out and the local IO can't read and write. However, the PLC runs normally.
I guess it's a bug.
That's the case for the time being.
Zhangwu