Home
Downloads
Mach and LazyCam
Plugins
CAM Post Processors
Screensets
Purchase
Support
Forum
Tutorial Videos
Documentation
Yahoo Group
Mach Wiki
Known Bugs
Resources
Contact Us
Links
CNCZone
German Forum
Italian Forum
Korean Forum
Portugese (Brazil) Forum
Russian Forum (RSK CNCROUTER)
Thai Forum
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
February 12, 2012, 08:55:04 AM
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Search:
Advanced search
Select from and to languages
Chinese-simp to English
Chinese-trad to English
English to Chinese-simp
English to Chinese-trad
English to Dutch
English to French
English to German
English to Greek
English to Italian
English to Japanese
English to Korean
English to Portuguese
English to Russian
English to Spanish
Dutch to English
Dutch to French
French to English
French to German
French to Greek
French to Italian
French to Portuguese
French to Dutch
French to Spanish
German to English
German to French
Greek to English
Greek to French
Italian to English
Italian to French
Japanese to English
Korean to English
Portuguese to English
Portuguese to French
Russian to English
Spanish to English
Spanish to French
Machsupport Forum
Third party software and hardware support forums.
Galil
(Moderators:
smurph
,
kcrouch
)
Strange #AUTO Galil program behavior
Pages:
1
Go Down
« previous
next »
Author
Topic: Strange #AUTO Galil program behavior (Read 1514 times)
0 Members and 1 Guest are viewing this topic.
Jeff_Birt
Active Member
Offline
Posts: 782
Strange #AUTO Galil program behavior
«
on:
July 21, 2009, 04:11:52 PM »
Since I am using a 1842 which does not include the state of the extended I/O inputs in its DR (Data Record) I use a Galil program running in #AUTO to read the inputs, stash the value in the unused auxiliary registers and then wait 10ms and do it all over. This has worked great. Today while doing some testing Mach started up like I had reset the motion controller and ask me to choose which one to use. I recovered from this by grabbing a back-up of the Mach profile XML and then noticed that the Galil card did not seem to be executing #AUTO properly. I uploaded the program from the card and it was correct, I downloaded and burned a copy from the HD and had the same problem. If I do 'XQ #AUTO' it only runs once. Here are the pertinent parts of the Galil program.
#AUTO
REM This program automatically starts with power on
..... more REM
#START
DE (256*_TI3)+_TI2, (256*_TI5)+_TI4, (256*_TI7)+_TI6, (256*_TI9)+_TI8
WT 10
JP #START
EN
For the life of me I cant figure out why it seems to miss the JP. I even added some message outputs in like MG "In Loop" but only see it once as no looping is taking place. Has anyone else seen this. I would prefer to not try and do a Master Reset if I can avoid it.
Logged
Happy machining , Jeff Birt
Check out
www.soigeneris.com
smurph
Active Member
Offline
Posts: 242
Re: Strange #AUTO Galil program behavior
«
Reply #1 on:
July 21, 2009, 11:36:54 PM »
Your MG "In Loop" doesn't repeat in SmartTerm? If so, it sounds like MRST to me. No error LED?
Steve
Logged
NosmoKing
Active Member
Offline
Posts: 193
Re: Strange #AUTO Galil program behavior
«
Reply #2 on:
July 22, 2009, 08:08:44 AM »
Did you try TC to see if any thing comes up?
N.
«
Last Edit: July 22, 2009, 08:11:30 AM by NosmoKing
»
Logged
kcrouch
Active Member
Offline
Posts: 162
In way too deep!!!
Re: Strange #AUTO Galil program behavior
«
Reply #3 on:
July 22, 2009, 08:38:56 AM »
Jeff,
I would suggest that the second line be "XQ #START,2" to cause execution in thread 2. The mach commands execute in the first thread which will interfere with the running of your program there. I don't have your full program and can't test it here.
Regards,
Kenny
Logged
Having way too much fun! Something must surely be wrong.
Jeff_Birt
Active Member
Offline
Posts: 782
Re: Strange #AUTO Galil program behavior
«
Reply #4 on:
July 22, 2009, 09:21:47 AM »
No error light
TC returns 0 (no errors)
MG _XQ return -1 showing that the program is not running.
Kenny, that is a good idea to execute it in thread 2. Right now I'm just using SmartTerm to try and diagnose the Galil card so any mach interactions are out of the picture, but that could have caused the initial problem.
FWIW here is the whole program:
#AUTO
REM This program automatically starts with power on
REM and continiously monitors the status of the servo
REM motors. If any motor is turned off then all motors
REM will be turned off and the brakes applied. If all
REM servo motors are on the brakes will be released.
REM It also reads the extended inputs and pops them into
REM the unused auxillary encoder registers so we can
REM read the inputs easily through the DR in Mach III.
XQ #START,2
EN
#START
IF (_MOA=1)|(_MOB=1)|(_MOC=1)
MG "Motors OFF"
SB 80
SB 74
MO
ELSE
MG "Motors ON"
CB 80
CB 74
ENDIF
DE (256*_TI3)+_TI2,(256*_TI5)+_TI4,(256*_TI7)+_TI6,(256*_TI9)+_TI8
WT 1000
JP #START
EN
#ININT
MG "Servos OFF, Brakes ON"
REM Turn the brakes ON, stop all axis
SB 74
SB 80
ST XYZ
RI
«
Last Edit: July 22, 2009, 09:32:42 AM by Jeff_Birt
»
Logged
Happy machining , Jeff Birt
Check out
www.soigeneris.com
Jeff_Birt
Active Member
Offline
Posts: 782
Re: Strange #AUTO Galil program behavior
«
Reply #5 on:
July 23, 2009, 08:27:25 AM »
I simplified the program to what is shown below and did a trace to send to Galil. I even removed the WT and tried it again, it just seems to ignore the JP. I'll let you guys know what the verdict was.
Program:
#AUTO
MG "At Auto"
#START
MG "In Loop"
WT 1000
JP #START
EN
Trace Dump:
:0 #AUTO
1 MG "At Auto"
At Auto
2 #START
3 MG "In Loop"
In Loop
4 WT 1000
Logged
Happy machining , Jeff Birt
Check out
www.soigeneris.com
Jeff_Birt
Active Member
Offline
Posts: 782
Re: Strange #AUTO Galil program behavior
«
Reply #6 on:
July 27, 2009, 10:25:33 AM »
Well, the guys at Galil were stumped too. I did an Master Reset and even re-flashed the FW (and MR afterwords) and neither helps. It just seems to randomly stop parsing user programs. Guess it is time to send it in for repair.
Logged
Happy machining , Jeff Birt
Check out
www.soigeneris.com
Jeff_Birt
Active Member
Offline
Posts: 782
Re: Strange #AUTO Galil program behavior
«
Reply #7 on:
September 22, 2009, 01:18:25 PM »
Well I sent the card in for repair and it worked fine for the guys at Galil. They sent it back and asked me to let them know what happened here. I plugged it back in to the machines motherboard and it would quit running programs at random places. I then set up an old Dell with a fresh copy of XP, loaded the Galil drivers, plugged the card in and it worked immediately on power up. I'm reloading XP on the machine at this time. The guys at Galil are still unsure what could have gone wrong on the PC to cause this as they have never seen this particular problem before: lucky me!
Logged
Happy machining , Jeff Birt
Check out
www.soigeneris.com
Pages:
1
Go Up
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Mach Discussion
-----------------------------
=> General Mach Discussion
=> Mach3 under Vista
=> Quantum
=> Mach SDK plugin questions and answers.
===> Finished Plugins for Download
=> VB and the development of wizards
=> Brains Development
=> Video P*r*o*b*i*n*g
=> Mach Screens
===> Screen designer tips and tutorials
===> Works in progress
===> Finished Screens
===> Flash Screens
===> JetCam screen designer
===> Machscreen Screen Designer
===> CVI MachStdMill (MSM)
=> Feature Requests
=> Non English Forums
===> Italian
===> French
===> Spanish
===> Chinese
===> German
===> Russian
===> Romanian
===> Japanese
===> Vietnamese
=> FAQs
-----------------------------
*****VIDEOS*****
-----------------------------
=> *****VIDEOS*****
-----------------------------
General CNC Chat
-----------------------------
=> Share Your GCode
=> Show"N"Tell ( What you have made with your CNC machine.)
=> Building or Buying a Wood routing table.. Beginnners guide..
=> Show"N"Tell ( Your Machines)
-----------------------------
G-Code, CAD, and CAM
-----------------------------
=> G-Code, CAD, and CAM discussions
=> LazyCam (Beta)
-----------------------------
Third party software and hardware support forums.
-----------------------------
=> LazyTurn
=> GearoticMotion Preliminary testing
=> Tempest Trajectory Planner
=> Contec
=> dspMC/IP motion controller
=> Third party software and hardware support forums.
=> Galil
=> Newfangled Solutions Wizards
=> Mach3 and G-Rex
=> Mesa
=> Modbus
=> NC Pod
=> PoKeys
=> SmoothStepper USB
=> Sieg Machines
=> Promote and discuss your product
-----------------------------
Tangent Corner
-----------------------------
=> Tangent Corner
=> Competitions
=> Polls
=> Bargain Basement
-----------------------------
Support
-----------------------------
=> Downloads
===> XML files
===> Post Processors
===> Macros
===> Tutorials
===> Others
===> Beta Brains
===> Screen Sets
===> Documents
===> MACH TOOL BOX
=> One on one phone support.
=> Forum suggestions and report forum problems.
Loading...