Add internal datapoint to driver

Find and share HowTos to various installations / configurations!
3 posts • Page 1 of 1
ange.ogawin
Posts:18
Joined: Thu Mar 14, 2019 10:51 am

Add internal datapoint to driver

Post by ange.ogawin »

Hi,
I have created a driver for WinCC0A and i want to use internal datapoints. I have already created the internal datapoints
in Para module following the example of SampleDriver.I initialized the values. I was also inspired by SampleDriver for implementing the functions of DrvIntDp(getDpName4Query,answer4DpId,hotLink2Internal)
I have carefully defined the variables maxConnect(number of DPE i will connect to) and maxDp(the total number of DPE).
But i have the following error:
(see attachement)

I discovered that the error comes from this line in the MyDrvRessources.cxx -> isReadyToConnect() -> if(idp_.getState() == DrvIntDp::Ready)
Indeed, DrvIntDp::Ready =FALSE at least one time during execution.

Any suggestions to fix it?

Thanks.
Attachments
internaldp_notworking.png

leoknipp
Posts:2928
Joined: Tue Aug 24, 2010 7:28 pm

Re: Add internal datapoint to driver

Post by leoknipp »

If you want to implement an own driver based on the API toolkit we suggest to attend a WinCC OA API training. During the training you learn how to create a driver and how to handle internal datapoints and data send to/received from a device.
If you are interested in a training please get in contact with your common WinCC OA support.

Best Regards
Leopold Knipp
Senior Support Specialist

ange.ogawin
Posts:18
Joined: Thu Mar 14, 2019 10:51 am

Re: Add internal datapoint to driver

Post by ange.ogawin »

Thanks you for the answer.

3 posts • Page 1 of 1