Difference between revisions of "Component: MIAC (dsPIC) (MIAC (dsPIC)) (MIAC Module)"

From Flowcode Help
Jump to navigationJump to search
(XML import - Pre 8.0 release)
 
Line 1: Line 1:
 
+
{| style="width:50%"
 
 
{| width="50%"
 
 
|-
 
|-
| width="20%" style="color: gray;" | Author
+
| width="20%" style="color:gray;" | Author
 
| Matrix TSL
 
| Matrix TSL
 
|-
 
|-
| width="20%" style="color: gray;" | Version
+
| width="20%" style="color:gray;" | Version
| 1.2 (Release)
+
| 1.2
 
|-
 
|-
| width="20%" style="color: gray;" | Category
+
| width="20%" style="color:gray;" | Category
 
| MIAC Module
 
| MIAC Module
 
|}
 
|}
  
  
 +
==MIAC (dsPIC) component==
 +
MIAC - Matrix Industrial Automotive Controller (dsPIC)
  
==[[File:Component Icon 596e6f4d_d87a_4e8b_b108_c0501127c382.png|Image]] MIAC (dsPIC) (MIAC (dsPIC)) component==
+
==Component Pack==
MIAC - Matrix Industrial Automotive Controller (dsPIC)
 
  
 +
FREE
  
==Examples==
+
==Detailed description==
''<span style="color:red;">No additional examples</span>''
 
  
 +
''No detailed description exists yet for this component''
  
==Downloadable macro reference==
+
==Examples==
  
===<span style="font-weight: normal;"><u><tt>RelayOFF</tt></u></span>===
 
Turns off the requested relay given by parameter RelayID, values 1 to 4
 
  
'''Parameters'''
+
''<span style="color:red;">No additional examples</span>''
  
:[[Variable Types|BYTE]] ''RelayID''
 
::The relay to turn off. From 1 to 4.
 
  
 +
==Downloadable macro reference==
  
'''Return value'''
+
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 +
|-
 +
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
 +
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''RelayOFF'''
 +
|-
 +
| colspan="2" | Turns off the requested relay given by parameter RelayID, values 1 to 4&nbsp;
 +
|-
 +
|-
 +
| width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE
 +
| width="90%" | RelayID
 +
|-
 +
| colspan="2" | The relay to turn off. From 1 to 4.&nbsp;
 +
|-
 +
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID
 +
| width="90%" style="border-top: 2px solid #000;" | ''Return''
 +
|}
  
:''This call does not return a value''
 
  
 +
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 +
|-
 +
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
 +
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''InputANALOG_10Bit'''
 +
|-
 +
| colspan="2" | &nbsp;
 +
|-
 +
|-
 +
| width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE
 +
| width="90%" | InputID
 +
|-
 +
| colspan="2" | The input to read.  From 1 to 8.&nbsp;
 +
|-
 +
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-s16-icon.png]] - INT
 +
| width="90%" style="border-top: 2px solid #000;" | ''Return''
 +
|}
  
===<span style="font-weight: normal;"><u><tt>InputANALOG_10Bit</tt></u></span>===
 
''<span style="color:red;">No additional information</span>''
 
  
 +
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 +
|-
 +
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
 +
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''PrintString'''
 +
|-
 +
| colspan="2" | Prints the given character string to the display at the current cursor position and moves the cursor position.&nbsp;
 +
|-
 +
|-
 +
| width="10%" align="center" | [[File:Fc9-string-icon.png]] - STRING
 +
| width="90%" | Str
 +
|-
 +
| colspan="2" | The string to send to the display.&nbsp;
 +
|-
 +
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID
 +
| width="90%" style="border-top: 2px solid #000;" | ''Return''
 +
|}
  
  
'''Parameters'''
+
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 +
|-
 +
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
 +
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetKeypad'''
 +
|-
 +
| colspan="2" | Returns the key code of the key that is pressed, otherwise if nothing is pressed then returns 255&nbsp;
 +
|-
 +
