Jump to content

Component: MIAC (dsPIC) (MIAC (dsPIC)) (Misc): Difference between revisions

From Flowcode Help
m Text replacement - "class="wikitable" style="width:60%; background-color:#FFFFFF;"" to "class="mtx-class-macrotable wikitable""
m Text replacement - "width="10%" align="center" style="background-color:#D8C9D8;" align="center"" to "width="10%" align="center" class="mtx-class-macrohead""
Line 74: Line 74:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''DisplayClear'''
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''DisplayClear'''
|-
|-
Line 88: Line 88:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''DisplayCursor'''
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''DisplayCursor'''
|-
|-
Line 112: Line 112:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''DisplayLight'''
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''DisplayLight'''
|-
|-
Line 131: Line 131:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''DisplayStart'''
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''DisplayStart'''
|-
|-
Line 145: Line 145:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''DrawGlyph'''
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''DrawGlyph'''
|-
|-
Line 179: Line 179:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''DrawLine'''
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''DrawLine'''
|-
|-
Line 218: Line 218:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''DrawPixel'''
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''DrawPixel'''
|-
|-
Line 247: Line 247:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''DrawRect'''
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''DrawRect'''
|-
|-
Line 286: Line 286:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetKeypad'''
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetKeypad'''
|-
|-
Line 300: Line 300:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''InputANALOG'''
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''InputANALOG'''
|-
|-
Line 319: Line 319:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''InputANALOG_10Bit'''
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''InputANALOG_10Bit'''
|-
|-
Line 338: Line 338:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''InputDIGITAL'''
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''InputDIGITAL'''
|-
|-
Line 357: Line 357:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''OutputOFF'''
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''OutputOFF'''
|-
|-
Line 376: Line 376:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''OutputON'''
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''OutputON'''
|-
|-
Line 395: Line 395:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''PrintASCII'''
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''PrintASCII'''
|-
|-
Line 414: Line 414:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''PrintFormattedNumber'''
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''PrintFormattedNumber'''
|-
|-
Line 438: Line 438:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''PrintNumber'''
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''PrintNumber'''
|-
|-
Line 457: Line 457:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''PrintString'''
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''PrintString'''
|-
|-
Line 476: Line 476:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''RelayOFF'''
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''RelayOFF'''
|-
|-
Line 495: Line 495:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''RelayON'''
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''RelayON'''
|-
|-

Revision as of 14:17, 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 
- VOID Return


DisplayCursor

DisplayCursor
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.  
- BYTE x
Position of the cursor in characters from left to right. 
- BYTE y
The line to move the cursor to. 
- VOID Return


DisplayLight

DisplayLight
Turns the display backlight on or off 
- BYTE state
 
- VOID Return


DisplayStart

DisplayStart
Initialise the display ready for use 
- VOID Return


DrawGlyph

DrawGlyph
Draws a character glyph on the display at position px, py 
- BYTE glyph
The glyph ident number 
- BYTE px
pixel column relative to the drawing origin (top left) 
- BYTE py
pixel row relative to the drawing origin (top left) 
- BYTE mode
0=opaque/cleared background, 1=transparent background 
- VOID Return


DrawLine

DrawLine
Draws or clears a line from start at sx:sy to end at ex:ey  
- BYTE sx
Start column position 
- BYTE sy
Start row position 
- BYTE ex
End column position 
- BYTE ey
End row position 
- BYTE state
1=active pixel, 0=cleared pixel 
- VOID Return


DrawPixel

DrawPixel
Draws, or clears, a pixel at point x,y 
- BYTE px
 
- BYTE py
 
- BYTE state
state = 0 clears the pixel, else draws the pixel 
- VOID Return


DrawRect

DrawRect
Draws a rectangular box from x1,y1 to x2,y2 
- BYTE x1
 
- BYTE y1
 
- BYTE x2
 
- BYTE y2
 
- BYTE state
1=draw pixel, 0=clear pixel 
- VOID Return


GetKeypad

GetKeypad
Returns the key code of the key that is pressed, otherwise if nothing is pressed then returns 255 
- BYTE Return


InputANALOG

InputANALOG
Returns the 8 bit value for the analogue input requested by parameter InputID (Inputs 1 to 8) 
- BYTE InputID
The input to read from 1 to 8. 
- BYTE Return


InputANALOG_10Bit

InputANALOG_10Bit
 
- BYTE InputID
The input to read. From 1 to 8. 
- INT Return


InputDIGITAL

InputDIGITAL
Returns the digital state of the input requested by parameter InputID (Inputs 1 to 8)  
- BYTE InputID
The input number from 1 to 8. 
- BYTE Return


OutputOFF

OutputOFF
Outputs a digital low state on the output requested by parameter TransID (Outputs 1 to 4)  
- BYTE TransID
1 to 4 (Outputs A to D) 
- VOID Return


OutputON

OutputON
Outputs a digital high state on the output requested by parameter TransID (Outputs 1 to 4)  
- BYTE TransID
1 to 4 (Outputs A to D) 
- VOID Return


PrintASCII

PrintASCII
Prints the given character to the display at the current cursor position and increments the cursor position. 
- BYTE Char
ASCII code of the character to print. 
- VOID Return


PrintFormattedNumber

PrintFormattedNumber
Will allow you to print a number up to 32-bits with signed or unsigned formatting. Signed = -2147483648 to 2147483647 Unsigned = 0 to 4294967295 
- ULONG Number
Enter the number or variable to print to the LCD 
- BOOL Format
0=Signed, 1=Unsigned 
- VOID Return


PrintNumber

PrintNumber
Prints the given number to the display starting at the current cursor position and moves the cursor position. 
- INT n
 
- VOID Return


PrintString

PrintString
Prints the given character string to the display at the current cursor position and moves the cursor position. 
- STRING Str
The string to send to the display. 
- VOID Return


RelayOFF

RelayOFF
Turns off the requested relay given by parameter RelayID, values 1 to 4 
- BYTE RelayID
The relay to turn off. From 1 to 4. 
- VOID Return


RelayON

RelayON
Turns on the requested relay given by parameter RelayID, values 1 to 4 
- BYTE RelayID
The relay to turn on from 1 to 4. 
- VOID Return


Property reference

Properties