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/4f42d8ba-56ae-466d-936c-003c79fbac87%40googlegroups.com.

Reply via email to