Difference between revisions of "Component: Robot Arm AllCode SIM (AllCode)"
From Flowcode Help
Jump to navigationJump to searchLine 66: | Line 66: | ||
{{Fcfile|Industrial_Tanks.fcsx|Industrial Tanks}} | {{Fcfile|Industrial_Tanks.fcsx|Industrial Tanks}} | ||
+ | |||
+ | |||
Line 71: | Line 73: | ||
==Macro reference== | ==Macro reference== | ||
+ | ===LEDOn=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 89: | Line 92: | ||
+ | ===StoreCoords=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 132: | Line 136: | ||
+ | ===LCDClearLine=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 150: | Line 155: | ||
+ | ===LEDOff=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 168: | Line 174: | ||
+ | ===SetMovementSpeed=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 186: | Line 193: | ||
+ | ===LEDWrite=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 204: | Line 212: | ||
+ | ===LinearInterpolation=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 242: | Line 251: | ||
+ | ===GripperOpen=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 255: | Line 265: | ||
+ | ===ReadSwitch=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 273: | Line 284: | ||
+ | ===LCDPrintStr=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 291: | Line 303: | ||
+ | ===SetAllServos=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 329: | Line 342: | ||
+ | ===Park=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 342: | Line 356: | ||
+ | ===StorePosition=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 360: | Line 375: | ||
+ | ===ReadPressure=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 373: | Line 389: | ||
+ | ===GotoPosition=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 391: | Line 408: | ||
+ | ===MotorsMoving=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 404: | Line 422: | ||
+ | ===Beep=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 432: | Line 451: | ||
+ | ===SetTrim=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 455: | Line 475: | ||
+ | ===SetServo=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 478: | Line 499: | ||
+ | ===GripperClose=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 496: | Line 518: | ||
+ | ===LCDCursor=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 519: | Line 542: | ||
+ | ===LCDPrintNum=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 537: | Line 561: | ||
+ | ===LCDClear=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- |
Revision as of 11:52, 3 February 2023
Author | Matrix TSL |
Version | 1.0 |
Category | AllCode |
Contents
- 1 Robot Arm AllCode SIM component
- 2 Component Source Code
- 3 Detailed description
- 4 Examples
- 5 Macro reference
- 5.1 LEDOn
- 5.2 StoreCoords
- 5.3 LCDClearLine
- 5.4 LEDOff
- 5.5 SetMovementSpeed
- 5.6 LEDWrite
- 5.7 LinearInterpolation
- 5.8 GripperOpen
- 5.9 ReadSwitch
- 5.10 LCDPrintStr
- 5.11 SetAllServos
- 5.12 Park
- 5.13 StorePosition
- 5.14 ReadPressure
- 5.15 GotoPosition
- 5.16 MotorsMoving
- 5.17 Beep
- 5.18 SetTrim
- 5.19 SetServo
- 5.20 GripperClose
- 5.21 LCDCursor
- 5.22 LCDPrintNum
- 5.23 LCDClear
- 6 Property reference
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
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 |
StoreCoords
LCDClearLine
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 |
SetMovementSpeed
![]() |
SetMovementSpeed |
Controls the speed of the robot movement | |
![]() |
MovementSpeed |
1=Normal Speed (Default), 2=DoubleSpeed | |
![]() |
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 |
GripperOpen
![]() |
GripperOpen |
Fully opens the gripper at the end of the arm ready to pick something up. | |
![]() |
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 |
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 |
SetAllServos
Park
![]() |
Park |
Parks the Robot ARM and switches off the servo motors | |
![]() |
Return |
StorePosition
![]() |
StorePosition |
Stores the current position of the ARMs 5 axis. | |
![]() |
Index |
Save Index - Range 0-29 | |
![]() |
Return |
ReadPressure
![]() |
ReadPressure |
Read the value of the pressure sensor on the ARM gripper. Returns the value as a byte | |
![]() |
Return |
GotoPosition
![]() |
GotoPosition |
Recalls a previously saved position for the ARMs 5 axis. | |
![]() |
Index |
Save Index - Range 0-29 | |
![]() |
Return |
MotorsMoving
![]() |
MotorsMoving |
Checks to see if any of the motors are still moving. | |
![]() |
Return |
Beep
![]() |
Beep |
Allows the beeper to output a warning | |
![]() |
Iterations |
![]() |
OnDelay |
Delay in ms | |
![]() |
OffDelay |
Delay in ms | |
![]() |
Return |
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 |
SetServo
GripperClose
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 |
LCDClear
![]() |
LCDClear |
Clears the entire contents of the display. | |
![]() |
Return |
Property reference
![]() |
Properties |
![]() |
Starting Conditions |