Jump to content

Component: CNC Machine (Scenarios): Difference between revisions

From Flowcode Help
No edit summary
m Text replacement - "width="90%" style="background-color:#D8C9D8; color:#4B008D;"" to "width="90%" class="mtx-class-macrohead""
 
(9 intermediate revisions by 2 users not shown)
Line 31: Line 31:




''No detailed description exists yet for this component''


==Examples==






''No detailed description exists yet for this component''


==Examples==




Line 43: Line 43:




''<span style="color:red;">No additional examples</span>''


==Macro reference==


{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ZAxisMovement'''
|-
| colspan="2" | 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. &nbsp;
|-
|-
| width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE
| width="90%" | Direction
|-
| colspan="2" | Assign a value of 1 or 0. 1 will move the component down. 0 will move it up.&nbsp;
|-
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-u8-icon.png]] - BYTE
| width="90%" style="border-top: 2px solid #000;" | ''Return''
|}




{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Drill_Speed'''
|-
| colspan="2" | Will cause the drill to rotate according to the speed. If no speed is set it will stay static.&nbsp;
|-
|-
| width="10%" align="center" | [[File:Fc9-f32-icon.png]] - FLOAT
| width="90%" | DrillSpeed
|-
| colspan="2" | Speed of the Drill. 0=Stopped&nbsp;
|-
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID
| width="90%" style="border-top: 2px solid #000;" | ''Return''
|}




{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''MoveToXYZ'''
|-
| colspan="2" | Moves the tool on the machine to the absolute X Y Z position specified at the speed specified by performing 3D linear interolation.&nbsp;
|-
|-
| width="10%" align="center" | [[File:Fc9-f32-icon.png]] - FLOAT
| width="90%" | X
|-
| colspan="2" | &nbsp;
|-
| width="10%" align="center" | [[File:Fc9-f32-icon.png]] - FLOAT
| width="90%" | Y
|-
| colspan="2" | &nbsp;
|-
| width="10%" align="center" | [[File:Fc9-f32-icon.png]] - FLOAT
| width="90%" | Z
|-
| colspan="2" | &nbsp;
|-
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID
| width="90%" style="border-top: 2px solid #000;" | ''Return''
|}




{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
''<span style="color:red;">No additional examples</span>''
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''YAxisMovement'''
|-
| colspan="2" | 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.&nbsp;
|-
|-
| width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE
| width="90%" | Direction
|-
| colspan="2" | Assign a value of 1 or 0. 1 will move the component right. 0 will move it left.&nbsp;
|-
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-u8-icon.png]] - BYTE
| width="90%" style="border-top: 2px solid #000;" | ''Return''
|}
 
 
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''HomeMachine'''
|-
| colspan="2" | Moves the machine an axis at a time until the end stop is hit. Finishes by resetting the coordinates to 0,0,0.&nbsp;
|-
|-
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID
| width="90%" style="border-top: 2px solid #000;" | ''Return''
|}
 
 
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''XAxisMovement'''
|-
| colspan="2" | 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. &nbsp;
|-
|-
| width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE
| width="90%" | Direction
|-
| colspan="2" | Assign a value of 1 or 0. 1 will move the component forward. 0 will move it up.&nbsp;
|-
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-u8-icon.png]] - BYTE
| width="90%" style="border-top: 2px solid #000;" | ''Return''
|}




{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ResetCoordinates'''
|-
| colspan="2" | Resets the coordinates to the home position 0,0,0.&nbsp;
|-
|-
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID
| width="90%" style="border-top: 2px solid #000;" | ''Return''
|}




{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Initialise'''
|-
| colspan="2" | Enables the three motors within the component allowing for movement  when any of the Axis macros are called.&nbsp;
|-
|-
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID
| width="90%" style="border-top: 2px solid #000;" | ''Return''
|}








==Property reference==


