Hi dears
I have problem with this faceplate .when I click on the faceplate for opening this error will suddenly popup(1st pic).after skipping the error the current mode can't be read .(2nd pic)
For solving this error we wrote below code in the cifixpicture\initialize:
Dim CurrentMode As String
Dim owner_read As String
Dim lngErrNumber As Long
Dim strErrDescription As String
Dim lngErrNumber1 As Long
Dim strErrDescription1 As String
'Requested Mode Initialisation
owner_read = "DVSYS.@MOD@/OWNER_ID.A_CV"
CurrentMode = frsreadvalue(owner_read, lngErrNumber, strErrDescription, False)
If lngErrNumber <> 0 Then
CurrentMode = frsreadvalue("DVSYS.@MOD@/MODE.A_CV", lngErrNumber1, strErrDescription1, False)
'handle error
'strCmdStatus has error message
End If
If CurrentMode = "(None)" Then
RequestedMode.CurrentValue = "MAN"
ElseIf CurrentMode = "Operator" Then
RequestedMode.CurrentValue = "AUTO"
Else
RequestedMode.CurrentValue = "CAS"
I know that the error initiate from the OWNER_ID.A_CV in the module .please recommend me to afford that .
1st2nd