Menu

How to read analog outputs and inputs

Help
2007-06-21
2013-05-09
  • Nobody/Anonymous

    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

     
    • Nobody/Anonymous

      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).

       

Anonymous
Anonymous

Add attachments
Cancel