User`s guide
Motion Libra • 77
5.8 Pulse I/O
@ Name
_8136_P_Set_Output_Type - Set pulse output mode
_8136_P_Set_Input_Type - Set pulse input mode
_8136_P_Read - Read encoder counter
_8136_P_Clear - Clear encoder counter
_8136_P_Send - Send a constant pulse train
_8136_P_Stop - Stop pulse train
_8136_P_Change_Speed - Change pulse train frequency
_8136_P_Read_Index - Read index value
_8136_P_Set_Index_Latch - Set index latch type
_8136_P_Read_Latch_Value - Read a latched encoder data
_8136_P_Set_Compare_Value - Set a encoder compare data
@ Description
_8136_P_Set_Output_Type:
There are 3 pulse output types in PCI-8136. This function is for
configuring pulse output type by a value. Write a value 0 is for
pulse/direction type. Write a value 1 is for CW/CCW type. Write a
value 2 is for A/B phase type.
_8136_P_Set_Input_Type
There are 3 encoder counter input types in PCI-8136. This
function is for configuring encoder counter input type. Write a value
0 is for A/B phase type. Write a value 1 is for CW/CCW type. Write
a value 2 is for pulse/direction type. When setting A/B phase type,
user must assign the multiplier value by this function.
_8136_P_Read
This function is for reading the 32-bits encoder counter value
immediately. There are six encoder counters in one card. Assign
the channel value 0~5 to read the encoder counter individually.
There are three internal counters for receiving pulse output
command. When pulse output channel 0~2 is working, their output
value will send to both CN1 and internal feedback counter. These
three command feedback counters are at channel 6~8. If the
channel parameter of this function is assigned as the above three
channels, it will read the command value at the same time.