.\" $FabBSD$ .\" .\" Copyright (c) 2009 Hypertriton, Inc. .\" All rights reserved. .\" .\" Redistribution and use in source and binary forms, with or without .\" modification, are permitted provided that the following conditions .\" are met: .\" 1. Redistributions of source code must retain the above copyright .\" notice, this list of conditions and the following disclaimer. .\" 2. Redistributions in binary form must reproduce the above copyright .\" notice, this list of conditions and the following disclaimer in the .\" documentation and/or other materials provided with the distribution. .\" .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR .\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED .\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE .\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, .\" INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES .\" (INCLUDING BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR .\" SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, .\" STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING .\" IN ANY WAY OUT OF THE USE OF THIS SOFTWARE EVEN IF ADVISED OF THE .\" POSSIBILITY OF SUCH DAMAGE. .\" .Dd $Mdocdate: April 2 2009 $ .Dt CNCCTL 8 .Os .Sh NAME .Nm cncctl .Nd configure the motion control (cnc) device .Sh SYNOPSIS .Nm cncctl .Op Fl Cc .Op Fl s Ar modifier .Op Fl F Ar modifier .Op Fl p Ar coords .Sh DESCRIPTION The .Nm utility configures the motion control system via the .Xr cnc 4 interface. The commands are as follows: .Bl -tag -width Ds .It Fl C Calibrate the timings necessary for the trajectory planner's spin delay loops. The operation can take several minutes and the FabBSD kernel will not respond to interrupts during the calibration. This only needs to be done once for any given machine. The results will be saved to .Pa /var/db/cnc.timings . .It Fl c Reread the timing calibration data from .Pa /var/db/cnc.timings . This command is typically invoked by the .Pa /etc/rc boot script. .It Fl s Ar modifier Show the cnc parameters specified by .Ar modifier (may be abbreviated): .Pp .Bl -tag -width xxxxxxxxxxx -compact .It Fl s Cm devices List the devices registered with the motion control system. .It Fl s Cm info Display various statistics and counters. .It Fl s Cm limits Display the kinematic limits in effect. .It Fl s Cm position Print the current machine position (in steps). .El .It Fl F Ar modifier Flush the cnc parameters specified by .Ar modifier (may be abbreviated): .Pp .Bl -tag -width xxxxxxxxxxx -compact .It Fl s Cm info Flush all statistics and counters. .El .It Fl p Ar coords Set the current machine position. This changes the kernel's idea of the actual machine position, no motion is performed. The boot scripts use this command to save and restore the coordinates across system reboots. .El .Sh FILES .Bl -tag -width "/var/db/cnc.timings" -compact .It Pa /etc/cncctl.conf Machine control configuration file. .It Pa /var/db/cnc.timings Timing calibration data. .El .Sh SEE ALSO .Xr cnc 4 , .Xr rc 8 , .Xr rc.conf 8 .Sh HISTORY The .Nm program first appeared in FabBSD 1.0.