Moxa DA-683-SP-W7E Руководство по программной части (Windows) онлайн [24/50] 170781

Moxa DA-683-SP-W7E Руководство по программной части (Windows) онлайн [24/50] 170781
DA-683 XPE User's Manual Software Configuration
You can configure this COM port from the drop-down lists, and then click OK to finish.
You can also use program code to set the operation mode. The example “UartMode” is under
\examples\DA-683-XPE\C++\ of Software DVD.
The code snippet is as follows:
*
port[n]: 3 ; Port 3
4 ; Port 4
....
mode[n]: 0 ; RS232
1 ; RS485-2W
2 ; RS422
3 ; RS485-4W
*/
#include "stdafx.h"
#include <windows.h>
#include "..\release\devices.h"
char mode_array[][20]={"RS232", "RS485-2W", "RS422","RS485-4W"};
int _tmain(int argc, _TCHAR* argv[])
{
2-15

Содержание

Похожие устройства

Скачать