I am wanting some info on interfacing C++ with either a MCU or PLC. Basically I want to use a GUI to get info, use the info to either control a circuit or program a chip to control the circuit.I've done some googling and haven't found much. Any help would be appreciated.
just use interfaces available on pc and mcu like: usb, ethernet and serial port (most current motherboards doesnt have them in background but still has pins for serial communication).
For USB you either use a chip with dedicated hardware interface or simulated inside the chip with software called a "bootloader" or just use a simple USB to serial converter. You can't communicate via USB without a driver, usually supplied with the MCU.
For serial just use it like a regular file, so every C or C++ function you know will work with it. If you need fancy things use operating system APIs directly. No driver will be needed.
For ethernet device just communicate with it like a regular network interface, using it's IP address. No driver needed, but you must correctly get device IP or MAC address first in your PC application. Another device, like a router will be required. Advantage: you can control it remotely :