免费分享一个(VERICUT)VT换刀动画的宏程序

这是一个换刀动作的程序  (Haas VF2-TR Subroutines) CGTECH_MACRO "SubroutineSequence" "toolchange" (Toolchange Routine) (Inputs and Variables Used) (#4120 Toolcode from T)...

GFI图片附件:

javaw_etNqouXjcg[00_00_02--00_00_22].gif

这是一个换刀动作的程序 。
attachments-2023-04-X6VhYKAo642e982f37e1d.jpgattachments-2023-04-p3OmY5gg642e983787ae2.gif


(Haas VF2-TR Subroutines)


CGTECH_MACRO "SubroutineSequence" "toolchange"

(Toolchange Routine)

(Inputs and Variables Used)

(#4120 Toolcode from T)

(#3026 Tool in spindle)


IF [#4120 EQ #3026] GOTO 99




T#4120 (toolchain to tool)

CGTECH_MACRO "ProcessTimeOnOff" "" 0

CGTECH_MACRO "ModeAbsolute"

CGTECH_MACRO "SaveUnits"

CGTECH_MACRO "UnitsMetric"

CGTECH_MACRO "MotionRapid"

IF[#99990EQ1.]GOTO500

#9990=99901(Value-Star)

#9991=30(TOOL.NO)

#9992=1(Star)

WHILE[#9992LE#9991]DO1

#[#9990]=#9992

#9990=[#9990+1]

#9992=[#9992+1]

#3026=0.

END1

#99990=1.

N500

#9990=99900

WHILE[#[#9990]NE#4120]DO1

#9990=[#9990+1]

END1

#9993=#9990

#9994=#9993-99900


#[#9990]=#3026



CGTECH_MACRO "SetComponentVisibility" "Tool_Drop_B" 0


cgtech_macro "ProcessCompNameValue" "AW" #9994*12-12




CGTECH_MACRO "SetComponentVisibility" "Tool_Drop_B" 2

(CGTECH_MACRO "ToolChainMotion" " " )



CGTECH_MACRO "ToolChainToCompName" "Tool_Preselect"

GOTO#9994



N1

CGTECH_MACRO "UnMountTool" "1"

CGTECH_MACRO "SetComponentVisibility" "001" 0

GOTO501

N2

CGTECH_MACRO "UnMountTool" "2"

CGTECH_MACRO "SetComponentVisibility" "002" 0

GOTO501

N3

CGTECH_MACRO "UnMountTool" "3"

CGTECH_MACRO "SetComponentVisibility" "003" 0

GOTO501

N4

CGTECH_MACRO "UnMountTool" "4"

CGTECH_MACRO "SetComponentVisibility" "004" 0

GOTO501

N5

CGTECH_MACRO "UnMountTool" "5"

CGTECH_MACRO "SetComponentVisibility" "005" 0

GOTO501

N6

CGTECH_MACRO "UnMountTool" "6"

CGTECH_MACRO "SetComponentVisibility" "006" 0

GOTO501

N7

CGTECH_MACRO "UnMountTool" "7"

CGTECH_MACRO "SetComponentVisibility" "007" 0

GOTO501

N8

CGTECH_MACRO "UnMountTool" "8"

CGTECH_MACRO "SetComponentVisibility" "008" 0

GOTO501

N9

CGTECH_MACRO "UnMountTool" "9"

CGTECH_MACRO "SetComponentVisibility" "009" 0

GOTO501

N10

CGTECH_MACRO "UnMountTool" "10"

CGTECH_MACRO "SetComponentVisibility" "010" 0

GOTO501

N11

CGTECH_MACRO "UnMountTool" "11"

CGTECH_MACRO "SetComponentVisibility" "011" 0

GOTO501

N12

CGTECH_MACRO "UnMountTool" "12"

CGTECH_MACRO "SetComponentVisibility" "012" 0

GOTO501

N13

CGTECH_MACRO "UnMountTool" "13"

CGTECH_MACRO "SetComponentVisibility" "013" 0

GOTO501

N14

CGTECH_MACRO "UnMountTool" "14"

CGTECH_MACRO "SetComponentVisibility" "014" 0

GOTO501

N15

CGTECH_MACRO "UnMountTool" "15"

CGTECH_MACRO "SetComponentVisibility" "015" 0

GOTO501

N16

CGTECH_MACRO "UnMountTool" "16"

CGTECH_MACRO "SetComponentVisibility" "016" 0

GOTO501

N17

CGTECH_MACRO "UnMountTool" "17"

CGTECH_MACRO "SetComponentVisibility" "017" 0

GOTO501

N18

CGTECH_MACRO "UnMountTool" "18"

CGTECH_MACRO "SetComponentVisibility" "018" 0

GOTO501

N19

CGTECH_MACRO "UnMountTool" "19"

CGTECH_MACRO "SetComponentVisibility" "019" 0

GOTO501

N20

CGTECH_MACRO "UnMountTool" "20"

CGTECH_MACRO "SetComponentVisibility" "020" 0

GOTO501

N21

CGTECH_MACRO "UnMountTool" "21"

CGTECH_MACRO "SetComponentVisibility" "021" 0

GOTO501

N22

CGTECH_MACRO "UnMountTool" "22"

CGTECH_MACRO "SetComponentVisibility" "022" 0

GOTO501

N23

CGTECH_MACRO "UnMountTool" "23"

CGTECH_MACRO "SetComponentVisibility" "023" 0

GOTO501

N24

CGTECH_MACRO "UnMountTool" "24"

CGTECH_MACRO "SetComponentVisibility" "024" 0

GOTO501

N25

CGTECH_MACRO "UnMountTool" "25"

CGTECH_MACRO "SetComponentVisibility" "025" 0

GOTO501

N26

CGTECH_MACRO "UnMountTool" "26"

CGTECH_MACRO "SetComponentVisibility" "026" 0

GOTO501

N27

CGTECH_MACRO "UnMountTool" "27"

CGTECH_MACRO "SetComponentVisibility" "027" 0

GOTO501

N28

CGTECH_MACRO "UnMountTool" "28"

CGTECH_MACRO "SetComponentVisibility" "028" 0

GOTO501

N29

CGTECH_MACRO "UnMountTool" "29"

CGTECH_MACRO "SetComponentVisibility" "029" 0

GOTO501

N30

CGTECH_MACRO "UnMountTool" "30"

CGTECH_MACRO "SetComponentVisibility" "030" 0

GOTO501



N501

(rotate pickup arm)

CGTECH_MACRO "ProcessCompNameValue" "Tool_Drop_B" -90

CGTECH_MACRO "ProcessMotion"

CGTECH_MACRO "ZAxisMachineMotion" "" 0

CGTECH_MACRO "ProcessMotion"


(CGTECH_MACRO "SetComponentVisibility" "Other" 0)


CGTECH_MACRO "ProcessCompNameValue" "changer_arm" 74.5

CGTECH_MACRO "ProcessMotion"

CGTECH_MACRO "MountTool" "Tool_select" #4120

CGTECH_MACRO "UnMountTool" "Tool_Preselect" 

CGTECH_MACRO "UnloadToolToCompName" "Tool_return" 



CGTECH_MACRO "ProcessCompNameValue" "Tool_changer" -117

CGTECH_MACRO "ProcessMotion"


CGTECH_MACRO "ProcessCompNameValue" "changer_arm" 254.5

CGTECH_MACRO "ProcessMotion"

CGTECH_MACRO "ProcessCompNameValue" "Tool_changer" 0

CGTECH_MACRO "ProcessMotion"

CGTECH_MACRO "UnMountTool" "Tool_select"

CGTECH_MACRO "ToolChange"

CGTECH_MACRO "MountTool" "Tool_preselect" #3026

CGTECH_MACRO "UnMountTool" "Tool_return"

CGTECH_MACRO "ProcessCompNameValue" "changer_arm" -180

CGTECH_MACRO "ProcessMotion"

CGTECH_MACRO "ProcessCompNameValue" "Tool_Drop_B" 0

CGTECH_MACRO "ProcessMotion"


#9996=#3026

GOTO[#9994+100]

N100

GOTO502

N101

CGTECH_MACRO "MountTool" "1" #9996

CGTECH_MACRO "SetComponentVisibility" "001" 2

CGTECH_MACRO "UnMountTool" "Tool_preselect"

GOTO502

N102

CGTECH_MACRO "MountTool" "2" #9996

CGTECH_MACRO "SetComponentVisibility" "002" 2

CGTECH_MACRO "UnMountTool" "Tool_preselect"

GOTO502

N103

CGTECH_MACRO "MountTool" "3" #9996

CGTECH_MACRO "SetComponentVisibility" "003" 2

CGTECH_MACRO "UnMountTool" "Tool_preselect"

GOTO502

N104

CGTECH_MACRO "MountTool" "4" #9996

CGTECH_MACRO "SetComponentVisibility" "004" 2

CGTECH_MACRO "UnMountTool" "Tool_preselect"

GOTO502

N105

CGTECH_MACRO "MountTool" "5" #9996

CGTECH_MACRO "SetComponentVisibility" "005" 2

CGTECH_MACRO "UnMountTool" "Tool_preselect"

GOTO502

N106

CGTECH_MACRO "MountTool" "6" #9996

CGTECH_MACRO "SetComponentVisibility" "006" 2

CGTECH_MACRO "UnMountTool" "Tool_preselect"

GOTO502

N107

CGTECH_MACRO "MountTool" "7" #9996

CGTECH_MACRO "SetComponentVisibility" "007" 2

CGTECH_MACRO "UnMountTool" "Tool_preselect"

GOTO502

N108

CGTECH_MACRO "MountTool" "8" #9996

CGTECH_MACRO "SetComponentVisibility" "008" 2

CGTECH_MACRO "UnMountTool" "Tool_preselect"

GOTO502

N109

CGTECH_MACRO "MountTool" "9" #9996

CGTECH_MACRO "SetComponentVisibility" "009" 2

CGTECH_MACRO "UnMountTool" "Tool_preselect"

GOTO502

N110

CGTECH_MACRO "MountTool" "10" #9996

CGTECH_MACRO "SetComponentVisibility" "010" 2

CGTECH_MACRO "UnMountTool" "Tool_preselect"

GOTO502

N111

CGTECH_MACRO "MountTool" "11" #9996

CGTECH_MACRO "SetComponentVisibility" "011" 2

CGTECH_MACRO "UnMountTool" "Tool_preselect"

GOTO502

N112

CGTECH_MACRO "MountTool" "12" #9996

CGTECH_MACRO "SetComponentVisibility" "012" 2

CGTECH_MACRO "UnMountTool" "Tool_preselect"

GOTO502

N113

CGTECH_MACRO "MountTool" "13" #9996

CGTECH_MACRO "SetComponentVisibility" "013" 2

CGTECH_MACRO "UnMountTool" "Tool_preselect"

GOTO502

N114

CGTECH_MACRO "MountTool" "14" #9996

CGTECH_MACRO "SetComponentVisibility" "014" 2

CGTECH_MACRO "UnMountTool" "Tool_preselect"

GOTO502

N115

CGTECH_MACRO "MountTool" "15" #9996

CGTECH_MACRO "SetComponentVisibility" "015" 2

CGTECH_MACRO "UnMountTool" "Tool_preselect"

GOTO502

N116

CGTECH_MACRO "MountTool" "16" #9996

CGTECH_MACRO "SetComponentVisibility" "016" 2

CGTECH_MACRO "UnMountTool" "Tool_preselect"

GOTO502

N117

CGTECH_MACRO "MountTool" "17" #9996

CGTECH_MACRO "SetComponentVisibility" "017" 2

CGTECH_MACRO "UnMountTool" "Tool_preselect"

GOTO502

N118

CGTECH_MACRO "MountTool" "18" #9996

CGTECH_MACRO "SetComponentVisibility" "018" 2

CGTECH_MACRO "UnMountTool" "Tool_preselect"

GOTO502

N119

CGTECH_MACRO "MountTool" "19" #9996

CGTECH_MACRO "SetComponentVisibility" "019" 2

CGTECH_MACRO "UnMountTool" "Tool_preselect"

GOTO502

N120

CGTECH_MACRO "MountTool" "20" #9996

CGTECH_MACRO "SetComponentVisibility" "020" 2

CGTECH_MACRO "UnMountTool" "Tool_preselect"

GOTO502

N121

CGTECH_MACRO "MountTool" "21" #9996

CGTECH_MACRO "SetComponentVisibility" "021" 2

CGTECH_MACRO "UnMountTool" "Tool_preselect"

GOTO502

N122

CGTECH_MACRO "MountTool" "22" #9996

CGTECH_MACRO "SetComponentVisibility" "22" 2

CGTECH_MACRO "UnMountTool" "Tool_preselect"

GOTO502

N123

CGTECH_MACRO "MountTool" "23" #9996

CGTECH_MACRO "SetComponentVisibility" "023" 2

CGTECH_MACRO "UnMountTool" "Tool_preselect"

GOTO502

N124

CGTECH_MACRO "MountTool" "24" #9996

CGTECH_MACRO "SetComponentVisibility" "024" 2

CGTECH_MACRO "UnMountTool" "Tool_preselect"

GOTO502

N125

CGTECH_MACRO "MountTool" "25" #9996

CGTECH_MACRO "SetComponentVisibility" "025" 2

CGTECH_MACRO "UnMountTool" "Tool_preselect"

GOTO502

N126

CGTECH_MACRO "MountTool" "26" #9996

CGTECH_MACRO "SetComponentVisibility" "026" 2

CGTECH_MACRO "UnMountTool" "Tool_preselect"

GOTO502

N127

CGTECH_MACRO "MountTool" "27" #9996

CGTECH_MACRO "SetComponentVisibility" "027" 2

CGTECH_MACRO "UnMountTool" "Tool_preselect"

GOTO502

N128

CGTECH_MACRO "MountTool" "28" #9996

CGTECH_MACRO "SetComponentVisibility" "028" 2

CGTECH_MACRO "UnMountTool" "Tool_preselect"

GOTO502

N129

CGTECH_MACRO "MountTool" "29" #9996

CGTECH_MACRO "SetComponentVisibility" "029" 2

CGTECH_MACRO "UnMountTool" "Tool_preselect"

GOTO502

N130

CGTECH_MACRO "MountTool" "30" #9996

CGTECH_MACRO "SetComponentVisibility" "030" 2

CGTECH_MACRO "UnMountTool" "Tool_preselect"

GOTO502

N502

(return arm to initial position)

CGTECH_MACRO "MotionOnOff" " " 0

CGTECH_MACRO "ProcessCompNameValue" "changer_arm" 0 

CGTECH_MACRO "MotionOnOff" " " 1

(close Door)

CGTECH_MACRO "ProcessCompNameValue" "" 0 

CGTECH_MACRO "ProcessTimeOnOff" " " 1 

CGTECH_MACRO "RestoreUnits" 

CGTECH_MACRO "ProcessTimeOnOff" " " 1 

#3026=#4120

N99

CGTECH_MACRO "EndSub"

  • 发表于 2023-04-06 18:08
  • 阅读 ( 7320 )
  • 分类:其它软件

9 条评论

请先 登录 后评论
令

6 篇文章

作家榜 »