Experimental Physics and Industrial Control System
Hi Martin,
I don't know about the intended behavior, since I did not write the driver. I am just saying what the actual behavior is. (Note that there is a comment in the driver code that says that I am the original author, but that is not true. It is a remnant of someone's cut and paste from my Newport MM4000 driver on which this driver was based).
I tend to agree with you that this seems like something that should be done before iocInit.
PC6K_num_cards is set correctly after the PC6KConfig commands, and the required motor_state structures have been allocated.
However, the motor_init() code is where the connection to the asyn driver occurs, and that does not happen until iocInit.
If the code that initializes the connection to the hardware, like:
/* Initialize communications channel */
success_rtn = pasynOctetSyncIO->connect(cntrl->asyn_port,
cntrl->asyn_address, &cntrl->pasynUser, NULL);
were moved from motor_init() into PC6KConfig() then you would be able to call PC6kUpLoad before iocInit().
Mark
-----Original Message-----
From: Konrad, Martin [mailto:[email protected]]
Sent: Thursday, July 18, 2013 1:13 PM
To: Mark Rivers
Cc: [email protected]
Subject: Re: motor record & PC6K: program upload fails
Hi Mark,
> So your PC6KUpLoad command must not be given before iocInit, it must be after iocInit.
But would mean we reprogram the controller while the IOC is running and
record processing is in full progress, doesn't it? That sounds quite
dangerous to me. I was expecting it to program the controller before
record processing starts. Can you please confirm that running it after
iocInit really is the intended behavior?
Martin
- Replies:
- Re: motor record & PC6K: program upload fails Pearson, Matthew R.
- References:
- motor record & PC6K: program upload fails Konrad, Martin
- Re: motor record & PC6K: program upload fails Konrad, Martin
- Navigate by Date:
- Prev:
Re: motor record & PC6K: program upload fails Konrad, Martin
- Next:
Re: motor record & PC6K: program upload fails Pearson, Matthew R.
- 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
- Navigate by Thread:
- Prev:
Re: motor record & PC6K: program upload fails Konrad, Martin
- Next:
Re: motor record & PC6K: program upload fails Pearson, Matthew R.
- 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