Chapter 25 Remote Module Control API | PCI-DMC-A01 / PCI-DMC-B01
25-2 Revised March, 2012
25.1 _DMC_01_get_rm_input_value
FORMAT
I16 PASCAL _DMC_01_get_rm_input_value(U16 CardNo, U16 NodeID,U16 SlotID,
U16 port,U16 *value)
Purpose
Retrieves the value for bit 0 to bit 15 of the remote I/O module's input port.
Parameters
Name Data Type Unit Description
CardNo U16 Number Unit CardNo is between 0~15
NodeID U16 Number Unit Node ID
SlotID U16 Number Unit Slot ID
Port U16 Selection
0: Port 0
1: Port 1
2: Port 2
3: Port 3
Value U16* Number Received data
Example
U16 CardNo=0;
U16 NodeID=1;
U16 SlotID=0;
U16 Port=0;
U16 Value;
/* Data received by Port 0 of Remote digital input module */
I16 status = _DMC_01_get_rm_input_value(CardNo, NodeID, SlotID, Port, &Value);