|
Hi folks,
I am trying to add a few lines of DMC code to my Galil controller, which I'd like to run on IOC startup. I've been modifying the cmd file, using the
GalilAddCode command to append code (define limit switch polarity - dmc code: CN, set forward limit of axis x - dmc code: FLx) to the existing default code loaded on to the controller.
I am a bit confused regarding the 2nd parameter, below for reference.
# GalilAddCode command parameters are:
# Add custom code to generated code
# 1. char *portName Asyn port for controller
# 2. int section = code section to add custom code into 0 = card code, 1 = thread code, 2 = limits code, 3 = digital code
# 3. char *code_file custom code file
GalilAddCode("${MOTOR_ASYN}", 1, "add_custom_code.dmc")
What is the difference between card code, thread code, limits code, and digital code, and most importantly,
which value should I pass should I wish to modify the parameters specified above (limit switch polarity: CN, Forward Limit of axis x: FLx)?
Any help is appreciated. Thanks!
Regards,
Jonathan Hai
Researcher/Tech Monkey
CNBL | Department of Physics and Astronomy
McMaster University
Sapere Aude
|