Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched. Close

Analog Inputs

Boilerworx
2013-02-23
2013-02-27
  • Boilerworx - 2013-02-23

    I am using jmobile from uniop with a codesys plc running version 2.3 i have digital signals working but cannot get analog inputs to read, i am using 4-20mA inputs but cannot see them being read by plc. Does any one have any ideas or is there a library i need to use?

     
  • sarathbabu - 2013-02-24

    Hi

    How you declared your variable?

    it shud be QW%

    thanks
    sarath

     
  • shooter - 2013-02-24

    sarath wrong

    VAR
    xCounterHeat7 AT %QX0.0: BOOL;

    wLightcabinetimpulse AT %IW2: WORD;

    xDownload AT %MX2.2: BOOL;
    END_VAR

    have a look at oscat.de library using input1 function block.
    as the input first bits are used for error control.

     
  • sarathbabu - 2013-02-27

    Yes

    For analog input

    fourtorwenty:AT %IW3000;

    Actual reading depends on calibration inside

    for analog output

    tenvolts :at %QW2016;

    Thanks in my previous post i mentioned was analog output assignment

     

Log in to post a comment.