• No results found

M483 Machin e Data Output to Macro Variable

Program

#100=Data Kind;

#101=Data Detail 1;

#102=Data Detail 2;

#103=Data Detail 3;

#104=Data Detail 4;

#105=Data Detail 5;

#106=Data Detail 6;

#107=Data Detail 7;

#108=Data Detail 8;

#109=Data Detail 9;

M483;

G53 <--- Dummy block for preventing pre-reading.

(Necessary when M483 is not specified as not-buffered M code.)

Explanation

Outputs the machine data to macro variables.

 After setting the type of required machine data with custom macro variable

#100 to #109, specify M483.

The data is then output to macro variable #110.

When referring to the obtained data immediately after the M code, set the NC parameter so that M483 is a non-buffered M code, or insert a G53 after the M code to prevent pre-reading.

(Set "483" to an empty NC parameter from No. 3416 to No. 3420 to specify M483 as a non-buffered M-code.)

  p S 

Meaning of Value

100 1.0 Tool Data

0.0 Spindle pot.

-1.0 Next pot 101

Pot No. Other pot

102 Refer

following

Kind of Data

103 --- Cutter No. (If empty, 1 is set. )

104 --- ATC Magazine No. (If empty, 1 is set. )

110 Refer

following

Output Data

Kind and Setting Value Table for the Tool Data (Value are all integers.) Data of

#102

Kind of Tool Data Output Data of #110 [unit ]

3 Kind of Pot 0:BT

1:HSK 2:Adapter

4 Tool No. (PTN) (4 Digit PTN)1 to 9999 (8 Digit PTN)1 to 99999999

5 FTN (4 Digit FTN)1 to 9999

(8 Digit FTN)1 to 99999999

6 ITN (4 Digit ITN)1 to 9999

(8 digit ITN)1 to 99999999

7 Priority 0 to 65535

9 TS Coolant 0:Disable/1:Enable 10 Through Spindle

Coolant Suction Time

0 to 99999[ms]

11 ATC Speed 0:High/1:Low/2:Middle

  p S 

Kind of Tool Data Output Data of #110 [unit ]

102 Kind 0:

1:Drill

2:Ball End Mill 3:End Mill 4:Boring Bar 5:Spring Tool 1 6:Spring Tool 2 7:Tapper

8:Reamer 9:Face Mill 10:Probe

11:Grinding Wheel 103 Tool Length

(Geometry(H))

-9999999 to 9999999 [0.0001mm/0.00001inch]

104 Tool Length (Wear(H))

-9999999 to 9999999 [0.0001mm/0.00001inch]

105 Tool Radius (Geometry(D))

-9999999 to 9999999 [0.0001mm/0.00001inch]

106 Tool Radius (Wear(D))

-9999999 to 9999999 [0.0001mm/0.00001inch]

107 TL [Time] 0:Disable/1:Enable 108 TL Alarm [Time] 0 to 99999999 109 TL Warning [Time] 0 to 99999999

110 TL Value [Time] -99999999 to 99999999 111 TL [Distance] 0:Disable/1:Enable 112 TL Alarm [Distance] 0 to 999999999 113 TL Warning

[Distance]

0 to 999999999

114 TL Value [Distance] -999999999 to 999999999

115 TL

  p S   e c  i      f     i       c  a  t    i       on

Data of

#102

Kind of Tool Data Output Data of #110 [unit ]

119 SL Upper Limit 0 to 20000 [0.01%]

120 SL Lower Limit 0 to 20000 [0.01%]

121 AC 0 to 20000 [0.01%]

122 Alarm BIT00=Tool Broken (Long)

BIT01=Tool Broken BIT02=AC Monitor BIT03=SL Monitor

BIT04=SL Monitor (non load) BIT05=Tool Life

123 Warning BIT00=Tool Life

124 BTS 0:Disable/1:Enable

125 BTS Before 0 to 9999

126 BTS After 0 to 9999

127 BTS Length 0 to 9999999

128 Operator Call 0:Disable/1:Enable 129 First Used 0:Disable/1:Enable 132 Spindle Speed Limit 0 to 99999[min-1]

  p S   e c  i      f     i       c  a  t    i       on

Work Data Macro Variable

Value Meaning of Value

100 2.0 Work Data

0.0 Table Pallet -1.0 Pallet on Buffer 1 -2.0 Pallet on Buffer 2 -3.0 Pallet on Carrier -4.0 Pallet on WSS1 -5.0 Pallet on WSS2 101

Pallet No. Other pallet 1.0 0 [deg] Face 2.0 90 [deg] Face 3.0 180 [deg] Face 4.0 270 [deg] Face 102

If empty, 1 is set.

103 Refer following Kind of Work Data 110 Refer following Output Data

  p S   e c  i      f     i       c  a  t    i       on

Kind and the Setting Value Table for the Work Data (Values are all integers.)

Data of

#103

Kind of Work Data Output Data of #110[unit ]

1 Pallet No. 0 to 65535

3 Priority 0 to 65535

5 Express 0:OFF/1:ON

103 Ready 0:OFF/1:ON

104 Suspend 0:OFF/1:ON

105 Fin Status 0 to 5

106 Program No. (4 Digit)1 to 9999 (8 Digit)1 to 99999999 107 Work Offset (X Axis) -99999999 to 99999999 108 Work Offset (Y Axis) -99999999 to 99999999 109 Work Offset (Z Axis) -99999999 to 99999999

