Component: MIAC (dsPIC) (MIAC (dsPIC)) (Misc): Difference between revisions
Appearance
No edit summary |
m Text replacement - "width="90%" style="background-color:#D8C9D8; color:#4B008D;"" to "width="90%" class="mtx-class-macrohead"" |
||
| (3 intermediate revisions by the same user not shown) | |||
| Line 72: | Line 72: | ||
===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 the display to white space | | colspan="2" | Clears the display to white space | ||
| Line 86: | Line 86: | ||
===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 display cursor to the given position. If the cursor is set to the origin at x=0, y=0, then the next character sent to the display will appear in the top left corner. | | colspan="2" | Moves the display cursor to the given position. If the cursor is set to the origin at x=0, y=0, then the next character sent to the display will appear in the top left corner. | ||
| Line 110: | Line 110: | ||
===DisplayLight=== | ===DisplayLight=== | ||
{| 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" | '''DisplayLight''' | ||
|- | |- | ||
| colspan="2" | Turns the display backlight on or off | | colspan="2" | Turns the display backlight on or off | ||
| Line 129: | Line 129: | ||
===DisplayStart=== | ===DisplayStart=== | ||
{| 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" | '''DisplayStart''' | ||
|- | |- | ||
| colspan="2" | Initialise the display ready for use | | colspan="2" | Initialise the display ready for use | ||
| Line 143: | Line 143: | ||
===DrawGlyph=== | ===DrawGlyph=== | ||
{| 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" | '''DrawGlyph''' | ||
|- | |- | ||
| colspan="2" | Draws a character glyph on the display at position px, py | | colspan="2" | Draws a character glyph on the display at position px, py | ||
| Line 177: | Line 177: | ||
===DrawLine=== | ===DrawLine=== | ||
{| 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" | '''DrawLine''' | ||
|- | |- | ||
| colspan="2" | Draws or clears a line from start at sx:sy to end at ex:ey | | colspan="2" | Draws or clears a line from start at sx:sy to end at ex:ey | ||
| Line 216: | Line 216: | ||
===DrawPixel=== | ===DrawPixel=== | ||
{| 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" | '''DrawPixel''' | ||
|- | |- | ||
| colspan="2" | Draws, or clears, a pixel at point x,y | | colspan="2" | Draws, or clears, a pixel at point x,y | ||
| Line 245: | Line 245: | ||
===DrawRect=== | ===DrawRect=== | ||
{| 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" | '''DrawRect''' | ||
|- | |- | ||
| colspan="2" | Draws a rectangular box from x1,y1 to x2,y2 | | colspan="2" | Draws a rectangular box from x1,y1 to x2,y2 | ||
| Line 284: | Line 284: | ||
===GetKeypad=== | ===GetKeypad=== | ||
{| 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" | '''GetKeypad''' | ||
|- | |- | ||
| colspan="2" | Returns the key code of the key that is pressed, otherwise if nothing is pressed then returns 255 | | colspan="2" | Returns the key code of the key that is pressed, otherwise if nothing is pressed then returns 255 | ||
| Line 298: | Line 298: | ||
===InputANALOG=== | ===InputANALOG=== | ||
{| 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" | '''InputANALOG''' | ||
|- | |- | ||
| colspan="2" | Returns the 8 bit value for the analogue input requested by parameter InputID (Inputs 1 to 8) | | colspan="2" | Returns the 8 bit value for the analogue input requested by parameter InputID (Inputs 1 to 8) | ||
| Line 317: | Line 317: | ||
===InputANALOG_10Bit=== | ===InputANALOG_10Bit=== | ||
{| 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" | '''InputANALOG_10Bit''' | ||
|- | |- | ||
| colspan="2" | | | colspan="2" | | ||
| Line 336: | Line 336: | ||
===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" | Returns the digital state of the input requested by parameter InputID (Inputs 1 to 8) | | colspan="2" | Returns the digital state of the input requested by parameter InputID (Inputs 1 to 8) | ||
| Line 355: | Line 355: | ||
===OutputOFF=== | ===OutputOFF=== | ||
{| 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" | '''OutputOFF''' | ||
|- | |- | ||
| colspan="2" | Outputs a digital low state on the output requested by parameter TransID (Outputs 1 to 4) | | colspan="2" | Outputs a digital low state on the output requested by parameter TransID (Outputs 1 to 4) | ||
| Line 374: | Line 374: | ||
===OutputON=== | ===OutputON=== | ||
{| 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" | '''OutputON''' | ||
|- | |- | ||
| colspan="2" | Outputs a digital high state on the output requested by parameter TransID (Outputs 1 to 4) | | colspan="2" | Outputs a digital high state on the output requested by parameter TransID (Outputs 1 to 4) | ||
| Line 393: | Line 393: | ||
===PrintASCII=== | ===PrintASCII=== | ||
{| 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" | '''PrintASCII''' | ||
|- | |- | ||
| colspan="2" | Prints the given character to the display at the current cursor position and increments the cursor position. | | colspan="2" | Prints the given character to the display at the current cursor position and increments the cursor position. | ||
| Line 412: | Line 412: | ||
===PrintFormattedNumber=== | ===PrintFormattedNumber=== | ||
{| 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" | '''PrintFormattedNumber''' | ||
|- | |- | ||
| 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 436: | Line 436: | ||
===PrintNumber=== | ===PrintNumber=== | ||
{| 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" | '''PrintNumber''' | ||
|- | |- | ||
| colspan="2" | Prints the given number to the display starting at the current cursor position and moves the cursor position. | | colspan="2" | Prints the given number to the display starting at the current cursor position and moves the cursor position. | ||
| Line 455: | Line 455: | ||
===PrintString=== | ===PrintString=== | ||
{| 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" | '''PrintString''' | ||
|- | |- | ||
| colspan="2" | Prints the given character string to the display at the current cursor position and moves the cursor position. | | colspan="2" | Prints the given character string to the display at the current cursor position and moves the cursor position. | ||
| Line 474: | Line 474: | ||
===RelayOFF=== | ===RelayOFF=== | ||
{| 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" | '''RelayOFF''' | ||
|- | |- | ||
| colspan="2" | Turns off the requested relay given by parameter RelayID, values 1 to 4 | | colspan="2" | Turns off the requested relay given by parameter RelayID, values 1 to 4 | ||
| Line 493: | Line 493: | ||
===RelayON=== | ===RelayON=== | ||
{| 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" | '''RelayON''' | ||
|- | |- | ||
| colspan="2" | Turns on the requested relay given by parameter RelayID, values 1 to 4 | | colspan="2" | Turns on the requested relay given by parameter RelayID, values 1 to 4 | ||
| Line 513: | Line 513: | ||
==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''' | ||
|- | |- | ||
|} | |} | ||
Latest revision as of 14:23, 13 July 2026
| Author | Matrix TSL |
| Version | 1.2 |
| Category | Misc |
MIAC (dsPIC) component
MIAC - Matrix Industrial Automotive Controller (dsPIC)
Component Source Code
Please click here to download the component source project: FC_Comp_Source_MIAC_(dsPIC).fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_MIAC_(dsPIC).fcfx
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
Macro reference
DisplayClear
| DisplayClear | |
| Clears the display to white space | |
| Return | |
DisplayCursor
DisplayLight
| DisplayLight | |
| Turns the display backlight on or off | |
| state | |
| Return | |
DisplayStart
| DisplayStart | |
| Initialise the display ready for use | |
| Return | |
DrawGlyph
DrawLine
DrawPixel
| DrawPixel | |
| Draws, or clears, a pixel at point x,y | |
| px | |
| py | |
| state | |
| state = 0 clears the pixel, else draws the pixel | |
| Return | |
DrawRect
| DrawRect | |
| Draws a rectangular box from x1,y1 to x2,y2 | |
| x1 | |
| y1 | |
| x2 | |
| y2 | |
| state | |
| 1=draw pixel, 0=clear pixel | |
| Return | |
GetKeypad
| GetKeypad | |
| Returns the key code of the key that is pressed, otherwise if nothing is pressed then returns 255 | |
| Return | |
InputANALOG
| InputANALOG | |
| Returns the 8 bit value for the analogue input requested by parameter InputID (Inputs 1 to 8) | |
| InputID | |
| The input to read from 1 to 8. | |
| Return | |
InputANALOG_10Bit
| InputANALOG_10Bit | |
| InputID | |
| The input to read. From 1 to 8. | |
| Return | |
InputDIGITAL
| InputDIGITAL | |
| Returns the digital state of the input requested by parameter InputID (Inputs 1 to 8) | |
| InputID | |
| The input number from 1 to 8. | |
| Return | |
OutputOFF
| OutputOFF | |
| Outputs a digital low state on the output requested by parameter TransID (Outputs 1 to 4) | |
| TransID | |
| 1 to 4 (Outputs A to D) | |
| Return | |
OutputON
| OutputON | |
| Outputs a digital high state on the output requested by parameter TransID (Outputs 1 to 4) | |
| TransID | |
| 1 to 4 (Outputs A to D) | |
| Return | |
PrintASCII
| PrintASCII | |
| Prints the given character to the display at the current cursor position and increments the cursor position. | |
| Char | |
| ASCII code of the character to print. | |
| Return | |
PrintFormattedNumber
PrintNumber
| PrintNumber | |
| Prints the given number to the display starting at the current cursor position and moves the cursor position. | |
| n | |
| Return | |
PrintString
| PrintString | |
| Prints the given character string to the display at the current cursor position and moves the cursor position. | |
| Str | |
| The string to send to the display. | |
| Return | |
RelayOFF
| RelayOFF | |
| Turns off the requested relay given by parameter RelayID, values 1 to 4 | |
| RelayID | |
| The relay to turn off. From 1 to 4. | |
| Return | |
RelayON
| RelayON | |
| Turns on the requested relay given by parameter RelayID, values 1 to 4 | |
| RelayID | |
| The relay to turn on from 1 to 4. | |
| Return | |
Property reference
| Properties |