|-
 +
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-u8-icon.png]] - BYTE
 +
| width="90%" style="border-top: 2px solid #000;" | ''Return''
 +
|}
  
:[[Variable Types|BYTE]] ''InputID''
 
::The input to read.  From 1 to 8.
 
  
 +
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 +
|-
 +
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
 +
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''DisplayStart'''
 +
|-
 +
| colspan="2" | Initialise the display ready for use&nbsp;
 +
|-
 +
|-
 +
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID
 +
| width="90%" style="border-top: 2px solid #000;" | ''Return''
 +
|}
  
'''Return value'''
 
  
:[[Variable Types|INT]]
+
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 +
|-
 +
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
 +
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''PrintNumber'''
 +
|-
 +
| colspan="2" | Prints the given number to the display starting at the current cursor position and moves the cursor position.&nbsp;
 +
|-
 +
|-
 +
| width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT
 +
| width="90%" | n
 +
|-
 +
| colspan="2" | &nbsp;
 +
|-
 +
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID
 +
| width="90%" style="border-top: 2px solid #000;" | ''Return''
 +
|}
  
  
===<span style="font-weight: normal;"><u><tt>PrintString</tt></u></span>===
+
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
Prints the given character string to the display at the current cursor position and moves the cursor position.
+
|-
 +
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
 +
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''PrintASCII'''
 +
|-
 +
| colspan="2" | Prints the given character to the display at the current cursor position and increments the cursor position.&nbsp;
 +
|-
 +
|-
 +
| width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE
 +
| width="90%" | Char
 +
|-
 +
| colspan="2" | ASCII code of the character to print.&nbsp;
 +
|-
 +
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID
 +
| width="90%" style="border-top: 2px solid #000;" | ''Return''
 +
|}
  
'''Parameters'''
 
  
:[[Variable Types|<- STRING]] ''Str''
+
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
::The string to send to the display.
+
|-
::''This parameter may be returned back to the caller''
+
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
 +
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''DrawLine'''
 +
|-
 +
| colspan="2" | Draws or clears a line from start at sx:sy to end at ex:ey &nbsp;
 +
|-
 +
|-
 +
| width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE
 +
| width="90%" | sx
 +
|-
 +
| colspan="2" | Start column position&nbsp;
 +
|-
 +
| width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE
 +
| width="90%" | sy
 +
|-
 +
| colspan="2" | Start row position&nbsp;
 +
|-
 +
| width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE
 +
| width="90%" | ex
 +
|-
 +
| colspan="2" | End column position&nbsp;
 +
|-
 +
| width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE
 +
| width="90%" | ey
 +
|-
 +
| colspan="2" | End row position&nbsp;
 +
|-
 +
| width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE
 +
| width="90%" | state
 +
|-
 +
| colspan="2" | 1=active pixel, 0=cleared pixel&nbsp;
 +
|-
 +
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID
 +
| width="90%" style="border-top: 2px solid #000;" | ''Return''
 +
|}
  
  
'''Return value'''
+
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 +
|-
 +
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
 +
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''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&nbsp;
 +
|-
 +
|-
 +
| width="10%" align="center" | [[File:Fc9-u32-icon.png]] - ULONG
 +
| width="90%" | Number
 +
|-
 +
| colspan="2" | Enter the number or variable to print to the LCD&nbsp;
 +
|-
 +
| width="10%" align="center" | [[File:Fc9-bool-icon.png]] - BOOL
 +
| width="90%" | Format
 +
|-
 +
| colspan="2" | 0=Signed, 1=Unsigned&nbsp;
 +
|-
 +
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID
 +
| width="90%" style="border-top: 2px solid #000;" | ''Return''
 +
|}
  
:''This call does not return a value''
 
  
 +
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 +
|-
 +
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
 +
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''DrawRect'''
 +
|-
 +
| colspan="2" | Draws a rectangular box from x1,y1 to x2,y2&nbsp;
 +
|-
 +
|-
 +
| width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE
 +
| width="90%" | x1
 +
|-
 +
| colspan="2" | &nbsp;
 +
|-
 +
| width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE
 +
| width="90%" | y1
 +
|-
 +
| colspan="2" | &nbsp;
 +
|-
 +
| width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE
 +
| width="90%" | x2
 +
|-
 +
| colspan="2" | &nbsp;
 +
|-
 +
| width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE
 +
| width="90%" | y2
 +
|-
 +
| colspan="2" | &nbsp;
 +
|-
 +
| width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE
 +
| width="90%" | state
 +
|-
 +
| colspan="2" | 1=draw pixel, 0=clear pixel&nbsp;
 +
|-
 +
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID
 +
| width="90%" style="border-top: 2px solid #000;" | ''Return''
 +
|}
  
===<span style="font-weight: normal;"><u><tt>GetKeypad</tt></u></span>===
 
Returns the key code of the key that is pressed, otherwise if nothing is pressed then returns 255
 
  
'''Parameters'''
+
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 +
|-
 +
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
 +
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''DisplayClear'''
 +
|-
 +
| colspan="2" | Clears the display to white space&nbsp;
 +
|-
 +
|-
 +
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID
 +
| width="90%" style="border-top: 2px solid #000;" | ''Return''
 +
|}
  
:''This macro has no parameters''
 
  
 +
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 +
|-
 +
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
 +
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''RelayON'''
 +
|-
 +
| colspan="2" | Turns on the requested relay given by parameter RelayID, values 1 to 4&nbsp;
 +
|-
 +
|-
 +
| width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE
 +
| width="90%" | RelayID
 +
|-
 +
| colspan="2" | The relay to turn on from 1 to 4.&nbsp;
 +
|-
 +
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID
 +
| width="90%" style="border-top: 2px solid #000;" | ''Return''
 +
|}
  
'''Return value'''
 
  
:[[Variable Types|BYTE]]
+
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 +
|-
 +
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
 +
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''OutputOFF'''
 +
|-
 +
| colspan="2" | Outputs a digital low state on the output requested by parameter TransID  (Outputs 1 to 4) &nbsp;
 +
|-
 +
|-
 +
| width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE
 +
| width="90%" | TransID
 +
|-
 +
| colspan="2" | 1 to 4 (Outputs A to D)&nbsp;
 +
|-
 +
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID
 +
| width="90%" style="border-top: 2px solid #000;" | ''Return''
 +
|}
  
  
===<span style="font-weight: normal;"><u><tt>DisplayStart</tt></u></span>===
+
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
Initialise the display ready for use
+
|-
 +
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
 +
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''DrawPixel'''
 +
|-
 +
| colspan="2" | Draws, or clears, a pixel at point x,y&nbsp;
 +
|-
 +
|-
 +
| width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE
 +
| width="90%" | px
 +
|-
 +
| colspan="2" | &nbsp;
 +
|-
 +
| width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE
 +
| width="90%" | py
 +
|-
 +
| colspan="2" | &nbsp;
 +
|-
 +
| width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE
 +
| width="90%" | state
 +
|-
 +
| colspan="2" | state = 0 clears the pixel, else draws the pixel&nbsp;
 +
|-
 +
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID
 +
| width="90%" style="border-top: 2px solid #000;" | ''Return''
 +
|}
  
'''Parameters'''
 
  
:''This macro has no parameters''
+
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 +
|-
 +
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
 +
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''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. &nbsp;
 +
|-
 +
|-
 +
| width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE
 +
| width="90%" | x
 +
|-
 +
| colspan="2" | Position of the cursor in characters from left to right.&nbsp;
 +
|-
 +
| width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE
 +
| width="90%" | y
 +
|-
 +
| colspan="2" | The line to move the cursor to.&nbsp;
 +
|-
 +
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID
 +
| width="90%" style="border-top: 2px solid #000;" | ''Return''
 +
|}
  
  
'''Return value'''
+
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 +
|-
 +
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
 +
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''OutputON'''
 +
|-
 +
| colspan="2" | Outputs a digital high state on the output requested by parameter TransID  (Outputs 1 to 4) &nbsp;
 +
|-
 +
|-
 +
| width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE
 +
| width="90%" | TransID
 +
|-
 +
| colspan="2" | 1 to 4 (Outputs A to D)&nbsp;
 +
|-
 +
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID
 +
| width="90%" style="border-top: 2px solid #000;" | ''Return''
 +
|}
  
:''This call does not return a value''
 
  
 +
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 +
|-
 +
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
 +
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''InputDIGITAL'''
 +
|-
 +
| colspan="2" | Returns the digital state of the input requested by parameter InputID  (Inputs 1 to 8) &nbsp;
 +
|-
 +
|-
 +
| width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE
 +
| width="90%" | InputID
 +
|-
 +
| colspan="2" | The input number from 1 to 8.&nbsp;
 +
|-
 +
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-u8-icon.png]] - BYTE
 +
| width="90%" style="border-top: 2px solid #000;" | ''Return''
 +
|}
  
===<span style="font-weight: normal;"><u><tt>PrintNumber</tt></u></span>===
 
Prints the given number to the display starting at the current cursor position and moves the cursor position.
 
  
'''Parameters'''
+
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 +
|-
 +
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
 +
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''DisplayLight'''
 +
|-
 +
| colspan="2" | Turns the display backlight on or off&nbsp;
 +
|-
 +
|-
 +
| width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE
 +
| width="90%" | state
 +
|-
 +
| colspan="2" | &nbsp;
 +
|-
 +
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID
 +
| width="90%" style="border-top: 2px solid #000;" | ''Return''
 +
|}
  
:[[Variable Types|INT]] ''n''
 
  
 +
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 +
|-
 +
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
 +
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''DrawGlyph'''
 +
|-
 +
| colspan="2" | Draws a character glyph on the display at position px, py&nbsp;
 +
|-
 +
|-
 +
| width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE
 +
| width="90%" | glyph
 +
|-
 +
| colspan="2" | The glyph ident number&nbsp;
 +
|-
 +
| width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE
 +
| width="90%" | px
 +
|-
 +
| colspan="2" | pixel column relative to the drawing origin (top left)&nbsp;
 +
|-
 +
| width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE
 +
| width="90%" | py
 +
|-
 +
| colspan="2" | pixel row relative to the drawing origin (top left)&nbsp;
 +
|-
 +
| width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE
 +
| width="90%" | mode
 +
|-
 +
| colspan="2" | 0=opaque/cleared background, 1=transparent background&nbsp;
 +
|-
 +
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID
 +
| width="90%" style="border-top: 2px solid #000;" | ''Return''
 +
|}
  
'''Return value'''
 
  
:''This call does not return a value''
+
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 +
|-
 +
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
 +
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''InputANALOG'''
 +
|-
 +
| colspan="2" | Returns the 8 bit value for the analogue input requested by parameter InputID  (Inputs 1 to 8)&nbsp;
 +
|-
 +
|-
 +
| width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE
 +
| width="90%" | InputID
 +
|-
 +
| colspan="2" | The input to read from 1 to 8.&nbsp;
 +
|-
 +
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-u8-icon.png]] - BYTE
 +
| width="90%" style="border-top: 2px solid #000;" | ''Return''
 +
|}
  
  
===<span style="font-weight: normal;"><u><tt>PrintASCII</tt></u></span>===
 
Prints the given character to the display at the current cursor position and increments the cursor position.
 
  
'''Parameters'''
 
  
:[[Variable Types|BYTE]] ''Char''
+
==Property reference==
::ASCII code of the character to print.
 
  
 
+
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
'''Return value'''
+
|-
 
+
| width="10%" align="center" style="background-color:#D8C9D8;" | [[File:Fc9-prop-icon.png]]
:''This call does not return a value''
+
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Properties'''  
 
+
|-
 
+
|-
===<span style="font-weight: normal;"><u><tt>DrawLine</tt></u></span>===
+
| width="10%" align="center" style="background-color:#D8C9D8;" | [[File:Fc9-conn-icon.png]]
Draws or clears a line from start at sx:sy to end at ex:ey
+
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Connections'''  
 
+
|-
'''Parameters'''
+
|-
 
+
| width="10%" align="center" style="background-color:#D8C9D8;" | [[File:Fc9-conn-icon.png]]
:[[Variable Types|BYTE]] ''sx''
+
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Simulations'''  
::Start column position
+
|-
 
+
|}
:[[Variable Types|BYTE]] ''sy''
 
::Start row position
 
 
 
:[[Variable Types|BYTE]] ''ex''
 
::End column position
 
 
 
:[[Variable Types|BYTE]] ''ey''
 
::End row position
 
 
 
:[[Variable Types|BYTE]] ''state''
 
::1=active pixel, 0=cleared pixel
 
 
 
 
 
'''Return value'''
 
 
 
:''This call does not return a value''
 
 
 
 
 
===<span style="font-weight: normal;"><u><tt>PrintFormattedNumber</tt></u></span>===
 
Will allow you to print a number up to 32-bits with signed or unsigned formatting.
 
 
 
Signed = -2147483648 to 2147483647
 
 
 
Unsigned = 0 to 4294967295
 
 
 
'''Parameters'''
 
 
 
:[[Variable Types|ULONG]] ''Number''
 
::Enter the number or variable to print to the LCD
 
 
 
:[[Variable Types|BOOL]] ''Format''
 
::0=Signed, 1=Unsigned
 
 
 
 
 
'''Return value'''
 
 
 
:''This call does not return a value''
 
 
 
 
 
===<span style="font-weight: normal;"><u><tt>DrawRect</tt></u></span>===
 
Draws a rectangular box from x1,y1 to x2,y2
 
 
 
'''Parameters'''
 
 
 
:[[Variable Types|BYTE]] ''x1''
 
 
 
:[[Variable Types|BYTE]] ''y1''
 
 
 
:[[Variable Types|BYTE]] ''x2''
 
 
 
:[[Variable Types|BYTE]] ''y2''
 
 
 
:[[Variable Types|BYTE]] ''state''
 
::1=draw pixel, 0=clear pixel
 
 
 
 
 
'''Return value'''
 
 
 
:''This call does not return a value''
 
 
 
 
 
===<span style="font-weight: normal;"><u><tt>DisplayClear</tt></u></span>===
 
Clears the display to white space
 
 
 
'''Parameters'''
 
 
 
:''This macro has no parameters''
 
 
 
 
 
'''Return value'''
 
 
 
:''This call does not return a value''
 
 
 
 
 
===<span style="font-weight: normal;"><u><tt>RelayON</tt></u></span>===
 
Turns on the requested relay given by parameter RelayID, values 1 to 4
 
 
 
'''Parameters'''
 
 
 
:[[Variable Types|BYTE]] ''RelayID''
 
::The relay to turn on from 1 to 4.
 
 
 
 
 
'''Return value'''
 
 
 
:''This call does not return a value''
 
 
 
 
 
===<span style="font-weight: normal;"><u><tt>OutputOFF</tt></u></span>===
 
Outputs a digital low state on the output requested by parameter TransID
 
 
 
(Outputs 1 to 4)
 
 
 
'''Parameters'''
 
 
 
:[[Variable Types|BYTE]] ''TransID''
 
::1 to 4 (Outputs A to D)
 
 
 
 
 
'''Return value'''
 
 
 
:''This call does not return a value''
 
 
 
 
 
===<span style="font-weight: normal;"><u><tt>DrawPixel</tt></u></span>===
 
Draws, or clears, a pixel at point x,y
 
 
 
'''Parameters'''
 
 
 
:[[Variable Types|BYTE]] ''px''
 
 
 
:[[Variable Types|BYTE]] ''py''
 
 
 
:[[Variable Types|BYTE]] ''state''
 
::state = 0 clears the pixel, else draws the pixel
 
 
 
 
 
'''Return value'''
 
 
 
:''This call does not return a value''
 
 
 
 
 
===<span style="font-weight: normal;"><u><tt>DisplayCursor</tt></u></span>===
 
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.
 
 
 
'''Parameters'''
 
 
 
:[[Variable Types|BYTE]] ''x''
 
::Position of the cursor in characters from left to right.
 
 
 
:[[Variable Types|BYTE]] ''y''
 
::The line to move the cursor to.
 
 
 
 
 
'''Return value'''
 
 
 
:''This call does not return a value''
 
 
 
 
 
===<span style="font-weight: normal;"><u><tt>OutputON</tt></u></span>===
 
Outputs a digital high state on the output requested by parameter TransID
 
 
 
(Outputs 1 to 4)
 
 
 
'''Parameters'''
 
 
 
:[[Variable Types|BYTE]] ''TransID''
 
::1 to 4 (Outputs A to D)
 
 
 
 
 
'''Return value'''
 
 
 
:''This call does not return a value''
 
 
 
 
 
===<span style="font-weight: normal;"><u><tt>InputDIGITAL</tt></u></span>===
 
Returns the digital state of the input requested by parameter InputID
 
 
 
(Inputs 1 to 8)
 
 
 
'''Parameters'''
 
 
 
:[[Variable Types|BYTE]] ''InputID''
 
::The input number from 1 to 8.
 
 
 
 
 
'''Return value'''
 
 
 
:[[Variable Types|BYTE]]
 
 
 
 
 
===<span style="font-weight: normal;"><u><tt>DisplayLight</tt></u></span>===
 
Turns the display backlight on or off
 
 
 
'''Parameters'''
 
 
 
:[[Variable Types|BYTE]] ''state''
 
 
 
 
 
'''Return value'''
 
 
 
:''This call does not return a value''
 
 
 
 
 
===<span style="font-weight: normal;"><u><tt>DrawGlyph</tt></u></span>===
 
Draws a character glyph on the display at position px, py
 
 
 
'''Parameters'''
 
 
 
:[[Variable Types|BYTE]] ''glyph''
 
::The glyph ident number
 
 
 
:[[Variable Types|BYTE]] ''px''
 
::pixel column relative to the drawing origin (top left)
 
 
 
:[[Variable Types|BYTE]] ''py''
 
::pixel row relative to the drawing origin (top left)
 
 
 
:[[Variable Types|BYTE]] ''mode''
 
::0=opaque/cleared background, 1=transparent background
 
 
 
 
 
'''Return value'''
 
 
 
:''This call does not return a value''
 
 
 
 
 
===<span style="font-weight: normal;"><u><tt>InputANALOG</tt></u></span>===
 
Returns the 8 bit value for the analogue input requested by parameter InputID
 
 
 
(Inputs 1 to 8)
 
 
 
'''Parameters'''
 
 
 
:[[Variable Types|BYTE]] ''InputID''
 
::The input to read from 1 to 8.
 
 
 
 
 
'''Return value'''
 
 
 
:[[Variable Types|BYTE]]
 
 
 
 
 
 
 
==Simulation macro reference==
 
 
 
===<span style="font-weight: normal;"><u><tt>EvClick</tt></u></span>===
 
''<span style="color:red;">No additional information</span>''
 
 
 
 
 
 
 
'''Parameters'''
 
 
 
:''This macro has no parameters''
 
 
 
 
 
'''Return value'''
 
 
 
:''This call does not return a value''
 
 
 
 
 
 
 
 
 
==Property reference==
 
''This component does not contain any properties''
 

Revision as of 16:20, 7 January 2022

Author Matrix TSL
Version 1.2
Category MIAC Module


MIAC (dsPIC) component

MIAC - Matrix Industrial Automotive Controller (dsPIC)

Component Pack

FREE

Detailed description

No detailed description exists yet for this component

Examples

No additional examples


Downloadable macro reference

Fc9-comp-macro.png RelayOFF
Turns off the requested relay given by parameter RelayID, values 1 to 4 
Fc9-u8-icon.png - BYTE RelayID
The relay to turn off. From 1 to 4. 
Fc9-void-icon.png - VOID Return


Fc9-comp-macro.png InputANALOG_10Bit
 
Fc9-u8-icon.png - BYTE InputID
The input to read. From 1 to 8. 
Fc9-s16-icon.png - INT Return


Fc9-comp-macro.png PrintString
Prints the given character string to the display at the current cursor position and moves the cursor position. 
Fc9-string-icon.png - STRING Str
The string to send to the display. 
Fc9-void-icon.png - VOID Return


Fc9-comp-macro.png GetKeypad
Returns the key code of the key that is pressed, otherwise if nothing is pressed then returns 255 
Fc9-u8-icon.png - BYTE Return


Fc9-comp-macro.png DisplayStart
Initialise the display ready for use 
Fc9-void-icon.png - VOID Return


Fc9-comp-macro.png PrintNumber
Prints the given number to the display starting at the current cursor position and moves the cursor position. 
Fc9-s16-icon.png - INT n
 
Fc9-void-icon.png - VOID Return


Fc9-comp-macro.png PrintASCII
Prints the given character to the display at the current cursor position and increments the cursor position. 
Fc9-u8-icon.png - BYTE Char
ASCII code of the character to print. 
Fc9-void-icon.png - VOID Return


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


Fc9-comp-macro.png 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 
Fc9-u32-icon.png - ULONG Number
Enter the number or variable to print to the LCD 
Fc9-bool-icon.png - BOOL Format
0=Signed, 1=Unsigned 
Fc9-void-icon.png - VOID Return


Fc9-comp-macro.png DrawRect
Draws a rectangular box from x1,y1 to x2,y2 
Fc9-u8-icon.png - BYTE x1
 
Fc9-u8-icon.png - BYTE y1
 
Fc9-u8-icon.png - BYTE x2
 
Fc9-u8-icon.png - BYTE y2
 
Fc9-u8-icon.png - BYTE state
1=draw pixel, 0=clear pixel 
Fc9-void-icon.png - VOID Return


Fc9-comp-macro.png DisplayClear
Clears the display to white space 
Fc9-void-icon.png - VOID Return


Fc9-comp-macro.png RelayON
Turns on the requested relay given by parameter RelayID, values 1 to 4 
Fc9-u8-icon.png - BYTE RelayID
The relay to turn on from 1 to 4. 
Fc9-void-icon.png - VOID Return


Fc9-comp-macro.png OutputOFF
Outputs a digital low state on the output requested by parameter TransID (Outputs 1 to 4)  
Fc9-u8-icon.png - BYTE TransID
1 to 4 (Outputs A to D) 
Fc9-void-icon.png - VOID Return


Fc9-comp-macro.png DrawPixel
Draws, or clears, a pixel at point x,y 
Fc9-u8-icon.png - BYTE px
 
Fc9-u8-icon.png - BYTE py
 
Fc9-u8-icon.png - BYTE state
state = 0 clears the pixel, else draws the pixel 
Fc9-void-icon.png - VOID Return


Fc9-comp-macro.png 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.  
Fc9-u8-icon.png - BYTE x
Position of the cursor in characters from left to right. 
Fc9-u8-icon.png - BYTE y
The line to move the cursor to. 
Fc9-void-icon.png - VOID Return


Fc9-comp-macro.png OutputON
Outputs a digital high state on the output requested by parameter TransID (Outputs 1 to 4)  
Fc9-u8-icon.png - BYTE TransID
1 to 4 (Outputs A to D) 
Fc9-void-icon.png - VOID Return


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


Fc9-comp-macro.png DisplayLight
Turns the display backlight on or off 
Fc9-u8-icon.png - BYTE state
 
Fc9-void-icon.png - VOID Return


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


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



Property reference

Fc9-prop-icon.png Properties
Fc9-conn-icon.png Connections
Fc9-conn-icon.png Simulations