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

Serial readings #27

Open
renecartaya opened this issue Mar 6, 2024 · 3 comments
Open

Serial readings #27

renecartaya opened this issue Mar 6, 2024 · 3 comments

Comments

@renecartaya
Copy link

Dear ACSpy team,

I hope you are doing great.

Using your package, I have been developing solutions interfacing between ACS controllers via Python.

I am wondering if it is possible to go deeper than reading position feedback (FPOS) to read count values from specific encoders and other raw data that are normally accessible via SpiiPlus but using Python.

I am looking fordward for your feedback.

Best regards,
René

@petebachant
Copy link
Owner

If there's a function in the C library, it can be wrapped in this package. Is there a C function for the use case you're referring to?

@renecartaya
Copy link
Author

Hi Pete,

Thank you very much for your quick reply.

The ACSPL+ Programmer's Guide detail FPOS = FP*EFAC + EOFFS. FP refers to the encoder counts I need, apart from the EFAC conversion factor.

Nevertheless, SPiiPlus C Library Reference Programmer's Guide mentions EFAC and a variable FPosition, which I guess refers to FP from ACSPL+.

Is it possible to access FP and EFAC via ACSPy?

Best regards,
René

@petebachant
Copy link
Owner

You could try efac1 = acsc.readReal(..., ..., varname="EFAC(1)") to get the encoder factor for axis 1, for example.

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