{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
|-
| width="10%" align="center" style="background-color:#D8C9D8;" | [[File:Fc9-prop-icon.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Properties'''
|-
|}==Macro reference==


{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ZAxisMovement'''
|-
| colspan="2" | 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. &nbsp;
|-
|-
| width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE
| width="90%" | Direction
|-
| colspan="2" | Assign a value of 1 or 0. 1 will move the component down. 0 will move it up.&nbsp;
|-
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-u8-icon.png]] - BYTE
| width="90%" style="border-top: 2px solid #000;" | ''Return''
|}


==Macro reference==


{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
===Drill_Speed===
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Drill_Speed'''
| width="90%" class="mtx-class-macrohead" | '''Drill_Speed'''
|-
|-
| colspan="2" | Will cause the drill to rotate according to the speed. If no speed is set it will stay static.&nbsp;
| colspan="2" | Will cause the drill to rotate according to the speed. If no speed is set it will stay static.&nbsp;
Line 233: Line 84:




{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
===HomeMachine===
|-
{| class="mtx-class-macrotable wikitable"
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''MoveToXYZ'''
|-
| colspan="2" | Moves the tool on the machine to the absolute X Y Z position specified at the speed specified by performing 3D linear interolation.&nbsp;
|-
|-
|-
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" | [[File:Fc9-f32-icon.png]] - FLOAT
| width="90%" class="mtx-class-macrohead" | '''HomeMachine'''
| width="90%" | X
|-
| colspan="2" | &nbsp;
|-
| width="10%" align="center" | [[File:Fc9-f32-icon.png]] - FLOAT
| width="90%" | Y
|-
| colspan="2" | &nbsp;
|-
| width="10%" align="center" | [[File:Fc9-f32-icon.png]] - FLOAT
| width="90%" | Z
|-
| colspan="2" | &nbsp;
|-
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID
| width="90%" style="border-top: 2px solid #000;" | ''Return''
|}
 
 
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''YAxisMovement'''
|-
| colspan="2" | 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.&nbsp;
|-
|-
| width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE
| width="90%" | Direction
|-
| colspan="2" | Assign a value of 1 or 0. 1 will move the component right. 0 will move it left.&nbsp;
|-
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-u8-icon.png]] - BYTE
| width="90%" style="border-top: 2px solid #000;" | ''Return''
|}
 
 
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''HomeMachine'''
|-
|-
| colspan="2" | Moves the machine an axis at a time until the end stop is hit. Finishes by resetting the coordinates to 0,0,0.&nbsp;
| colspan="2" | Moves the machine an axis at a time until the end stop is hit. Finishes by resetting the coordinates to 0,0,0.&nbsp;
Line 292: Line 98:




