We want to control with C# the RSLinx DTL32.dll.
I have problems with the DTL_READ_W and DTL_READ_W functions of the RSlinx software (DTL32.dll).
The error messages receive is DTL_E_BADID, Define ID out of range.
I think I made an error in the definition of the function parameters in C#.
Please can somebody look at the attached code and the output window and give us some tips.
Maybe somebody has an C# example.
Thank you , Best regards
Volker
Output Window:
RSLinx 2.43.22.0
Library : dtl32 2.43.22.0 Wed Sep 29 11:47:56 2004
Status from DTL Init: 0
DTL_Error_S message from DTL_INIT(): DTL_I_SUCCESS, Operation Successful
DTL_Error_S message from DTL_DRIVER_OPEN: DTL_I_SUCCESS, Operation Successful
Name_id of define: ☺
DTL_Error_S message from DTL_C_DEFINE: DTL_I_SUCCESS, Operation Successful
Name_id of DTL_READ_CB:
DTL_Error_S message from DTL_READ_CB: DTL_E_BADID, Define ID out of range
Name_id of Read_W:
DTL_Error_S message from DTL_READ_W: DTL_E_BADID, Define ID out of range
I have problems with the DTL_READ_W and DTL_READ_W functions of the RSlinx software (DTL32.dll).
The error messages receive is DTL_E_BADID, Define ID out of range.
I think I made an error in the definition of the function parameters in C#.
Please can somebody look at the attached code and the output window and give us some tips.
Maybe somebody has an C# example.
Thank you , Best regards
Volker
Output Window:
RSLinx 2.43.22.0
Library : dtl32 2.43.22.0 Wed Sep 29 11:47:56 2004
Status from DTL Init: 0
DTL_Error_S message from DTL_INIT(): DTL_I_SUCCESS, Operation Successful
DTL_Error_S message from DTL_DRIVER_OPEN: DTL_I_SUCCESS, Operation Successful
Name_id of define: ☺
DTL_Error_S message from DTL_C_DEFINE: DTL_I_SUCCESS, Operation Successful
Name_id of DTL_READ_CB:
DTL_Error_S message from DTL_READ_CB: DTL_E_BADID, Define ID out of range
Name_id of Read_W:
DTL_Error_S message from DTL_READ_W: DTL_E_BADID, Define ID out of range