1)先設定開關內容
2)傳送字串給傳感器,類似下方指令
(**********  Sending Frame **************)
    send_control_data[0]:=1;
    send_control_data[2]:=8 ;
    G_OUTPUT(TRUE, nModule_Add_C24, send_control_data, send_frame[0], send_result);
3)接收傳感器回來的內容,用下方指令
    recv_control_data[0]:=1;
    recv_control_data[3]:=20;
    G_INPUT(TRUE, nModule_Add_C24, recv_control_data, recv_frame[0], recv_result);
4)分析收到的內容,即可得到你要的資料