Forum Migration Notice
We're transitioning to a more modern community platform by the end of this year. Learn about the upcoming changes and what to expect.

SetAO with decimal place

Hi,

I'm trying to set an virtual analogue output using values from an array, these values have one decimal place but when I try to set the signal in Rapid I don't get the decimal, here's what I'm doing;


So I'm trying to set the signal ACNV_Spdmm using the value from nCur_Spdmm which currently is 15.9 but the output gets set to just 15.  Other standard analogue signals are working with decimals so I don't know what I'm missing...

Any ideas?

Comments

  • Neily03
    Neily03 ✭✭✭
    As a test I've tried the following:


    And still only outputs '15' without the decimal.......
  • Neily03
    Neily03 ✭✭✭
    Fixed it by removing the assigned unit and leaving it blank.
  • DenisFR
    DenisFR ✭✭✭
    Hello,
    signalxx data are integers.
    The easier way to transmit real is to multiply your values ex: 15.9*10.


    ☑️2024 - RobotStudio® User Group