11.02 SINUMERIK 840D/840Di/810D (FB2) (M5) 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2/M5/1-3 2 ........................................ 2/M5/2-5 2.1 2.1.1 2.1.2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2/M5/2-5 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2/M5/2-5 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2/M5/2-7 . 2.2 2.2.1 2.2.2 2.2.3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2/M5/2-13 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2/M5/2-13 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2/M5/2-13 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2/M5/2-14 2.3 2.3.1 2.3.2 2.3.3 , . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2/M5/2-15 ... . . . .( . . . . . .6.1) . . . . . . . . . . 2/M5/2-15 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2/M5/2-15 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2/M5/2-58 2.4 2.4.1 2.4.2 2.4.3 2.4.4 2.4.5 2.4.6 ( . . ). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2/M5/2-61 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2/M5/2-61 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2/M5/2-61 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2/M5/2-62 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2/M5/2-63 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2/M5/2-64 ( . . . . . ). . . . . . . . . . . . 2/M5/2-66 2.5 2.5.1 2.5.2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2/M5/2-68 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2/M5/2-68 .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2/M5/2-68 . 3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2/M5/3-69 (MD, SD) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 2/M5/4-71 5 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2/M5/5-73 6 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2/M5/6-75 6.1 . . . . .1. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2/M5/6-75 .. 6.2 . . . . .2. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2/M5/6-76 .. 6.3 6.3.1 6.3.2 SIEMENS 2004 SINUMERIK 840D/840Di/810D . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2/M5/6-76 . . . . . . . 2/M5/6-76 . . . . . . . . . . . . . . . . . . 2/M5/6-77 (FB2) - 03.04 2/M5/i 11.02 . . . . . . . . . . . . 2/M5/6-77 6.3.3 6.4 7 . . . . . . . . . . . . . . . . . . . 2/M5/6-78 , 7.1 2/M5/ii . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2/M5/7-81 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2/M5/7-81 . SIEMENS SINUMERIK 840D/840Di/810D (FB2) - 03.04 (M5) 10.00 1 1. , , . . . $P_SETFRAME. W S MMC . " " . . . / , . ( W) W S. . T. 4.1. , , , , , . . : SIEMENS 2004 SINUMERIK 840D/840Di/810D /FB III/, (M4) (FB2) - 03.04 2/M5/1-3 . (M5) 2/M5/1-4 10.00 SIEMENS SINUMERIK 840D/840Di/810D (FB2) - 03.04 (M5) 10.00 2.1 2 2.1 2.1.1 , ( ) . . . . ( . ). , . 2-1 2-1 SIEMENS 2004 SINUMERIK 840D/840Di/810D X X X _ X X _ _ X (FB2) - 03.04 2/M5/2-5 (M5) 10.00 2.1 , , . . (3D) . . . , , SPOS ( 360 ). , 0 . 2-2 0 X Y G17 X Z X G18 Z Y Z G19 Y , . . SPOS. 2/M5/2-6 SIEMENS SINUMERIK 840D/840Di/810D (FB2) - 03.04 (M5) 10.00 2.1 2.1.2 SINUMERIK 840D X121, 840D NCU. X102 X111 X101 X112 P/ ( X122 K PLC) PG MPI ( X121 +5V NF CF CB CP PR PS PF PF0 ) LED (H1/H2) 7- S4 S3 RESETNMI (H3) NMI (S2) RESET (S1) NCK SIMODRIVE 611D X130A X130B PLC . 2-2 SIEMENS 2004 SINUMERIK 840D/840Di/810D MEMORY CARD X172 I/O ( ) PCMCIA (X173) , NCU (FB2) - 03.04 2/M5/2-7 (M5) 10.00 2.1 SINUMERIK 840Di X121 MCI Board Extension ( 840Di ). PCU 50 : MCI Board Extension X121 MCI Board . 2-3 2/M5/2-8 SINUMERIK 840Di (PCU 50, MCI Board MCI Board Extension) SIEMENS SINUMERIK 840D/840Di/810D (FB2) - 03.04 (M5) 10.00 2.1 SINUMERIK 810D X121, 810D NCU. . 2-4 , SIEMENS 2004 SINUMERIK 840D/840Di/810D SINUMERIK 810D (FB2) - 03.04 2/M5/2-9 (M5) 12.01 2.1 D Sub (X121), 37.2 ; 24 . 2-3 X121 X121 1 M24EXT 2 M24EXT ... ... 9 MEPUS 0 Input 10 MEPUC 0 Commen Input ... ... 20 P24EXT 21 P24EXT ... ... 28 MEPUS 1 Input 29 MEPUC 1 Commen Input ... ... ... 1 ... P 24 P 24 ... 2 ... : : PROFIBUS DP 6.4 /PHD/, SINUMERK 840D NCU 573.2/3/4 PROFIBUS DP. , . PROFIBUS DP, MD 13210: MEAS_TYPE 611 universal = 0: = 1: SIMODRIVE 611 unversal , , SIMODRIVE : . . PROFIBUS DP . SIMODRIVE 611 digital X121 : 2/M5/2-10 SINUMERK 840D/840Di/810D. /BHA/, PROFIBUS DP /FBU/, SIMODRIVE 611 universal SIEMENS SINUMERIK 840D/840Di/810D (FB2) - 03.04 (M5) 10.00 2.1 FM NC FM NC NCU 570.2 . X2 SF BAF X3 X4 1 1 2 3 4 5 6 7 8 9 0 1 1 1 1 1 1 1 1 1 2 1 2 3 4 5 6 7 8 9 0 DC 5V DIAG L+ M L+ M X5 X6 X1 ( ) X3...X6 . 2-5 SIEMENS 2004 SINUMERIK 840D/840Di/810D FM NC (FB2) - 03.04 2/M5/2-11 (M5) 10.00 2.1 : 20 ( (X1) . 2), NC READY . 2-4 X1 MD 30120 CTRLOUT_NR X1: X1 , 20... ... ... 17 3/ 1 (DE3/MEPU1) 18 3/ 2 (DE3/MEPU2) 20 M24EXT 4- (X10) 24 ." SINUMERIK FM NC . X2 SF BAF X3 X4 1 1 2 3 4 5 6 7 8 9 0 1 1 1 1 1 1 1 1 1 2 1 2 3 4 5 6 7 8 9 0 DC 5V DIAG L+ M L+ M X5 X6 X1 ( ) 1 . 2-6 2/M5/2-12 FM NC (NCU 570.2), 1 SIEMENS SINUMERIK 840D/840Di/810D (FB2) - 03.04 (M5) 10.00 2.2 2.2 2.2.1 1. MMC HMI Advanced 3.2. HMI Embedded 6.1 2.2.2 MEAS . . : MEAW MEAS: : N10 G01 F300 X300 Z200 MEAS= 2 ( ) (2). MEAW: : N20 G01 F300 X300 Y100 MEAW=1 (1). RESET . - , . , . 4 . $A_PROBE[n] n= $A_PROBE[n]==1: $A_PROBE[n]==0: SIEMENS 2004 SINUMERIK 840D/840Di/810D (FB2) - 03.04 2/M5/2-13 (M5) 10.00 2.2 2.2.3 NCK . $AC_MEA[Nr] TP . [Nr] (1 2) . ( . ), , . $AA_MM[ ] . . [ ] (X, Y, ...). $AA_MW[ ] . . [ : ] (X, Y, ...). /PGZ/, . PLC PLC . 2-5 1 DB10 DB B107.0 2 DB10 DB B107.1 DB(31 48) DBX62.3 . 3=1: 3=0: , $AA_MEAACT[ ]. /FB/, S5, 2/M5/2-14 SIEMENS SINUMERIK 840D/840Di/810D (FB2) - 03.04 (M5) 11.02 2.3 , 2.3 , 2.3.1 ( 6.1) HMI. $P_SETFRAME. W S HMI . . . . HMI . . : /FB1/, K2 /PGA/, , , 2.3.2 , . ( W) W S. . . SIEMENS 2004 SINUMERIK 840D/840Di/810D (FB2) - 03.04 2/M5/2-15 . (M5) 03.02 , 2.3 HMI . . 2-6 $AC_MEAS_VALID $AC_MEAS_VALID 0 $AA_MEAS_POINT1[ ] 1- 1 $AA_MEAS_POINT2[ ] 2- 2 $AA_MEAS_POINT3[ ] 3- 3 $AA_MEAS_POINT4[ ] 4 $AA_MEAS_SETPOINT[ 5 $AC_MEAS_WP_SETANGLE ; 90 < < 180 6 $AC_MEAS_CORNER_SETANGLE 0< < 180 7 $AC_MEAS_T_NUMBER 7 $AC_MEAS_D_NUMBER 9 $AC_MEAS_DIR_APPROCH 4] , , , 10 , , $AC_MEAS_ACT_PLANE 11 $AC_MEAS_FRAME_SELECT 12 $AC_MEAS_TYPE 13 $AC_MEAS_FINE_TRANS 14 $AA_MEAS_SETANGEL[ 15 $AA_MEAS_SCALEUNIT* 16 $AA_MEAS_TOOL_MASK* 17 $AA_MEAS_P1_COORD* 1- 18 $AA_MEAS_P2_COORD* 2- 19 $AA_MEAS_P3_COORD* 3- 20 $AA_MEAS_P4_COORD* 4- 21 $AA_MEAS_SET_COORD* 22 $AA_MEAS_CHSFR* 23 $AA_MEAS_NCBFR* 24 $AA_MEAS_CHBFR* 25 $AA_MEAS_UIFR* 26 $AA_MEAS_PFRAME* * ]* 6.4 $AC_MEAS_VALID. $AC_MEAS_VALID . , . 2/M5/2-16 SIEMENS SINUMERIK 840D/840Di/810D (FB2) - 03.04 (M5) 03.02 2.3 , 2-7 INT $AC_MEAS_VALID REAL $AA_MEAS_POINT1[ ] 1- REAL $AA_MEAS_POINT2[ ] 2- REAL $AA_MEAS_POINT3[ ] 3- REAL $AA_MEAS_POINT4[ ] 4- INT $AC_MEAS_P1_COORD* 1- INT $AC_MEAS_P2_COORD* 2- INT $AC_MEAS_P3_COORD* 3- INT $AC_MEAS_P4_COORD* 4- INT $AC_MEAS_SET_COORD* INT $AC_MEAS_LATCH4[0..3] INT $AA_MEAS_P1_VALID[ ] . . . P1 INT $AA_MEAS_P2_VALID[ ] . . . P2 INT $AA_MEAS_P3_VALID[ ] . . . P3 INT $AA_MEAS_P4_VALID[ ] . . . P4 1 4 W S * 6.4: 0: W S 1: BKS 2: M S , ( $AC_MEAS_VALID = 0 ): : $AC_MEAS_LATCH = 0 $AC_MEAS_POINT[1..4] . . $AC_MEAS_LATCH $AC_MEAS_LATCH = 1 $AC_MEAS_LATCH . 0 x . 1 3, 1- , , $AA_MEAS_P1_VALID[x] = 0 $AA_MEAS_P1_VALID[x] = 1 $AC_MEAS_LATCH[0..3] . . SIEMENS 2004 SINUMERIK 840D/840Di/810D $AA_MEAS_P[1..4]_VALID (FB2) - 03.04 2/M5/2-17 4. (M5) 06.03 , 2.3 . 2-8 REAL $AA_MEAS_SETPOINT[ ] , INT $AA_MEAS_SP_VALID[ ] REAL $AC_MEAS_WP_SETANGLE ; 90 < < 180 REAL $AC_MEAS_CORNER_SETANGLE 0< < 180 1: , / 0: : 24- . T0, D0 , , . T, D . . . . , INT $AC_MEAS_T_NUMBER INT $AC_MEAS_D_NUMBER 3D 3D , . 6.4 : INT $AC_MEAS_TOOL_MASK 0x0: 0x1: 0x2: 0x4: 0x8: 0x10: ( ). . x (G19) y (G18) y (G17) . , . , . G17 z, G18 y, G19 x. , , : INT $AC_MEAS_DIR_APPROACH = 0: +x 1: x 2: +y 3: y 4: +z 5: z 2/M5/2-18 SIEMENS SINUMERIK 840D/840Di/810D (FB2) - 03.04 (M5) 03.02 2.3 , . INT $AC_MEAS_ACT_PLANE = 0: G17 1: G18 2: G19 x/y z/x y/z z y x . $AC_MEAS_FINE_TRANS. INT $AC_MEAS_FINE_TRANS = 0: . 1: . $AC_MEAS_FINE_TRANS = 1 : . . $AC_MEAS_FINE_TRANS = 0 : . , MD 18600: MM_FRAME_FINE_TRANS 1: . . INT $AC_MEAS_FRAME_SELECT = : 0: 10..25: 50..65: 100..199: 1010..1025: 1050..1065: $P_SETFR $P_CHBFR[0..15] $P_NCBFR[0..15] $P_UIFR[0..99] $P_CHBFR[ 0..15] $P_NCBFR[ 0..15] 2000: 2010..2025: 2050..2065: 2100..2199: 3010..3025: 3050..3065: $P_SETFR $P_CHBFR[ 0..15] $P_NCBFR[ 0..15] $P_UIFR[0..99] $P_CHBFR[ 0..15] $P_NCBFR[ 0..15] NCU G500 NCU G500 : MEASURE( ) SIEMENS 2004 SINUMERIK 840D/840Di/810D NCU G500 NCU G500 $AC_MEAS_FRAME . (FB2) - 03.04 2/M5/2-19 (M5) 11.02 , 2.3 0 1065 2000 . 3065 . 14 15. . , . , . . . G500 (1010..1025, 1050..1065, 3010..3025, 3050..3065) , G500, . , 6.4 : INT $AC_MEAS_CHSFR MD 28082: MM_SYSTEM_FRAME_MASK INT $AC_MEAS_CHSFR MD 18602: MM_NUM_GLOBAL_BASE_FRAME INT $AC_MEAS_CHSFR MD 28081: MM_NUM_BASE_FRAMES INT $AC_MEAS_UIFR 0 .. 99 MD 18601: MM_NUM_GLOBAL_USER_FRAME INT $AC_MEAS_PFRAME 0: 1: , . , . , . $P_NCBFRMASK 2/M5/2-20 , $P_CHBFRMASK . . SIEMENS SINUMERIK 840D/840Di/810D (FB2) - 03.04 (M5) 06.03 2.3 , : INT $AC_MEAS_TYPE ; 0: 1: Edge_x 2: Edge_y 3: Edge_z 4: Corner_1 5: Corner_2 6: Corner_3 7: Corner_4 8: Hole 9: Stud 10: ToolLength 11: ToolDiameter 12: Slot 13: Plate 14: Set_Pos 15: Set_AuxPos 16: Edge_2P 17: Plane_Angles 18: Plane_Normal 19: Dimension_1 20: Dimension_2 21: Dimension_3 ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ;1 ;2 ;3 : x y z 1 2 3 4 ( ( ) ) . . . . . . . . 6.4 6.4 : INT $AC_MEAS_TYPE ; 22: ToolMagnifier 23: ToolMarkedPos ; ShopTurn: ; ; 24: 25: Rectangle 26: Save 27: Restore : ; ; ; : : " . SIEMENS 2004 SINUMERIK 840D/840Di/810D (FB2) - 03.04 2/M5/2-21 (M5) 11.02 , 2.3 , $AC_MEAS_FRAME. . . , W S. _N_SETUDT /R7/ Nr. 7 . . 2-9 FRAME $AC_MEAS_FRAME REAL $AC_MEAS_WP_ANGLE REAL $AC_MEAS_CORNER_ANGLE REAL $AC_MEAS_DIAMETER REAL $AC_MEAS_TOOL_LENGTH REAL $AC_MEAS_RESULTS[10] ( ) HMI _N_SETUDT /R7/. 6.1 Nr. 1 Nr. 2 Nr. 3 Nr. 4 Nr. 5 Nr. 6 Nr. 7 _N_SETUDT /R7/ 6.4 Nr. 8 Nr. 9 ( ). 6.4 : Tool Carrier, Reset , TCOABS PAROT. Stop . Reset Nr. 7. , 2/M5/2-22 Stop. Nr. 7 . SIEMENS SINUMERIK 840D/840Di/810D (FB2) - 03.04 (M5) 06.03 2.3 , W S Stop Stop. . , 6.4 Stop, , MDA , 0 . : INT MEASURE( ) MEASURE() , $AC_MEAS_FRAME. . : ( ) . , . . . , , . . . , . Stop Reset. Stop . INT $AC_MEAS_SEMA $AC_MEAS_SEMA 1, 0. HMI SIEMENS 2004 SINUMERIK 840D/840Di/810D , 1. (FB2) - 03.04 2/M5/2-23 (M5) 08.01 , 2.3 18 : 2-10 Nr. MEAS_OK 0 1 MEAS_NO_TYPE 2 MEAS_TOOL_ERROR 3 MEAS_NO_POINT1 1 4 MEAS_NO_POINT2 2 5 MEAS_NO_POINT3 3 6 MEAS_NO_POINT4 4 7 MEAS_NO_SPECPOINT 8 MEAS_NO_DIR 9 MEAS_EQUAL_POINTS 10 MEAS_WRONG_ALPHA 11 MEAS_WRONG_PHI 12 MEAS_WRONG_DIR 13 MEAS_NO_CROSSING 14 MEAS_NO_PLANE 15 MEAS_WRONG_FRAME 16 MEAS_NO_MEMORY 17 MEAS_INTERNAL_ERROR , 0xD003. DIAGN:errCodeSeNrGent P_SETUDT. MEAS_TOOL_ERROR EX_ERR_PI_REJ_MEASTOOLERROR $AC_MEAS_TOOL_LENGTH : 2-11 MEAS_T OOL_ERROR Nr. 2/M5/2-24 1 TOOL_NO_BLOCK 2 TOOL_WRONG_T_NUMBER 3 TOOL_WRONG_D_NUMBER 4 TOOL_EVAL_WRONG_TYPE 5 TOOL_NO_TOOLCORR_BODY 6 TOOL_DATA_READ_ERROR 7 TOOL_NO_TOOL_WITH_TRAFO D SIEMENS SINUMERIK 840D/840Di/810D (FB2) - 03.04 (M5) 03.02 2.3 , 6.4 : ] $AA_MEAS_POINT1[ $AA_MEAS_POINT2[ ] ] $AA_MEAS_POINT3[ $AA_MEAS_POINT4[ ] ] $AA_MEAS_SETPOINT[ $AC_MEAS_DIAMETER $AC_MEAS_TOOL_LENGTH $AC_MEAS_RESULTS[n] 1234- , , INT $AC_MEAS_SCALEUNIT 0: . 1: G G70/G700 G G71/G701 , BTSS. . ( ) : , 0. DIAMON DIAMOF : G70 $AC_MEAS_POINT1[x] = $AA_IW[x] $AC_MEAS_POINT1[x] = 10 G71 $AC_MEAS_POINT1[x] = $AA_IW[x] $AC_MEAS_POINT1[x] = 10 ; ; $AA_IW[x] ; 10 ; ; $AA_IW[x] ; 10 G700 $AC_MEAS_POINT1[x] = $AA_IW[x] $AC_MEAS_POINT1[x] = 10 ; ; $AA_IW[x] ; 10 G710 $AC_MEAS_POINT1[x] = $AA_IW[x] $AC_MEAS_POINT1[x] = 10 ; ; $AA_IW[x] ; 10 : MD 20100: DIAMETER_AX_DEF = MD 20150: GCODE_RESET_VALUES[28] = 2 MD 20360:TOOL_PARAMETER_DEF_MASK = B1001010 DIAMON ; ; DIAMON ; ; x , DIMOF G. DIAMON DIAMON. DIAMON . : , 6- SIEMENS 2004 SINUMERIK 840D/840Di/810D 6 (FB2) - 03.04 . 2/M5/2-25 (M5) 08.01 , 2.3 x ($AC MEAS TYPE = 1) . y y x +x x0 . 2-7 x0 x x x 2-12 1 : $AC_MEAS_VALID $AA_MEAS_POINT1[ ] $AA_MEAS_SETPOINT[ 1 ] $AC_MEAS_DIR_APPROACH x* 0: +x, 1: x $AC_MEAS_ACT_PLANE $AC_MEAS_FINE_TRANS * 0: , 1: * $AC_MEAS_FRAME_SELECT * $AC_MEAS_T_NUMBER ( 0) * $AC_MEAS_D_NUMBER D (D0) * $AC_MEAS_TYPE 1 * 2-13 1 : $AC_MEAS_FRAME 2/M5/2-26 SIEMENS SINUMERIK 840D/840Di/810D (FB2) - 03.04 (M5) 08.01 2.3 , x DEF INT RETVAL DEF FRAME TMP ; ; $TC_DP1[1,1]=120 $TC_DP2[1,1]=20 $TC_DP3[1,1]= 10 $TC_DP4[1,1]= 0 $TC_DP5[1,1]= 0 $TC_DP6[1,1]= 2 ; ;0 ; (z) ; (y) ; (x) ; T1 D1 g0 x0 y0 z0 f10000 G54 ; ; ; $AC_MEAS_VALID = 0 ; g1 x 1 y 3 $AA_MEAS_POINT1[x] = $AA_IW[x] $AA_MEAS_POINT1[y] = $AA_IW[y] $AA_MEAS_POINT1[z] = $AA_IW[z] ; ; ; ; ; $AC_MEAS_DIR_APPROACH = 0 ; $AA_MEAS_SETPOINT[x] = 0 $AA_MEAS_SETPOINT[y] = 0 $AA_MEAS_SETPOINT[z] = 0 ; ; ; ; $AC_MEAS_ACT_PLANE = 0 ; $AC_MEAS_FRAME_SELECT = 101 ; $AC_MEAS_T_NUMBER = 1 $AC_MEAS_D_NUMBER = 1 ; ; ; $AC_MEAS_TYPE = 1 ; RETVAL = MEASURE() ; ; if RETVAL <> 0 setal(61000 + RETVAL) endif ; ; $P_IFRAME = $AC_MEAS_FRAME ; $P_UIFR[1] = $P_IFRAME ; g1 x0 y0 ; 1- +x G17 (G54) x m30 SIEMENS 2004 SINUMERIK 840D/840Di/810D (FB2) - 03.04 2/M5/2-27 (M5) 08.01 , 2.3 y ($AC MEAS TYPE = 2) y y y y0 y0 x +y . 2-8 x y 2-14 2 : $AC_MEAS_VALID $AA_MEAS_POINT1[ ] $AA_MEAS_SETPOINT[ 1 ] $AC_MEAS_DIR_APPROACH y* 2: +y, 3: y $AC_MEAS_ACT_PLANE $AC_MEAS_FINE_TRANS * 0: , 1: * * $AC_MEAS_FRAME_SELECT $AC_MEAS_T_NUMBER ( 0) * $AC_MEAS_D_NUMBER $AC_MEAS_TYPE D (D0) * 2 * 2-15 2 : $AC_MEAS_FRAME 2/M5/2-28 SIEMENS SINUMERIK 840D/840Di/810D (FB2) - 03.04 (M5) 08.01 2.3 , z ($AC MEAS TYPE = 3) z z z0 x . 2-9 z 2-16 3 : $AC_MEAS_VALID $AA_MEAS_POINT1[ ] $AA_MEAS_SETPOINT[ 1 ] $AC_MEAS_DIR_APPROACH z* 4: +y, 5: y * $AC_MEAS_ACT_PLANE $AC_MEAS_FINE_TRANS 0: , 1: * * $AC_MEAS_FRAME_SELECT $AC_MEAS_T_NUMBER ( 0) * $AC_MEAS_D_NUMBER D (D0) * $AC_MEAS_TYPE 3 * 2-17 3 : $AC_MEAS_FRAME SIEMENS 2004 SINUMERIK 840D/840Di/810D (FB2) - 03.04 2/M5/2-29 (M5) 08.01 , 2.3 C1 C4 ($AC MEAS TYPE = 4, 5, 6, 7) 4 P1 P4. . 3, P1 2 P3. P3 y y P4 C2 P2 P3 P2 P1 P4 P1 C1 x x . 2-10 C1 C2 C3 y P2 C4 P4 P1 P2 y P3 P1 P3 P4 x x . 2-11 2/M5/2-30 C3 C4 SIEMENS SINUMERIK 840D/840Di/810D (FB2) - 03.04 (M5) 08.01 2.3 , 2-18 4 7 : $AC_MEAS_VALID $AA_MEAS_POINT1[ ] $AA_MEAS_POINT2[ ] 1 $AA_MEAS_POINT3[ ] 3 $AA_MEAS_POINT4[ ] 4 $AC_MEAS_CORNER_SETANGLE 2 $AC_MEAS_WP_SETANGLE $AA_MEAS_WP_SETANGLE * $AA_MEAS_CORNER_SETANGLE * $AA_MEAS_SETPOINT[ * ] $AC_MEAS_ACT_PLANE $AC_MEAS_FINE_TRANS * 0: , 1: * * $AC_MEAS_FRAME_SELECT $AC_MEAS_T_NUMBER ( 0) * $AC_MEAS_D_NUMBER D (D0) * $AC_MEAS_TYPE 4, 5, 6, 7 * 2-19 4 7 : $AC_MEAS_FRAME $AC_MEAS_WP_ANGLE $AC_MEAS_CORNER_ANGLE C1 3 P1, P3 P4 . DEF INT RETVAL DEF FRAME TMP ; ; $TC_DP1[1,1]=120 $TC_DP2[1,1]=20 $TC_DP3[1,1]= 10 $TC_DP4[1,1]= 0 $TC_DP5[1,1]= 0 $TC_DP6[1,1]= 2 ; ;0 ; (z) ; (y) ; (x) ; T1 D1 g0 x0 y0 z0 f10000 G54 ; ; ; $P_CHBFRAME[0] = crot(z,45) $P_IFRAME[x,tr] = sin(45) $P_IFRAME[y,tr] = sin(45) $P_PFRAME[z,tr] = 45 ; ; ; ; SIEMENS 2004 SINUMERIK 840D/840Di/810D (FB2) - 03.04 2/M5/2-31 (M5) 08.01 , 2.3 $AC_MEAS_VALID = 0 ; g1 x 1 y 3 $AC_MEAS_LATCH[0] = 1 ; ; 1- g1 x 4 y4 $AC_MEAS_LATCH[2] = 1 ; ; 3- g1 x 4 y1 $AC_MEAS_LATCH[3] = 1 ; ; 4- $AA_MEAS_SETPOINT[x] = 0 $AA_MEAS_SETPOINT[y] = 0 $AA_MEAS_SETPOINT[z] = 0 ; ; ; ; P1 P3 P4 (0, 0, 0) $AC_MEAS_CORNER_SETANGLE = 90; $AC_MEAS_ACT_PLANE = 0 ; $AC_MEAS_FRAME_SELECT = 0 ; $AC_MEAS_T_NUMBER = 1 $AC_MEAS_D_NUMBER = 1 ; ; ; $AC_MEAS_TYPE = 4 ; RETVAL = MEASURE() ; ; G17 SETFRAME 1 if RETVAL <> 0 setal(61000 + RETVAL) endif if $AC_MEAS_CORNER_ANGLE <> 90 ; setal(61000 + $AC_MEAS_CORNER_ANGLE) endif $P_SETFRAME = $AC_MEAS_FRAME $P_SETFR = $P_SETFRAME ; g1 x0 y0 ; g1 x10 y10 x0 y0 ; ; ; ; m30 2/M5/2-32 SIEMENS SINUMERIK 840D/840Di/810D (FB2) - 03.04 (M5) 08.01 2.3 , ($AC MEAS TYPE = 8) 3 . . y D + x . 2-12 2-20 8 : $AC_MEAS_VALID $AA_MEAS_POINT1[ ] 1 $AA_MEAS_POINT2[ ] 2 $AA_MEAS_POINT3[ ] $AA_MEAS_SETPOINT[ 3 ] * $AC_MEAS_ACT_PLANE $AC_MEAS_FINE_TRANS * 0: , 1: * * $AC_MEAS_FRAME_SELECT $AC_MEAS_T_NUMBER ( 0) * $AC_MEAS_D_NUMBER $AC_MEAS_TYPE D (D0) * 8 * 2-21 8 : $AC_MEAS_FRAME $AC_MEAS_DIAMETER DEF INT RETVAL DEF FRAME TMP SIEMENS 2004 SINUMERIK 840D/840Di/810D ; ; (FB2) - 03.04 2/M5/2-33 (M5) 08.01 , 2.3 $TC_DP1[1,1]=120 $TC_DP2[1,1]=20 $TC_DP3[1,1]= 10 $TC_DP4[1,1]= 0 $TC_DP5[1,1]= 0 $TC_DP6[1,1]= 2 ; ;0 ; (z) ; (y) ; (x) ; T1 D1 g0 x0 y0 z0 f10000 G54 ; ; ; $AC_MEAS_VALID = 0 ; g1 x 3 y0 ; $AA_MEAS_POINT1[x] = $AA_IW[x] $AA_MEAS_POINT1[y] = $AA_IW[y] $AA_MEAS_POINT1[z] = $AA_IW[z] ; ; ; g1 x0 y3 ; $AA_MEAS_POINT2[x] = $AA_IW[x] $AA_MEAS_POINT2[y] = $AA_IW[y] $AA_MEAS_POINT2[z] = $AA_IW[z] ; ; ; g1 x3 y0 ; $AA_MEAS_POINT3[x] = $AA_IW[x] $AA_MEAS_POINT3[y] = $AA_IW[y] $AA_MEAS_POINT3[z] = $AA_IW[z] ; ; ; $AA_MEAS_SETPOINT[x] = 0 $AA_MEAS_SETPOINT[y] = 0 $AA_MEAS_SETPOINT[z] = 0 ; ; ; ; $AC_MEAS_ACT_PLANE = 0 $AC_MEAS_FRAME_SELECT = 0 ; ; $AC_MEAS_T_NUMBER = 1 $AC_MEAS_D_NUMBER = 1 ; ; ; $AC_MEAS_TYPE = 8 ; RETVAL = MEASURE() ; ; 1- 2- 3- G17 SETFRAME if RETVAL <> 0 setal(61000 + RETVAL) endif if $AC_MEAS_DIAMETER <> 10 ; setal(61000 + $AC_MEAS_WP_ANGLE) endif $P_SETFRAME = $AC_MEAS_FRAME $P_SETFR = $P_SETFRAME ; g1 x 3 y0 ; g2 = $AC_MEAS_DIAMETER / 2 ; P1 m30 2/M5/2-34 SIEMENS SINUMERIK 840D/840Di/810D (FB2) - 03.04 (M5) 08.01 2.3 , ($AC MEAS TYPE = 9) 3 . . y D + x . 2-13 2-22 9 : $AC_MEAS_VALID $AA_MEAS_POINT1[ ] 1 $AA_MEAS_POINT2[ ] 2 $AA_MEAS_POINT3[ ] $AA_MEAS_SETPOINT[ 3 ] * $AC_MEAS_ACT_PLANE $AC_MEAS_FINE_TRANS * 0: , 1: * * $AC_MEAS_FRAME_SELECT $AC_MEAS_T_NUMBER ( 0) * $AC_MEAS_D_NUMBER $AC_MEAS_TYPE D (D0) * 9 * 2-23 9 : $AC_MEAS_FRAME $AC_MEAS_DIAMETER SIEMENS 2004 SINUMERIK 840D/840Di/810D (FB2) - 03.04 2/M5/2-35 (M5) 08.01 , 2.3 ($AC MEAS TYPE = 12) . . . y y +y x y0 +x y x x0 x . 2-14 2-24 12 : $AC_MEAS_VALID $AA_MEAS_POINT1[ ] $AA_MEAS_POINT2[ ] $AA_MEAS_SETPOINT[ 1 2 ] $AC_MEAS_DIR_APPROACH * 0: +x, 1: x, 2: +y, 3: y, 4: +z, 5: z * $AC_MEAS_ACT_PLANE $AC_MEAS_FINE_TRANS 0: , 1: * $AC_MEAS_FRAME_SELECT * $AC_MEAS_T_NUMBER ( 0) * $AC_MEAS_D_NUMBER D (D0) * $AC_MEAS_TYPE 12 * 2-25 12 : $AC_MEAS_FRAME 2/M5/2-36 SIEMENS SINUMERIK 840D/840Di/810D (FB2) - 03.04 (M5) 08.01 2.3 , x DEF INT RETVAL DEF FRAME TMP ; ; $TC_DP1[1,1]=120 $TC_DP2[1,1]=20 $TC_DP3[1,1]= 10 $TC_DP4[1,1]= 0 $TC_DP5[1,1]= 0 $TC_DP6[1,1]= 2 ; ;0 ; (z) ; (y) ; (x) ; T1 D1 g0 x0 y0 z0 f10000 G54 ; ; ; $AC_MEAS_VALID = 0 ; g1 x 2 ; $AA_MEAS_POINT1[x] = $AA_IW[x] $AA_MEAS_POINT1[y] = $AA_IW[y] $AA_MEAS_POINT1[z] = $AA_IW[z] ; ; ; g1 x4 ; $AA_MEAS_POINT2[x] = $AA_IW[x] $AA_MEAS_POINT2[y] = $AA_IW[y] $AA_MEAS_POINT2[z] = $AA_IW[z] ; ; ; $AA_MEAS_SETPOINT[x] = 0 $AA_MEAS_SETPOINT[y] = 0 $AA_MEAS_SETPOINT[z] = 0 ; ; ; ; $AC_MEAS_DIR_APPROACH = 0 $AC_MEAS_ACT_PLANE = 0 $AC_MEAS_FRAME_SELECT = 0 ; ; ; $AC_MEAS_T_NUMBER = 1 $AC_MEAS_D_NUMBER = 1 ; ; ; $AC_MEAS_TYPE = 12 ; RETVAL = MEASURE() ; ; if RETVAL <> 0 setal(61000 + RETVAL) endif 1- 2- +x G17 SETFRAME ; ; $P_SETFRAME = $AC_MEAS_FRAME ; $P_SETFR = $P_SETFRAME ; g1 x0 y0 ; m30 SIEMENS 2004 SINUMERIK 840D/840Di/810D (FB2) - 03.04 2/M5/2-37 (M5) 08.01 , 2.3 ($AC MEAS TYPE = 13) . . . y y y +x y0 x x x0 x +y . 2-15 2-26 13 : $AC_MEAS_VALID $AA_MEAS_POINT1[ ] $AA_MEAS_POINT2[ ] $AA_MEAS_SETPOINT[ 1 2 ] $AC_MEAS_DIR_APPROACH * 0: +x, 1: x, 2: +y, 3: y, 4: +z, 5: z * $AC_MEAS_ACT_PLANE $AC_MEAS_FINE_TRANS 0: , 1: * $AC_MEAS_FRAME_SELECT * $AC_MEAS_T_NUMBER ( 0) * $AC_MEAS_D_NUMBER D (D0) * $AC_MEAS_TYPE 13 * 2-27 13 : $AC_MEAS_FRAME 2/M5/2-38 SIEMENS SINUMERIK 840D/840Di/810D (FB2) - 03.04 (M5) 08.01 2.3 , ($AC MEAS TYPE = 14) HMI . z zi A . P1 y . A . * .* (xs, ys, zs) . . A . yi P1 A A A . xi x . 2-16 . 2-28 14 : $AC_MEAS_VALID $AA_MEAS_POINT1[ ] $AA_MEAS_SETPOINT[ ] * * $AC_MEAS_ACT_PLANE $AC_MEAS_FINE_TRANS 0: , 1: * $AC_MEAS_FRAME_SELECT * $AC_MEAS_T_NUMBER ( 0) * D (D0) * $AC_MEAS_D_NUMBER $AC_MEAS_TYPE 14 * 2-29 14 : $AC_MEAS_FRAME SIEMENS 2004 SINUMERIK 840D/840Di/810D (FB2) - 03.04 2/M5/2-39 (M5) 08.01 , 2.3 ($AC MEAS TYPE = 15) HMI . A . A . A . A . A . A . . 2-17 2-30 15 : $AC_MEAS_VALID $AA_MEAS_POINT1[ ] $AA_MEAS_SETPOINT[ ] $AC_MEAS_FINE_TRANS * 0: , 1: * $AC_MEAS_FRAME_SELECT $AC_MEAS_TYPE * 15 * 2-31 15 : $AC_MEAS_FRAME 2/M5/2-40 SIEMENS SINUMERIK 840D/840Di/810D (FB2) - 03.04 (M5) 08.01 2.3 , ($AC MEAS TYPE = 16) y P2 P1 x . 2-18 2-32 16 : $AC_MEAS_VALID $AA_MEAS_POINT1[ ] 1 $AA_MEAS_POINT2[ ] 2 * $AA_MEAS_SETANGLE $AC_MEAS_ACT_PLANE $AC_MEAS_FINE_TRANS * 0: , 1: * * $AC_MEAS_FRAME_SELECT $AC_MEAS_T_NUMBER ( 0) * $AC_MEAS_D_NUMBER D (D0) * $AC_MEAS_TYPE 16 * 2-33 16 : $AC_MEAS_FRAME $AC_MEAS_WP_ANGLE SIEMENS 2004 SINUMERIK 840D/840Di/810D (FB2) - 03.04 2/M5/2-41 (M5) 08.01 , 2.3 ($AC MEAS TYPE = 17) P1, P2 P3. $AC_MEAS_RESULTS[0] z 0 P2 P3 y P1 1 $AC_MEAS_RESULTS[1] x . 2-19 G17 $AC_MEAS_TYPE = 17 0 1 $AC_MEAS_RESULTS[0..1]. $AC_MEAS_RESULTS[0] , $AC_MEAS_RESULTS[1] . P1, P2 P3. $AC_MEAS_RESULTS[2] 0. / , . , , . , .W S W S , z . 2-34 ( 2/M5/2-42 17 ) : G17 G18 G19 x z y y x z z y x SIEMENS SINUMERIK 840D/840Di/810D (FB2) - 03.04 (M5) 08.01 2.3 , 2-35 17 : $AC_MEAS_VALID $AA_MEAS_POINT1[ ] 1 $AA_MEAS_POINT2[ ] 2 $AA_MEAS_POINT3[ ] $AA_MEAS_SETPOINT[ 3 ] $AC_MEAS_ACT_PLANE * $AC_MEAS_FRAME_SELECT * $AC_MEAS_T_NUMBER ( 0) * $AC_MEAS_D_NUMBER D (D0) * $AC_MEAS_TYPE 17 * 2-36 17 : $AC_MEAS_FRAME $AC_MEAS_RESULTS[0] , $AC_MEAS_RESULTS[1] , $AC_MEAS_RESULTS[2] , $AC_MEAS_RESULTS[3] , $AC_MEAS_RESULTS[4] , $AC_MEAS_RESULTS[5] SIEMENS 2004 SINUMERIK 840D/840Di/810D , (FB2) - 03.04 2/M5/2-43 (M5) 08.01 , 2.3 DEF INT RETVAL DEF AXIS _XX, _YY, _ZZ ; ; T1 D1 G54 ; ; $AC_MEAS_VALID = 0 ; $AC_MEAS_TYPE = 17 $AC_MEAS_ACT_PLANE = 0 ; ; _XX=$P_AXN1 _YY=$P_AXN2 _ZZ=$P_AXN3 ; ; ; G17 G1 _XX=10 _YY=10 F1000 MEAS = 1 _ZZ=... ; G54 G17 1- ; ; $AA_MEAS_POINT1[_xx] = $AA_MW[_xx] $AA_MEAS_POINT1[_yy] = $AA_MW[_yy] $AA_MEAS_POINT1[_zz] = $AA_MW[_zz] G1 _XX=20 _YY=10 F1000 MEAS = 1 _ZZ=... ; ; 2- ; ; ; $AA_MEAS_POINT2[_xx] = $AA_MW[_xx] $AA_MEAS_POINT2[_yy] = $AA_MW[_yy] $AA_MEAS_POINT2[_zz] = $AA_MW[_zz] G1 _XX=20 _YY=20 F1000 MEAS = 1 _ZZ=... ; ; ; ; ; ; ; $AA_MEAS_POINT3[_xx] = $AA_MW[_xx] $AA_MEAS_POINT3[_yy] = $AA_MW[_yy] $AA_MEAS_POINT3[_zz] = $AA_MW[_zz] 3- ; ; ; ; $AA_MEAS_SETPOINT[_xx] = 12 $AA_MEAS_SETPOINT[_yy] = 4 ; ; $AC_MEAS_FRAME_SELECT = 102 ; $AC_MEAS_T_NUMBER = 1 $AC_MEAS_D_NUMBER = 1 ; ; ; RETVAL = MEASURE() ; G55 if RETVAL <> 0 setal(61000 + RETVAL) endif if $AC_MEAS_RESULTS[0] <> 12 setal(61000 + $AC_MEAS_RESULTS[0]) endif if $AC_MEAS_RESULTS[1] <> 4 setal(61000 + $AC_MEAS_RESULTS[1]) endif 2/M5/2-44 $P_UIFR[2] = $AC_MEAS_FRAME ; G55 G0 AX[_xx]=10 AX[_yy]=10 m30 ; (G55) SIEMENS SINUMERIK 840D/840Di/810D (FB2) - 03.04 (M5) 08.01 2.3 , W W S ($AC MEAS TYPE = 18) W P1 . $AC_MEAS_RESULTS[0] z $AC_MEAS_RESULTS[2] 0 P2 P3 y WKS P1 1 $AC_MEAS_RESULTS[1] WKS x . 2-20 G17 . . MEASURE() W . , . . $AC_MEAS_FRAME. , . $AC_MEAS_RESULTS[0..2]. $AC_MEAS_RESULTS[0] W S, $AC_MEAS_RESULTS[1] , $AC_MEAS_RESULTS[2] . . W W S P1 W . . SIEMENS 2004 SINUMERIK 840D/840Di/810D (FB2) - 03.04 2/M5/2-45 (M5) 08.01 , 2.3 CAD P1, P2 1- P1 2- P2 . W x W 3- P3 , P3 . 2-37 18 : $AC_MEAS_VALID $AA_MEAS_POINT1[ ] 1 $AA_MEAS_POINT2[ ] 2 $AA_MEAS_POINT3[ ] $AA_MEAS_SETPOINT[ 3 ] P1 $AC_MEAS_ACT_PLANE * $AC_MEAS_FRAME_SELECT * $AC_MEAS_T_NUMBER ( 0) * $AC_MEAS_D_NUMBER D (D0) * $AC_MEAS_TYPE 18 * 2-38 18 : $AC_MEAS_FRAME $AC_MEAS_RESULTS[0] $AC_MEAS_RESULTS[1] $AC_MEAS_RESULTS[2] 2/M5/2-46 SIEMENS SINUMERIK 840D/840Di/810D (FB2) - 03.04 (M5) 08.01 2.3 W S , DEF INT RETVAL DEF AXIS _XX, _YY, _ZZ ; ; T1 D1 G54 ; ; $AC_MEAS_VALID = 0 ; $AC_MEAS_TYPE = 18 $AC_MEAS_ACT_PLANE = 0 ; ; _XX=$P_AXN1 _YY=$P_AXN2 _ZZ=$P_AXN3 ; ; ; G17 G1 _XX=10 _YY=10 F1000 MEAS = 1 _ZZ=... ; G54 G17 1- ; ; $AA_MEAS_POINT1[_xx] = $AA_MW[_xx] $AA_MEAS_POINT1[_yy] = $AA_MW[_yy] $AA_MEAS_POINT1[_zz] = $AA_MW[_zz] G1 _XX=20 _YY=10 F1000 MEAS = 1 _ZZ=... ; ; ; ; 2- ; ; $AA_MEAS_POINT2[_xx] = $AA_MW[_xx] $AA_MEAS_POINT2[_yy] = $AA_MW[_yy] $AA_MEAS_POINT2[_zz] = $AA_MW[_zz] G1 _XX=20 _YY=20 F1000 MEAS = 1 _ZZ=... ; ; ; ; 3- ; ; $AA_MEAS_POINT3[_xx] = $AA_MW[_xx] $AA_MEAS_POINT3[_yy] = $AA_MW[_yy] $AA_MEAS_POINT3[_zz] = $AA_MW[_zz] ; ; ; ; ; ; ; P1 $AA_MEAS_SETPOINT[_xx] = 10 $AA_MEAS_SETPOINT[_yy] = 10 $AA_MEAS_SETPOINT[_zz] = 10 $AC_MEAS_FRAME_SELECT = 102 ; G55 $AC_MEAS_T_NUMBER = 1 $AC_MEAS_D_NUMBER = 1 ; ; ; RETVAL = MEASURE() ; if RETVAL <> 0 setal(61000 + RETVAL) endif ; ; ; ; ; R0 = $AC_MEAS_RESULTS[0] R1 = $AC_MEAS_RESULTS[1] R2 = $AC_MEAS_RESULTS[2] $P_UIFR[2] = $AC_MEAS_FRAME ; G55 G0 AX[_xx]=10 AX[_yy]=10 m30 ; SIEMENS 2004 SINUMERIK 840D/840Di/810D W S (G55) (FB2) - 03.04 2/M5/2-47 (M5) 08.01 , 2.3 ($AC MEAS TYPE = 19) . . . 2-39 19 : $AC_MEAS_VALID $AA_MEAS_POINT1[ ] $AA_MEAS_SETPOINT[ 1 ] $AC_MEAS_ACT_PLANE * $AC_MEAS_FRAME_SELECT * $AC_MEAS_FINE_TRANS * $AC_MEAS_TYPE 19 * 2-40 19 : $AC_MEAS_FRAME . DEF INT RETVAL DEF REAL _CORMW_XX, _CORMW_YY, _CORMW_ZZ DEF AXIS _XX, _YY, _ZZ ; ; ; ; ; T1 D1 G54 ; ; $AC_MEAS_VALID = 0 ; $AC_MEAS_TYPE = 19 ; $AC_MEAS_ACT_PLANE = 0 ; _XX=$P_AXN1 _YY=$P_AXN2 _ZZ=$P_AXN3 ; ; ; ; $AA_MEAS_POINT1[_xx] = $AA_MW[_xx] $AA_MEAS_POINT1[_yy] = $AA_MW[_yy] $AA_MEAS_POINT1[_zz] = $AA_MW[_zz] 2/M5/2-48 $AA_MEAS_SETPOINT[_xx] = 10 $AC_MEAS_FRAME_SELECT = 102 ; ; RETVAL = MEASURE() ; G54 G17 ; ; ; G55 SIEMENS SINUMERIK 840D/840Di/810D (FB2) - 03.04 (M5) 08.01 2.3 , if RETVAL <> 0 setal(61000 + RETVAL) endif $P_UIFR[2] = $AC_MEAS_FRAME ; G55 G0 AX[_xx]=10 AX[_yy]=10 m30 ; (G55) ($AC MEAS TYPE = 20) . . . 2-41 20 : $AC_MEAS_VALID $AA_MEAS_POINT1[ ] $AA_MEAS_SETPOINT[ 1 ] $AC_MEAS_ACT_PLANE * * $AC_MEAS_FRAME_SELECT $AC_MEAS_FINE_TRANS * $AC_MEAS_TYPE 20 * 2-42 20 : $AC_MEAS_FRAME . DEF INT RETVAL DEF REAL _CORMW_XX, _CORMW_YY, _CORMW_ZZ DEF AXIS _XX, _YY, _ZZ ; ; ; ; ; T1 D1 G54 ; ; $AC_MEAS_VALID = 0 ; $AC_MEAS_TYPE = 20 ; $AC_MEAS_ACT_PLANE = 0 ; SIEMENS 2004 SINUMERIK 840D/840Di/810D G54 2G17 (FB2) - 03.04 2/M5/2-49 (M5) 08.01 , 2.3 _XX=$P_AXN1 _YY=$P_AXN2 _ZZ=$P_AXN3 ; ; ; ; $AA_MEAS_POINT1[_xx] = $AA_MW[_xx] $AA_MEAS_POINT1[_yy] = $AA_MW[_yy] $AA_MEAS_POINT1[_zz] = $AA_MW[_zz] $AA_MEAS_SETPOINT[_xx] = 10 $AA_MEAS_SETPOINT[_yy] = 10 ; ; $AC_MEAS_FRAME_SELECT = 102 ; RETVAL = MEASURE() ; ; ; ; G55 if RETVAL <> 0 setal(61000 + RETVAL) endif $P_UIFR[2] = $AC_MEAS_FRAME ; G55 G0 AX[_xx]=10 AX[_yy]=10 m30 ; (G55) ($AC MEAS TYPE = 21) , . . , . 2-43 21 : $AC_MEAS_VALID $AA_MEAS_POINT1[ ] $AA_MEAS_SETPOINT[ 1 ] , * $AC_MEAS_ACT_PLANE $AC_MEAS_FRAME_SELECT * $AC_MEAS_FINE_TRANS * $AC_MEAS_TYPE 21 * 2-44 21 : $AC_MEAS_FRAME 2/M5/2-50 SIEMENS SINUMERIK 840D/840Di/810D (FB2) - 03.04 (M5) 08.01 2.3 , . DEF INT RETVAL DEF REAL _CORMW_XX, _CORMW_YY, _CORMW_ZZ DEF AXIS _XX, _YY, _ZZ ; ; ; ; ; T1 D1 G54 ; ; $AC_MEAS_VALID = 0 ; $AC_MEAS_TYPE = 21 ; $AC_MEAS_ACT_PLANE = 0 ; _XX=$P_AXN1 _YY=$P_AXN2 _ZZ=$P_AXN3 ; ; ; G54 3G17 ; $AA_MEAS_POINT1[_xx] = $AA_MW[_xx] $AA_MEAS_POINT1[_yy] = $AA_MW[_yy] $AA_MEAS_POINT1[_zz] = $AA_MW[_zz] ; ; ; ; ; ; ; , $AA_MEAS_SETPOINT[_xx] = 10 $AA_MEAS_SETPOINT[_yy] = 10 $AA_MEAS_SETPOINT[_zz] = 10 $AC_MEAS_FRAME_SELECT = 102 ; G55 $AA_MEAS_SETPOINT[_yy] = 10 RETVAL = MEASURE() ; if RETVAL <> 0 setal(61000 + RETVAL) endif $P_UIFR[2] = $AC_MEAS_FRAME ; G55 G0 AX[_xx]=10 AX[_yy]=10 m30 ; SIEMENS 2004 SINUMERIK 840D/840Di/810D (G55) (FB2) - 03.04 2/M5/2-51 (M5) 11.02 , 2.3 ($AC MEAS TYPE = 22) , . x x z z . 2-21 2-45 22 : $AC_MEAS_VALID $AA_MEAS_POINT1[ ] $AA_MEAS_SETPOINT[ 1 ] x z $AC_MEAS_ACT_PLANE * * $AC_MEAS_FRAME_SELECT $AC_MEAS_T_NUMBER ( 0) * $AC_MEAS_D_NUMBER $AC_MEAS_TYPE D (D0) * 22 * 2-46 2/M5/2-52 22 : $AC_MEAS_RESULT[0] 1 (G18: x) $AC_MEAS_RESULT[1] 2 (G18: z) SIEMENS SINUMERIK 840D/840Di/810D (FB2) - 03.04 (M5) 11.02 2.3 , / ($AC MEAS TYPE = 23) Z. ShopTurn . x x x0 z z0 z . 2-22 2-47 23 : $AC_MEAS_VALID $AA_MEAS_POINT1[ ] $AA_MEAS_SETPOINT[ 1 ] x0 z0 $AC_MEAS_ACT_PLANE * * $AC_MEAS_FRAME_SELECT $AC_MEAS_T_NUMBER ( 0) * $AC_MEAS_D_NUMBER D (D0) * $AC_MEAS_TYPE 23 * 2-48 SIEMENS 2004 SINUMERIK 840D/840Di/810D 23 : $AC_MEAS_RESULT[0] 1 (G18: x, x0 ) $AC_MEAS_RESULT[1] 2 (G18: x, z0 ) (FB2) - 03.04 2/M5/2-53 (M5) 11.02 , 2.3 ($AC MEAS TYPE = 24) , (W S, BKS, M S), . . z P1(M S) = P1 (M S) y W x BKS . 2-23 2-49 24 : $AC_MEAS_VALID $AA_MEAS_POINT1[ ] , W S, $AA_MEAS_P1:COORD $AA_MEAS_P2_COORD , $AA_MEAS_CHSFR , , $AC_MEAS_NCBFR $AC_MEAS_UIFR , $AC_MEAS_PFRAME , $AC_MEAS_TYPE * $AC_MEAS_TYPE 24 * 2-50 $AC_MEAS_POINT2[ 2/M5/2-54 24 : ] SIEMENS SINUMERIK 840D/840Di/810D (FB2) - 03.04 (M5) 11.02 2.3 , ($AC MEAS TYPE = 25) G17 x/y z G18 z/x y G19 y/z x 4 . G18 G17 y x G19 z P4 P4 P4 P2 P2 P2 P1 P1 P3 P1 P3 x P3 z y . 2-24 $AC_MEAS_VALID $AA_MEAS_POINT1[ ] 1 $AA_MEAS_POINT2[ ] 2 $AA_MEAS_POINT3[ ] 3 $AA_MEAS_POINT4[ ] 4 $AA_MEAS_SETPOINT[ ] * $AC_MEAS_ACT_PLANE $AC_MEAS_FINE_TRANS * 0: , 1: * * $AC_MEAS_FRAME_SELECT $AC_MEAS_T_NUMBER ( 0) * $AC_MEAS_D_NUMBER D (D0) * $AC_MEAS_TYPE 25 * 2-51 25 : $AC_MEAS_FRAME SIEMENS 2004 SINUMERIK 840D/840Di/810D (FB2) - 03.04 2/M5/2-55 (M5) 06.03 , 2.3 ($AC MEAS TYPE = 26) . , . . _N_SYF_DIR. Restore . Save ; $AC_MEAS_CHSFR = 0 ; $AC_MEAS_NCBFR = 0 ; $AC_MEAS_CHBFR = 0 $AC_MEAS_UIFR = 0 . , 1 . , MEAS_NO_MEMORY. DRAM MD 18351: MM_DRAM_FILE_MEM_SIZE . $AC_MEAS_VALID $AA_MEAS_CHSFR , , . $AA_MEAS_NCBFR , . , . $AA_MEAS_CHBFR , . , . $AA_MEAS_UIFR . $AC_MEAS_TYPE 2/M5/2-56 0..100: 1: G500 2: G500, G54, , . 26 SIEMENS SINUMERIK 840D/840Di/810D (FB2) - 03.04 (M5) 06.03 2.3 , ($AC MEAS TYPE = 27) C 26 SRAM. . , , , . $AC_MEAS_VALID $AA_MEAS_CHSFR , . , . $AA_MEAS_NCBFR , . , . $AA_MEAS_CHBFR , . , . $AA_MEAS_UIFR 1: G54 G99: G599, , . . $AC_MEAS_TYPE SIEMENS 2004 SINUMERIK 840D/840Di/810D 27 (FB2) - 03.04 2/M5/2-57 (M5) 06.03 , 2.3 2.3.3 T. ($AC MEAS TYPE = 10) . G17 z, y G18 G19 . G18 G17 y z z z0 y y0 x +z . 2-25 G17 2-52 z +y G18 10 : $AC_MEAS_VALID $AA_MEAS_POINT1[ ] $AA_MEAS_SETPOINT[ 1 ] z0 $AC_MEAS_ACT_PLANE $AC_MEAS_TYPE * 10 * 2-53 10 : $AC_MEAS_TOOL_LENGTH 2/M5/2-58 SIEMENS SINUMERIK 840D/840Di/810D (FB2) - 03.04 (M5) 10.00 2.3 , DEF INT RETVAL ; T0 D0 g0 x0 y0 z0 f10000 ; ; $AC_MEAS_VALID = 0 ; g1 z10 $AC_MEAS_LATCH[0] = 1 ; ; $AC_MEAS_DIR_APPROACH = 5 ; $AA_MEAS_SETPOINT[x] = 0 $AA_MEAS_SETPOINT[y] = 0 $AA_MEAS_SETPOINT[z] = 0 ; ; ; ; $AC_MEAS_ACT_PLANE = 0 ; $AC_MEAS_T_NUMBER = 1 $AC_MEAS_D_NUMBER = 1 ; ; ; $AC_MEAS_TYPE = 10 ; RETVAL = MEASURE() ; ; 1 z G17 if RETVAL <> 0 setal(61000 + RETVAL) endif if $AC_MEAS_TOOL_LENGTH <> 10 ; setal(61000 + $AC_MEAS_TOOL_LENGHT) endif m30 SIEMENS 2004 SINUMERIK 840D/840Di/810D (FB2) - 03.04 2/M5/2-59 (M5) 06.03 , 2.3 ($AC MEAS TYPE = 11) . G17 z, G18 y G19 . z z G17 x +x y G18 x +x x G19 y +y y G18 z x G19 z z z0 . 2-26 G17, G18 2-54 z z0 +z y y0 x y0 +z x x0 y +y x x0 G17 G19 10 : $AC_MEAS_VALID $AA_MEAS_POINT1[ ] $AA_MEAS_SETPOINT[ 1 ] x0 $AC_MEAS_ACT_PLANE $AC_MEAS_TYPE * 11 * 2-55 11 : $AC_MEAS_TOOL_DIAMETER 2/M5/2-60 SIEMENS SINUMERIK 840D/840Di/810D (FB2) - 03.04 10.00 2.4 2.4 ( ( (M5) ) ) , . , . (1 ( / 1 2) ). 2, . 2.4.1 4 MMC HMI Advanced . 3.2. HMI Embedded 6.1 2.4.2 , , . . RESET . , . . . . . Repos , Repos. . , . SIEMENS 2004 SINUMERIK 840D/840Di/810D (FB2) - 03.04 2/M5/2-61 (M5) 10.00 ( 2.4 ) 2.4.3 , , . 4- 1 . . 22 . 2 . 6- , 1 2. / 2 . , , . 4- 2 . . . / 2 . ! 4 . $A_PROBE[n] n= $A_PROBE[n]==1: $A_PROBE[n]==0: 2/M5/2-62 SIEMENS SINUMERIK 840D/840Di/810D (FB2) - 03.04 (M5) 10.00 2.4 ( ) 2.4.4 . MEASA MEAWA MEASA[ ]=( , 1, 2, 3, 4) : : (X, Y, ...) : 0= ( 1= 2= 44- 3= 4- , ) , , , 21700/21703 (= = 0/ 1 2 ) = 1= 2- ( . , ) 3 = 1- 2, . . . 1 = 1 = 2 = 2 = SIEMENS 2004 SINUMERIK 840D/840Di/810D 1 1 2 2 (FB2) - 03.04 2/M5/2-63 (M5) 2.4 10.00 ( ) MEASA MEAWA . . MEASA , MEASA, . RESET . MEASA/MEAWA MEAS/MEAW, 21701. , , . , 21702. , . , , . , ( if $A_PROBE [1] =1 MEAC [X] = (1,1, 1,1) else MEAC [X] =(1,1,1, 1) endif . ; ; ) . ? . ; . Online /DA/, 2.4.5 NCK . $AC_MEA[Nr] . <Nr.> (1 2) . ( . ), , . $AA_MM1[ ] $AA_MM4[ ] . < > . (X, Y, ...). $AA_MW1[ ] $AA_MW4[ ] . < 2/M5/2-64 > . (X, Y, ...). SIEMENS SINUMERIK 840D/840Di/810D (FB2) - 03.04 (M5) 10.00 2.4 ( ) , . . . $AA_MM1[ $AA_MM2[ ]= ]= 1, 1, 1 2 $AA_MM1[ $AA_MM2[ $AA_MM3[ $AA_MM4[ ]= ]= ]= ]= 1, 1, 2, 2, 1 2 1 2 . PLC PLC . 2-56 1 DB10 DB B107.0 2 DB10 DB B107.1 : SIEMENS 2004 SINUMERIK 840D/840Di/810D /PAZ/, /BNM/, (FB2) - 03.04 2/M5/2-65 (M5) 2.4 10.00 ( ) 2.4.6 ( ) FIFO. . " IPO/ " 8 : 1. FIFO . . MEAC , MEA [ ]=( , 1, 2, 3, 4) : : (X, Y, ...) : 0= 1 = ( ) 4 ( .4 , ) 2 = 4 ( ) (= ) = 0/ 1 = 12 = 2- ( , , 3 = 1- ) 2, . . FIFO : 1 = 1 = 2 = 2 = 1 1 2 2 (M S). FIFO, , $AC_FIFO1. $AC_MEA FIFO. MD 28264: LEN_AC_FIFO. . $AA_MM FIFO , 2/M5/2-66 . SIEMENS SINUMERIK 840D/840Di/810D (FB2) - 03.04 (M5) 10.00 2.4 ( ) , MEAC[ ]=(0) FIFO RESET M02/M30 . FIFO , FIFO . , FIFO. . FIFO FIFO SIEMENS 2004 SINUMERIK 840D/840Di/810D . /FB/, S5, (FB2) - 03.04 2/M5/2-67 (M5) 10.00 2.5 2.5 2.5.1 . 3,625µ ... 9,625µ SIMODRIVE 611D . : = x IPO/ . , 1 4 . 2.5.2 %_N_PRUEF_MESSTASTER_MPF ;$PATH=/_N_MPF_DIR ; N05 DEF INT MTSIGNAL ; N10 ; DEF INT ME_NR=1 N20 DEF REAL MESSWERT_IN_X N30 G17 T1 D1 ; N40 _ANF: G0 G90 X0 F150 ; ; N50 MEAS=ME_NR G1 X100 ; N60 STOPRE N70 MTSIGNAL=$AC_MEA[1] 1 ; ; ; N80 IF MTSIGNAL == 0 GOTOF _FEHL1 ; N90 MESSWERT_IN_X=$AA_MW[X] ; N95 M0 ; 1- N100 M02 N110 _FEHL1: MSG ( ) N120 M0 N130 M02 2/M5/2-68 SIEMENS SINUMERIK 840D/840Di/810D (FB2) - 03.04