Axioline Variable/Sensor Discovery via RSC/GDS

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;

arg0[1] = 0x0000; → [38659, 1, 0] // create config arg0[0] = 0x0710;
arg0[1] = 0x0001; arg0[2] = 0x0001; → [34576, 1, 0] // read config arg0[0] = 0x030B;
arg0[1] = 0x0001; arg0[2] = 0x0003; → [33547, 10, 0, 0, 1, 3, 1, 1, 32, 8, 0, 166] // read status arg0[0] = 0x0351;
arg0[1] = 0x0002; arg0[2] = 0x0001; arg0[3] = 0x0104; → [33617, 4, 0, 1, 260, 706] readConfiguration(0,response) → AxioResult { id=166, length=8, type=2097160 } But how do I continue from there? The firmware is 19.3. Best, Soeren

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. :slight_smile: 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.