Sharp RZ-X750 (serv.man6) Service Manual ▷ View online
MSR(Magnetic Stripe Reader)
31
SHARP
Example
[Visual Basic]
Private WithEvents oMSR As OPOSMSR
Set oMSR = New OPOSMSR
// Open
RetVal = oMSR.Open("DefaultMsr")
// Claim
RetVal = oMSR.ClaimDevice(50)
// Enable
oMSR.DeviceEnabled = True
// DataEvent Enable
oMSR.DataEventEnabled = True
// ParseDecodeData
oMSR.ParseDecodeData = True
// DataEvent
// Private Sub oMsr_DataEvent(ByVal newVal As Long)
MsrTrack1 = oMSR.Track1Data
MsrTrack2 = oMSR.Track2Data
MsrTrack3 = oMSR.Track3Data
oMsr.DataEventEnabled = True
End Sub
// if oMSR.ParseDecodeData = True
AccountNumberText = oMSR.AccountNumber
SurNameText = oMSR.Surname
FirstNameText = oMSR.FirstName
ExpirationDateText = oMSR.ExpirationDate
// Disable
oMSR.ParseDecodeData = False
MSR(Magnetic Stripe Reader)
32
SHARP
oMSR.DeviceEnabled = False
// Release
RetVal = oMSR.ReleaseDevice
// Close
RetVal = oMSR.Close
Appendix
33
SHARP
Scanner(Barcode Reader)
The Scanner Control’s OLE programmatic ID is “OPOS.Scanner”.
Supported devices :
Device
SO Name
Supported Hardware Device
Scanner
SerialScanso.dll
RS-232C I/F Scanner
Property
Common
Type
Mutability
Version
May Use After
AutoDisable
Boolean
read-write
1.2
Not Supported SO
CapPowerReporting
Int32
read-only
1.3
Open
Claimed
Boolean
read-only
1.0
Open
DataCount
Int32
read-only
1.2
Not Supported SO
DataEventEnabled
Boolean
read-write
1.0
Open
DeviceEnabled
Boolean
read-write
1.0
Open
FreezeEvents
Boolean
read-write
1.0
Not Supported SO
OutputID
Int32
read-only
1.0
Not Supported SO
PowerNotify
Int32
read-write
1.3
Open
PowerState
Int32
read-only
1.3
Open
State
Int32
read-only
1.0
-
Specific
Type
Mutability
Version
May Use After
DecodeData
Boolean
read-write
1.12
Open
ScanData
Binary
read-only
1.12
Open
ScanDataType
Int32
read-only
1.0
Not Supported SO
Appendix
34
SHARP
Methods
Common
Type
Version
May Use After
Open
Void
1.0
-
Close
Void
1.0
Open
Claim, ClaimDevice
Void
1.0
Open
Release, ReleaseDevice
Void
1.0
Open, Claim
Click on the first or last page to see other RZ-X750 (serv.man6) service manuals if exist.