Delta Electronics PCI-DMC-B01 Computer Hardware User Manual


 
Chapter 3 Operating Principles | PCI-DMC-A01 / PCI-DMC-B01
3-68 Revised March, 2012
2) When setting the ASD-DMC-RM32MN module initialization parameters, you must
execute the following procedure:
rt = _DMC_01_set_rm_input_filter(gDMCCardNo, gpNodeID[gNodeNum], 0, port,
filter);
// The port variable can be set to the 2 ports on the remote module. A value of 0
corresponds to Port 0 on the module. A value of 1 corresponds to Port 1. The filter
variable sets the level of the software filter. A value of 0 means software filter time is
1 ms; a value of 1 means filter time becomes 2 ms, and so on.
rt = _DMC_01_set_rm_input_filter_enable(gDMCCardNo, gpNodeID[gNodeNum], 0,
port, filter_enable);
// The filter_enable variable has range of 0~0xFFFF. It is used to control the
software filter mask for bit 0 to bit 15 on the Port.
3) To set the ASD-DMC-RM32NT module initialization parameters, you can execute
the following procedure:
rt = _DMC_01_get_rm_output_value(gDMCCardNo, gpNTNode[gNTNodeNum], 0,
port, &value);
// The value variable shows the number of signals that the RM32NT module is
outputting on that port.
4) Get slave device type
To get the type of this slave device, you must execute the following procedure:
rt = _DMC_01_get_devicetype(gDMCCardNo, NodeID, SlotID, &DeviceType,
&IdentityObject);
For a detailed description of this function, please refer to the section on “Slave
Information API”.
5) Digital Input (DI) and Digital Output (DO) operation
When you wish to perform DO operations, you must use the ASD-DMC-RM32NT
module and execute the following procedure:
/* Set the value of DO Port 0 */
rt = _DMC_01_set_rm_output_value(gDMCCardNo, NodeID, SlotID, 0,
output_value[0]);
// The Output_value[0] variable will store the value to be output for bit 0 to bit 15 of
Port 0
/* Set the value of DO Port 1 */
rt = _DMC_01_set_rm_output_value(gDMCCardNo, NodeID, SlotID, 1,
output_value[1]);