Manufacturing Information Solutions Forum Index Manufacturing Information Solutions
Your Place for Support and Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Read data from variables of custom macro

 
Post new topic   Reply to topic    Manufacturing Information Solutions Forum Index -> G-Code Programming
View previous topic :: View next topic  
Author Message
Frankie
Guest





PostPosted: Tue Apr 26, 2005 10:18 pm    Post subject: Read data from variables of custom macro Reply with quote

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

PostPosted: Tue Apr 26, 2005 10:21 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Aileen
Guest





PostPosted: Thu Feb 02, 2006 9:39 am    Post subject: live casino Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    Manufacturing Information Solutions Forum Index -> G-Code Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
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