Hi Allan,
I am not sure I fully understand your question. Have you tried to instantiate a controller and load a template file, and received errors, or are you not that far along?
Unfortunately motor does not seem to contain an example for your controller, but it does contain examples for lots of other controllers that use devMotorAsyn.c and asynMotorController.cpp.
Look in motor/iocBoot/iocWithAsyn/st.cmd.mcb4b for a simple example.
It creates a controller object with
MCB4BCreateController("MCB4B1", "serial1", 4, 100, 5000)
In your case I believe this would be:
PI_GCS2_CreateController(const char *portName, const char* asynPort, int numAxes, int priority, int stackSize, int movingPollingRate, int idlePollingRate)
and then loads a template file with several motor records:
dbLoadTemplate "motor.substitutions.mcb4b"
You need to create a template file for your motors.
The motor module is being split into separate repositories for each controller type. Each repository will contain an example IOC to help with these types of questions. These example IOCs will require help from the community, since at the APS we don't have all of the types of controllers that are supported, so we can't test examples.
Mark
________________________________
From: [email protected] <[email protected]> on behalf of Allan Serra Braga Bugyi via Tech-talk <[email protected]>
Sent: Monday, April 8, 2019 8:39 AM
To: [email protected]
Subject: asynMotor device support and the motor specific driver (asynMotorContorller)
Hello all,
I need a clarification about the motor module. The asynMotor device support (defined in 'motorApp/MotorSrc/devMotorAsyn.c') tries to find an asynDrvUser interface in init_record function, so that it can find the driver commands with findDrvInfo function. I'm using the asynMotorController driver that implements the PI's command set GCS. How can I connect this driver with the motor record through asynMotor device support?
Additional information:
A class diagram of the PI sources (please ignore the error message; using motor 6-11 now)
[cid:b8eb7e61-f6f9-41d6-8500-6813e6d2e809]
Thank you!
Allan S. B. Bugyi
Technology Development Analyst
[email protected]
(+55 19) 3512-3520
SOL/Beamline Software Group
Brazilian Synchrotron Light Laboratory (LNLS)
Center of Research in Energy and Materials (CNPEM)
http://lnls.cnpem.br
<http://lnls.cnpem.br>
Aviso Legal: Esta mensagem e seus anexos podem conter informações confidenciais e/ou de uso restrito. Observe atentamente seu conteúdo e considere eventual consulta ao remetente antes de copiá-la, divulgá-la ou distribuí-la. Se você recebeu esta mensagem por engano, por favor avise o remetente e apague-a imediatamente.
Disclaimer: This email and its attachments may contain confidential and/or privileged information. Observe its content carefully and consider possible querying to the sender before copying, disclosing or distributing it. If you have received this email by mistake, please notify the sender and delete it immediately.
- Replies:
- Re: asynMotor device support and the motor specific driver (asynMotorContorller) Peterson, Kevin M. via Tech-talk
- Re: asynMotor device support and the motor specific driver (asynMotorContorller) Allan Serra Braga Bugyi via Tech-talk
- References:
- asynMotor device support and the motor specific driver (asynMotorContorller) Allan Serra Braga Bugyi via Tech-talk
- Navigate by Date:
- Prev:
asynMotor device support and the motor specific driver (asynMotorContorller) Allan Serra Braga Bugyi via Tech-talk
- Next:
Re: drvAsynIPPortConfigure and I/O Intr with asynRecord possible? Benjamin Franksen 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
- Navigate by Thread:
- Prev:
asynMotor device support and the motor specific driver (asynMotorContorller) Allan Serra Braga Bugyi via Tech-talk
- Next:
Re: asynMotor device support and the motor specific driver (asynMotorContorller) Peterson, Kevin M. 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
|