Log in

View Full Version : Spikes?


st28
24-02-2004, 11:11
can someone tell me how to program the spikes ????
thnx

Tom Bottiglieri
24-02-2004, 11:17
what do you want to do with them? it is quite easy.. just go into the default code under user_routines.c and find the mappings of inputs to outputs. relX_fwd set to 1 will turn the M+ output positive. relX_rev set to 1 will turn the M- output high. Zeros will make them go negative.

Kevin Karan
24-02-2004, 11:36
example
if you want relay one to go forward do
relay1_fwd = 1;
relay1_rev = 0;

if you want it go reverse do
relay1_fwd = 0;
relay1_rev = 1;

if you want it to go neutral do
relay1_fwd = 0;
relay1_rev = 0;