Hello everyone at tech-talks,
Hope you are well.
I am on the end of developing my motor driver. I am currently testing it.
I have installed Epics on a VM on ubuntu and I am directly talking to my Hardware motor controller through TCP/IP.
The driver I have developed is according to Model 3 Driver.
Anyway, I was hoping to use the field of the motor record called RSTM to set the motor position (stepper counts) according to the DVAL field(encoder counts).
The treatment of the RSTM field seems to be done in the function init_controller in the devMotorAsyn.c file.
However, when called and the function asks for the motor record dval (pmr->dval) the value is equal to 0.
I think it is because the pmr->dval = pmr->drbv is done after the record is initialized.
My question is then, does the RSTM field work as it is intended?
How can I force Dval to be equal to the encoder position before the init_record?
Thank you for your help and time
Best Regards
Paul
Paul-Elie GUILLOT
Technology Manager in Automation and Robotics
Téléphone: +33 (0)4
76 44 98
93
![](pngwDRbdbAXUS.png)
20 rue du Tour de l'Eau
F-38400 St Martin d’Hères Cedex
Phone : +33 (0)4 76 44 12 96
irelec-alcen.com
IRELEC after sales services – please send your request to
support at irelec-alcen.zendesk.com
Any disclosure, use, dissemination or reproduction (either whole or partial) of this message or the information contained herein
is strictly prohibited without prior consent of Irelec.