Instruction Manual
运动控制功能原理介绍 177
PCI-8254 / PCI-8258
4.10.3.7 操作流程范例
以下部分将说明不同控制模式的操作流程供用户参考。
Mode Description
PWM mode a. VAO parameter table - APS_set_vao_param( )
0x00: set to 1 – PWM mode
0x01: set to 1 – command speed
0x10: set to 1000 – set fixed frequency to 1000 Hz
0x20: set to 3 – Axis0 and Axis1 are selected
b. “Velocity to Power” mapping lookup table -
APS_set_vao_table( )
Duty cycle range: 0 ~ 2000 units (Be equal to 0 ~ 100 %)
Points range: 1 ~ 32 points
c. Switch VAO table - APS_switch_vao_table( )
d. Enable VAO output channel - APS_start_vao( )
PWM frequency
mode with fixed
width
a. VAO parameter table - APS_set_vao_param( )
0x00: set to 2 – PWM frequency mode with fixed width
0x01: set to 1 – command speed
0x10: set to 1000 – set fixed pulse width to 1000 ns
0x20: set to 3 – Axis0 and Axis1 are selected
b. “Velocity to Power” mapping lookup table -
APS_set_vao_table( )
Frequency range: 1 ~ 25Mhz for PCI-8253/6
Points range: 1 ~ 32 points
c. Switch VAO table - APS_switch_vao_table( )
d. Enable VAO output channel - APS_start_vao( )
PWM frequency
mode with fixed
duty cycle
a. VAO parameter table - APS_set_vao_param( )
0x00: set to 3 – PWM frequency mode with fixed duty cycle
0x01: set to 1 – command speed
0x10: set to 200 – set fixed duty cycle to 10%. ( 200 * 0.05% )
0x20: set to 3 – Axis0 and Axis1 are selected
b. “Velocity to Power” mapping lookup table -
APS_set_vao_table( )
Frequency range: 1 ~ 25Mhz for PCI-8253/6
Points range: 1 ~ 32 points
c. Switch VAO table - APS_switch_vao_table( )
d. Enable VAO output channel - APS_start_vao( )
preliminary