Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
nc functions
#1
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?
Reply
#2
This would not be possible. The NC functions are VBA controls that can only be used in the PHMI application.

(07-13-2010, 01:30 PM)JohnNemt Wrote: 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?
Reply
#3
Tankyou.
Reply
#4
(07-13-2010, 01:30 PM)JohnNemt Wrote: 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?

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)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)