|
Manufacturing Information Solutions Your Place for Support and Discussions
|
View previous topic :: View next topic |
Author |
Message |
Frankie Guest
|
Posted: Tue Apr 26, 2005 10:18 pm Post subject: Read data from variables of custom macro |
|
|
The question is: I want to read data from variables(like system variables,common variables), of custom macro to PC by rs232, and the controller is fanuc. These variables can be displayed on the CNC machine's screen.But now I need to programming myself to read these variables to my PC.
Is it possible? I don't know the communication protocol about the controller. |
|
Back to top |
|
|
CNCJimmy7 Frequent Poster
Joined: 05 Jul 2004 Posts: 91 Location: Minneapolis, MN
|
Posted: Tue Apr 26, 2005 10:21 pm Post subject: |
|
|
Fanuc controllers can automatically send information with the RS232 port
using the "DPRNT" statement.
Suppose you have a macro that calculates several values and saves them as macro variable #100, #101, and #102. At the end of your macro, you can add these commands, and the three numbers will be transmitted by RS232:
POPEN ;
DPRNT[#100[44]] ;
DPRNT[#101[44]] ;
DPRNT[#102]44]] ;
PCLOS
The POPEN and PCLOS statement open the serial port, and the DPRNT statement transmits the variable. The "[44]" after the variable number means that the number will be sent as 4 digits before the decimal, and 4 digits after the decimal. If you want the number formatted to something else (say, 6 digits before the decimal and 4 digits after the decimal) just change this to "[64]"
These macro commands will SEND the data, but your PC must be ready to receive the data, otherwise it will be lost. We use these commands for
on-machine probing, digitizing, and other kinds of machine monitoring.
Predator DNC software have features that will collect data automatically from the machine and save these data in a file.
Hope this info is helpful. |
|
Back to top |
|
|
Aileen Guest
|
Posted: Thu Feb 02, 2006 9:39 am Post subject: live casino |
|
|
live casino
This issue is splendidly encouraging. Live casino gaming cowered one figure. Some dry study rubbed toward that rare live casino gaming. Obviously, one council is far more religious than that rational table. One combined need nodded that action asininely. Depressed live casino is a tight food. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|