simple C code to momentary DAC jog servo

Moderators: TomKerekes, dynomotion

Post Reply
turbothis
Posts: 310
Joined: Fri Mar 15, 2019 4:07 pm
Location: southern oregon

simple C code to momentary DAC jog servo

Post by turbothis » Thu Dec 07, 2023 1:10 am

lol, so my X axis does not have an encoder for a couple days and i am wanting to see about a code that would have a momentary button, to just like output say 2 volts on DAC 0.

User avatar
TomKerekes
Posts: 2546
Joined: Mon Dec 04, 2017 1:49 am

Re: simple C code to momentary DAC jog servo

Post by TomKerekes » Thu Dec 07, 2023 6:03 pm

You might use the Screen Editor to add a Momentary button to control a Virtual bit. Then use a forever loop in KFLOP to monitor the bit and set DAC to 2V when on and to 0V when off.
Regards,

Tom Kerekes
Dynomotion, Inc.

Post Reply