Go Home in ticcmd not working but in GUI works

Hi all,
I am currently having issue with homing the motor using ticcmd.

  1. Open cmd
  2. “ticcmd -d 0000 --resume” → works
  3. “ticcmd -d 0000 --exit-safe-start --position 100” → works
  4. “ticcmd -d 0000 --exit-safe-start --home fwd” → Does not works
    In Tic Control Center homing both direction works fine.

This might be the duplicated issue, however it is nothing to do with the resume operation being delayed.
[Go Home ticcmd not working]

Any ideas?
Thanks.

Hello.

Can you explain why you think it has nothing to do with the command being delayed? For reference, I can reproduce your findings here, but running this similar batch file as suggested in the post you links to works fine:

ticcmd -d 0000 --exit-safe-start --pause-on-error && timeout 1 && ticcmd -d 0000 --home fwd --pause-on-error

Please note that since the default threshold for the command timeout error is 1 second, you will need to disable it or increase it to something long enough to let your homing procedure finish in the “Input and motor settings” tab of the Tic Control Center.

Brandon

Thank you for your fast reply.

When I enter the command for home position, the motor does not respond at all, as if no other command has entered.
However in GUI simple “Go home forward” menu moves the stage to a home position.
Are there any other settings or commands needed before the “–home fwd” command?
Also, if “–home fwd” command continues to fail, can I just use “–position” and “–halt-and-set-position” commands to perform homing manually?

MLee

The Go home command will not work while the Tic has a latched error like the safe start violation, so you need to clear the errors first using something like --resume or --exit-safe-start. However, the Tic needs a slight delay after sending one of those commands to allow it to take effect before you send the homing command.

I highly recommend getting the homing procedure to work properly instead of trying to do a workaround to make your own homing procedure (which would be more complicated than just using the --position and --halt-and-set-position options).

Could you try the following process and see if the homing procedure happens as expected?

  1. Connect the Tic to the Tic Control Center.
  2. Disable the command timeout feature by unchecking the “Enable command timeout:” option in the “Input and motor settings tab”.
  3. Click the “Apply settings” button.
  4. Close the Tic Control Center.
  5. Open a Command Prompt.
  6. Send ticcmd --resume
  7. Send ticcmd --home fwd

If that does not work, could you post a copy of your Tic settings file? You can save a copy of your settings file from the “File” drop-down menu of the Tic Control Center software while the controller is connected.

Brandon

Thank you Brandon.
Your method works!
I didn’t expect this kind of fast and precise response.
I really appreciate it.
Have a nice day :slight_smile:

MLee

1 Like