JohnNemt Posted July 13, 2010 Share Posted July 13, 2010 I would like to make a stand alone app using vb.net. I would like to use the Nc functions describe in the “Nc Functions Manual” manual. However, I can not find a way to this. Is it possible? Link to comment Share on other sites More sharing options...
steve.milici Posted July 14, 2010 Share Posted July 14, 2010 This would not be possible. The NC functions are VBA controls that can only be used in the PHMI application. [quote='JohnNemt' pid='518' dateline='1279053032'] I would like to make a stand alone app using vb.net. I would like to use the Nc functions describe in the “Nc Functions Manual” manual. However, I can not find a way to this. Is it possible? [/quote] Link to comment Share on other sites More sharing options...
JohnNemt Posted July 14, 2010 Author Share Posted July 14, 2010 Tankyou. Link to comment Share on other sites More sharing options...
JeffLowe Posted July 21, 2010 Share Posted July 21, 2010 [quote='JohnNemt' pid='518' dateline='1279053032'] I would like to make a stand alone app using vb.net. I would like to use the Nc functions describe in the “Nc Functions Manual” manual. However, I can not find a way to this. Is it possible? [/quote] I have only needed to use a couple of calls to NC internals. Here are some VB6 code fragments that may help. ' declaring the interface for new PComServer and NC: Public pmac1 As New PCOMMSERVERLib.PmacDevice Public pmacNC As New PCOMMSERVERLib.pmacNC Public Const dwDevice As Long = 0 Public Sub init_PMAC pmac1.Open dwDevice, bSuccess ' i did not need an explicit call to open pmacNC ret Normal PcomServer calls are of the form: Call pmac1.GetResponseEx( dwDevice, strCommand, False, strTemp, lngStatus) NC calls are of the form: Call pmacNC.SetTypeToolOffset(control, coord, ToolNum, "R", NC_TOOLOFSTYPE_CUTTERCOMPENSATION, IsMetric, ReqConfirm, dblRadius, pbSuccess) Link to comment Share on other sites More sharing options...
Recommended Posts