- Computers & electronics
- Computer components
- Interface components
- Digital & analog I/O modules
- ADLINK Technology
- PCI-8136M
- User's Guide
advertisement
![Pulse I/O. ADLINK Technology PCI-8136M | Manualzz Pulse I/O. ADLINK Technology PCI-8136M | Manualzz](http://s1.manualzz.com/store/data/001438114_1-e075bc2fb8e61a7cd0411c36ed8396e4-360x466.png)
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.
Motion Libra
• 77
_8136_P_Clear
This function is for clearing the encoder counter value to zero immediately.
_8136_P_Send
This function is for sending a fixed frequency pulse train of each channel. It will output a pre-configured pulse format which is set by
P_Set_Output_Type().
_8136_P_Stop
This function is for stopping the output pulse for each channel.
_8136_P_Change_Speed
This function is for changing the output pulse frequency on line.
_8136_P_Read_Index
There are 6 index signal input in one PCI-8136. This function is for checking the index status on or off. Each bit of this status value represents a index status.
_8136_P_Set_Index_Latch
The index signal is also a trigger source for latching the respective encoder counter value. There are two modes for this latch. Set 0 to be first trigger latch and set 1 to be last trigger latch. First trigger latch means only trigger once and last trigger latch means latch every time if index signal comes.
_8136_P_Read_Latch_Value:
Once the encoder counter is latched. Use this function can get the counter value at latched moment. It will not be clear until next index latched signal is coming.
_8136_P_Set_Compare_Value
There are 6 encoder counters in PCI-8136. Each encoder can set a compare value individually. This compare value is also a 32-bits value.
@ Syntax
C/C++ (DOS, Windows 95/98/NT/2000)
I16 _8136_P_Set_Output_Type(I16 CardNo, I16 ChannelNo, I16
PulseFmt);
I16 _8136_P_Set_Input_Type(I16 CardNo, I16 EncNo, I16
EncFmt, I16 Mul);
I16 _8136_P_Read(I16 CardNo, I16 EncNo, I32 *EncData );
I16 _8136_P_Send(I16 CardNo,I16 ChannelNo,F64 FrqL);
I16 _8136_P_Stop(I16 CardNo,I16 ChannelNo);
I16 _8136_P_Clear(I16 CardNo, I16 EncNo);
I16 _8136_P_Set_Compare_Value(I16 CardNo,I16 EncNo, I32
CompValue);
78
• Motion Library
I16 _8136_P_Read_Latch_Value(I16 CardNo, I16 EncNo, I32
*Value)
I16 _8136_P_Set_Index_Latch(I16 CardNo, I16 WhichIndex, I16
Type);
I16 _8136_P_Read_Index(I16 CardNo, I16 AxisNo, I16 *Index);
I16 _8136_P_Change_Speed(I16 CardNo,I16 AxisNo,F32 Frq);
Visual Basic 5.0 or higher
B_8136_P_Initial (ByVal CardNo As Integer) As Integer
B_8136_P_Set_Output_Type (ByVal CardNo As Integer, ByVal
AxisNo As Integer, ByVal PulseFmt As Integer) As Integer
B_8136_P_Set_Input_Type (ByVal CardNo As Integer, ByVal
EncNo As Integer, ByVal EncFmt As Integer, ByVal Mul As
Integer) As Integer
B_8136_P_Read (ByVal CardNo As Integer, ByVal EncNo As
Integer, EncData As Long) As Integer
B_8136_P_Send (ByVal CardNo As Integer, ByVal AxisNo As
Integer, ByVal FrqL As Double) As Integer
B_8136_P_Stop (ByVal CardNo As Integer, ByVal AxisNo As
Integer) As Integer
B_8136_P_Clear (ByVal CardNo As Integer, ByVal EncNo As
Integer) As Integer
B_8136_P_Set_Compare_Value (ByVal CardNo As Integer,
ByVal EncNo As Integer, ByVal CompValue As Long) As
Integer
B_8136_P_Read_Latch_Value(ByVal CardNo As Integer, ByVal
EncNo As Integer, Value As Long) As Integer
B_8136_P_Set_Index_Latch (ByVal CardNo As Integer, ByVal
WhichIndex As Integer, ByVal LatchType As Integer) As
Integer
B_8136_P_Read_Index (ByVal CardNo As Integer, ByVal AxisNo
As Integer, Index As Integer) As Integer
B_8136_P_Change_Speed (ByVal CardNo As Integer, ByVal
AxisNo As Integer, ByVal Frq As Single) As Integer
@ Argument
CardNo: card number designated to set (Range 0 ~ 3)
ChannelNo: channel number designated to set (Range 0 ~ 6)
EncNo: encoder channel number designated to set (Range 0 ~ 6)
PulseFmt: Output pulse format
0 = Pulse/Direction
1 = CW/CCW
2 = A/B Phase
EncFmt: Input pulse format:
0 = A/B Phase
1 = CW/CCW
2 = Pulse/Direction
Motion Libra
• 79
Mul: for A_B type's mutiplier
0 = 0X A_B Phase
1 = 1X A_B Phase
2 = 2X A_B Phase
3 = 4X A_B Phase
EncData: read back encoder data
FrqL: Pulse output frequency (Range 0~500k Hz)
CompValue: Encoder Compare Value
*Index: Index Status (0 or 1)
Type: two trigger latch mode: 0 for first trigger, 1 for last trigger
WhichIndex: select index no. (0~5)
Frq: Pulse output frequency for change (Range 0~500k Hz)
@ Return Code
ERR_RangeError
ERR_PCIBiosNotExist
ERR_NoError
80
• Motion Library
advertisement
Related manuals
advertisement
Table of contents
- 11 Functionality of PCI-8136M
- 12 Features
- 13 Specifications
- 13 Applicable Motors
- 13 Motion
- 13 Motion Interface I/O Signals
- 14 General I/Os
- 15 General Specifications
- 16 Software Supporting
- 16 Programming Library
- 18 What You Have
- 19 Outline Drawing
- 20 Hardware Installation
- 20 Hardware configuration
- 20 PCI slot selection
- 20 Installation Procedures
- 20 Trouble shooting
- 21 Software Installation
- 22 CN1 PIN ASSIGNMENTS: MAIN CONNECTOR
- 23 CN2 PIN ASSIGNMENTS: EXTERNAL POWER INPUT
- 24 CN3 PIN ASSIGNMENTS: DB25 CONNECTOR
- 24 CN4 PIN ASSIGNMENTS: DB9 CONNECTOR
- 26 Pulse output signals OUT and DIR
- 28 Voltage output signals DAC
- 30 Encoder feedback signals EA, EB and EZ
- 33 Analog Input
- 35 Origin signal ORG
- 36 End-Limit signals PEL and MEL
- 37 Emergency stop signal ESTOP
- 38 Servo on signal SVON
- 39 General purpose output P-RDY
- 39 VCC Pin
- 40 Open Loop and Closed Loop Connection
- 43 AD Conversion and Preloaded Trigger
- 43 Voltage Compare
- 44 DA Conversion
- 44 DA Output by Trigger Source
- 45 Local DIO
- 45 Digital Input
- 45 Digital Output
- 46 Pulse Input and Position Compare
- 46 Pulse Input
- 47 Position Counter Value Capture (Latch)
- 48 Position Compare
- 49 Pulse Output
- 51 Remote Serial IO
- 52 Introduction to DDA
- 53 Open-loop and close-loop control
- 53 Open-loop control
- 53 Close-loop control
- 54 Constant Velocity Motion
- 55 Trapezoidal Motion
- 57 S-Curve Profile Motion
- 59 2D Interpolation
- 62 3D Interpolation
- 63 Home Return Mode
- 64 Motion Parameters Setting
- 65 The Motion IO Interface
- 65 SERVO ON
- 65 Limit Switch Signal
- 65 Emergency stop signal (ESTOP)
- 67 Interrupt Control
- 71 List of Functions
- 73 Initialization
- 75 System Parameters
- 77 Card Information
- 78 Digital I/O
- 80 Remote I/O
- 82 Analog I/O
- 85 Pulse I/O
- 89 Interrupt Control
- 92 Close Loop Initialization
- 93 Motion Parameters
- 96 Motion Status
- 98 PTP Movement
- 100 2D Interpolation
- 102 3D Interpolation
- 104 Continuous Motion
- 105 Homing
- 106 Motion Function