...
In this scenario, the configuration variables are changed once at startup, before entering the main loop of the palletizer program. To change any configuration variable, use the initial MoveJ program node under the Pally program node to enter script lines or script files that modify the variables. The global keyword is not required in this case.
Changing configuration at runtime
...
Info |
---|
Note: Changing configuration variables may have no effect until pattern verification database is cleared. |
Developer tip
To make sure you write the variable name properly, it is a good idea to print out the old value before changing. If the variable name is incorrect, the program will fail.
Instead of this:
Code Block |
---|
rf_max_speed = 0.3 # <---- will have NO effect. The variable name is "rf_speed" |
Try this:
Code Block |
---|
textmsg("rf_max_speed old value:", rf_max_speed) # <----- The program will STOP here
rf_max_speed = 0.3
textmsg("rf_max_speed new value:", rf_max_speed) |
See the list of available variables, categorized by their functionality:
...