Skip to content

Problems with multi-controller addressing #18

Description

@kmpeters

@se-hzb reported problems polling and moving axes when the controllers are daisy-chained:

Operation with two 8742 controllers with firmware v2.3 05/02/17 through the RS485 interface. Polling results in occasional wrong assignments of positions to the individual axes and move commands are executed by both controllers.

This is fixed by always also directly addressing the first controller by changing the lines 235 to 239 in newFocusApp/src/874xMotorDriver.cpp:

if (axisNo > axesPerController) {
      sprintf(axisName_, "%d>%d", (axisNo - 1)/axesPerController + 1, (axisNo - 1)%axesPerController + 1);
  } else {
      sprintf(axisName_, "%d", axisNo);
  }

to

sprintf(axisName_, "%d>%d", (axisNo - 1)/axesPerController + 1, (axisNo - 1)%axesPerController + 1);

If this is compatible with the other interfaces USB/Ethernet and doesnt affect any other functionality of the driver, I would recommend this operation.

source:
#9 (comment)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions