Posts Tagged ‘lists’

sep a rate lists for the as sign ment of lo cal vari ables They are called the As sign

sep a rate lists for the as sign ment of lo cal vari ables They are called the As sign –


ment List 1 and the As sign ment List 2 In both lists, a let ter of the Eng lish al pha bet is ar bi trarily as signed a vari able copper busbar bending machine num ber, built into the con trol soft ware For ex am ple, in both as sign ment lists,


the let ter A is as so ci ated with a lo cal vari able #1, let ter B is as so ci ated with a lo cal vari able #2, and punch machine for Head the let ter C is as so ci ated with a lo cal vari able #3


The as sign ments vary greatly be tween the List 1 and the List 2, and the or der of num bers does


not al ways fol low the or der of the let ters as Busway Press Clamp Machine it may appear from A=#1, B=#2, C=#3 example


Assignment List 1 – Method 1


plate drilling machine


The vast ma jor ity of macro ap pli ca tions use the vari ables from the As sign ment List 1 It only


con tains 21 as sign ments for lo cal vari ables, but that is a num ber more than suf fi cient for the ma –


jor ity of mac ros The 21 let ters of the Eng lish al pha bet are as signed lo cal vari ables, as ar gu ments,


de fined in the G65 macro call, and passed to the macro body


The As sign ment List 1 is de fined by Fanuc in the fol low ing ta ble:


Copyright 2005, Industrial Press Inc, New York, NY –


FANUC CNC Custom Macros


ASSIGNING VARIABLES


95


Argument List 1 Address


Local Variable in a Macro


A


#1


B


#2


C


#3


D


#7


E


#8


F


#9


H


#11


I


#4


J


#5


K


#6


M


#13


Q


#17


R


#18


S


#19


T


#20


U


#21


V


#22


W


#23


X


#24


Y


#25


Z


#26


Assignment List 2 – Method 2


Only a very few macro ap pli ca tions use the As sign ment List 2 It con tains 33 as sign ments of lo –


cal vari ables, in case there is a need for more than the 21 lo cal as sign ments from the As sign ment


List 1 The first three as sign ments, A, B, and C are the same, but that is where the sim i lar ity ends


These as sign ments are sup ple mented by a set of 10 ar gu ment groups, iden ti fied as I1 J1 K1 to I10 J10


K10 This method may be some what harder to im ple ment, par tic u larly by be gin ners