Difference between revisions of "Component: MIAC (dsPIC) (MIAC (dsPIC)) (Misc)"
From Flowcode Help
Jump to navigationJump to search| Line 57: | Line 57: | ||
| ''<span style="color:red;">No additional examples</span>'' | ''<span style="color:red;">No additional examples</span>'' | ||
| + | |||
| + | |||
| Line 63: | Line 65: | ||
| ==Macro reference== | ==Macro reference== | ||
| + | ===RelayOFF=== | ||
| {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
| |- | |- | ||
| Line 81: | Line 84: | ||
| + | ===InputANALOG_10Bit=== | ||
| {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
| |- | |- | ||
| Line 99: | Line 103: | ||
| + | ===PrintString=== | ||
| {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
| |- | |- | ||
| Line 117: | Line 122: | ||
| + | ===GetKeypad=== | ||
| {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
| |- | |- | ||
| Line 130: | Line 136: | ||
| + | ===DisplayStart=== | ||
| {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
| |- | |- | ||
| Line 143: | Line 150: | ||
| + | ===PrintNumber=== | ||
| {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
| |- | |- | ||
| Line 161: | Line 169: | ||
| + | ===PrintASCII=== | ||
| {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
| |- | |- | ||
| Line 179: | Line 188: | ||
| + | ===DrawLine=== | ||
| {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
| |- | |- | ||
| Line 217: | Line 227: | ||
| + | ===PrintFormattedNumber=== | ||
| {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
| |- | |- | ||
| Line 240: | Line 251: | ||
| + | ===DrawRect=== | ||
| {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
| |- | |- | ||
| Line 278: | Line 290: | ||
| + | ===DisplayClear=== | ||
| {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
| |- | |- | ||
| Line 291: | Line 304: | ||
| + | ===RelayON=== | ||
| {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
| |- | |- | ||
| Line 309: | Line 323: | ||
| + | ===OutputOFF=== | ||
| {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
| |- | |- | ||
| Line 327: | Line 342: | ||
| + | ===DrawPixel=== | ||
| {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
| |- | |- | ||
| Line 355: | Line 371: | ||
| + | ===DisplayCursor=== | ||
| {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
| |- | |- | ||
| Line 378: | Line 395: | ||
| + | ===OutputON=== | ||
| {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
| |- | |- | ||
| Line 396: | Line 414: | ||
| + | ===InputDIGITAL=== | ||
| {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
| |- | |- | ||
| Line 414: | Line 433: | ||
| + | ===DisplayLight=== | ||
| {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
| |- | |- | ||
| Line 432: | Line 452: | ||
| + | ===DrawGlyph=== | ||
| {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
| |- | |- | ||
| Line 465: | Line 486: | ||
| + | ===InputANALOG=== | ||
| {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
| |- | |- | ||
Revision as of 11:51, 3 February 2023
| Author | Matrix TSL | 
| Version | 1.2 | 
| Category | Misc | 
Contents
- 1 MIAC (dsPIC) component
- 2 Component Source Code
- 3 Detailed description
- 4 Examples
- 5 Macro reference
- 5.1 RelayOFF
- 5.2 InputANALOG_10Bit
- 5.3 PrintString
- 5.4 GetKeypad
- 5.5 DisplayStart
- 5.6 PrintNumber
- 5.7 PrintASCII
- 5.8 DrawLine
- 5.9 PrintFormattedNumber
- 5.10 DrawRect
- 5.11 DisplayClear
- 5.12 RelayON
- 5.13 OutputOFF
- 5.14 DrawPixel
- 5.15 DisplayCursor
- 5.16 OutputON
- 5.17 InputDIGITAL
- 5.18 DisplayLight
- 5.19 DrawGlyph
- 5.20 InputANALOG
 
- 6 Property reference
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
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 | 
InputANALOG_10Bit
|   | InputANALOG_10Bit | 
|  - BYTE | InputID | 
| The input to read. From 1 to 8. | |
|  - INT | 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 | 
GetKeypad
|   | GetKeypad | 
| Returns the key code of the key that is pressed, otherwise if nothing is pressed then returns 255 | |
|  - BYTE | Return | 
DisplayStart
|   | DisplayStart | 
| Initialise the display ready for use | |
|  - 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 | 
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 | 
DrawLine
PrintFormattedNumber
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 | 
DisplayClear
|   | DisplayClear | 
| Clears the display to white space | |
|  - 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 | 
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 | 
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 | 
DisplayCursor
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 | 
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 | 
DisplayLight
|   | DisplayLight | 
| Turns the display backlight on or off | |
|  - BYTE | state | 
|  - VOID | Return | 
DrawGlyph
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 | 
Property reference
|   | Properties | 


