Hello Guest it is April 19, 2024, 07:41:40 PM

Author Topic: Macro Help  (Read 4934 times)

0 Members and 1 Guest are viewing this topic.

Re: Macro Help
« Reply #10 on: December 22, 2015, 12:45:03 PM »
ok, im back.  lol

I have tried your program idea and I keep getting a syntax error.   when I click ok it doesn't show me where the error is.  I just see the cursor next to "Lcnt1".   so im not sure if this is the problem or not.

how do you declare varibles in Cypress Enable?

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: Macro Help
« Reply #11 on: December 22, 2015, 02:28:45 PM »
The only thing I see wrong is MessageBox  should be MsgBox  (;-)

(;-) TP

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: Macro Help
« Reply #12 on: December 22, 2015, 02:50:39 PM »
OOPS there is another error

  IF Lcnt >= 10000 then                                    ' Check the status of the Lcnt1 value IF it timed out then do stop function

SHould read as

  IF Lcnt1 >= 10000 then                                    ' Check the status of the Lcnt1 value IF it timed out then do stop function
Re: Macro Help
« Reply #13 on: December 22, 2015, 05:07:33 PM »
Now im having trouble with my turret motor controller.   can seem to make the motor work.

going to take motor out and see if theres a mechanical problem.
Re: Macro Help
« Reply #14 on: December 23, 2015, 05:37:32 PM »
Well, took the turret apart and found a screw was the problem, it was mechanically binding the rotating part of the turret. once I removed the screw everything went back to working.

Thank you for your help.  the macro program is working beautifully!!!   :)

the while loop is working good too.  I added msgbox(Lcnt1), and it would show me the count.  which was 173,000 or something close to that.  so I raised the count to 250,000 before the message would appear and its working fine.

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: Macro Help
« Reply #15 on: December 23, 2015, 05:40:14 PM »
Good Job (;-) TP