86
•
Motion Library
_8136_M_Set_Feedback
When users are using absolute position control motion functions,
PCI-8136M will read current position counter value for calculating
next position. If users don't connect any feedback device, they can
use this function to disable external feedback. Then the absolute
function will be valid. There are only first three axes supports these
functions. The other three axes must connect feedback device if
they are using absolute position motion functions.
@ Syntax
C/C++ (DOS, Windows 95/98/NT/2000)
I16 _8136_M_Switch_Logic(I16 CardNo,I16 Home_Logic, I16
EL_Logic, I16 ALM_Logic)
I16 _8136_M_Set_IO_Active(I16 CardNo, I16 AxisNo, I16 Control)
I16 _8136_M_Set_System_Param(I16 CardNo, I16 Speed, I16
CycleTime)
I16 _8136_A_Set_Source(I16 CardNo,I16 Channel,I16 Source)
I16 _8136_M_Set_Feedback(I16 CardNo, I16 AxisNo, I16
FBControl)
Visual Basic 5.0 or higher
B_8136_M_Switch_Logic (ByVal CardNo As Integer,ByVal
Home_Logic As Integer,ByVal EL_Logic As Integer, ByVal
ALM_Logic As Integer) As Integer
B_8136_M_Set_IO_Active(ByVal CardNo As Integer, ByVal
AxisNo As Integer, ByVal Control As Integer) As Integer
B_8136_M_Set_System_Param(ByVal CardNo As Integer, ByVal
Speed As Integer, ByVal CycleTime As Integer) As Integer
B_8136_A_Set_Source(ByVal CardNo As Integer, ByVal Channel
As Integer, ByVal Source As Integer)
B_8136_M_Set_Feedback(ByVal CardNo As Integer, ByVal
AxisNo As Integer, ByVal FBControl As Integer) As Integer
@ Argument
CardNo: card number designated to set (Range 0 ~ 3)
AxisNo: axis number designated to set (Range 0~5)
Source: select DAC source, 0 is from DAC buffer and 1 is from
motion command
Home_Logic: 0 is for active low and 1 is for active high
EL_Logic: 0 is for active low and 1 is for active high
ALM_Logic: 0 is for active low and 1 is for active high
Control: 0 is for general purpose and 1 is for motion axis
FBControl: only for axis0 to 2, 0 means disable feedback device
and 1 means enable feedback device
Speed: select motion axis maximum speed
0 = 32k
1 = 64k