28.08.2013 Views

CNC 8035 - Programming manual - Fagor Automation

CNC 8035 - Programming manual - Fagor Automation

CNC 8035 - Programming manual - Fagor Automation

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>Programming</strong> <strong>manual</strong><br />

12.<br />

PROGRAM CONTROL INSTRUCTIONS<br />

Screen customizing instructions<br />

<strong>CNC</strong> <strong>8035</strong><br />

·T· MODEL<br />

(SOFT V16.3X)<br />

·270·<br />

( WBUF "text", (expression) )<br />

The WBUF instruction can only be used when editing a program in the user channel.<br />

This instruction may be programmed in two ways:<br />

( WBUF "text", (expression) )<br />

It adds the text and value of the expression, once it has been evaluated, to the block that is being<br />

edited and within the data entry window.<br />

(Expression) may contain a number or any expression resulting in a number.<br />

It will be optional to program the expression, but it will be required to define the text. If no text<br />

is required, "" must be programmed.<br />

Examples for P100=10:<br />

(WBUF "X", P100) => X10<br />

(WBUF "X P100") => X P100<br />

( WBUF )<br />

Enters into memory, adding to the program being edited and after the cursor position, the block<br />

being edited by means of (WBUF "text", (expression)). It also clears the editing buffer in order<br />

to edit a new block.<br />

This allows the user to edit a complete program without having to quit the user editing mode after<br />

each block and press ENTER to "enter" it into memory.<br />

(WBUF "(PCALL 25, ")<br />

; Adds "(PCALL 25, " to the block being edited.<br />

(IB1=INPUT "Parameter A:",-5.4)<br />

; Request of Parameter A.<br />

(WBUF "A=", IB1)<br />

; Adds "A=(value entered)" to the block being edited.<br />

(IB2=INPUT "Parameter B: ", -5.4)<br />

; Request of Parameter B.<br />

(WBUF ", B=", IB2)<br />

; Adds "B=(value entered)" to the block being edited.<br />

(WBUF ")")<br />

; Adds ")" to the block being edited.<br />

( WBUF )<br />

...<br />

; Enters the edited block into memory.<br />

After executing this program the block being edited contains:<br />

(PCALL 25, A=23.5, B=-2.25)<br />

( SYSTEM )<br />

The mnemonic SYSTEM stops execution of the user customized program and returns to the<br />

corresponding standard menu of the <strong>CNC</strong>.<br />

Customizing program example:<br />

The following customizing program must be selected as user program associated to the Editing<br />

Mode.<br />

After selecting the Editing Mode and pressing the USER softkey, this program starts executing and<br />

it allows assisted editing of 2 user cycles. This editing process is carried out a cycle at a time and<br />

as often as desired.<br />

Displays the initial editing page (screen)<br />

N0 ( PAGE 10 )

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!