Component: Robot Arm AllCode API (Misc)
From Flowcode Help
Jump to navigationJump to search
Author | Matrix TSL |
Version | 1.0 |
Category | Misc |
Contents
- 1 Robot Arm AllCode API component
- 2 Component Source Code
- 3 Detailed description
- 4 Examples
- 5 Macro reference
- 5.1 Beep
- 5.2 GetAPIVersion
- 5.3 GotoPosition
- 5.4 GripperClose
- 5.5 GripperOpen
- 5.6 KineGetXYZ
- 5.7 KineSetXYZ
- 5.8 LCDClear
- 5.9 LCDClearLine
- 5.10 LCDCursor
- 5.11 LCDPrintNum
- 5.12 LCDPrintStr
- 5.13 LCDVerbose
- 5.14 LEDOff
- 5.15 LEDOn
- 5.16 LEDWrite
- 5.17 MotorsMoving
- 5.18 Park
- 5.19 ReadColour
- 5.20 ReadColourChannel
- 5.21 ReadPressure
- 5.22 ReadSwitch
- 5.23 SetAllServos
- 5.24 SetServo
- 5.25 SetTrim
- 5.26 StoreCoords
- 5.27 StorePosition
- 6 Property reference
Robot Arm AllCode API 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_API_Component_Source.fcsx
Please click here to view the component source code (Beta): FC_Comp_Source_RA_API_Component_Source.fcsx
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
Macro reference
Beep
![]() |
Beep |
Allows the beeper to output a warning | |
![]() |
Iterations |
Number of times to repeat | |
![]() |
OnDelay |
Delay in ms | |
![]() |
OffDelay |
Delay in ms | |
![]() |
Return |
GetAPIVersion
![]() |
GetAPIVersion |
Gets the API version of the Robot ARM Firmware | |
![]() |
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 |
KineGetXYZ
![]() |
KineGetXYZ |
Calculates the current XYZ position from the current servo position coordinates | |
![]() |
Index |
Range 0-2 : 0=X, 1=Y, 2=Z | |
![]() |
Return |
KineSetXYZ
![]() |
KineSetXYZ |
Sets the XYZ position and calculates the various servo motor angles required. Returns 0=Impossible, 1=InPosition | |
![]() |
X |
![]() |
Y |
![]() |
Z |
![]() |
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 |
LCDVerbose
![]() |
LCDVerbose |
Controls if the LCD is in user mode or verbose API mode, | |
![]() |
Mode |
0=User Mode, 1=API Verbose Mode | |
![]() |
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 |
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 |
ReadColour
ReadColourChannel
![]() |
ReadColourChannel |
Reads a single colour channel from the value returned from the ReadColour macro. | |
![]() |
Index |
0=Red, 1=Green, 2=Blue | |
![]() |
Colour |
![]() |
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
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 |
![]() |
Connections |
![]() |
Operating Mode |
![]() |
Mode |