B8961 and B8962 User Manual
82
[ Joy s t i ck ]
Main Pro gra m , X=Axis 1,Y=Axis 2
GS[Get Speeds]
Call a routine that scales the analog input vo l t age
to X and Y speeds
MC+,+ AC . 2 , . 2
E n able continuous mode, set accelera t i o n s
V E ( V X ) , ( V Y )
Set speeds for X and Y axis
G O
S t a rt motion
G T [ Joy s t i ck]
When the axes re a ch constant speed, ru n
[ Joy stick] and update the velocity based on the
c u rrent analog input vo l t age .
[Get Speeds]
C o nve rts two analog inputs to X and Y speeds
R e t u rns va ri ables (VX) and (VY), the X and Y
ve l o c i t i e s
( D e a d b a n d ) = . 1 5
Set desired zero speed deadband of joy s t i ck
(Neg Deadband)=-.15
(Max RPS)=5
Set desired full deflection speed
(Scale)=(Max RPS)/28137
Scale factor based on Max RPS
( O ffset X)=47685
X axis offset for analog in
( O ffset Y)=50990
Y axis offset for analog in
( V X ) = ( A I 9 ) - ( O ffset X)
C o nve rt the analog input to a speed for X and Y
( V X ) = ( V X ) * ( S c a l e )
( V Y ) = ( A I 1 0 ) - ( O ffset Y )
( V Y ) = ( V Y ) * ( S c a l e )
IF(VX)<(Deadband)
If the speed is within the deadband, set the
speed to zero
IF(VX)>(Neg Deadband)
( V X ) = 0
E B
E B
IF(VY)<(Deadband)
If the speed is within the deadband, set the
speed to zero
IF(VY)>(Neg Deadband)
( V Y ) = 0
E B
E B
EP
R e t u rn to {Joy Stick} and update the speeds of
X and Y.
Содержание B8961
Страница 111: ...109 Chapter 7 Programming with Serial Communication...
Страница 132: ...B8961 and B8962 User Manual 130...
Страница 136: ...B8961 and B8962 User Manual 134 B8961 and B8962 Hardware Connections...
Страница 137: ...135 Chapter 8 Hardware Reference B8961 and B8962 Input and Output Schematics...
Страница 138: ...B8961 and B8962 User Manual 136 Connecting IDC Limit Switches to the B8961 2...
Страница 156: ...B8961 and B8962 User Manual 154...