Host Engineering Forum
General Category => Do-more CPUs and Do-more Designer Software => Topic started by: Saturn_Europa1 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).
-
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: