Let's check all the steps to get this inputs work as expected:
1) The PLC needs to be powered externally (12/24Vdc)
2) This inputs can work as analog or digital and you can choose it on the Arduino IDE program (not by hardware)
3) Have you checked all the inputs from I0.7 to I0.12? Is possible that a peak of amperage or an overvoltage have affected this inputs? From I0.0 to I0.6 are all optoisolated digital inputs, so that if an overvoltage of peak of current have affected the equipment, this inputs have an external circuitry and can still work.
4) Here you can check how to connect and work with this inputs as analog, but the same program can work with digitalWrite instruction:
https://www.industrialshields.com/blog/arduino-industrial-1/post/learning-the-basics-about-analog-inputs-of-an-industrial-plc-29
5) Confirm me that you are using the following model on Arduino IDE boards:

I hope I have been helpful.