1
Technical support / PWM issues
« Last post by Hminx on Today at 02:25:18 AM »Hi All
I'd appreciate any thoughts on an issue I'm having with a PWM function on a T100MD that I'm using in the development stage of a project which will shift a truck's AMT type transmission directly to 5th gear. I need to position the gear selector actuator selector opposite 5th gear gate. I'm trying to reproduce to factory pulse train.
The problem is that the amount of PWM seems to be difficult to control for some reason. When Start contact closes the output 7 pulses at 500 hz 90% PWM but wont turn off when start contacts open and continues with the pulse train
Start Clk:.05s cf 1
----II------------II--------------------------------------------------------------------{dCusF}
Function 1
' set pwm level for side shift function
SetPWM 1,A,500
Function 3
if testio (r1) = 1
then
A = DM[1]
else A = DM[2]
endif
if testio (r2) = 0
then DM[1] = 0
else DM[1] = 9000
endif
if testio (r2) = 0
then DM[2] = 0
else DM[2] = 3500
endif
Not sure if this make sense, I know I've only shown a small part the program
Cheers Pete
I'd appreciate any thoughts on an issue I'm having with a PWM function on a T100MD that I'm using in the development stage of a project which will shift a truck's AMT type transmission directly to 5th gear. I need to position the gear selector actuator selector opposite 5th gear gate. I'm trying to reproduce to factory pulse train.
The problem is that the amount of PWM seems to be difficult to control for some reason. When Start contact closes the output 7 pulses at 500 hz 90% PWM but wont turn off when start contacts open and continues with the pulse train
Start Clk:.05s cf 1
----II------------II--------------------------------------------------------------------{dCusF}
Function 1
' set pwm level for side shift function
SetPWM 1,A,500
Function 3
if testio (r1) = 1
then
A = DM[1]
else A = DM[2]
endif
if testio (r2) = 0
then DM[1] = 0
else DM[1] = 9000
endif
if testio (r2) = 0
then DM[2] = 0
else DM[2] = 3500
endif
Not sure if this make sense, I know I've only shown a small part the program
Cheers Pete