I assume you have to use daveInputs and daveOutputs.
You have to know the IO-Assignment in your hardware configuration. Then read the inputData with daveReadBytes(&dc, daveInputs, 0, e.g. 402 (Adress), e.g. 2 (Length), NULL)
Afterwards you can get the value with daveGetU16(&dc).
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello!
I need to read analog inputs and outputs from a siemens S7 300, what constant should i use and how i read the answer?
thanks,
DSC
I assume you have to use daveInputs and daveOutputs.
You have to know the IO-Assignment in your hardware configuration. Then read the inputData with daveReadBytes(&dc, daveInputs, 0, e.g. 402 (Adress), e.g. 2 (Length), NULL)
Afterwards you can get the value with daveGetU16(&dc).