Can't help ya with sending messages since it's not my forte but any
particular reason why you don't just change the values in the .ini
directly? Not sure how you're setup but Even if you had to SSH into the
controller it seems that it would be easier since this is a pretty much
done deal one it's setup.
On Thursday, August 22, 2019 at 1:59:13 AM UTC-4, Klemen Zhivko wrote:
>
> Maybe somebody knows how to prepare data packet for homing parameters or
> direct me to documentation how to use it.
> I believe ContainerType is: *MT_EMC_AXIS_SET_HOMING_PARAMS*
>
> But I am not sure how to build the command with all parameters (copied
> from .ini):
>
> HOME = 0.000
> HOME_OFFSET = 250
> HOME_IGNORE_LIMITS = YES
> HOME_USE_INDEX = NO
> HOME_SEQUENCE = 0
> HOME_IS_SHARED = YES
>
> Especially I am interested in HOME_OFFSET.
>
> Probably there is a way how to set variable for homing parameters like
> "HOME_OFFSET" and value of this parameter. Is there any client using
> *MT_EMC_AXIS_SET_HOMING_PARAMS* so I could see how to use it?
>
> PS: for homing I have following JAVA code in place (and it works):
>
> pb.Message.Container.Builder builder = Container.newBuilder();
> pb.Status.EmcCommandParameters emcCommandParameter =
> pb.Status.EmcCommandParameters.newBuilder().setIndex(axes[i])
> .build();
> builder.setType(ContainerType.MT_EMC_AXIS_HOME);
> builder.setEmcCommandParams(emcCommandParameter);
> builder.setTicket(getNextTicket());
> Container container = builder.build();
> socket.send(container.toByteArray(),0);
> try {
> parseAndOutput(2);
> } catch (InvalidProtocolBufferException e) {
> // TODO Auto-generated catch block
> e.printStackTrace();
> }
>
--
website: http://www.machinekit.io blog: http://blog.machinekit.io github:
https://github.com/machinekit
---
You received this message because you are subscribed to the Google Groups
"Machinekit" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/machinekit/90761d86-14b7-4f6e-bdd9-3b8ced03328d%40googlegroups.com.