Component: Robot Arm v2 (AllCode)
From Flowcode Help
Jump to navigationJump to searchAuthor | Matrix TSL |
Version | 1.0 |
Category | AllCode |
Contents
Robot Arm v2 component
Drives the Matrix Robot Arm v2 hardware via the AllCode API. Allows connections via USB, Bluetooth and WIFI.
Component Source Code
Please click here to view the component source code (Beta): FC_Comp_Source_RA2_ComponentSource.fcsx
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
Macro reference
![]() |
SetWIFIPort |
Sets the WIFI port number | |
![]() |
Port |
Default 1245 | |
![]() |
Return |
![]() |
SetCalibrationLengths |
Sets the lengths of parameters A and D used as part of the kinematics calculations to get and set the angles using XYZ coordinates | |
![]() |
LengthA |
![]() |
LengthD |
![]() |
Return |
![]() |
SetMovementSpeed |
Controls the movement speed of the arm and the ramping increment | |
![]() |
Speed |
Range 0-10000 default 8000 | |
![]() |
Increment |
Range 0 to 5000, default 50 | |
![]() |
Return |
![]() |
GetPLCInputs |
Reads the inputs on the secondary grove connector used to connect to outputs from a connected PLC or other external switch. | |
![]() |
Return |
![]() |
SetGripper |
Sets the new position of the gripper | |
![]() |
Position |
0 = Closed, 255 = Fully Open | |
![]() |
Return |
![]() |
GetWifiIP |
Collects the IP address of the robot arm WIFI connection. | |
![]() |
Return |
![]() |
GetColourSensor |
Samples and returns the RGB values read by the colour sensor | |
![]() |
RGB |
Byte Array To Hold the RGB sensor values | |
![]() |
Return |
![]() |
SetMotor |
Sets the step position of a single motor | |
![]() |
Motor |
0=A, 1=B, 2=C | |
![]() |
Position |
![]() |
Return |
![]() |
ResetToBoot |
Resets the board into bootload mode for reprogramming. Comms port will be closed on calling this macro, | |
![]() |
Return |
![]() |
IsMoving |
Checks to see if the robot arm or gripper is moving. Returns 0 if the arm is not moving and 1 if the arm is still in transit. | |
![]() |
Return |
![]() |
SetAngle |
Sets the angle of a single motor | |
![]() |
Motor |
0=A, 1=B, 2=C | |
![]() |
Angle |
Range 0.0 to 359.0 | |
![]() |
Return |
![]() |
SetXYZ |
Moves the machine so that the end tool is in the specified XYZ position. Returns 1 if the coordinates are within range of the Arm else returns 0. | |
![]() |
X |
![]() |
Y |
![]() |
Z |
![]() |
Return |
![]() |
HomeAll |
Function to automatically home all motors. Macro blocks until complete. | |
![]() |
Return |
![]() |
SetRelay |
Allows the vacuum relay to be switched on and off. | |
![]() |
State |
![]() |
Return |
![]() |
SetCalibrationRadius |
Sets the lengths of parameters A and D used as part of the kinematics calculations to get and set the angles using XYZ coordinates | |
![]() |
Radius |
![]() |
Return |
![]() |
SetAngles |
Sets the angle of all motors | |
![]() |
AngleA |
Range 0.0 to 359.0 | |
![]() |
AngleB |
Range 0.0 to 359.0 | |
![]() |
AngleC |
Range 0.0 to 359.0 | |
![]() |
Return |
![]() |
HomeAxis |
Function to automatically home a specific motor. Macro blocks until complete. | |
![]() |
Axis |
0=A, 1=B, 2=C | |
![]() |
Return |
![]() |
GetAngles |
Collects the current joint angles of the motors. | |
![]() |
Angles |
Float Array To Hold the step position return values | |
![]() |
Return |
![]() |
DisableMotors |
Disables all motors | |
![]() |
Return |
![]() |
StoreMotors |
Stores the specified step position into an internal none volatile memory location. | |
![]() |
PositionIndex |
Range: 0 to 40 | |
![]() |
PositionA |
![]() |
PositionB |
![]() |
PositionC |
![]() |
Return |
![]() |
SetCanId |
Stores the specified CAN ID into an internal none volatile memory location. | |
![]() |
ID |
![]() |
Return |
![]() |
GetAPI |
Gets the API version number | |
![]() |
Return |
![]() |
SetMotors |
Sets the step position of all motors | |
![]() |
PositionA |
![]() |
PositionB |
![]() |
PositionC |
![]() |
Return |
![]() |
SetCanMode |
Configures the CAN mode. | |
![]() |
Mode |
0=Disabled, 1=Enabled | |
![]() |
Return |
![]() |
GetPosition |
Collects the current step positions of the motors. | |
![]() |
Positions |
UINT Array To Hold the step position return values | |
![]() |
Return |
![]() |
StoreCurrentPosition |
Stores the current position into an internal none volatile memory location. | |
![]() |
PositionIndex |
Range: 0 to 40 | |
![]() |
Return |
![]() |
GetXYZ |
Collects the current XYZ position of the end tool. | |
![]() |
XYZ |
INT Array To Hold the X, Y and Z return values | |
![]() |
Return |
![]() |
SetBluetoothMode |
Configures the Bluetooth mode. | |
![]() |
Mode |
0=Disabled, 1=Enabled | |
![]() |
Return |
![]() |
Initialise |
![]() |
Return |
Property reference
==Macro reference==
![]() |
SetWIFIPort |
Sets the WIFI port number | |
![]() |
Port |
Default 1245 | |
![]() |
Return |
![]() |
SetCalibrationLengths |
Sets the lengths of parameters A and D used as part of the kinematics calculations to get and set the angles using XYZ coordinates | |
![]() |
LengthA |
![]() |
LengthD |
![]() |
Return |
![]() |
SetMovementSpeed |
Controls the movement speed of the arm and the ramping increment | |
![]() |
Speed |
Range 0-10000 default 8000 | |
![]() |
Increment |
Range 0 to 5000, default 50 | |
![]() |
Return |
![]() |
GetPLCInputs |
Reads the inputs on the secondary grove connector used to connect to outputs from a connected PLC or other external switch. | |
![]() |
Return |
![]() |
SetGripper |
Sets the new position of the gripper | |
![]() |
Position |
0 = Closed, 255 = Fully Open | |
![]() |
Return |
![]() |
GetWifiIP |
Collects the IP address of the robot arm WIFI connection. | |
![]() |
Return |
![]() |
GetColourSensor |
Samples and returns the RGB values read by the colour sensor | |
![]() |
RGB |
Byte Array To Hold the RGB sensor values | |
![]() |
Return |
![]() |
SetMotor |
Sets the step position of a single motor | |
![]() |
Motor |
0=A, 1=B, 2=C | |
![]() |
Position |
![]() |
Return |
![]() |
ResetToBoot |
Resets the board into bootload mode for reprogramming. Comms port will be closed on calling this macro, | |
![]() |
Return |
![]() |
IsMoving |
Checks to see if the robot arm or gripper is moving. Returns 0 if the arm is not moving and 1 if the arm is still in transit. | |
![]() |
Return |
![]() |
SetAngle |
Sets the angle of a single motor | |
![]() |
Motor |
0=A, 1=B, 2=C | |
![]() |
Angle |
Range 0.0 to 359.0 | |
![]() |
Return |
![]() |
SetXYZ |
Moves the machine so that the end tool is in the specified XYZ position. Returns 1 if the coordinates are within range of the Arm else returns 0. | |
![]() |
X |
![]() |
Y |
![]() |
Z |
![]() |
Return |
![]() |
HomeAll |
Function to automatically home all motors. Macro blocks until complete. | |
![]() |
Return |
![]() |
SetRelay |
Allows the vacuum relay to be switched on and off. | |
![]() |
State |
![]() |
Return |
![]() |
SetCalibrationRadius |
Sets the lengths of parameters A and D used as part of the kinematics calculations to get and set the angles using XYZ coordinates | |
![]() |
Radius |
![]() |
Return |
![]() |
SetAngles |
Sets the angle of all motors | |
![]() |
AngleA |
Range 0.0 to 359.0 | |
![]() |
AngleB |
Range 0.0 to 359.0 | |
![]() |
AngleC |
Range 0.0 to 359.0 | |
![]() |
Return |
![]() |
HomeAxis |
Function to automatically home a specific motor. Macro blocks until complete. | |
![]() |
Axis |
0=A, 1=B, 2=C | |
![]() |
Return |
![]() |
GetAngles |
Collects the current joint angles of the motors. | |
![]() |
Angles |
Float Array To Hold the step position return values | |
![]() |
Return |
![]() |
DisableMotors |
Disables all motors | |
![]() |
Return |
![]() |
StoreMotors |
Stores the specified step position into an internal none volatile memory location. | |
![]() |
PositionIndex |
Range: 0 to 40 | |
![]() |
PositionA |
![]() |
PositionB |
![]() |
PositionC |
![]() |
Return |
![]() |
SetCanId |
Stores the specified CAN ID into an internal none volatile memory location. | |
![]() |
ID |
![]() |
Return |
![]() |
GetAPI |
Gets the API version number | |
![]() |
Return |
![]() |
SetMotors |
Sets the step position of all motors | |
![]() |
PositionA |
![]() |
PositionB |
![]() |
PositionC |
![]() |
Return |
![]() |
SetCanMode |
Configures the CAN mode. | |
![]() |
Mode |
0=Disabled, 1=Enabled | |
![]() |
Return |
![]() |
GetPosition |
Collects the current step positions of the motors. | |
![]() |
Positions |
UINT Array To Hold the step position return values | |
![]() |
Return |
![]() |
StoreCurrentPosition |
Stores the current position into an internal none volatile memory location. | |
![]() |
PositionIndex |
Range: 0 to 40 | |
![]() |
Return |
![]() |
GetXYZ |
Collects the current XYZ position of the end tool. | |
![]() |
XYZ |
INT Array To Hold the X, Y and Z return values | |
![]() |
Return |
![]() |
SetBluetoothMode |
Configures the Bluetooth mode. | |
![]() |
Mode |
0=Disabled, 1=Enabled | |
![]() |
Return |
![]() |
Initialise |
![]() |
Return |