1.33 1.32 1.31 1.30 1.29 1.28 1.20 Korean English Chinese Czech Dutch French German Hungarian Italian Japanese Polish Portuguese Spanish
1.33 1.32 1.31 1.30 1.29 1.28 1.20 Korean English Chinese Czech Dutch French German Hungarian Italian Japanese Polish Portuguese Spanish

CDRFLEx.query_modbus_data_list

Features

This function query all currently registered Modbus data (TCP / RTU) information.

Parameter

None

Return

Value

Description

struct.MODBUS_DATA_LIST

Refer to definition of structure

Example

LPMODBUS_DATA_LIST tParam = Drfl.query_modbus_data_list(); 
for (int i = 0; i < tParam->_nCount; i++) { 
    if (tParam->_tRegister[i]._iType == 0) // TCP : 0 
    { 
        cout << tParam->_tRegister[i]._tData._tcp._iRegValue << endl; 
    } 
    else { // RTU : 1 
        cout << tParam->_tRegister[i]._tData._rtu._iRegValue << endl; 
    } 
}