man8/POSmngr2

Table of Contents

Name

POSmngr2 - position manager version 2

Synopsis

POSmngr2 <argument list>

Description

This program is a general purpose position (displacement) manager for devices having inc/dec nop/chg type status controls and an analog read of position. It takes a command from a displacement control point in the database and manipulates the status controls to bring the device to the commanded position.

Unlike POSmngr, this program does not sleep and check the position. This is less accurate, but moves the probe much faster. This is intended to be a drop in replacement in places where POSmngr moves too slow, and as such, it registers under POSmngr and requires similar database permissions.

Arguments

Arguments are processed using Unix long argument syntax.
--mngr <fn>

The CONFLIST file from which to obtain the configuration information.

If this is not specified it defaults to "MNGRconf" in the current working directory (i.e. the directory where the program was started).

--mngr_pn <fn>

The program name to use when parsing the CONFLIST file.

If this argument is not specified it generally defaults to the program name.

--debug

If this argument is present available debug messages will be printed.

Program Operation


The operator enters a new command value. The command value may only be entered by using the keyboard. The command parameter is required to use the RSetK control type. Continuous adjust of the commanded value, i.e. assignment to a knob or by using the inc/dec functions of Xcrt and friends is not supported by the program.

Entering a new value causes the tuning loop to wake up and begin to adjust the position. When the loop wakes up a countdown timer is started. The loop continues to tune until the countdown timer expires at which time the loop ceases tuning activity whether or not the error has been nulled out.

The program passes through the tuning loop once per second. Each time it passes through the loop the difference between the command position and the feedback input (dS) is calculated. When the values are within an acceptable range of the command position, tuning stops.

Configuration name usage


The configuration file uses the libmngr(3mngr) facility to connect internal parameters to the AccelNET database. The mappings for this program are given below.

Parameters needed by this program can be combined with parameters belonging to other programs. The "program name" field in the configuration file differentiates the entries.

POSmngr2 uses "POSmngr2" as the program name when searching the file.

Groups are not presently supported, everything should be under group 1.

comm1 - required

The commanded position.

The control key should be set to RSetK.

This parameter should be owned by whatever task POSmngr2 registers as and the permissions set for indirect update by users and unconditional update for the owner.

read1 - required

The read back position.

Ownership and control keys for this parameter do not matter to this program. They should be set as appropriate for the I/O subsytem providing this information.

ctl1 - required

The hardware control used to move the device.

Usually this parameter has a mom, mom2, or mom3 control key.

This parameter should be writable by whatever task POSmngr2 registers as and owned as appropriate.

resp1

a database parameter used to indicate position tuning is in progress.

0.0 - nop
1.0 - tune
2.0 - not_used
3.0 - error

Usually this parameter is named TuneSR in the AccelNET database.

This parameter should be owned by whatever task POSmngr2 registers as and the permissions set for direct update for the owner.

int0 - optional

timeout value

If this parameter is not present the value defaults to approximately 120 seconds.

Notes

See Also

libmngr(3mngr)

Manual page revision

$Id: POSmngr2.8,v 1.2 2009/08/12 20:12:08 arloth Exp $


Table of Contents