
Operation Theorem
•
55
♦
Relative Function:
_8132_v_change(), _8132_fix_max_speed(): Refer to section 6.5
4.7 Position Comparison
The position comparison function is fulfilled by the FPGA comparator on
board. Please refer to the following figure. The comparator is applied to
compare the preset comparison data with the contents of its counter under
different modes. These comparison modes consist of different logical
comparison ( >/=/< ) of different counters ( 1 and/or 2 ).
5023
ASIC
Comparator
Counter 1/2
3
2
1
2
3
1
_8132_Set_CompHome
_8132_Set_CompCnt
_8132_Get_CompCnt
_8132_Set_CompMode
_8132_Set_CompInt
_8132_Set_CompData
_8132_Get_CompData
_8132_Get_CompSts
Counter Source EA or EB
4
4
Motion Command of 5023
To make use of position comparison function the following guidelines will
be of much help.
1.
Decides the comparison mode
: Use_
8132_
Set_CompMode function
and consider the counter source and the comparison conditions .
2.
Sets the counter initial value
: There are two ways to set the counter
Directly use _
8132_
Set_CompCnt function to set its value
Use _
8132
_Set_CompHome to set its value to 0 automatically after
homing
3.
Enables the interrupt function
: Use _
8132_
Set_CompInt function
4.
Sets up the desired comparison data
: Use _
8132_
Set_CompData
function.
5.
Gets the status of the comparator :
Use _
8132_G
et_CompSts
6.
Sending motion commands
:After setting up the comparator users can
send other moiton control functions eg. start_a_move ,or v_move etc .
The comparator will fulfill the comparison function without interfering the
CPU.
Содержание PCI-8132
Страница 1: ...PCI 8132 2 Axes Servo Stepper Motion Control Card User s Guide ...
Страница 2: ......