Control with C# the RSLinx DTL32.dll

Volker

Member
Join Date
Jan 2009
Location
Big Bay
Posts
1
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






 
Hi,

It's a long time since you asked your question and I am using a newer version of dtl, but the problem may that the name_id in the DTL_C_DEFINE is supposed to be an int.
 

Similar Topics

I have RSLinx 2.52 running on windows 2000, connected to a control logix through ethernet. I can see all devices in rack, and can access...
Replies
3
Views
1,948
Hi guys, i've got a question here. I actually i wasn't sure in which fourm post the question, but tlet's give it a try. I want to develop an...
Replies
4
Views
5,243
Hello, I have a new CLX, I powered it up downloaded the firmware, configured the I/O's, but I have two cards left a Enet and a DHRIO Anyone...
Replies
13
Views
4,835
Hi, I am trying to send a constant value to the PLC..input module using RSLinx OPC server, but the value is being set to 0 and then to user...
Replies
4
Views
4,652
I have RSLinx Professional 2.42 A 1756-ENBT module and a 1756-DHRIO, Control Logix L62. I have everything working so far. Is there anyway to...
Replies
6
Views
3,672
Back
Top Bottom