HCBBS Forum (English)
Submit Chemical Projects / Find Solutions
Amplify Your Requirements on a Broader Chemical Platform *Engineering · Technology · Equipment · Solutions*
Submit Request

I need help with two VB code segments in WinCC, related to valves.

2015-11-21View Original

Thread Content

This is “left-click of the mouse”, VB code implemented in the valve. Sub ACTX005FHBDPU1_OnLButtonDown(ByVal Item, ByVal Flags, ByVal x, ByVal y) ButtonDynamic_PressLeft(Item) End Sub This is a piece of VB code for providing feedback when a valve is opened. Sub OPNFB_OnPropertyChanged(ByVal Item, ByVal value) VLV_Dynamic(Item) End Sub
Reply #22015-11-22
Are there any experts who understand this? Tell me about it!
Reply #32015-11-22
ButtonDynamic_PressLeft and VLV_Dynamic don’t seem to be system functions; they resemble custom functions rather. Take a look to see if it’s a function written by the programmer themselves.
Reply #42015-11-22
This post was last edited by summeredge on 2015-11-22 at 20:03. I’m not familiar with WINCC, so I’m just guessing. These two lines call the function functions ButtonDynamic_PressLeft and VLV_Dynamic. As for the specific functions of these two functions, one needs to look at their actual code; it’s impossible to determine anything just by looking at these two lines. It seems like they are custom functions

Submit a Project

**Looking for Chemical Technology, Equipment & Solutions?** No Registration Required Broader Platform Exposure | Global Chemical Service Provider Connections

Submit Request — Free Consultation

Disclaimer

This is an automated machine translation of the original thread. Some technical terms may have inaccuracies; the original text shall prevail. Click "View Original" at the top right to access the source page, which supports IP-based automatic real-time language translation. Please watch out for contact details and sales inducements to prevent fraud. All content and translations are for reference only, representing solely the poster's personal views. For enquiries, email service@hcbbs.com.