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.] 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,
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,
Polytechforum.com is a website by engineers for engineers. It is not affiliated with any of manufacturers or vendors discussed here.
All logos and trade names are the property of their respective owners.