EasyManua.ls Logo

SODICK A320D - Page 105

Default Icon
214 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Wire EDM Machine Operation Chapter 10
Copyright November, 98 Page 10-3 Sodick Inc.
have the ability to pass variables to the Q routine and have the Q routine behave
differently based on the values of the variables.
Parentheses after Q filename can be added to allow the passing of values into the header
of the Q’ed file. If you made the command QOVAL(.5000,1.0000) the values .5000 and
1.0000 would be passed to registers H000 and H001 in the header of the NC program
named OVAL. Notice the comma between the variables. As many variables as you need
can be passed from the call statement (all separated by commas) to the actual NC
program.
To understand where the passed variables will go, let’s look at the format of the header of
a program. All programs will begin with a header (created by NEWFILE) that includes a
series of H registers that look like this:
H000 = +00000000 H001 = +00000000 H002 = +00000000
H003 = +00000000 H004 = +00000000 H005 = +00000000
We previously used these H registers when we needed to input offset values. If more than
6 registers are needed, you can simply type them in. The FIRST variable being passed
(the extreme left variable) will be placed in the first H register. In our case, it would be
placed in H000. The second value from the call statement is placed in H001, the third in
H002, and so on.
In our previous example, we gave the command QOVAL(.5000,1.0000). In this case the
value .5000 would be placed in H000 and the value 1.0000 would be placed in H001.
In the Q routine, any time you want to reference the values being passed, you can refer to
the H register in your NC program. G01 X+H001, this would cause the machine to cut in
the X axis to the value stored in the H001 register.
An example of this would be, you want to pass the condition number and offset value to
the Q routine. Here’s how the call statement could look:
QEXAMPLE(411,061)
Where the 411 is the cutting condition number to be passed and the 061 is the offset
value to be passed to the Q routine named EXAMPLE.
(Q routine named example)
H000 = +00000000 H001 = +00000000 H002 = +00000000
H003 = +00000000 H004 = +00000000 H005 = +00000000 (Continued on next page)

Table of Contents

Related product manuals