Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Spikes? (http://www.chiefdelphi.com/forums/showthread.php?t=25945)

st28 24-02-2004 11:11

Spikes?
 
can someone tell me how to program the spikes ????
thnx

Tom Bottiglieri 24-02-2004 11:17

Re: Spikes?
 
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

Re: Spikes?
 
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;


All times are GMT -5. The time now is 17:28.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi