Skip to main content
Submitted by huifei on Wed, 07/16/2008 - 13:46

In the command reference, there is an example of how to use "BN", but no example of "BP".

Suppose that I want to burn in (using DMC smart terminal) the subroutine below into the flash of the controller so that it will run automatically upon each power up.

#AUTO
MO
AG 1,1
TL 9,9,
ER 10000, 10000
OE 1,1
EN

What should I do? Should I edit the subroutine in smart terminal, insert a "BP" command before "EN", download the file into the controller, and then execute "XQ #AUTO" once?

Comments 5

Galil_JohnM on 07/16/2008 - 14:27

huifei

What it looks like you are doing is initializing the controller with the parameters that you have listed above. What you actually may want to do is to burn these parameters themselves into the controllers EEPROM. By doing this the controller will just default to these settings upon power-up and will not require you to run this routine. This can be done with the Burn Parameters command (BN). This command will burn an array of settings, which include AG, TL, ER and OE. Please see your controllers specific command reference for a complete list of parameters that will be burned in and a complete description of the command.

If you want to have the controller power up with the motors off (MO), what you will want to do is place a jumper on the MO jumper set.

These settings should give you the desired performance, without having to run the attached program. If you can provide to me the specific model number of your controller I can point you directly to the command reference and jumper location.

Regards,
JohnM

huifei on 07/17/2008 - 10:22

Hi John, thanks for your answer.

I am using Galil controller 2123 and 4020 currently. Yes, what I am doing now is to initialize some parameters to be default settings upon power up. Actually, I am using "BN" command to this end.

In the future, we might need to run a default program instead of just setting some default parameters. That is why I want to know how to use "BP". I will really appreciate if you could give me an example of using "BP" to burn in a program/subroutine.

By the way, having the controller power up with the motors off is not my purpose. I write MO there because some settings (for example, AG)require the motor to be in off state before they will take effect.

Best,
Huifei

Galil_JohnM on 07/17/2008 - 11:33

Huifei

There is no trick to issuing any of those commands from within a program. All you need to do is add it to the program. For instance:

#LOOP
PA5000
BG
AM
BP
EN

This will burn the program into the EEPROM. There is a possibility that the controller will time out, simply due to the length of time that it takes to burn the program. If this becomes an issue you can assign a longer timeout period in the Galil software and will not affect the function of the controller.

Regards,
JohnM

huifei on 07/18/2008 - 14:07

Thanks a lot

BobKoski on 07/11/2018 - 16:29

hi