How to auto configurate axioline module in local bus in PLCnext controller

As the title meaning, Is there a way to realize the local bus modulse auto configurated and map the process data to defined the vars in application? This fucntion likes some Modbus TCP coupler.

Hello, On a PLCnext controller, there is currently no way to generate the local Axioline bus configuration without using PC Worx Engineer. This is because the PLCnext services that control the Axioline bus rely on I/O configuration files that (currently) can only be generated by PC Worx Engineer. I understand that there are plans to offer alternative ways to read and configure the local Axioline bus without PC Worx Engineer … this is a nice-to-have for PLCnext programs that are not written in an IEC 61131 language, which should not require the use of PC Worx Engineer. Can I ask what type of application you have in mind? - Martin.

Hi Martin: Thank you for your information. Acutally the requirement is from the chatting with customers. The customer has several types of OEM devices, and some type hardwave is very similiar, maybe add DO or AI modules. Now the customer should handle lots of versions of applications for different types. They hope there is a way to configurate the modules and arrage the process data as designed. So the application can automatically know which type of device, and load what task to run. It is very good for customer development and manintance. By the way, if can not realize in PLCnext Plantform, what about the Old platform, interbus local bus?

Hello, The ability to automatically generate an I/O configuration at run-time is possible with both InLine and Axioline controllers - in fact we use this feature in our Modular Multiplexer (InLine) and AXC CLOUD-PRO (Axioline), both of which automatically detect the connected I/O at startup. This function will also possible with the AXC F 2152, after the next firmware release later this month. We are currently working on documentation and samples for this feature, which should be available with the new firmware. Do you mind me asking - will the customer application you are thinking of be developed in PC Worx Engineer, or in C++, or in some other language?

Hi Martin: Sorry to answer later. As the language, the customer do not mention, and what they can know is that the Beckoff can config like this. we hope we can realize it easily. Do you can send some information about the documentation to learn? Thank you!

Hello, I will send some information on this feature after the Christmas break (week starting 7 January). I hope this is not too late. - Martin.

image.png

Hello, Here are two possibilities for dynamic Axioline bus configuration at run-time using PLCnext Control - e.g. AXC F 2152. Option 1: The next release of PLCnext Engineer will include a Function Block that allows an IEC program to send commands to the Axioline bus controller. In this way, the IEC program can ask the Axioline bus controller to (for example):

- Scan the bus and return a list of connected I/O modules.
- Start the Axioline bus with any configuration - either the detected configuration, or any other configuration. In this way, your customer could include a set of all Axioline I/O configurations for all OEM machines in one project, and then start the Axioline bus with one of these configurations. If you would like to explore this possibility further, please let me know. Option 2: If the customer is happy to use IO-Link devices, then you could include one or more Axioline F IO-Link Masters (1027843) in the design. In this case it may be possible to keep the same Axioline configuration for all machines, and change the behaviour of the program depending on which IO-Link devices are detected by the master. There are already a number of Phoenix Contact applications that use a concept like this. Please let me know if you would like any more information. - Martin.

Hello, I’m looking for the same functionality too. Since the bus conductor library is available only till FW 2019.3, I am looking for another method. I found out the Physical Axioline F module (I suppose I need this module) but I cannot run the axio bus. I suppose also I will need the AX_Control FB to run the axio bus, but I cannot find the referencies for the firmware servicess (so I cannot find the command I need) Is there another way or you have the referencies for the commands I would need? Please consider that I’m using last 2020.0.1 FW and PLCNext Engineer versione. Best Regards Gianluca

Hi Gianluca, The build procedure described in the Github repository should allow you to build the BusConductor library for version 2020.0. If you are familiar with the plcncli tool, then this procedure should be fairly simple, but if you have any problems with this I’m happy to help. Alternatively, you can see the complete set of commands that are sent to the Axioline master in the source code - check the ConfigureLocalIo function in the BcComponent.cpp file (here). The meanings of the hexadecimal codes are documented in the cpp file, but if you want more information I can send details when I’m back in the office on Monday. Hope this helps. Martin.

Hi Martin, I dida little demo in IEC 61131 (for someone it could be more handy) to make the autoconfiguration of the axio bus following the procedure you used in the bus conductor library. It’s not complete as the bus conductor but it is for FW 2020 and developed only with PLCNext Engineer, maybe it could be useful for someone else :wink: At the moment it starts the axio bus and it gives informations about modules connected (Module type, module name, order number, process data length), I think I will implement new functions in future but I suppose that these are the minimum needed. If you are interested, it is downloadable at this link https://phoenixcontact-europe.my.salesforce.com/sfc/p/0O000002FepJ/a/1r000000lOWZ/yxrS6RxqydFa7aHqdEvzdu8GpQw_Tq1L3VrIIlhuaVI Thank you for the support Gianluca

Hi Gianluca, Thanks for the really interesting application. If it’s not too much trouble, it would be great if you could write a short Makers Blog post explaining what this PLCnext Engineer application demonstrates, and how it does it, so that others can reproduce this if they have a similar requirement. You could include a link to the project, perhaps in a Github repository. ~ Martin.