Protech Systems PA-6822 User Manual page 73

Table of Contents

Advertisement

-MSR API
OpenMSR
Open the MSR Port.
Purpose
Set Msr Baud Rate; MJR243R baud rate default is 19200;
Value
True (1) on success, False (0) on failure
Return
CloseMSR
Close the MSR Port.
Purpose
True (1) on success, False (0) on failure False (0)
Return
SendCommand
Send Command to MSR.
Purpose
Msr Command Code.
Value
True (1) on success, False (0) on failure False (0)
Return
Msr – Send Command to Msr
Example
//Initialize a VFD class instance
Msr
Msrcontrol
Msrcontrol.
byte[] data =
data[0] = 0x0C;
Msrcontrol.SendCommand(data);
PA-6822 SERIES USER MANUAL
Public Boolean OpenMSR (int BaudRate)
Public Boolean CloseMSR( );
Public Boolean SendCommand
=
Msr ();
new
OpenMSR(19200);
new
byte[1];
Chapter 3 Software
(byte[] data
);
Page 72

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents