Does anyone have some sample C# code the shows an example of accessing Axioline I/O points? I’ve looked throughout the github, and also referenced Redirecting... – but this just talks configuration, and I think maybe there are supposed to be some links in that particular section of the document?
What type of application are you developing using C#? A PLCnext Engineer FB, Function or Program written in C# FB can access Axioline I/O in the same way as POUs written in an IEC language, but I guess this is not what you are trying to do. A stand-alone C# application running on .NET Core (for example) can access Axioline I/O indirectly, through any general interface e.g. OPC UA, REST, Modbus/TCP, etc. In this case, the C# application needs to implement the corresponding client functionality. There is no simple way to access the Axioline bus directly from a stand-alone C# application. If you can give us more information about your application, perhaps we can help narrow down the options. If you would like to discuss any application-specific details offline, we can also do that - please let us know.
Thanks so much for the reply! I am just learning; not a lot of experience with PLC’s - the c# approach is maybe easier for me than diving into iec languages. I’ll give the net core rest method a try then
Been meaning to test out the rest api anyway. I just didn’t know if there was some way to access it directly by somehow binding a variable, like you do with ladder.
Great, no worries. There is some information on the REST API in the Info Center. You will need to create some variables in a PLCnext Engineer project and link those to Axioline I/O process data variables; after the PLCnext Engineer project is loaded to the PLC, you should then be able to access the variables in the PLCnext Engineer project via the REST API. If you need any more help using the REST API, or with anything else, please let us know.