adccommunitymod (AutomationDirect) asked a question.

Sine wave output for a DoMore

Created Date: September 04,2015

Created By: artonpaper

**** This post has been imported from our legacy forum. Information in this post may be outdated and links contained in the post may no longer work.****

Any suggestions how to program a sine wave using a math function? I have a H2-DM1E CPU and a F2-02DA-2 output module (0-5 Vdc) ? This is to use at a customers site for demo , not to control a nactual process. Thanks, Art


  • adccommunitymod (AutomationDirect)

    Created Date: September 04,2015

    Created by: franji1

    So you want 0 VDC to map to -1 on the SIN and 5V DC (12 bit 4095) to map to +1 on the SIN?

    See the attached project screen shot. The MATH expression is

    MATH WY0 "(0.5 + (SIN(RAD(CT0.Acc)) / 2)) * 4095 "

  • adccommunitymod (AutomationDirect)

    Created Date: September 04,2015

    Created by: artonpaper

    Thanks for the reply. I am still learning, but this gets me going.

    Thanks,

    Art

  • adccommunitymod (AutomationDirect)

    Created Date: September 04,2015

    Created by: artonpaper

    Any suggestions how to program a sine wave using a math function?

    I have a H2-DM1E CPU and a F2-02DA-2 output module (0-5 Vdc) ?

    This is to use at a customers site for demo , not to control a nactual process.

    Thanks,

    Art

    Expand Post