{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
===Initialise===
|-
{| class="mtx-class-macrotable wikitable"
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''XAxisMovement'''
|-
| colspan="2" | 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. &nbsp;
|-
|-
| width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE
| width="90%" | Direction
|-
| colspan="2" | Assign a value of 1 or 0. 1 will move the component forward. 0 will move it up.&nbsp;
|-
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-u8-icon.png]] - BYTE
| width="90%" style="border-top: 2px solid #000;" | ''Return''
|}
 
 
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ResetCoordinates'''
|-
| colspan="2" | Resets the coordinates to the home position 0,0,0.&nbsp;
|-
|-
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID
| width="90%" style="border-top: 2px solid #000;" | ''Return''
|}
 
 
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Initialise'''
| width="90%" class="mtx-class-macrohead" | '''Initialise'''
|-
|-
| colspan="2" | Enables the three motors within the component allowing for movement  when any of the Axis macros are called.&nbsp;
| colspan="2" | Enables the three motors within the component allowing for movement  when any of the Axis macros are called.&nbsp;
Line 336: Line 112:




 
===MoveToXYZ===
 
{| class="mtx-class-macrotable wikitable"
==Property reference==
 
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
|-
| width="10%" align="center" style="background-color:#D8C9D8;" | [[File:Fc9-prop-icon.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Properties'''
|-
|}==Macro reference==
 
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ZAxisMovement'''
|-
| colspan="2" | 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. &nbsp;
|-
|-
| width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE
| width="90%" | Direction
|-
| colspan="2" | Assign a value of 1 or 0. 1 will move the component down. 0 will move it up.&nbsp;
|-
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-u8-icon.png]] - BYTE
| width="90%" style="border-top: 2px solid #000;" | ''Return''
|}
 
 
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Drill_Speed'''
|-
|-
| colspan="2" | Will cause the drill to rotate according to the speed. If no speed is set it will stay static.&nbsp;
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
|-
| width="90%" class="mtx-class-macrohead" | '''MoveToXYZ'''
|-
| width="10%" align="center" | [[File:Fc9-f32-icon.png]] - FLOAT
| width="90%" | DrillSpeed
|-
| colspan="2" | Speed of the Drill. 0=Stopped&nbsp;
|-
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID
| width="90%" style="border-top: 2px solid #000;" | ''Return''
|}
 
 
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''MoveToXYZ'''
|-
|-
| colspan="2" | Moves the tool on the machine to the absolute X Y Z position specified at the speed specified by performing 3D linear interolation.&nbsp;
| colspan="2" | Moves the tool on the machine to the absolute X Y Z position specified at the speed specified by performing 3D linear interolation.&nbsp;
Line 411: Line 141:




{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
===ResetCoordinates===
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''YAxisMovement'''
| width="90%" class="mtx-class-macrohead" | '''ResetCoordinates'''
|-
|-
| colspan="2" | 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.&nbsp;
| colspan="2" | Resets the coordinates to the home position 0,0,0.&nbsp;
|-
|-
| width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE
| width="90%" | Direction
|-
| colspan="2" | Assign a value of 1 or 0. 1 will move the component right. 0 will move it left.&nbsp;
|-
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-u8-icon.png]] - BYTE
| width="90%" style="border-top: 2px solid #000;" | ''Return''
|}
 
 
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''HomeMachine'''
|-
| colspan="2" | Moves the machine an axis at a time until the end stop is hit. Finishes by resetting the coordinates to 0,0,0.&nbsp;
|-
|-
|-
|-
Line 442: Line 155:




{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
===XAxisMovement===
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''XAxisMovement'''
| width="90%" class="mtx-class-macrohead" | '''XAxisMovement'''
|-
|-
| colspan="2" | 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. &nbsp;
| colspan="2" | 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. &nbsp;
Line 460: Line 174:




