TANGO
Device Server



AdcMotor
Device Attributes Description

AdcMotor Class

Revision: AdcMotor-Release_1_4_0 - Author: bourtemb

Scalar Attributes
Attribute name
Data Type
R/W Type
Expert
Position: if Trust = Motor, this attribute returns the position read on the motor counter (=Motor_position) if Trust = Sensor, this attribute returns the position read via the Adc (=Sensor_position)
DEV_DOUBLE
READ_WRITE
No
Open_pos: Open position. The state will be Tango::OPEN when the motor will be at that position.
DEV_DOUBLE
READ_WRITE
Yes
Close_pos: close position. The state will be Tango::CLOSE when the motor will be at that position.
DEV_DOUBLE
READ_WRITE
Yes
Tolerance: Tolerance on the position measured leading to a Tango::ALARM state. This tolerance is also used to determine if we are in Tango::OPEN or Tango::CLOSE states. |Open_pos - Position| <= Tolerance => device in Tango::OPEN state |Close_pos - Position| <= Tolerance => device in Tango::CLOSE state |Wanted_pos - Position| <= Tolerance => device in Tango::ON state |Wanted_pos - Position| > Tolerance => device in Tango::ALARM state and if nbretries > 0 the server will try to move to the wanted position again.
DEV_DOUBLE
READ_WRITE
Yes
Sensor_position: Position read via the potentiometer. If VSensor_adc_name property is not defined, this attribute will return directly the value read on the Value attribute of the Adc_name device. if VSensor_adc_name property is defined, this attribute returns the adc_pos value calculated as follow: adc_pos = (posmax - poszero) * adc_val / VSensor + poszero where adc_val is the value of the Value attribute of the Adc_name device and VSensor is the valur of the VSensor attribute. posmin and poszero are device properties.
DEV_DOUBLE
READ
No
Motor_position: Position read on the motor counter (Position attribute of the Motor_name device)
DEV_DOUBLE
READ
No
Trust: MOTOR -> trust on motor counter => Position=Motor_position SENSOR -> trust on adc read value => Position=Sensor_position
DEV_STRING
READ_WRITE
Yes
VSensor: This is the voltage given to the potentiometer used to read the position. This value is used in the calcul of the Sensor_position. If VSensor_adc_name is not defined, this attribute will always be invalid.
DEV_DOUBLE
READ
Yes







TANGO is an open source project hosted by :
Sourceforge logo small
Core and Tools : CVS repository on tango-cs project
Device Servers : CVS repository on tango-ds project