0

I would like to set the Check-In state and the Check-Out state in an SCR100 access control device, to analyze the logs more easily. First I need to enable customized state values. But when I use this function, I get -2001 error, which says: Return Fail to execute command. Here is my code:

  If app.AxCZKEM1.EnableCustomizeAttState(iMachineNumber, 0, 1) = True Then
    operationSucced = app.AxCZKEM1.RefreshData(iMachineNumber) 'the data in the device should be refreshed
    MsgBox("Check-In state written")
  Else
    app.AxCZKEM1.GetLastError(idwErrorCode)
    MsgBox("Operation failed,ErrorCode=" +str(idwErrorCode))
  End If

The SDK manual says:

This function is a customization function. To use this function, the extension function must be enabled for the machine and the machine must support the attendance status definition function.

But I didn't find any description about the mentioned extension function. I had a software which used these states, so I know that the device supports changing the states. Did anyone successfully changed these states?

arnoldino
  • 1,969
  • 2
  • 13
  • 15

0 Answers0