111 Block Skip 0 to 255

115 Alarm BIT00=Pre Tool Check

BIT01=Tool Broken (Long) BIT02=Tool Broken

BIT03=AC Monitor BIT04=SL Monitor

BIT05=SL Monitor (no load) BIT06=Tool Life

BIT07=No Spare Tool BIT08=No NC Program

BIT09= Pallet Seating Failure BIT10=Measuring Failure 117 O No. at Alarm (4 Digit)1 to 9999

(8 Digit)1 to 99999999 118 N No. at Alarm 0 to 99999

119 Spindle Tool No. at Alarm (4 Digit PTN)1 to 9999

  p S 

Machine Parameter

Variable Value Meaning of Value

100 3.0 Machine Parameter

101 --- Machine Parameter No.

110 Output Data (Internal Setting Data)

Machine Condition

Variable Value Meaning of Value

100 4 .0 Machine Condition

101 Refer following Kind of Machine Condition 110 Refer following Output Data

Kind and Setting Value Table for the Machine Condition Data of

#101

Kind of Machine Condition

Output Data of #110[unit]

0 The state of spindle warmup

0: Warmup is Necessary 1: Warmup is unnecessary 1 Last commanded S code 0 to 99999[min-1]

Input/Output Signal condition

Variable Value Meaning of Value

100 4 .0 Machine Condition

0.0 G Address 1.0 F Address 2.0 Y Address 3.0 X Address 101

100.0 V Address

102 --- Address No.

(If size is 0 (Bit), input this item) 110 Refer following Output Data

  p S   e c  i      f     i       c  a  t    i       on

Program Example ( Tool Data )

(1) When remaining life of spindle tool is output:

#100=1.; <---- Tool data output command.

#101=0.; <---- Selects the spindle tool.

#102=110.; <---- Selects tool life data (Time).

M483; <---- Tool life data (Time) is output.

G53; <---- Dummy block for preventing pre-reading.

(2) When tool length data of next tool is output:

#100=1.; <---- Tool data output command.

#101=-1.; <---- Selects next tool.

#102=103.; <---- Selects tool length data (Geometry(H)).

M483; <---- Tool length data (Geometry(H)) is output.

G53; <---- Dummy block for preventing pre-reading.

(3) When SL data (Upper Limit) of cutter No.2 of 1st. Pot is output:

#100=1.; <---- Tool data output command.

#101=1.; <---- Selects pot No.1.

#102=119.; <---- Selects SL data (Upper Limit).

#103=2.; <---- Selects cutter No.2.

M483; <---- SL data of cutter No.2 of 1st. Pot is output.

G53; <---- Dummy block for preventing pre-reading.

(4) Outputs alarm data, and executes a process if an alarm had been given.

#100=1 <---- Tool data output command.

#101=1.; <---- Selects pot No.1.

#102=122.; <---- Selects alarm data.

#103=2.; <---- Selects cutter No.2.

M483; <---- Alarm data is output.

G53; <---- Dummy block for preventing pre-reading.

#111=32.; <---- Sets 32. Because TL alarm flag is 5th bit.

#112=#110 AND #111; <---- Executes AND operation at #110 and #111 to extract 5th bit.

  p S   e c  i      f     i       c  a  t    i       on

Program Example ( Work Data )

(1) When program number of a pallet on the table is output:

#100=2.; <---- Work data output command.

#101=0.; <---- Selects a pallet on the table.

#102=1.; <---- Selects 0 [deg] face.

#103=106.; <---- Selects program number data.

M483; <---- Program number of a pallet on the table is output.

G53; <---- Dummy block for preventing pre-reading.

(2) When ready of pallet No.2 is output:

#100=2.; <---- Work data output command.

#101=2.; <---- Selects pallet No.2.

#102=2.; <---- Selects 90 [deg] face.

#103=103.; <---- Selects ready data.

M483; <---- Ready of pallet No.2 is output.

G53; <---- Dummy block for preventing pre-reading.

Program Example ( Machine Parameter. )

#100=3.; <---- Machine parameter output command.

#101=1000.; <---- Selects the machine parameter No.1000.

M483; <---- The machine parameter No.1000 is output.

G53; <---- Dummy block for preventing pre-reading.

Program Example ( Machine Condition. )

#100=3.; <---- Machine condition output command.

#101=1000.; <---- Selects the state of spindle warmup.

M483; <---- The state of spindle warmup is output.

G53; <---- Dummy block for preventing pre-reading.

  p S   e c  i      f     i       c  a  t    i       on

Program Example (Input/Output Signal Condition) (1) When condition of X0015 Bit4 is output:

#100=5.; <---- Input/output condition output command.

#101=3.; <---- Select X address

#102=15.; <---- Select address

#103=106.; <---- Select Size=Bit

#104=4.; <---- Select Bit address 4

M483; <---- Condition of X0015 bit 4 is output

G53; <---- Dummy block for preventing pre-reading.

(2) When condition of G0015 - G0016 is output by Word:

#100=5.; <---- Input/output condition output command

#101=0.; <---- Select G address

#102=15.; <---- Select address

#103=2.; <---- Select size=WORD

M483; <---- Condition of G0015 -G0016 is output by WORD G53; <---- Dummy block for preventing pre-reading.

Related documents