Component: Robot Arm AllCode SIM (AllCode): Difference between revisions
Appearance
m Text replacement - "class="wikitable" style="width:60%; background-color:#FFFFFF;"" to "class="mtx-class-macrotable wikitable"" |
m Text replacement - "width="10%" align="center" style="background-color:#D8C9D8;" align="center"" to "width="10%" align="center" class="mtx-class-macrohead"" |
||
| Line 82: | Line 82: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Beep''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Beep''' | ||
|- | |- | ||
| Line 111: | Line 111: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GotoPosition''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GotoPosition''' | ||
|- | |- | ||
| Line 130: | Line 130: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GripperClose''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GripperClose''' | ||
|- | |- | ||
| Line 149: | Line 149: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GripperOpen''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GripperOpen''' | ||
|- | |- | ||
| Line 163: | Line 163: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''LCDClear''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''LCDClear''' | ||
|- | |- | ||
| Line 177: | Line 177: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''LCDClearLine''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''LCDClearLine''' | ||
|- | |- | ||
| Line 196: | Line 196: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''LCDCursor''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''LCDCursor''' | ||
|- | |- | ||
| Line 220: | Line 220: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''LCDPrintNum''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''LCDPrintNum''' | ||
|- | |- | ||
| Line 239: | Line 239: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''LCDPrintStr''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''LCDPrintStr''' | ||
|- | |- | ||
| Line 258: | Line 258: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''LEDOff''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''LEDOff''' | ||
|- | |- | ||
| Line 277: | Line 277: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''LEDOn''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''LEDOn''' | ||
|- | |- | ||
| Line 296: | Line 296: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''LEDWrite''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''LEDWrite''' | ||
|- | |- | ||
| Line 315: | Line 315: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''LinearInterpolation''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''LinearInterpolation''' | ||
|- | |- | ||
| Line 354: | Line 354: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''MotorsMoving''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''MotorsMoving''' | ||
|- | |- | ||
| Line 368: | Line 368: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Park''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Park''' | ||
|- | |- | ||
| Line 382: | Line 382: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ReadPressure''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ReadPressure''' | ||
|- | |- | ||
| Line 396: | Line 396: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ReadSwitch''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ReadSwitch''' | ||
|- | |- | ||
| Line 415: | Line 415: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SetAllServos''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SetAllServos''' | ||
|- | |- | ||
| Line 454: | Line 454: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SetMovementSpeed''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SetMovementSpeed''' | ||
|- | |- | ||
| Line 473: | Line 473: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SetServo''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SetServo''' | ||
|- | |- | ||
| Line 497: | Line 497: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SetTrim''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SetTrim''' | ||
|- | |- | ||
| Line 521: | Line 521: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''StoreCoords''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''StoreCoords''' | ||
|- | |- | ||
| Line 565: | Line 565: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''StorePosition''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''StorePosition''' | ||
|- | |- | ||
Revision as of 14:17, 13 July 2026
| Author | Matrix TSL |
| Version | 1.0 |
| Category | AllCode |
Robot Arm AllCode SIM component
Matrix 5-axis Robot Arm with Gripper. Compatible with the Matrix Robot ARM Training Curriculum and Hardware. Features gripper pressure sensor, light sensor, colour sensor, Potentiometer, Magnetic sensor.
Component Source Code
Please click here to download the component source project: FC_Comp_Source_RA_Simulation_Source.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_RA_Simulation_Source.fcfx
Detailed description
No detailed description exists yet for this component
Examples
Industrial Tanks
A simple example showing the hoppers, valves and pipes working together. Each tank automatically empties in turn.
Macro reference
Beep
| Beep | |
| Allows the beeper to output a warning | |
| Iterations | |
| OnDelay | |
| Delay in ms | |
| OffDelay | |
| Delay in ms | |
| Return | |
GotoPosition
| GotoPosition | |
| Recalls a previously saved position for the ARMs 5 axis. | |
| Index | |
| Save Index - Range 0-29 | |
| Return | |
GripperClose
GripperOpen
| GripperOpen | |
| Fully opens the gripper at the end of the arm ready to pick something up. | |
| Return | |
LCDClear
| LCDClear | |
| Clears the entire contents of the display. | |
| Return | |
LCDClearLine
LCDCursor
LCDPrintNum
| LCDPrintNum | |
| Will allow you to print a number. This is limited to a signed-INT, -32768 to 32767 | |
| Number | |
| Enter the number or variable to print to the LCD | |
| Return | |
LCDPrintStr
| LCDPrintStr | |
| Breaks down a string of text and sends it to the LCD via the private RawSend(byte, mask) macro | |
| PrintString | |
| Enter the text or variable to print to the LCD | |
| Return | |
LEDOff
| LEDOff | |
| Switches off a single LED, LA0-LA7 | |
| Index | |
| 0=LA0, 1=LA1, 2=LA2, 3=LA3, 4=LA4, 5=LA5, 6=LA6, 7=LA7 | |
| Return | |
LEDOn
| LEDOn | |
| Switches on a single LED, LA0-LA7 | |
| Index | |
| 0=LA0, 1=LA1, 2=LA2, 3=LA3, 4=LA4, 5=LA5, 6=LA6, 7=LA7 | |
| Return | |
LEDWrite
| LEDWrite | |
| Allows a value to be sent to control all eight LEDs LA0-LA7 at once | |
| Value | |
| (0-63) 0b000000 | |
| Return | |
LinearInterpolation
| LinearInterpolation | |
| Moves the robot to the new position so that all axis arrive at the same time. | |
| pos0 | |
| pos1 | |
| pos2 | |
| pos3 | |
| pos4 | |
| Return | |
MotorsMoving
| MotorsMoving | |
| Checks to see if any of the motors are still moving. | |
| Return | |
Park
| Park | |
| Parks the Robot ARM and switches off the servo motors | |
| Return | |
ReadPressure
| ReadPressure | |
| Read the value of the pressure sensor on the ARM gripper. Returns the value as a byte | |
| Return | |
ReadSwitch
| ReadSwitch | |
| Read the value of a single switch. Returns the value as a byte | |
| index | |
| 0=SA0, 1=SA1, 2=SA2, 3=SA3, 4=SA4, 5=SA5, 6=SA6, 7=SA7 | |
| Return | |
SetAllServos
SetMovementSpeed
| SetMovementSpeed | |
| Controls the speed of the robot movement | |
| MovementSpeed | |
| 1=Normal Speed (Default), 2=DoubleSpeed | |
| Return | |
SetServo
SetTrim
| SetTrim | |
| Allows minor adjustment on the 5 axis servo motors | |
| Index | |
| Motor Index Range 0-4 | |
| Trim | |
| Amount of Trim Range 0-255, Default Value 128 | |
| Return | |
StoreCoords
StorePosition
| StorePosition | |
| Stores the current position of the ARMs 5 axis. | |
| Index | |
| Save Index - Range 0-29 | |
| Return | |
Property reference
| Properties | |
| Starting Conditions | |