View Full Version : servopod problem
Philthyphil
10-31-07, 04:45 AM
hi, I have a problem with my servopod.
I can't run redtrigger program!!! the servopod seems to work fine, commands such as REDLED ON and REDLED OFF works fine.
but when I try to run the redtrigger program copy/pasted from the manual and wiring PA7 with ground nothing happend to the led...
yes, the pins of ground and pa7 are correct
yes, the servopod is on
yes, the servopod is connected (via RS232) to the computer
isomax version is 0.82
I use NMITerm
any hint?
thanks!
bye
Phil
nmitech
10-31-07, 09:07 AM
By default, all the leds are on. To run this demo program, you need to turn off the redled then apply a low signal on PA7 input. You will see the redled triggers on.
Philthyphil
11-05-07, 05:11 AM
By default, all the leds are on. To run this demo program, you need to turn off the redled then apply a low signal on PA7 input. You will see the redled triggers on.
yep thank u, I didi it.
reading the forum I discovered that -I have to insert these lines... and now it works
ISOMAX-START
RTON SET-STATE
INSTALL PROVAADC
thanks!
bye
Philthyphil
11-05-07, 05:40 AM
Now I have another problem.
I would like to check an analog input. I have to turn a led on when the walue is for instance about 1.6V... so if 3.3V are 32000 1.6 are about 16000
It's for a force sensor.
I Wrote this program in isomax...
REDLED OFF
YELLED OFF
GRNLED OFF
MACHINE PROVAADC
ON-MACHINE PROVAADC
APPEND-STATE RTON
APPEND-STATE RTOFF
IN-STATE RTON CONDITION ADC6 ANALOGIN 16000 < CAUSES REDLED OFF
THEN-STATE RTOFF TO-HAPPEN
IN-STATE RTOFF CONDITION ADC6 ANALOGIN 16000 > CAUSES REDLED ON
THEN-STATE RTON TO-HAPPEN
ISOMAX-START
RTON SET-STATE
INSTALL PROVAADC
and found a similar one in this forum.
seems to be ok, but it doesn't work...
I have to do something to initialize analog input? or other?
thanks!
bye
Phil
nmitech
11-06-07, 11:29 AM
reading the forum I discovered that -I have to insert these lines... and now it works
ISOMAX-START
RTON SET-STATE
INSTALL PROVAADC
If you use INSTALL word besure the Isomax clock is running.
To be safe, always use ISOMAX-START prior to install the machine.
If you use the old way like it uses in the example,
EVERY n CYCLES SCHEDULE-RUNS machine-name
This will automatically start the clock
The program checking analog input then turn on/off the led that you posted above is working. Makesure you use the correct AD pin and analog ground connects on J5 pin 2 .
Philthyphil
11-06-07, 02:59 PM
If you use INSTALL word besure the Isomax clock is running.
To be safe, always use ISOMAX-START prior to install the machine.
If you use the old way like it uses in the example,
EVERY n CYCLES SCHEDULE-RUNS machine-name
This will automatically start the clock
The program checking analog input then turn on/off the led that you posted above is working. Makesure you use the correct AD pin and analog ground connects on J5 pin 2 .
thanks very much!!!
For the analog input program I'm sure for the correct pin... but I didn't connect the ground pin!!!!
Do I also have to connect the Vref pin? 'cause with the tester I can read already 3.3V
thanks very much!
bye
Phil
nmitech
11-06-07, 03:21 PM
Your input analog ground needs to be connected to Pin 2. No need to connect Vref. It is already connected to VDD through an inductor in series.
Philthyphil
11-06-07, 07:20 PM
Your input analog ground needs to be connected to Pin 2. No need to connect Vref. It is already connected to VDD through an inductor in series.
Perfect, now I have understand! I'll try this!
thanks very much!!!!
vBulletin v3.0.7, Copyright ©2000-2012, Jelsoft Enterprises Ltd.