From 92c264d0f688a5cd903d3f66f0e3aaa85410df22 Mon Sep 17 00:00:00 2001 From: smathis Date: Fri, 6 Mar 2026 14:25:46 +0100 Subject: [PATCH] Added error message --- src/sinqAxis.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/sinqAxis.cpp b/src/sinqAxis.cpp index a7b0a3d..094dc24 100644 --- a/src/sinqAxis.cpp +++ b/src/sinqAxis.cpp @@ -364,6 +364,10 @@ asynStatus sinqAxis::move(double position, int relative, double minVelocity, getAxisParamChecked(this, encoderType, &encType); getAxisParamChecked(this, motorStatusHomed, &motorStatHomed); if (strcmp(encType, IncrementalEncoder) == 0 && motorStatHomed == 0) { + asynPrint(pC_->pasynUser(), ASYN_TRACE_ERROR, + "Controller \"%s\", axis %d => %s, line " + "%d:\nAxis needs to be homed first.\n", + pC_->portName, axisNo(), __PRETTY_FUNCTION__, __LINE__); setAxisParamChecked(this, motorErrorMessage, "Motor needs to be homed first."); return asynError;