Select digital input from c++ program

Hi there,
I don’t know how to select a digital input from my plc next kit using C++. I used Eclipse IDE, and I only wanted to select a digital input, and once this digital input was true, then activated a digital output from my plc next kit.
I declared Boolean variables, but I did something wrong because it’s not working.

Hi Ra,
you need to create inports and outports in C++. In PLCnextEngineer they can be connected to physical inputs and outputs.
Maybe this video can help you:
(1) How to program C++ on a PLCnext control | C++ with PLCnext Technology - YouTube

Thanks. That worked!