Difference between revisions of "Component: CNC Machine (Scenarios)"
(XML import - Pre 8.0 release) |
|||
Line 22: | Line 22: | ||
[[CNC_Machine|CNC Machine Scenario]] | [[CNC_Machine|CNC Machine Scenario]] | ||
− | |||
==Downloadable macro reference== | ==Downloadable macro reference== |
Revision as of 14:50, 22 May 2018
Author | Matrix |
Version | 1.0 (Release) |
Category | Scenarios |
Contents
CNC Machine component
A CNC Machine that allows for simulation movement in the X, Y, Z directions and also providing access to the Drill.
Examples
There is a detailed walk through of the scenario detailed at the link below to go with this component.
Downloadable macro reference
This component does not contain any downloadable macros
Simulation macro reference
ZAxisMovement
Moves the components X axis by 0.01mm.
DirectionX 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.
Parameters
- BYTE DirectionZ
- Assign a value of 1 or 0. 1 will move the component down. 0 will move it up.
Return value
Drill_Speed
Will cause the drill to rotate according to the speed. If no speed is set it will stay static.
Parameters
- FLOAT DrillSpeed
- Speed of the Drill. 0=Stopped
Return value
- This call does not return a value
MoveToXYZ
Moves the tool on the machine to the absolute X Y Z position specified at the speed specified by performing 3D linear interolation.
Parameters
- FLOAT X
- FLOAT Y
- FLOAT Z
Return value
- This call does not return a value
YAxisMovement
Moves the components Y axis by 0.01mm.
DirectionX 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.
Parameters
- BYTE DirectionY
- Assign a value of 1 or 0. 1 will move the component right. 0 will move it left.
Return value
HomeMachine
Moves the machine an axis at a time until the end stop is hit.
Finishes by resetting the coordinates to 0,0,0.
Parameters
- This macro has no parameters
Return value
- This call does not return a value
XAxisMovement
Moves the components X axis by 0.01mm.
DirectionX 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.
Parameters
- BYTE DirectionX
- Assign a value of 1 or 0. 1 will move the component forward. 0 will move it up.
Return value
ResetCoordinates
Resets the coordinates to the home position 0,0,0.
Parameters
- This macro has no parameters
Return value
- This call does not return a value
Initialise
Enables the three motors within the component allowing for movement
when any of the Axis macros are called.
Parameters
- This macro has no parameters
Return value
- This call does not return a value
Property reference
This component does not contain any properties