Hello, i have an AXC F2152 with an AI4 I (2688491) Module where I have two sensors attached. I would like to find out what values they hold via RSC (GDS?). Is this possible and how? I can read and write f.g. to “Arp.Plc.Esm/ESM_DATA.ESM_COUNT” and I can also use the IAxioMasterService. I looked at this project: https://github.com/PLCnext/BusConductor/blob/master/src/BcComponent.cpp and recreated some of those calls. This are the answers: // reset arg0[0] = 0x1703;
Hello, The Bus Conductor app is intended to demonstrate the configuration of the Axioline bus, rather than the reading and writing of process data at run-time. There are a number of different ways to read process data from Axioline I/O modules into a C++ program. Which of these methods are available to you, depends on the answers to a few questions:
* Does your application use PLCnext Engineer at all, for example to configure the Axioline bus?
* Is your C++ project written as a "Component/Program" application (using the Eclipse add-in, for example), or as a "[Runtime](https://github.com/PLCnext/SampleRuntime)"-type application?
If you are using PLCnext Engineer and the C++ project is structured as Component/Programs, then you should define GDS Port(s) in the C++ code and connect them to the Process Data variables from the Analog Input module. Otherwise, let us know and we can discuss the other options. Martin.
Hello Martin, I am not using the PLCnext Engineer, so defining the GDS Ports is not an option. I am using a JavaWrapper Library around the C++ API. So I would say it is a Runtime-Type application. What are the other options? Best, Soeren
OK, just so I understand - what do you mean by “the C++ API”? This could refer to one of a few different things on the PLCnext Control. Can you point me to the API reference you are using? Thanks. Martin.
Hello Martin, not so sure, maybe thats the problem. a collegue of your called the java lib I have a wrapper around the C++ API. Its called RSC V1.0 and consists of commonremoting and rsc-services and has javadocs. I guess the api he meant before sending me here referenced the one you used for the AxioControl codes which defines arg0[0] = 0x1703;
arg0[1] = 0x0000; as reset. Does that help? Best, Soeren
Hi Soeren, I have now spoken to Marcel, who I understand has been in contact with you previously about this application. Someone will contact you to discuss further. Martin.