API C# on 3.17. How to Know ManagerNumber of OADriver

Find and share HowTos to various installations / configurations!
Search

Post Reply
2 posts • Page 1 of 1
Victor.Ermakov
Posts: 25
Joined: Fri Oct 20, 2017 8:50 am

API C# on 3.17. How to Know ManagerNumber of OADriver

Post by Victor.Ermakov »

How to Know ManagerNumber of OADriver

also I need to acces to ProcessValues and ProcessModel to read ConfigPoints of My Driver.

How to send OAValue to WriteSingleValue

How to receive OAValue with DriverWriteValue handler.
I created a blob DP with config _address. I setup the Manager number with Para to My DriverManagerNumber (as is on Console). After writng value to My DriverManager DataPoint from Para I see Log message:
WCCOAKASKAD_set4tm(30), 2020.11.06 16:48:08.249, PARAM,SEVERE, 11, Datatype conversion incorrect - incompatible datatypes, DP: (Type: 293 Sys: 101 Dp: 3448 El: 6 : _original.._value), MAN: (SYS: 101 Driver -num 30 CONN: 1), M.6.6.5
at the same time DriverManager not Receive a message from WinCCOA and this Code not running:

Driver.DriverWriteValue += (vcsender, vce) => {
Console.WriteLine("Set4TMDriverApp.DriverWriteValue{0}", string.Join(",", vce.Data.Select(v1=>v1.ToString())));
};
Last edited by Victor.Ermakov on Fri Nov 06, 2020 1:03 pm, edited 2 times in total.

gschijndel
Posts: 373
Joined: Tue Jan 15, 2019 3:12 pm

Re: API C# on 3.17. How to Know ManagerNumber of OADriver

Post by gschijndel »

To my knowledge the C# API does not officially support drivers.

But you could try reading 'Internal.OaDrvManager.ManagerNumber'.

Post Reply
2 posts • Page 1 of 1