Sidebar

Home



Knowledge Base


Guides & Tutorials

Projects

Samples

  G-Code
   Square
   Arcs
   Mickey
   Arrow
   Bear
   Ball In Cage

  Dialogs
   Square
   Rounded Square
   Guess The Number

  O-Words
   Polygon

  Subprocedures
   Lissajous

   Lissajous (sub..endsub..call)
   Lissajous (call..sub..endsub)

   Lissajous (exec..O..M99)

   Lissajous (G65)
   Lissajous (G65 with GOTO)

   Palindrome
   PrimeFactors
   Fibonacci

  Splines
   Butterfly

  G06
   arrchr

  Dynamic
   Clock
   DateTime

  Notepad++ Plugin
   Examples

  3D Models
   small_cnc.txt
   3dModel_TableA.txt


kb:samples:small_cnc

small_cnc.txt

small_cnc.txt
<?xml version="1.0" encoding="UTF-8"?>
 
<Model>
	<Expr> 
width=240;
length=440;
centerx=-50;
centery=50;
centerz=0;
gantry_side=23.75; 
gantry_height=140; 
gantry_clear=160;
arm_width=80;
arm_height=220;
	</Expr>
	<Color Value="ffffffff"/>
	<Assembly Name="CNC" Enable="true">
		<Transform X="-centerx" Y="-centery" Z="-centerz"/>
		<Items>
			<Assembly Name="Base">
				<Items>
					<Part Name="Table">
						<Color Value="ffaaaacc"/>
						<Cuboid X="-width/2" Y="0" Z="-0.5" W="width" L="length" H="-15"/>
					</Part>
					<Part Name="Front">
						<Color Value="ff9999bb"/>
						<Cuboid X="-width/2" Y="0" Z="-16" W="width" L="15" H="-60"/>
					</Part>
					<Part Name="Back">
						<Color Value="ff9999bb"/>
						<Cuboid X="-width/2" Y="length" Z="-16" W="width" L="-15" H="-60"/>
					</Part>	
				</Items>
			</Assembly>
 
			<Assembly Name="Gantry">
				<Transform X="0" Y="centery" Z="0"/>
				<Move X="0" Y="1" Z="0" RX="0" RY="0" RZ="0" CX="0" CY="0" CZ="0"/>
				<Items>
					<Part Name="Left">
						<Color Value="ff8e6767"/>
						<Poly 
							X1="0" Y1="0" 
							X2="100" Y2="0"
							X3="50+gantry_clear+gantry_height" Y3="70"
							X4="50+gantry_clear+gantry_height" Y4="100"
							X5="0" Y5="100"
							Reverse="false"
							Size="-12" X="-(width/2+gantry_side)" Y="0" Z="-50" RY="-90"/>
					</Part>	
					<Part Name="Right">
						<Color Value="ff8e6767"/>
						<Poly 
							X1="0" Y1="0" 
							X2="100" Y2="0"
							X3="50+gantry_clear+gantry_height" Y3="70"
							X4="50+gantry_clear+gantry_height" Y4="100"
							X5="0" Y5="100"
							Reverse="false"
							Size="+12" X="+(width/2+gantry_side)" Y="0" Z="-50" RY="-90"/>
					</Part>	
					<Part Name="Gantry">
						<Color Value="ff8e6767"/>
						<Cuboid X="-(width/2+gantry_side)" Y="100" Z="gantry_clear" W="width+2*(gantry_side)" L="-12" H="gantry_height"/>
					</Part>	
					<Part>
						<Color Value="ff008080"/>
						<Cylinder X="-(width/2+gantry_side)" Y="75" Z="gantry_clear+20" R1="6" R2="6" Size="width+2*(gantry_side)" RY="90"/>
					</Part>	
					<Part>
						<Color Value="ff008080"/>
						<Cylinder X="-(width/2+gantry_side)" Y="75" Z="gantry_clear+gantry_height-20" R1="6" R2="6" Size="width+2*(gantry_side)" RY="90"/>
					</Part>	
 
					<Assembly Name="ArmWithSpindle">
						<Transform X="centerx" Y="0" Z="0" />
						<Move X="1"/>
						<Items>
							<Assembly Name="Arm" Enable="true">
								<Items>
									<Part Name="Back">
										<Color Value="ffaaaacc"/>
										<Cuboid X="-arm_width/2" Y="85" Z="gantry_clear-10" W="arm_width" L="-20" H="arm_height+20"/>
									</Part>	
									<Part>
										<Color Value="ffaaaacc"/>
										<Cuboid X="-arm_width/2" Y="65" Z="gantry_clear-10" W="arm_width" L="-30" H="10"/>
									</Part>	
									<Part>
										<Color Value="ffaaaacc"/>
										<Cuboid X="-arm_width/2" Y="65" Z="gantry_clear+arm_height+10" W="arm_width" L="-30" H="-10"/>
									</Part>		
									<Part>
										<Color Value="ff008080"/>
										<Cylinder X="-(arm_width/2-15)" Y="50" Z="gantry_clear" R1="5" R2="5" Size="arm_height"/>
									</Part>	
									<Part>
										<Color Value="ff008080"/>
										<Cylinder X="+(arm_width/2-15-20)" Y="50" Z="gantry_clear" R1="5" R2="5" Size="arm_height"/>
									</Part>	
								</Items>
							</Assembly>
 
							<Assembly Name="Spindle" Enable="true">
								<Transform X="0" Y="0" Z="centerz"/>
								<Move Z="1"/>
								<Items>
									<Part>
										<Color Value="ff8e6787"/>
										<Cuboid X="-arm_width/2" Y="63" Z="gantry_clear" W="arm_width" L="-30" H="60"/>
									</Part>	
									<Part>
										<Color Value="ff8e6787"/>
										<Cuboid X="-arm_width/2" Y="33" Z="gantry_clear+60" W="arm_width" L="-5" H="-arm_height+40"/>
									</Part>	
									<Part>
										<Color Value="fff5deb3"/>
										<Cylinder X="0" Y="0" Z="48" R1="27.5" R2="27.5" Size="120"/>
									</Part>	
									<Part>
										<Color Value="fff5deb3"/>
										<Cylinder X="0" Y="0" Z="10" R1="3" R2="3" Size="40"/>
									</Part>	
									<Part>
										<Color Value="ff8b0000"/>
										<Sphere X="0" Y="0" Z="170" R="10"/>
									</Part>	
 
								</Items>
							</Assembly>
						</Items>
					</Assembly>
				</Items>
			</Assembly>
 
		</Items>
	</Assembly>
</Model>
kb/samples/small_cnc.txt · Last modified: 2024/06/19 20:59 by 127.0.0.1

Page Tools