EasyManuals Logo

Balluff MATRIX VISION mvBlueFOX Series User Manual

Balluff MATRIX VISION mvBlueFOX Series
238 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #160 background imageLoading...
Page #160 background image
152
Note
You can check, if the camera has a motorized lens mount at all via "motorFocusControl.motor-
FocusIncrement.valid == false".
Afterwards, you can
"write()" (integer) / "writeS()" (string) and
"read()" (integer) / "readS()" (string) the properties or
"call()" the methods like
// setting the increment value to 100
motorFocusControl.motorFocusIncrement.write(100);
or
// moving the motor focus backwards by motorFocusIncrement
int status = motorFocusControl.motorFocusFar.call();
//getting the current position of the motor
int position = motorFocusControl.motorFocusAbsolutePositionCurrent.read();
Note
The call functions can be back while the motor is still moving. For this reason, it is necessary to create a
method which will check if the motor still moves.
To get information from the motor you can use "motorFocusSend". The following example shows how you can get
status and position of the motor. Furthermore, it shows how you can check, if the motor is still running:
...
int motorRunning = 0x4;
motorFocusControl.motorFocusSendBuffer.writeS("<10>");
motorFocusControl.motorFocusSend.call();
String s = motorFocusControl.motorFocusReceiveBuffer.readS();
if(s.Length != 29) return false;
// string is in hex
int status = Convert.ToInt32(s.Substring(4, 6), 16);
String positionStr = s.Substring(11, 8);
// the position as integer
int pos = Convert.ToInt32(positionStr, 16);
return (status & motorRunning) == motorRunning;
...
Sending the command "<10>" will return the status and position with following format:
<10 SSSSSS PPPPPPPP EEEEEEEE>
SSSSSS is the motor status (6-digit hex format, 24 bit unsigned integer),
PPPPPPPP is the absolute position in encoder counts (8-digit hex format, 32-bit signed integer) and
EEEEEEEE is the position error in encoder counts (8-digit hex format, 32-bit signed integer)
"Motor status values"
MATRIX VISION GmbH

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Balluff MATRIX VISION mvBlueFOX Series and is the answer not in the manual?

Balluff MATRIX VISION mvBlueFOX Series Specifications

General IconGeneral
BrandBalluff
ModelMATRIX VISION mvBlueFOX Series
CategoryDigital Camera
LanguageEnglish

Related product manuals