Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Motor SPDB left at default value of 1 #26

Open
ZLLentz opened this issue Feb 19, 2020 · 2 comments
Open

Motor SPDB left at default value of 1 #26

ZLLentz opened this issue Feb 19, 2020 · 2 comments

Comments

@ZLLentz
Copy link
Member

ZLLentz commented Feb 19, 2020

This has caused some confusion. The SPDB field is the setpoint deadband. The IOC will ignore moves that are less than this value. There is no obvious way to configure this as-is because it's missing from https://github.com/pcdshub/m-epics-ethercatmc/blob/master/EthercatMCApp/Db/EthercatMC.template. I think we should forcibly set this to zero before the pass0 restore...

@klauer
Copy link
Contributor

klauer commented Feb 26, 2020

Looks like the SPDB field is set to the precision using this record in EthercatMCreadback.template:

record(ao, "$(PREFIX)$(MOTOR_NAME)-CfgSPDB_")
{
    field(PREC, "$(PREC)")
    field(DOL,  "$(PREFIX)$(MOTOR_NAME)-CfgSPDB CP")
    field(OUT,  "$(PREFIX)$(MOTOR_NAME).SPDB")
    field(OMSL, "closed_loop")
}

@ZLLentz
Copy link
Member Author

ZLLentz commented Feb 27, 2020

Does the $(PREFIX)$(MOTOR_NAME)-CfgSPDB record (without the trailing _) exist at all though?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants