I am trying to read the machine position through DNC how can this be done? I am using a Fanuc 0i controller and I want to get the machine position before I start to load the program. Some one told me to send a this line to the controller 'DPRNT[#5001[43]]' but it doesn't seem to work...
Thanks
Miron
Didn't find your answer? Ask the community — no account required.
P
paul
I suspect you're experiencing this problem because you are attempting to "DPRNT" back through the same port which received the "DPRNT" command. Don't think that's possible.
B
brewertr
Miron,
To send data during program execution you need to;
A) Place the statement POPEN to open the port before the data you want to send B) Use DPRNT [message # etc.[44]] to send message C) Place statement PCLOS to close the port
You only need use POPEN and PCLOS once but DPRNT is not modal and has to be used on every line of code you want to print.
So using your example it would go like this, ; POPEN; DPRNT[#5001[43]]; PCLOS; ;
I don't know if you can do what you want, from a remote location send and receive at the same time in DNC mode. I have monitored machines remotely, had them send data to the remote locations and have used DNC but I don't remember doing it all in one shot. There are soooo many variables to consider and look at, your machine controller, options enabled on your controller, your Computer Hardware, Comm / DNC Software and the Cable.
Interesting question though,
Tom
snipped-for-privacy@gmail.com wrote:
M
Miron S
Thanks, I'll try it... I hope this works.
Mir> Miron,
Join the Discussion
Have something to add? Share your thoughts — no account required.
Didn't find your answer?
Ask the community — no account required
Report Content
You are reporting this content to the moderators. They will look at it
ASAP.