![Digi-Pas DWL5000XY Скачать руководство пользователя страница 20](http://html.mh-extra.com/html/digi-pas/dwl5000xy/dwl5000xy_installation-and-operation-manuallines_2496732020.webp)
Digi-Pas
®
© 2018 Digipas Technologies Inc. All Rights Reserved.
www.digipas.com
Page 15
DWL-5x000XY DATA SHEET
5.2.2. DWL5000XYLibrary.SerialComm.Mode
Description:
This function configures the mode selection or features.
Prototype:
public static void Mode (int mode, int data1, int data2, int
data3, int data4, int data5)
Arguments:
Mode The mode selection.
data1~data5 Parameters to pass to the selected mode.
Return Value:
None
Remarks:
This function configures following parameters:
BaudRate : 115200
Parity
: None
DataBits : 8
StopBits : One
FlowControl: None
Code Example:
Sensor Connection Status
: DWL5000XYLibrary.SerialComm.Mode(0x55, 0, 0, 0, 0, 0);
Single Axis Mode
: DWL5000XYLibrary.SerialComm.Mode(0x01, 0, 0, 0, 0, 0);
Dual Axis Mode
: DWL5000XYLibrary.SerialComm.Mode(0x02, 0, 0, 0, 0, 0);
Vibro Mode
: DWL5000XYLibrary.SerialComm.Mode(0x03, 0, 0, 0, 0, 0);
Read Alternate Zero (Single Axis)
: DWL5000XYLibrary.SerialComm.Mode(0x07, 0, 0, 0, 0, 0);
Set Alternate Zero (Single Axis)
: DWL5000XYLibrary.SerialComm.Mode(0x07, 0x3C, 0, 0, 0,
0);
Reset Alternate Zero (Single Axis) : DWL5000XYLibrary.SerialComm.Mode(0x07, 0x46, 0, 0, 0,
0);
Read Alternate Zero (Dual Axis)
: DWL5000XYLibrary.SerialComm.Mode(0x0A, 0, 0, 0, 0, 0);
Set Alternate Zero (Dual Axis)
: DWL5000XYLibrary.SerialComm.Mode(0x0A, 0x3C, 0, 0, 0,
0);
Reset Alternate Zero (Dual Axis)
: DWL5000XYLibrary.SerialComm.Mode(0x0A, 0x46, 0, 0, 0,
0);
5.2.3. DWL5000XYLibrary.SerialComm.Sensor_Connection_Status
Description:
This function checks the specific sensor module connection
status. This is applicable to control box only.
Prototype:
public static int Sensor_Connection_Status(int sensor_num
-
ber)
Arguments:
sensor_number The specific sensor module.
Return Value:
True - Sensor module is connected
False - Sensor module is not connected
Code Example:
DWL5000XYLibrary.SerialComm.Sensor_Connection_Status(1);