MValid MAX_BELLCOUNT_DAY (1) the As Byte
MHour (MAX_BELLCOUNT_DAY - 1) As Byte
MMinute (MAX_BELLCOUNT_DAY - 1) As Byte
24 byte End Type '
Dim mlngBellInfo (DataLen/4 to 1) As Long
Dim mBellCount As Long
Dim mBellInfo As BELLINFO
VRet=frmMain. FP_CLOCK1. GetBellTime (mMachineNumber mBellCount, mlngBellInfo (0))
If vRet=True Then
CopyMemory mBellInfo, mlngBellInfo (0), DataLen
ShowValue
LblMessage. Caption="Success!"
The Else
FrmMain. FP_CLOCK1. GetLastError vErrorCode
LblMessage. Caption=ErrorPrint (vErrorCode)
End the If
Private Sub ShowValue ()
Dim As Long I
For I=0 To MAX_BELLCOUNT_DAY - 1
TxtHour (I). The Text=mBellInfo. MHour (I)
TxtMinute (I). The Text=mBellInfo. MMinute (I)
If mBellInfo. MValid (I) & gt; 1 Then mBellInfo. MValid (I)=0
ChkValid (I) Value=https://bbs.csdn.net/topics/mBellInfo.mValid (I)
Next I
TxtBellCount. Text=mBellCount
End Sub
CodePudding user response:
You can refer to the following linkhttp://bbs.csdn.net/topics/360161225
CodePudding user response:
I like http://bbs.csdn.net/topics/360161225 is, equipment are the sameCodePudding user response:
Define a blob of 24 bytes, ref,CodePudding user response:
I also tried, blob array also didn't succeedCodePudding user response: