Difference between revisions of "Component: Control (AllCode)"
From Flowcode Help
Jump to navigationJump to searchLine 20: | Line 20: | ||
==Detailed description== | ==Detailed description== | ||
+ | |||
+ | |||
''No detailed description exists yet for this component'' | ''No detailed description exists yet for this component'' | ||
==Examples== | ==Examples== | ||
+ | |||
+ | |||
Line 585: | Line 589: | ||
|- | |- | ||
| colspan="2" | Selects the method to communicate with the Matrix 3 Axis Robot Arm. USB connection requires the USB drivers to be installed. Bluetooth connection requires the device first be paired using the Windows Bluetooth control panel. WIFI connection requires the connection settings to be configured first on the robot using USB or Bluetooth. CAN connection does not simulate and works on embedded hardware e.g. the MIAC. | | colspan="2" | Selects the method to communicate with the Matrix 3 Axis Robot Arm. USB connection requires the USB drivers to be installed. Bluetooth connection requires the device first be paired using the Windows Bluetooth control panel. WIFI connection requires the connection settings to be configured first on the robot using USB or Bluetooth. CAN connection does not simulate and works on embedded hardware e.g. the MIAC. | ||
+ | |- | ||
+ | | width="10%" align="center" style="background-color:#EAE1EA;" | [[File:Fc9-conn-icon.png]] | ||
+ | | width="90%" style="background-color:#EAE1EA; color:#4B008D;" | COM Port Settings | ||
+ | |- | ||
|- | |- | ||
| width="10%" align="center" | [[File:Fc9-type-7-icon.png]] | | width="10%" align="center" | [[File:Fc9-type-7-icon.png]] | ||
Line 595: | Line 603: | ||
|- | |- | ||
| colspan="2" | Selects which port to communicate with, only lists ports which are currently available. | | colspan="2" | Selects which port to communicate with, only lists ports which are currently available. | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|- | |- | ||
| width="10%" align="center" | [[File:Fc9-type-1-icon.png]] | | width="10%" align="center" | [[File:Fc9-type-1-icon.png]] | ||
Line 625: | Line 608: | ||
|- | |- | ||
| colspan="2" | | | colspan="2" | | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|} | |} |
Latest revision as of 17:19, 9 November 2022
Author | Matrix TSL |
Version | 1.0 |
Category | AllCode |
Contents
Control component
Drives the Matrix Control hardware via the AllCode API.
Component Pack
FREE
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
Downloadable macro reference
![]() |
GetOutput |
Gets the output value as an integer value betwen 0 and 100 representing the output PWM duty | |
![]() |
Return |
![]() |
SetWIFIPort |
Configures the WIFI Port number. Default 1245. | |
![]() |
Port |
Default 1245 | |
![]() |
Return |
![]() |
SetAutoPIDFlip |
Controls if the PID response is flipped, a negative response vs a positive | |
![]() |
Flip |
Default: 0=Not Flipped, 1=Flipped | |
![]() |
Return |
![]() |
GetDataArray |
Collects a data array from the Control board. Returns number of samples collected. | |
![]() |
data |
![]() |
Return |
![]() |
GetWifiIP |
Collects the IP address of the robot arm WIFI connection. | |
![]() |
Return |
![]() |
ResetToBoot |
Resets the board into bootload mode for reprogramming. Comms port will be closed on calling this macro, | |
![]() |
Return |
![]() |
SetAutoOnOffParam |
Sets the Hysteresis parameter for the Auto on-board On/Off | |
![]() |
Hysteresis |
Hysterists in real world units | |
![]() |
Return |
![]() |
GetPIDComponent |
Gets one of the PID controller output components in real world units | |
![]() |
Index |
Range 0-2, 0=P, 1=I, 2=D | |
![]() |
Return |
![]() |
SetEthernetPort |
Configures the Ethernet Port number. Default 1245. | |
![]() |
Port |
Default 1245 | |
![]() |
Return |
![]() |
SetEthernetIP |
Configures the Ethernet IP Address. | |
![]() |
IP |
IP Address string e.g. "192.168.1.100" | |
![]() |
Return |
![]() |
SetCANID |
Stores the specified CAN ID into an internal none volatile memory location. | |
![]() |
ID |
![]() |
Return |
![]() |
GetFeedback |
Gets the feedback as a value in real world units | |
![]() |
Return |
![]() |
GetAPI |
Gets the API version number | |
![]() |
Return |
![]() |
SetManualDuty |
Sets duty parameter for one of the manual controlled outputs | |
![]() |
Channel |
Range: 0-1 | |
![]() |
Duty |
Duty Cycle Output in Percentage Range 0 - 100% | |
![]() |
Return |
![]() |
CheckErrorStatus |
Returns the Error status value indicating if there has been any errors. 0 = No Error 1 = Timeout Error | |
![]() |
Return |
![]() |
SetCANMode |
Configures if the CAN API mde is enabled or disabled. | |
![]() |
Mode |
0=Disabled / 1=Enabled | |
![]() |
Return |
![]() |
SetAutoPID |
Enable the auto PID control using the on-board microcontroller | |
![]() |
Channel |
Range: 0-1 | |
![]() |
Enable |
0=Off, 1=5Hz, 2=10Hz, 3=20Hz, 4=50Hz, 5=100Hz, 6=200Hz, 7=500Hz, 8=1KHz | |
![]() |
Return |
![]() |
SetLogDivider |
Configures the rate of the PID logging. | |
![]() |
Divider |
Divides the rate by the selected value | |
![]() |
Return |
![]() |
ZeroSensor |
Zeros the attached sensor reading. Useful for Pressure and Level control applications. | |
![]() |
Return |
![]() |
SetEthernetMode |
Configures the Ethernet mode. | |
![]() |
Mode |
0=Disabled, 1=Enabled | |
![]() |
Return |
![]() |
SetBluetoothMode |
Configures the Bluetooth mode. | |
![]() |
Mode |
0=Disabled, 1=Enabled | |
![]() |
Return |
![]() |
Initialise |
![]() |
Return |
![]() |
SetSetpoint |
Sets Setpoint parameter for the Auto on-board PID | |
![]() |
Setpoint |
Required Output in Real World Units | |
![]() |
Return |