Posted 7 Mar 2017 Thanks to much help from the Forum, I have a G5 servo motor wiggling back an' forth randomly in rotary mode. The position signal for that motion, is coming from the MC-SyncMoveAbsolute function block. (MC_Axis000) Is there a way to convert that signal to Analog , ideally +&- 10 VDC .. for analog output on I/O ? Thanks, much, Regards... Michael Lambert Share this post Link to post Share on other sites
Posted 7 Mar 2017 Absolutely. Lets say you were taking the analog signal to an NX-DA2603 which is a -10 to plus 10 signal with a range from 0 - 7999. I believe that this means that 0 = -10 VDC, 3999 = 0 VDC and 7999 = 10 VDC. Lets also say that CSine ranges from -100 to +100. Then, you would simply write a bit of structured text to convert the from one to the other using the old slope-intercept equation. For my example, it would look like this: Then, simulating, I get the values that would be expected: This could easily be turned into a function as well. Of course you could calculate the slope and intercept using your calculator and then just put the constants in the structured text for each. Share this post Link to post Share on other sites