EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  <20252026  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  <20252026 
<== Date ==> <== Thread ==>

Subject: Galil IOC GalilAddCode Command Parameters
From: Jonathan Hai via Tech-talk <[email protected]>
To: "[email protected]" <[email protected]>
Date: Mon, 11 Aug 2025 17:28:00 +0000
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

 


Navigate by Date:
Prev: Re: documentation for new epics 7 dbLock usage and Redundant IOC software Timo Korhonen via Tech-talk
Next: RE: [EXTERNAL]Re: CS-Studio Phoebus Deployment-Only Version Ramirez-Morales, Jacob J (CONTR) via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  <20252026 
Navigate by Thread:
Prev: RE: [Ext]RE: Error starting ADSpinnaker IOC Mark Rivers via Tech-talk
Next: RE: Galil IOC GalilAddCode Command Parameters Mark via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  <20252026 
ANJ, 19 Mar 2026 · Home · News · About · Talk · Base · Modules · Extensions ·
· Distributions · Download · Documents · Links · Licensing ·