{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
===YAxisMovement===
|-
{| class="mtx-class-macrotable wikitable"
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ResetCoordinates'''
|-
| colspan="2" | Resets the coordinates to the home position 0,0,0.&nbsp;
|-
|-
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID
| width="90%" style="border-top: 2px solid #000;" | ''Return''
|}
 
 
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Initialise'''
|-
| colspan="2" | Enables the three motors within the component allowing for movement  when any of the Axis macros are called.&nbsp;
|-
|-
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID
| width="90%" style="border-top: 2px solid #000;" | ''Return''
|}
 
 
 
 
==Property reference==
 
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
|-
| width="10%" align="center" style="background-color:#D8C9D8;" | [[File:Fc9-prop-icon.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Properties'''
|-
|}==Macro reference==
 
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ZAxisMovement'''
|-
| colspan="2" | 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. &nbsp;
|-
|-
| width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE
| width="90%" | Direction
|-
| colspan="2" | Assign a value of 1 or 0. 1 will move the component down. 0 will move it up.&nbsp;
|-
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-u8-icon.png]] - BYTE
| width="90%" style="border-top: 2px solid #000;" | ''Return''
|}
 
 
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Drill_Speed'''
|-
| colspan="2" | Will cause the drill to rotate according to the speed. If no speed is set it will stay static.&nbsp;
|-
|-
| width="10%" align="center" | [[File:Fc9-f32-icon.png]] - FLOAT
| width="90%" | DrillSpeed
|-
| colspan="2" | Speed of the Drill. 0=Stopped&nbsp;
|-
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID
| width="90%" style="border-top: 2px solid #000;" | ''Return''
|}
 
 
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''MoveToXYZ'''
|-
| colspan="2" | Moves the tool on the machine to the absolute X Y Z position specified at the speed specified by performing 3D linear interolation.&nbsp;
|-
|-
|-
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" | [[File:Fc9-f32-icon.png]] - FLOAT
| width="90%" class="mtx-class-macrohead" | '''YAxisMovement'''
| width="90%" | X
|-
| colspan="2" | &nbsp;
|-
| width="10%" align="center" | [[File:Fc9-f32-icon.png]] - FLOAT
| width="90%" | Y
|-
| colspan="2" | &nbsp;
|-
| width="10%" align="center" | [[File:Fc9-f32-icon.png]] - FLOAT
| width="90%" | Z
|-
| colspan="2" | &nbsp;
|-
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID
| width="90%" style="border-top: 2px solid #000;" | ''Return''
|}
 
 
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''YAxisMovement'''
|-
|-
| colspan="2" | 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.&nbsp;
| colspan="2" | 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.&nbsp;
Line 579: Line 193:




{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
===ZAxisMovement===
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''HomeMachine'''
| width="90%" class="mtx-class-macrohead" | '''ZAxisMovement'''
|-
|-
| colspan="2" | Moves the machine an axis at a time until the end stop is hit. Finishes by resetting the coordinates to 0,0,0.&nbsp;
| colspan="2" | 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. &nbsp;
|-
|-
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID
| width="90%" style="border-top: 2px solid #000;" | ''Return''
|}
 
 
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''XAxisMovement'''
|-
| colspan="2" | 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. &nbsp;
|-
|-
|-
|-
Line 603: Line 205:
| width="90%" | Direction
| width="90%" | Direction
|-
|-
| colspan="2" | Assign a value of 1 or 0. 1 will move the component forward. 0 will move it up.&nbsp;
| colspan="2" | Assign a value of 1 or 0. 1 will move the component down. 0 will move it up.&nbsp;
|-
|-
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-u8-icon.png]] - BYTE
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-u8-icon.png]] - BYTE
| width="90%" style="border-top: 2px solid #000;" | ''Return''
| width="90%" style="border-top: 2px solid #000;" | ''Return''
|}
|}
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ResetCoordinates'''
|-
| colspan="2" | Resets the coordinates to the home position 0,0,0.&nbsp;
|-
|-
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID
| width="90%" style="border-top: 2px solid #000;" | ''Return''
|}
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Initialise'''
|-
| colspan="2" | Enables the three motors within the component allowing for movement  when any of the Axis macros are called.&nbsp;
|-
|-
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID
| width="90%" style="border-top: 2px solid #000;" | ''Return''
|}




==Property reference==
==Property reference==


{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" | [[File:Fc9-prop-icon.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-prop-icon.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Properties'''  
| width="90%" class="mtx-class-macrohead" | '''Properties'''  
|-
|-
|}
|}

Latest revision as of 14:23, 13 July 2026

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 to download the component source project: FC_Comp_Source_CNCComponent_v002.fcfx

Please click here to view the component source code (Beta): FC_Comp_Source_CNCComponent_v002.fcfx

Detailed description

No detailed description exists yet for this component

Examples

No additional examples






Macro reference

Drill_Speed

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


HomeMachine

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


Initialise

Initialise
Enables the three motors within the component allowing for movement when any of the Axis macros are called. 
- VOID Return


MoveToXYZ

MoveToXYZ
Moves the tool on the machine to the absolute X Y Z position specified at the speed specified by performing 3D linear interolation. 
- FLOAT X
 
- FLOAT Y
 
- FLOAT Z
 
- VOID Return


ResetCoordinates

ResetCoordinates
Resets the coordinates to the home position 0,0,0. 
- VOID Return


XAxisMovement

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.  
- BYTE Direction
Assign a value of 1 or 0. 1 will move the component forward. 0 will move it up. 
- BYTE Return


YAxisMovement

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. 
- BYTE Direction
Assign a value of 1 or 0. 1 will move the component right. 0 will move it left. 
- BYTE Return


ZAxisMovement

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.  
- BYTE Direction
Assign a value of 1 or 0. 1 will move the component down. 0 will move it up. 
- BYTE Return


Property reference

Properties