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

add utilities to automatically compute a working mapping by only specifying SDOs #5

Open
jimy-byerley opened this issue May 28, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@jimy-byerley
Copy link
Owner

For what regards slave's control, there will be objects, each responsible of the control of a part of the machine, using parts of the process data matching the relevent SDOs of relevant slaves.
However

  • multiple such objects might share the same SDOs (for reading mostly)
  • multiple such objects might ask SDOs that are all in the same PDOs

Because of these facts, it would be sub-optimap to let each object create its own mapping on each slave. mapping should be decided once all SDO needs of all control objects have been taken into account.
An automatic mapping utility is thus necessary, allowing control objects to request for their SDOs and then once the mapping is done, simply access them.

This should ressemble to to following for the end-user:

let mapping = AutoMapping::new()
mapping.require(Sdo::<i32>::complete(0x1234))  // in control-object: request a SDO in the global mapping
let mapping = mapping.solve(infos)
let position = solution.request(Sdo::<i32>::complete(0x1234)) // in control-object: retreive its Field in the logical memory
@jimy-byerley jimy-byerley self-assigned this May 28, 2023
@jimy-byerley jimy-byerley added the enhancement New feature or request label Jul 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant