EasyManuals Logo

pitsco tetrix prime User Manual

pitsco tetrix prime
146 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 #141 background imageLoading...
Page #141 background image
Description Function Coding Example
Set Speed of a Servo Motor
Sets the speed of a servo motor
connected to a PULSE servo port 1-6.
The speed parameter can be 0 to 100%.
The servo motor channel parameter
can be any number 1 to 6. If not
specified, the speed of a servo defaults
to 100 (maximum speed). When a
servo speed has been set, it will always
move at the set speed until changed.
Unless we are changing speeds, it will
need to be called only once at the
beginning of a program.
setServoSpeed(servo#, speed);
Data Type:
servo# = integer
speed = integer
Data Range:
servo# = 1 to 6
speed = 0 to 100
setServoSpeed(1, 25);
Set the speed of servo channel 1 to 25%.
setServoSpeed(2, 50);
Set the speed of servo channel 2 to 50%.
Set Speeds of All Servo Motors
Sets the speeds of all six servo
channels simultaneously with a
single command. All six speeds are in
sequential order and can be 0 to 100%.
All six servo speeds may be the same
or different.
setServoSpeeds(speed1, speed2,
speed3, speed4, speed5, speed6);
Data Type:
speed1-speed6 = integer
Data Range:
speed1-speed6 = 0 to 100
setServoSpeeds(25, 25, 25, 25, 25, 25);
Set the speeds of all six servo channels
to 25%.
setServoSpeeds(25, 35, 45, 55, 65, 75);
Servo 1 speed = 25%
Servo 2 speed = 35%
Servo 3 speed = 45%
Servo 4 speed = 55%
Servo 5 speed = 65%
Servo 6 speed = 75%
Set Position of a Servo Motor
Sets the angular position of a servo
motor connected to a PULSE servo
motor port 1-6. The position parameter
can be any value between 0 and
180 degrees. Any value outside this
range is ignored. Not all servos are the
same, so be careful when operating
a servo motor at the extreme ranges.
Listen closely; if a servo is buzzing, it is
pressing against its mechanical stop,
which might damage the motor. If
this happens, limit the range to values
slightly greater than 0 and slightly less
than 180 to avoid damage to the servo
motor.
setServoPosition(servo#, position);
Data Type:
servo# = integer
position = integer
Data Range:
servo# = 1 to 6
position = 0 to 180
setServoPosition(1, 90);
Set the angular position of Servo Motor 1
to 90 degrees.
setServoPosition(2, 130);
Set the angular position of Servo Motor 2
to 130 degrees.
Set Positions of All Servo Motors
Sets the angular positions of all
six servo motors connected to the
PULSE servo motor ports 1-6. The
position parameter can be any value
between 0 and 180 degrees. Any value
outside this range is ignored. Not all
servos are the same, so be careful
when operating a servo motor at the
extreme ranges. Listen closely; if a
servo is buzzing, it is pressing against
its mechanical stop, which might
damage the motor. If this happens,
limit the range to values slightly
greater than 0 and slightly less than
180 to avoid damage to the servo
motor.
setServoPositions(position1,
position2, position3, position4,
position5, position6);
Data Type:
position1-position6 = integer
Data Range:
position1-position6 = 0 to 180
setServoPositions(90, 90, 90, 90, 90,
90);
Set the angular positions of all six servo
motors connected to PULSE servo ports
1-6 to 90 degrees.
setServoPositions(10, 20, 30, 40, 50,
60);
Set the angular positions of all six servo
motors connected to PULSE servo ports
1-6.
Servo 1 position = 10 degrees
Servo 2 position = 20 degrees
Servo 3 position = 30 degrees
Servo 4 position = 40 degrees
Servo 5 position = 50 degrees
Servo 6 position = 60 degrees
Appendix 139

Other manuals for pitsco tetrix prime

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the pitsco tetrix prime and is the answer not in the manual?

pitsco tetrix prime Specifications

General IconGeneral
Brandpitsco
Modeltetrix prime
CategoryRobotics
LanguageEnglish

Related product manuals