News:

  • February 17, 2026, 05:13:18 PM

Login with username, password and session length

Author Topic: Sample Code Request for DO-More controlling GS4 thru GS-EDVR.  (Read 256 times)

Saturn_Europa1

  • Newbie
  • *
  • Posts: 9
Sample Code Request for DO-More controlling GS4 thru GS-EDVR.
« on: February 15, 2026, 04:14:04 PM »
Does anyone have any sample ladder logic code to write to a .RS485SpeedRef and a .RunCommand .  I could not find any samples online. 

I found this in another program at my facility that takes a 0-100 input from a C-More and writes it into a .RS485SpeedRef.  However, I am confused because I thought that the GS drives took unsigned 16 bits instead of Real.  (see attached). 

MikeS

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 257
    • Host Engineering, Inc.
Re: Sample Code Request for DO-More controlling GS4 thru GS-EDVR.
« Reply #1 on: February 16, 2026, 08:46:33 AM »
this is a piece of code that manipulates the values you're asking about. it calculates a random speed between 100 and 250Hz, sets the direction, sets the accel and decel rates, then sets the run command:

« Last Edit: February 16, 2026, 08:48:32 AM by MikeS »
Good design costs a lot. Bad design costs even more.