Hello! I try use BusConductor. I setup and deploy it successfuly. Now i try to use it in C++ runtime scenario. I took example-5 SampleRuntime/getting-started/Part-05/README.md at master · PLCnext/SampleRuntime · GitHub According to BusConductor docs: The BusConductor library contains one component, called BcComponent. One instance of this component must be created by the user How? Is any example?
[quote]According to BusConductor docs: The BusConductor library contains one component, called BcComponent. One instance of this component must be created by the user How? Is any example?[/quote] Yes. If you have successfully deployed the BusConductor application, then you have already created the required component, probably in PLCnext Engineer. The screen shot below shows the BusConductor component from the library, and an instance of the component created in PLCnext Engineer. [attachment]2021-04-16_16-33-46.jpg[/attachment] It is not possible for external processes (like the Sample Runtime example) to create or use PLM component instances like PLCnext Engineer does. The BusConductor component calls an RSC service that is running in the PLCnext Runtime. Also, the part of the Sample Runtime that you quoted shows how to call an RSC service from an “extension process” that is started by the PLCnext Runtime. When you combine this knowledge from those two code examples, you should be able to write your own code that calls the same RSC service that the BusConductor component calls, but from your own extension process. I hope this helps.
Hello Martin! Thank you for answer. Due to limits i can’t use PLCnext Engineer. If BusConductor exists in PLM, how i can then call ConfigureLocalIo() and StartLocalIo()? Or may be i want to call ReadLocalIoStatus() same as readAxiolineStatus in example 3 from runtime app?
You will need to look at the C++ code behind ReadLocalIo() and StartLocalIo() in the BusConductor sources in Github. That C++ code calls the Axioline RSC service to read and start the local Axioline bus. You will then need to write similar C++ code in your extension process (runtime app) that calls the Axioline RSC service in similar ways to the BusConductor app. Your final app will not run the BusConductor code at all, but you will have used the BusConductor source code to help you do something similar in your runtime app. I hope this makes sense.
Thank you Martin!






