Delta Electronics PCI-DMC-A01 Computer Hardware User Manual


 
Chapter 29 4-Channel Analog Output Remote I/O Module API | PCI-DMC-A01 / PCI-DMC-B01
Revised March, 2012 29-5
29.4 _DMC_01_rm_04da_set_output_range
FORMAT
I16 PASCAL _DMC_01_rm_04da_set_output_range (U16 CardNo, U16 NodeID, U16 SlotID,
U16 ChannelNo, U16 Range)
Purpose
Sets the DA output range.
Parameters
Name Data Type Unit Description
CardNo U16 Number Unit CardNo is between 0~15
NodeID U16 Number Unit Node ID is between 0~63
SlotID U16 Number Unit 0
ChannelNo U16 Number Unit Channel ID is between 0~3
Range U16 Number Unit
Gain is 0 ~ 7
Number Definition
0 Output range: 0-5V (default)
1 Output range: 0-10V
2 Output range: ±5V
3 Output range: ±10V
5 Output range: 4-20mA
6 Output range: 0-20mA
7 Output range: 0-24mA
Example
U16 CardNo = 0;
U16 NodeID = 1;
U16 SlotID = 0;
U16 ChannelNo = 2;
U16 Range = 3; //Select mode 3
I16 status = _DMC_01_rm_04da_set_output_range (CardNo, NodeID, SlotID, ChannelNo,
range);