Read inputs from a Q series Mitsubishi PLC using C++

Job ID: 31560270

Budget: £20 – £250 GBP

I need to read the inputs from a Mitsubishi PLC using the MC Protocol.
I want to write the data to memory in an array.
The inputs are written to D501 in the PLC program. There are 5 words of inputs
IP address is unknown