Difference between revisions of "Component: CNC Machine (Scenarios)"

From Flowcode Help
Jump to navigationJump to search
(Created page with "{| style="width:50%" |- | width="20%" style="color:gray;" | Author | Matrix |- | width="20%" style="color:gray;" | Version | 1.0 |- | width="20%" style="color:gray;" |...")
 
Line 20: Line 20:
  
 
==Detailed description==
 
==Detailed description==
 +
 +
  
 
''No detailed description exists yet for this component''
 
''No detailed description exists yet for this component''
  
 
==Examples==
 
==Examples==
 +
 +
  
 
''<span style="color:red;">No additional examples</span>''
 
''<span style="color:red;">No additional examples</span>''
  
==Downloadable macro reference==
+
==Macro reference==
  
 
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"

Revision as of 14:09, 20 January 2023

Author Matrix
Version 1.0
Category Scenarios


CNC Machine component

A CNC Machine that allows for simulation movement in the X, Y, Z directions and also providing access to the Drill.

Component Source Code

Please click here for the component source code: FC_Comp_Source_CNCComponent_v002.fcfx

Detailed description

No detailed description exists yet for this component

Examples

No additional examples

Macro reference

Fc9-comp-macro.png ZAxisMovement
Moves the components Z axis by 0.01mm. Direction determines direction 1= Down 0 = Up If collision is detected then movement will stop and the return value will be 1. Otherwise the return value will be 0.  
Fc9-u8-icon.png - BYTE Direction
Assign a value of 1 or 0. 1 will move the component down. 0 will move it up. 
Fc9-u8-icon.png - BYTE Return


Fc9-comp-macro.png Drill_Speed
Will cause the drill to rotate according to the speed. If no speed is set it will stay static. 
Fc9-f32-icon.png - FLOAT DrillSpeed
Speed of the Drill. 0=Stopped 
Fc9-void-icon.png - VOID Return


Fc9-comp-macro.png MoveToXYZ
Moves the tool on the machine to the absolute X Y Z position specified at the speed specified by performing 3D linear interolation. 
Fc9-f32-icon.png - FLOAT X
 
Fc9-f32-icon.png - FLOAT Y
 
Fc9-f32-icon.png - FLOAT Z
 
Fc9-void-icon.png - VOID Return


Fc9-comp-macro.png YAxisMovement
Moves the components Y axis by 0.01mm. Direction determines direction 1= Forward, 0 = Backward If collision is detected then movement will stop and the return value will be 1. Otherwise the return value will be 0. 
Fc9-u8-icon.png - BYTE Direction
Assign a value of 1 or 0. 1 will move the component right. 0 will move it left. 
Fc9-u8-icon.png - BYTE Return


Fc9-comp-macro.png HomeMachine
Moves the machine an axis at a time until the end stop is hit. Finishes by resetting the coordinates to 0,0,0. 
Fc9-void-icon.png - VOID Return


Fc9-comp-macro.png XAxisMovement
Moves the components X axis by 0.01mm. Direction determines direction 1= Forward, 0 = Backward If collision is detected then movement will stop and the return value will be 1. Otherwise the return value will be 0.  
Fc9-u8-icon.png - BYTE Direction
Assign a value of 1 or 0. 1 will move the component forward. 0 will move it up. 
Fc9-u8-icon.png - BYTE Return


Fc9-comp-macro.png ResetCoordinates
Resets the coordinates to the home position 0,0,0. 
Fc9-void-icon.png - VOID Return


Fc9-comp-macro.png Initialise
Enables the three motors within the component allowing for movement when any of the Axis macros are called. 
Fc9-void-icon.png - VOID Return



Property reference

Fc9-prop-icon.png Properties