Chapter 30 4-Channel Analog Input Remote I/O Module API | PCI-DMC-A01 / PCI-DMC-B01
30-2 Revised March, 2012
30.1 _DMC_01_set_04ad_input_range
FORMAT
I16 _DMC_01_set_04ad_input_range (U16 CardNo, U16 NodeID, U16 SlotID, U16 channelno,
U16 range)
Purpose
Sets the AD input 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~12
SlotID U16 Number Unit 0
ChannelNo U16 Number Unit Channel ID is between 0~3
Range U16 Number Unit
Input value is 0 ~ 3
Number Definition
0 Input range: -10V~10V
1 Input range: 0V~10V
2 Input range: -5V~5V
3 Input range: 0V~5V
Example
U16 CardNo = 0;
U16 NodeID = 1;
U16 SlotID = 0;
U16 channelno = 0;
U16 range = 1; //Select Range -10 ~ 10V
I16 status = _DMC_01_set_04ad_input_range (CardNo, NodeID, SlotID, channelno, range);