The short answer is no. The User Macro is not multi-tasking, as is what you would want, a program running in the background polling for changes in the Z position within one Block movement.Is there a way to store a parameter while a machine is in motion? (Line feed.)
I want to read the spindle load parameter and store it in a variable at different Z depths in a G1 motion.
Hello thesidetalker,On Fanuc 30i, is there a way to read diagnostic data into macro variables? Similar to PRM[] for parameters?
Yes. The method of being able to call a Local Subprogram with the "Q" address was introduced with the FS16i control. If the control has the Local Subprogram function, it will also have the facility to call an External Subprogram and specify a Sequence Number to start from within the Subprogram with the syntax shown in your example.Does anyone know if the "Q" option below is available on a 18i-TB Fanuc controller?
What Model did they add the Q option?
M98P2000Q20. (Goto sub program 2000 Line Number 20).
Thanks BillYes. The method of being able to call a Local Subprogram with the "Q" address was introduced with the FS16i control. If the control has the Local Subprogram function, it will also have the facility to call an External Subprogram and specify a Sequence Number to start from within the Subprogram with the syntax shown in your example.
Regards,
Bill
Also found that system parameter #6005 bit#0(SQC) must be set to a 1.Thanks Bill
BARCOL IMPRESSOR
The Barcol Impressor is a hand-held portable hardness tester. It is a convenient tool for testing the hardness of aluminum, aluminum alloys, copper, brass and other materials including plastics and fiberglass. The Impressor is designed for use on fabricated parts and assemblies as well as on raw stock.
You can get the product at any of your places, at your doorstep in Pakistan.
Before digging into the logic of the above Macro Program, you need to correct the Blocks I've highlighted in Red%
O9010 (N-010-01-MEN)
#3003=1
IF[#2EQ#0]GOTO100
IF[#2EQ0.]GOTO010
IF[#2LT1.]GOTO104
#4=FIX[#2]
#2=#4
IF[#LT0]GOTO102
IF[#GE360.]GOTO103
N010IF[4007NE40]GOTO106 changed to [#4007NE40]
IF[#1001EQ1.]GOTO105
IF[#100EQ1.]GOTO008
IF[13EQ#0]GOTO001
IF[#13NE6]GOTO101
M106
N001#30=#2-#550
IF[#30EQ0]GOTO030
#3=#4001
#5=#4003
G00G90
#6=#5021
IF[#30GT0]GOTO002
IF[#30GT-180]GOTO003
#30=#30+360
GOTO003
N002IF[#30LE180]GOTO003
#30=#30-360
N002IF[#4006EQ20]GOTO20
#31=ROUND[#30*1780.2358]/1000
#32=#5021+#31
IF[#32GTO.]GOTO004 changed to [#32GT0.]
IF[#32GT-610.]GOTO006
#33=-610.-#31
#32=-610.
GOTO005
N020#31=ROUND[#30*700.88025]/10000
#32=#5021+#31
IF[#32GTO.]GOTO004 changed to [#32GT0.]
IF[#32GT-24.01575]GOTO006
#33=-24.01575-#31
#32=-24.01575
GOTO005
N004#33=0.-#31
#32=0.
N005G53X#33
N006M123
G04P300
M122
G04P300
G53X#32
M121
M124
IF[#5EQ90]GOTO0011
G53X#6
N011G#3G#5
N030IF[#NE0]GOTO007
M120
N007#550=#2
IF[#13EQ#0]GOTO008
M107
N008#3003=0
M99
N100#3003=0
#3000=500(B ERROR NO B COMMAND)
N101#3003=0
#3000=501 (M CODE ERROR)
N102#3003=0
#3000=502 (B ERROR B MINUS)
N103#3003=0
#3000=503 (B ERROR 360 OVER)
N104#3003=0
#3000=504 (B ERROR NO DECIMAL POINT)
N105#3003=0
#3000=505 (X-AXIS MIRROR IMAGE ON ERROR)
N106#3003=0
#3000=506 (G41/G42 MODE ERROR
%
Not sure what to correct them to. This is out of Matsuura’s program book for this machine. I have called and emailed them several times and the have not responded.
Notice
This website or its third-party tools process personal data (e.g. browsing data or IP addresses) and use cookies or other identifiers, which are necessary for its functioning and required to achieve the purposes illustrated in the cookie policy. To learn more, please refer to the cookie policy. In case of sale of your personal information, you may opt out by sending us an email via our Contact Us page. To find out more about the categories of personal information collected and the purposes for which such information will be used, please refer to our privacy policy. You accept the use of cookies or other identifiers by closing or dismissing this notice, by scrolling this page, by clicking a link or button or by continuing to browse otherwise.