Hi All, I hope someone can help me with this. I have loaded a basic configuration in my AXC F 2152 by adding a DI16/1 DO16/1 2702106 module in PLCnext Engineer (Axioline F → Read Axioline F devices) and uploaded it to the PLC. Next, I have changed the code in SampleRuntime (https://github.com/PLCnext/SampleRuntime/tree/master/src) to match my configuration (changed the node ID of the DI/DO and IO numbers). When I compile and run the runtime application I can see the following log appear:
INFO - Arp.Io.AxlC/6.OUT14: true
I’m writing 6.OUT14 to high when an input gets high, but nothing happens. Am I missing something here? When I run a simple PLC program (created in PLCnext Engineer) I’m able to get an output high, so it seems it has something to do with the C++ / runtime approach.
Ultimately my goal is to create a setup in which I can automatically detect IO modules and read/write to these with our Go application, but I have similar problems with the BusConductor example.
The AXC F 2152 runs version 2024.0
Thanks in advance
The first thing to check is that, in the PLCnext Engineer project, there are no connections between variables in the program and the Output ports. Those connections (if they exist) might be causing the outputs to be overwritten by the PLCnext Engineer project.
You don’t mention which version of the BusConductor example you tried, but if you can get the „PLCnext Engineer“ version working, then at least that would be something, and it might help to narrow down the source of the problem in this case.
Hi Martin, thanks for the suggestions. Loading the PLCnext Engineer version did the trick for now.