Component: MIAC NXT / ECU (MIAC Module): Difference between revisions
Appearance
No edit summary |
m Text replacement - "style="background-color:#EAE1EA;"" to "class="mtx-class-propfolder"" |
||
| (5 intermediate revisions by the same user not shown) | |||
| Line 66: | Line 66: | ||
===DisplayClear=== | ===DisplayClear=== | ||
{| class="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%" | | width="90%" class="mtx-class-macrohead" | '''DisplayClear''' | ||
|- | |- | ||
| colspan="2" | Clears all text from the display | | colspan="2" | Clears all text from the display | ||
| Line 80: | Line 80: | ||
===DisplayClearLine=== | ===DisplayClearLine=== | ||
{| class="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%" | | width="90%" class="mtx-class-macrohead" | '''DisplayClearLine''' | ||
|- | |- | ||
| colspan="2" | Clears a single line of text from the display | | colspan="2" | Clears a single line of text from the display | ||
| Line 99: | Line 99: | ||
===DisplayCursor=== | ===DisplayCursor=== | ||
{| class="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%" | | width="90%" class="mtx-class-macrohead" | '''DisplayCursor''' | ||
|- | |- | ||
| colspan="2" | Moves the current pixel position of the cursor within the coordinate space | | colspan="2" | Moves the current pixel position of the cursor within the coordinate space | ||
| Line 123: | Line 123: | ||
===DisplayGetCursorPosition=== | ===DisplayGetCursorPosition=== | ||
{| class="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%" | | width="90%" class="mtx-class-macrohead" | '''DisplayGetCursorPosition''' | ||
|- | |- | ||
| colspan="2" | Gets the current pixel position of the cursor within the coordinate space | | colspan="2" | Gets the current pixel position of the cursor within the coordinate space | ||
| Line 142: | Line 142: | ||
===DisplayPixel=== | ===DisplayPixel=== | ||
{| class="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%" | | width="90%" class="mtx-class-macrohead" | '''DisplayPixel''' | ||
|- | |- | ||
| colspan="2" | Sets or clears a pixel at location X, Y. | | colspan="2" | Sets or clears a pixel at location X, Y. | ||
| Line 171: | Line 171: | ||
===DisplayPrintASCII=== | ===DisplayPrintASCII=== | ||
{| class="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%" | | width="90%" class="mtx-class-macrohead" | '''DisplayPrintASCII''' | ||
|- | |- | ||
| colspan="2" | Prints a single ASCII character to the display | | colspan="2" | Prints a single ASCII character to the display | ||
| Line 190: | Line 190: | ||
===DisplayPrintFloat=== | ===DisplayPrintFloat=== | ||
{| class="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%" | | width="90%" class="mtx-class-macrohead" | '''DisplayPrintFloat''' | ||
|- | |- | ||
| colspan="2" | Prints a formatted floating point number to the display | | colspan="2" | Prints a formatted floating point number to the display | ||
| Line 214: | Line 214: | ||
===DisplayPrintFormattedNumber=== | ===DisplayPrintFormattedNumber=== | ||
{| class="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%" | | width="90%" class="mtx-class-macrohead" | '''DisplayPrintFormattedNumber''' | ||
|- | |- | ||
| colspan="2" | Will allow you to print a number up to 32-bits with signed or unsigned formatting. Signed = -2147483648 to 2147483647 Unsigned = 0 to 4294967295 | | colspan="2" | Will allow you to print a number up to 32-bits with signed or unsigned formatting. Signed = -2147483648 to 2147483647 Unsigned = 0 to 4294967295 | ||
| Line 238: | Line 238: | ||
===DisplayPrintNumber=== | ===DisplayPrintNumber=== | ||
{| class="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%" | | width="90%" class="mtx-class-macrohead" | '''DisplayPrintNumber''' | ||
|- | |- | ||
| colspan="2" | Prints a number to the display as an ASCII string | | colspan="2" | Prints a number to the display as an ASCII string | ||
| Line 257: | Line 257: | ||
===DisplayPrintString=== | ===DisplayPrintString=== | ||
{| class="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%" | | width="90%" class="mtx-class-macrohead" | '''DisplayPrintString''' | ||
|- | |- | ||
| colspan="2" | Prints a string of ASCII characters to the display | | colspan="2" | Prints a string of ASCII characters to the display | ||
| Line 276: | Line 276: | ||
===Initialise=== | ===Initialise=== | ||
{| class="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%" | | width="90%" class="mtx-class-macrohead" | '''Initialise''' | ||
|- | |- | ||
| colspan="2" | Starts up the MIAC IO and display. | | colspan="2" | Starts up the MIAC IO and display. | ||
| Line 290: | Line 290: | ||
===InputAnalogByte=== | ===InputAnalogByte=== | ||
{| class="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%" | | width="90%" class="mtx-class-macrohead" | '''InputAnalogByte''' | ||
|- | |- | ||
| colspan="2" | Reads one of the input channels ( IN1 - IN8 ) as an analogue value with range 0-255 | | colspan="2" | Reads one of the input channels ( IN1 - IN8 ) as an analogue value with range 0-255 | ||
| Line 309: | Line 309: | ||
===InputAnalogInt=== | ===InputAnalogInt=== | ||
{| class="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%" | | width="90%" class="mtx-class-macrohead" | '''InputAnalogInt''' | ||
|- | |- | ||
| colspan="2" | Reads one of the input channels ( IN1 - IN8 ) as an analogue value with range 0-4095 | | colspan="2" | Reads one of the input channels ( IN1 - IN8 ) as an analogue value with range 0-4095 | ||
| Line 328: | Line 328: | ||
===InputDigital=== | ===InputDigital=== | ||
{| class="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%" | | width="90%" class="mtx-class-macrohead" | '''InputDigital''' | ||
|- | |- | ||
| colspan="2" | Reads one of the input channels ( IN1 - IN8 ) as a digital value with range 0-1 | | colspan="2" | Reads one of the input channels ( IN1 - IN8 ) as a digital value with range 0-1 | ||
| Line 347: | Line 347: | ||
===Print=== | ===Print=== | ||
{| class="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%" | | width="90%" class="mtx-class-macrohead" | '''Print''' | ||
|- | |- | ||
| colspan="2" | This macro prints a string of characters to the Graphical LCD. | | colspan="2" | This macro prints a string of characters to the Graphical LCD. | ||
| Line 386: | Line 386: | ||
===ReadEEPROM=== | ===ReadEEPROM=== | ||
{| class="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%" | | width="90%" class="mtx-class-macrohead" | '''ReadEEPROM''' | ||
|- | |- | ||
| colspan="2" | Read a single byte from the EEPROM. | | colspan="2" | Read a single byte from the EEPROM. | ||
| Line 405: | Line 405: | ||
===ReadKeypad=== | ===ReadKeypad=== | ||
{| class="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%" | | width="90%" class="mtx-class-macrohead" | '''ReadKeypad''' | ||
|- | |- | ||
| colspan="2" | Directly reads the keypad for any current switch inputs. Returns the keypad switch states as a 9-bit value. Bit0 = TopLeft, Bit1 = TopMiddle, Bit2 = TopRight, Bit3 = CenterLeft, etc.. | | colspan="2" | Directly reads the keypad for any current switch inputs. Returns the keypad switch states as a 9-bit value. Bit0 = TopLeft, Bit1 = TopMiddle, Bit2 = TopRight, Bit3 = CenterLeft, etc.. | ||
| Line 419: | Line 419: | ||
===ReadTransistorOutputCurrent=== | ===ReadTransistorOutputCurrent=== | ||
{| class="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%" | | width="90%" class="mtx-class-macrohead" | '''ReadTransistorOutputCurrent''' | ||
|- | |- | ||
| colspan="2" | Reads the current for one of the transistor outputs ( A - F ) Returns the current as a floating point number in amps | | colspan="2" | Reads the current for one of the transistor outputs ( A - F ) Returns the current as a floating point number in amps | ||
| Line 438: | Line 438: | ||
===ReadUSBConnected=== | ===ReadUSBConnected=== | ||
{| class="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%" | | width="90%" class="mtx-class-macrohead" | '''ReadUSBConnected''' | ||
|- | |- | ||
| colspan="2" | Checks to see if there is an active USB cable connected to the MIAC. Returns 1 if there is a USB cable present, otherwise returns 0. | | colspan="2" | Checks to see if there is an active USB cable connected to the MIAC. Returns 1 if there is a USB cable present, otherwise returns 0. | ||
| Line 452: | Line 452: | ||
===RelayOutputState=== | ===RelayOutputState=== | ||
{| class="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%" | | width="90%" class="mtx-class-macrohead" | '''RelayOutputState''' | ||
|- | |- | ||
| colspan="2" | Allows one of the relay outputs ( Q1 - Q2 ) to be switched on or off. | | colspan="2" | Allows one of the relay outputs ( Q1 - Q2 ) to be switched on or off. | ||
| Line 476: | Line 476: | ||
===TransistorOutputState=== | ===TransistorOutputState=== | ||
{| class="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%" | | width="90%" class="mtx-class-macrohead" | '''TransistorOutputState''' | ||
|- | |- | ||
| colspan="2" | Allows one of the high speed transistor outputs ( A - F ) to be pulled to GND, Pulled to +V or disabled. | | colspan="2" | Allows one of the high speed transistor outputs ( A - F ) to be pulled to GND, Pulled to +V or disabled. | ||
| Line 500: | Line 500: | ||
===TransistorPWMDuty=== | ===TransistorPWMDuty=== | ||
{| class="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%" | | width="90%" class="mtx-class-macrohead" | '''TransistorPWMDuty''' | ||
|- | |- | ||
| colspan="2" | Sets the PWM duty on the selected channel | | colspan="2" | Sets the PWM duty on the selected channel | ||
| Line 529: | Line 529: | ||
===TransistorPWMEnable=== | ===TransistorPWMEnable=== | ||
{| class="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%" | | width="90%" class="mtx-class-macrohead" | '''TransistorPWMEnable''' | ||
|- | |- | ||
| colspan="2" | Enables or disables PWM on the selected channel | | colspan="2" | Enables or disables PWM on the selected channel | ||
| Line 558: | Line 558: | ||
===WriteEEPROM=== | ===WriteEEPROM=== | ||
{| class="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%" | | width="90%" class="mtx-class-macrohead" | '''WriteEEPROM''' | ||
|- | |- | ||
| colspan="2" | Write a single byte to a location in the EEPROM. | | colspan="2" | Write a single byte to a location in the EEPROM. | ||
| Line 583: | Line 583: | ||
==Property reference== | ==Property reference== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-prop-icon.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Properties''' | ||
|- | |- | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-propfolder" | [[File:Fc9-conn-icon.png]] | ||
| width="90%" | | width="90%" class="mtx-class-propfolder" | Transistor Output PWM Settings | ||
|- | |- | ||
|- | |- | ||
| Line 613: | Line 613: | ||
| colspan="2" | | | colspan="2" | | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-propfolder" | [[File:Fc9-conn-icon.png]] | ||
| width="90%" | | width="90%" class="mtx-class-propfolder" | Display Settings | ||
|- | |- | ||
|- | |- | ||
| Line 642: | Line 642: | ||
| colspan="2" | Sets the number of horizontal pixels used to represent a space character. | | colspan="2" | Sets the number of horizontal pixels used to represent a space character. | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-propfolder" | [[File:Fc9-conn-icon.png]] | ||
| width="90%" | | width="90%" class="mtx-class-propfolder" | Pin Connections | ||
|- | |- | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-propfolder" | [[File:Fc9-conn-icon.png]] | ||
| width="90%" | | width="90%" class="mtx-class-propfolder" | CAN (2 x Internal + 1 x External MCP2515) | ||
|- | |- | ||
|- | |- | ||
| Line 700: | Line 700: | ||
| colspan="2" | | | colspan="2" | | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-propfolder" | [[File:Fc9-conn-icon.png]] | ||
| width="90%" | | width="90%" class="mtx-class-propfolder" | LIN | ||
|- | |- | ||
|- | |- | ||
| Line 719: | Line 719: | ||
| colspan="2" | | | colspan="2" | | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-propfolder" | [[File:Fc9-conn-icon.png]] | ||
| width="90%" | | width="90%" class="mtx-class-propfolder" | Bluetooth RN4678 | ||
|- | |- | ||
|- | |- | ||
| Line 738: | Line 738: | ||
| colspan="2" | | | colspan="2" | | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-propfolder" | [[File:Fc9-conn-icon.png]] | ||
| width="90%" | | width="90%" class="mtx-class-propfolder" | Wifi ESP12S | ||
|- | |- | ||
|- | |- | ||
| Line 757: | Line 757: | ||
| colspan="2" | | | colspan="2" | | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-propfolder" | [[File:Fc9-conn-icon.png]] | ||
| width="90%" | | width="90%" class="mtx-class-propfolder" | Ethernet W5500 | ||
|- | |- | ||
|- | |- | ||
Latest revision as of 14:37, 13 July 2026
| Author | Matrix TSL |
| Version | 1.1 |
| Category | MIAC Module |
MIAC NXT / ECU component
Component to drive the MIAC NXT / MIAC ECU range of hardware.
Component Source Code
Please click here to download the component source project: FC_Comp_Source_MIAC_NXT_Component_Source.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_MIAC_NXT_Component_Source.fcfx
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
Macro reference
DisplayClear
| DisplayClear | |
| Clears all text from the display | |
| Return | |
DisplayClearLine
| DisplayClearLine | |
| Clears a single line of text from the display | |
| Line | |
| Line to clear. Range 0 to CharacterHeight - 1 | |
| Return | |
DisplayCursor
DisplayGetCursorPosition
| DisplayGetCursorPosition | |
| Gets the current pixel position of the cursor within the coordinate space | |
| Axis | |
| 0=X, 1=Y | |
| Return | |
DisplayPixel
| DisplayPixel | |
| Sets or clears a pixel at location X, Y. | |
| X1 | |
| Y1 | |
| State | |
| 0=Off / 1=On | |
| Return | |
DisplayPrintASCII
| DisplayPrintASCII | |
| Prints a single ASCII character to the display | |
| Character | |
| Holds an ASCII value e.g. 'A' | |
| Return | |
DisplayPrintFloat
| DisplayPrintFloat | |
| Prints a formatted floating point number to the display | |
| Number | |
| DecimalPoints | |
| Number of decimal points to display | |
| Return | |
DisplayPrintFormattedNumber
DisplayPrintNumber
| DisplayPrintNumber | |
| Prints a number to the display as an ASCII string | |
| Number | |
| Enter the number or variable to print to the display | |
| Return | |
DisplayPrintString
| DisplayPrintString | |
| Prints a string of ASCII characters to the display | |
| Text | |
| Enter the text or variable to print to the display | |
| Return | |
Initialise
| Initialise | |
| Starts up the MIAC IO and display. | |
| Return | |
InputAnalogByte
| InputAnalogByte | |
| Reads one of the input channels ( IN1 - IN8 ) as an analogue value with range 0-255 | |
| Channel | |
| Range: 1 - 8 | |
| Return | |
InputAnalogInt
| InputAnalogInt | |
| Reads one of the input channels ( IN1 - IN8 ) as an analogue value with range 0-4095 | |
| Channel | |
| Range: 1 - 8 | |
| Return | |
InputDigital
| InputDigital | |
| Reads one of the input channels ( IN1 - IN8 ) as a digital value with range 0-1 | |
| Channel | |
| Range: 1 - 8 | |
| Return | |
ReadEEPROM
| ReadEEPROM | |
| Read a single byte from the EEPROM. | |
| Address | |
| Return | |
ReadKeypad
ReadTransistorOutputCurrent
ReadUSBConnected
| ReadUSBConnected | |
| Checks to see if there is an active USB cable connected to the MIAC. Returns 1 if there is a USB cable present, otherwise returns 0. | |
| Return | |
RelayOutputState
TransistorOutputState
TransistorPWMDuty
TransistorPWMEnable
WriteEEPROM
| WriteEEPROM | |
| Write a single byte to a location in the EEPROM. | |
| Address | |
| Data | |
| Return | |