Difference between revisions of "Component: MIAC NXT / ECU (MIAC Module)"

From Flowcode Help
Jump to navigationJump to search
 
(8 intermediate revisions by the same user not shown)
Line 17: Line 17:
 
==Component Source Code==
 
==Component Source Code==
  
Please click here for the component source code: [https://www.flowcode.co.uk/wikicopy/componentsource/FC_Comp_Source_MIAC_NXT_Component_Source.fcfx FC_Comp_Source_MIAC_NXT_Component_Source.fcfx]
+
Please click here to download the component source project: [https://www.flowcode.co.uk/wiki/componentsource/FC_Comp_Source_MIAC_NXT_Component_Source.fcfx FC_Comp_Source_MIAC_NXT_Component_Source.fcfx]
 +
 
 +
Please click here to view the component source code (Beta): [https://www.flowcode.co.uk/FlowchartView/?wfile=componentsource/FC_Comp_Source_MIAC_NXT_Component_Source.fcfx FC_Comp_Source_MIAC_NXT_Component_Source.fcfx]
  
 
==Detailed description==
 
==Detailed description==
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
  
  
Line 26: Line 38:
  
 
==Examples==
 
==Examples==
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
  
  
Line 31: Line 53:
 
''<span style="color:red;">No additional examples</span>''
 
''<span style="color:red;">No additional examples</span>''
  
==Downloadable macro reference==
 
  
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
==Macro reference==
 +
 +
===DisplayClear===
 
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 
|-
 
|-
 
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
 
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''TransistorOutputState'''
+
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''DisplayClear'''
 
|-
 
|-
| colspan="2" | Allows one of the high speed transistor outputs ( A - F ) to be pulled to GND, Pulled to +V or disabled.&nbsp;
+
| colspan="2" | Clears all text from the display&nbsp;
|-
 
|-
 
| width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE
 
| width="90%" | Channel
 
|-
 
| colspan="2" | Range: 1 - 6 where 1=A / 2=B / 3=C / 4=D / 5=E / 6=F&nbsp;
 
|-
 
| width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE
 
| width="90%" | State
 
 
|-
 
|-
| colspan="2" | 0 = Pull to Ground / 1 = Pull to +V / 2 = DisableOutput&nbsp;
 
 
|-
 
|-
 
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID
 
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID
Line 56: Line 79:
  
  
 +
===DisplayClearLine===
 
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 
|-
 
|-
 
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
 
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''DisplayPrintFormattedNumber'''
+
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''DisplayClearLine'''
 
|-
 
|-
| 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;
+
| colspan="2" | Clears a single line of text from the display&nbsp;
 
|-
 
|-
 
|-
 
|-
| width="10%" align="center" | [[File:Fc9-u32-icon.png]] - ULONG
+
| width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE
| width="90%" | Number
+
| width="90%" | Line
 
|-
 
|-
| colspan="2" | Enter the number or variable to print to the display&nbsp;
+
| colspan="2" | Line to clear. Range 0 to CharacterHeight - 1&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="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID
Line 79: Line 98:
  
  
 +
===DisplayCursor===
 
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 
|-
 
|-
 
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
 
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''DisplayPrintFloat'''
+
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''DisplayCursor'''
 
|-
 
|-
| colspan="2" | Prints a formatted floating point number to the display&nbsp;
+
| colspan="2" | Moves the current pixel position of the cursor within the coordinate space&nbsp;
 
|-
 
|-
 
|-
 
|-
| width="10%" align="center" | [[File:Fc9-f32-icon.png]] - FLOAT
+
| width="10%" align="center" | [[File:Fc9-u16-icon.png]] - UINT
| width="90%" | Number
+
| width="90%" | X
 
|-
 
|-
| colspan="2" | &nbsp;
+
| colspan="2" | Sets the pixel position on the X plane, 0 is the left most pixel&nbsp;
 
|-
 
|-
| width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE
+
| width="10%" align="center" | [[File:Fc9-u16-icon.png]] - UINT
| width="90%" | DecimalPoints
+
| width="90%" | Y
 
|-
 
|-
| colspan="2" | Number of decimal points to display&nbsp;
+
| colspan="2" | Sets the pixel position on the Y plane, 0 is the top most pixel&nbsp;
 
|-
 
|-
 
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID
 
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID
Line 102: Line 122:
  
  
 +
===DisplayGetCursorPosition===
 
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 
|-
 
|-
Line 120: Line 141:
  
  
 +
===DisplayPixel===
 
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 
|-
 
|-
 
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
 
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ReadTransistorOutputCurrent'''
+
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''DisplayPixel'''
 
|-
 
|-
| colspan="2" | Reads the current for one of the transistor outputs ( A - F ) Returns the current as a floating point number in amps&nbsp;
+
| colspan="2" | Sets or clears a pixel at location X, Y.&nbsp;
 
|-
 
|-
 
|-
 
|-
| width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE
+
| width="10%" align="center" | [[File:Fc9-u16-icon.png]] - UINT
| width="90%" | Channel
+
| width="90%" | X1
 
|-
 
|-
| colspan="2" | Range: 1 - 6 - 1=A / 2=B / 3=C / 4=D / 5=E / 6=F&nbsp;
+
| colspan="2" | &nbsp;
 
|-
 
|-
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-f32-icon.png]] - FLOAT
+
| width="10%" align="center" | [[File:Fc9-u16-icon.png]] - UINT
| width="90%" style="border-top: 2px solid #000;" | ''Return''
+
| width="90%" | Y1
|}
 
 
 
 
 
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 
 
|-
 
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
+
| colspan="2" | &nbsp;
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''RelayOutputState'''
 
|-
 
| colspan="2" | Allows one of the relay outputs ( Q1 - Q2 ) to be switched on or off.&nbsp;
 
|-
 
|-
 
| width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE
 
| width="90%" | Channel
 
|-
 
| colspan="2" | Range: 1 - 2 Where 1=Q1 / 2=Q2&nbsp;
 
 
|-
 
|-
 
| width="10%" align="center" | [[File:Fc9-bool-icon.png]] - BOOL
 
| width="10%" align="center" | [[File:Fc9-bool-icon.png]] - BOOL
 
| width="90%" | State
 
| width="90%" | State
 
|-
 
|-
| colspan="2" | 0 = Relay Open Circuit / 1 = Relay Closed Circuit&nbsp;
+
| colspan="2" | 0=Off / 1=On&nbsp;
 
|-
 
|-
 
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID
 
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID
Line 161: Line 170:
  
  
 +
===DisplayPrintASCII===
 
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 
|-
 
|-
 
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
 
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ReadUSBConnected'''
+
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''DisplayPrintASCII'''
 +
|-
 +
| colspan="2" | Prints a single ASCII character to the display&nbsp;
 +
|-
 
|-
 
|-
| 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.&nbsp;
+
| width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE
 +
| width="90%" | Character
 
|-
 
|-
 +
| colspan="2" | Holds an ASCII value e.g. 'A'&nbsp;
 
|-
 
|-
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-bool-icon.png]] - BOOL
+
| 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''
 
| width="90%" style="border-top: 2px solid #000;" | ''Return''
 
|}
 
|}
  
  
 +
===DisplayPrintFloat===
 
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 
|-
 
|-
 
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
 
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''InputAnalogByte'''
+
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''DisplayPrintFloat'''
 
|-
 
|-
| colspan="2" | Reads one of the input channels ( IN1 - IN8 ) as an analogue value with range 0-255&nbsp;
+
| colspan="2" | Prints a formatted floating point number to the display&nbsp;
 
|-
 
|-
 
|-
 
|-
| width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE
+
| width="10%" align="center" | [[File:Fc9-f32-icon.png]] - FLOAT
| width="90%" | Channel
+
| width="90%" | Number
 
|-
 
|-
| colspan="2" | Range: 1 - 8&nbsp;
+
| colspan="2" | &nbsp;
 
|-
 
|-
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-u8-icon.png]] - BYTE
+
| width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE
| width="90%" style="border-top: 2px solid #000;" | ''Return''
+
| width="90%" | DecimalPoints
|}
 
 
 
 
 
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 
 
|-
 
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
+
| colspan="2" | Number of decimal points to display&nbsp;
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''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..&nbsp;
+
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID
|-
 
|-
 
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-u16-icon.png]] - UINT
 
 
| width="90%" style="border-top: 2px solid #000;" | ''Return''
 
| width="90%" style="border-top: 2px solid #000;" | ''Return''
 
|}
 
|}
  
  
 +
===DisplayPrintFormattedNumber===
 
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 
|-
 
|-
 
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
 
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ReadEEPROM'''
+
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''DisplayPrintFormattedNumber'''
 
|-
 
|-
| colspan="2" | Read a single byte from the EEPROM.&nbsp;
+
| 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-u16-icon.png]] - UINT
+
| width="10%" align="center" | [[File:Fc9-u32-icon.png]] - ULONG
| width="90%" | Address
+
| width="90%" | Number
 
|-
 
|-
| colspan="2" | &nbsp;
+
| colspan="2" | Enter the number or variable to print to the display&nbsp;
 
|-
 
|-
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-u8-icon.png]] - BYTE
+
| width="10%" align="center" | [[File:Fc9-bool-icon.png]] - BOOL
| width="90%" style="border-top: 2px solid #000;" | ''Return''
+
| width="90%" | Format
|}
 
 
 
 
 
{| 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 all text from the display&nbsp;
 
 
|-
 
|-
 +
| colspan="2" | 0 = Signed, 1 = Unsigned&nbsp;
 
|-
 
|-
 
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID
 
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID
Line 236: Line 237:
  
  
 +
===DisplayPrintNumber===
 
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 
|-
 
|-
 
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
 
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''DisplayPixel'''
+
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''DisplayPrintNumber'''
 
|-
 
|-
| colspan="2" | Sets or clears a pixel at location X, Y.&nbsp;
+
| colspan="2" | Prints a number to the display as an ASCII string&nbsp;
 
|-
 
|-
 
|-
 
|-
| width="10%" align="center" | [[File:Fc9-u16-icon.png]] - UINT
+
| width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT
| width="90%" | X1
+
| width="90%" | Number
 
|-
 
|-
| colspan="2" | &nbsp;
+
| colspan="2" | Enter the number or variable to print to the display&nbsp;
|-
 
| width="10%" align="center" | [[File:Fc9-u16-icon.png]] - UINT
 
| width="90%" | Y1
 
|-
 
| colspan="2" | &nbsp;
 
|-
 
| width="10%" align="center" | [[File:Fc9-bool-icon.png]] - BOOL
 
| width="90%" | State
 
|-
 
| colspan="2" | 0=Off / 1=On&nbsp;
 
 
|-
 
|-
 
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID
 
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID
Line 264: Line 256:
  
  
 +
===DisplayPrintString===
 
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 
|-
 
|-
 
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
 
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''WriteEEPROM'''
+
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''DisplayPrintString'''
 
|-
 
|-
| colspan="2" | Write a single byte to a location in the EEPROM.&nbsp;
+
| colspan="2" | Prints a string of ASCII characters to the display&nbsp;
 
|-
 
|-
 
|-
 
|-
| width="10%" align="center" | [[File:Fc9-u16-icon.png]] - UINT
+
| width="10%" align="center" | [[File:Fc9-string-icon.png]] - STRING
| width="90%" | Address
+
| width="90%" | Text
 
|-
 
|-
| colspan="2" | &nbsp;
+
| colspan="2" | Enter the text or variable to print to the display&nbsp;
|-
 
| width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE
 
| width="90%" | Data
 
|-
 
| colspan="2" | &nbsp;
 
 
|-
 
|-
 
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID
 
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID
Line 287: Line 275:
  
  
 +
===Initialise===
 
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 
|-
 
|-
 
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
 
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''DisplayClearLine'''
+
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Initialise'''
 
|-
 
|-
| colspan="2" | Clears a single line of text from the display&nbsp;
+
| colspan="2" | Starts up the MIAC IO and display. &nbsp;
 
|-
 
|-
|-
 
| width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE
 
| width="90%" | Line
 
|-
 
| colspan="2" | Line to clear. Range 0 to CharacterHeight - 1&nbsp;
 
 
|-
 
|-
 
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID
 
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID
Line 305: Line 289:
  
  
 +
===InputAnalogByte===
 
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 
|-
 
|-
 
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
 
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''DisplayPrintASCII'''
+
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''InputAnalogByte'''
 
|-
 
|-
| colspan="2" | Prints a single ASCII character to the display&nbsp;
+
| colspan="2" | Reads one of the input channels ( IN1 - IN8 ) as an analogue value with range 0-255&nbsp;
 
|-
 
|-
 
|-
 
|-
 
| width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE
 
| width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE
| width="90%" | Character
+
| width="90%" | Channel
 
|-
 
|-
| colspan="2" | Holds an ASCII value e.g. 'A'&nbsp;
+
| colspan="2" | Range: 1 - 8&nbsp;
 
|-
 
|-
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID
+
| 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''
 
| width="90%" style="border-top: 2px solid #000;" | ''Return''
 
|}
 
|}
  
  
 +
===InputAnalogInt===
 
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 
|-
 
|-
 
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
 
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''TransistorPWMDuty'''
+
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''InputAnalogInt'''
 
|-
 
|-
| colspan="2" | Sets the PWM duty on the selected channel&nbsp;
+
| colspan="2" | Reads one of the input channels ( IN1 - IN8 ) as an analogue value with range 0-4095&nbsp;
 
|-
 
|-
 
|-
 
|-
Line 334: Line 320:
 
| width="90%" | Channel
 
| width="90%" | Channel
 
|-
 
|-
| colspan="2" | Range: 1-4 Where 1=A / 2=B / 3=C / 4=D&nbsp;
+
| colspan="2" | Range: 1 - 8&nbsp;
 
|-
 
|-
| width="10%" align="center" | [[File:Fc9-bool-icon.png]] - BOOL
+
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-u16-icon.png]] - UINT
| width="90%" | EnableOrState
 
|-
 
| colspan="2" | 1 = Enable / 0 = State&nbsp;
 
|-
 
| width="10%" align="center" | [[File:Fc9-u16-icon.png]] - UINT
 
| width="90%" | Duty
 
|-
 
| colspan="2" | Range: 0 - 65535&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''
 
| width="90%" style="border-top: 2px solid #000;" | ''Return''
 
|}
 
|}
  
  
 +
===InputDigital===
 
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 
|-
 
|-
 
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
 
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''DisplayPrintString'''
+
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''InputDigital'''
 
|-
 
|-
| colspan="2" | Prints a string of ASCII characters to the display&nbsp;
+
| colspan="2" | Reads one of the input channels ( IN1 - IN8 ) as a digital value with range 0-1&nbsp;
 
|-
 
|-
 
|-
 
|-
| width="10%" align="center" | [[File:Fc9-string-icon.png]] - STRING
+
| width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE
| width="90%" | Text
+
| width="90%" | Channel
 
|-
 
|-
| colspan="2" | Enter the text or variable to print to the display&nbsp;
+
| colspan="2" | Range: 1 - 8&nbsp;
 
|-
 
|-
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID
+
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-bool-icon.png]] - BOOL
 
| width="90%" style="border-top: 2px solid #000;" | ''Return''
 
| width="90%" style="border-top: 2px solid #000;" | ''Return''
 
|}
 
|}
  
  
 +
===Print===
 
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 
|-
 
|-
Line 407: Line 385:
  
  
 +
===ReadEEPROM===
 +
{| 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;" | '''ReadEEPROM'''
 +
|-
 +
| colspan="2" | Read a single byte from the EEPROM.&nbsp;
 +
|-
 +
|-
 +
| width="10%" align="center" | [[File:Fc9-u16-icon.png]] - UINT
 +
| width="90%" | Address
 +
|-
 +
| colspan="2" | &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''
 +
|}
 +
 +
 +
===ReadKeypad===
 +
{| 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;" | '''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..&nbsp;
 +
|-
 +
|-
 +
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-u16-icon.png]] - UINT
 +
| width="90%" style="border-top: 2px solid #000;" | ''Return''
 +
|}
 +
 +
 +
===ReadTransistorOutputCurrent===
 
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 
|-
 
|-
 
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
 
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''TransistorPWMEnable'''
+
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ReadTransistorOutputCurrent'''
 
|-
 
|-
| colspan="2" | Enables or disables PWM on the selected channel&nbsp;
+
| colspan="2" | Reads the current for one of the transistor outputs ( A - F ) Returns the current as a floating point number in amps&nbsp;
 
|-
 
|-
 
|-
 
|-
Line 418: Line 430:
 
| width="90%" | Channel
 
| width="90%" | Channel
 
|-
 
|-
| colspan="2" | Range: 1-4 Where 1=A / 2=B / 3=C / 4=D&nbsp;
+
| colspan="2" | Range: 1 - 6 - 1=A / 2=B / 3=C / 4=D / 5=E / 6=F&nbsp;
 
|-
 
|-
| width="10%" align="center" | [[File:Fc9-bool-icon.png]] - BOOL
+
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-f32-icon.png]] - FLOAT
| width="90%" | EnableOrState
+
| width="90%" style="border-top: 2px solid #000;" | ''Return''
 +
|}
 +
 
 +
 
 +
===ReadUSBConnected===
 +
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 
|-
 
|-
| colspan="2" | PWM on Enable Pin or State Pin - 1 = Enable / 0 = State&nbsp;
+
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
 +
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ReadUSBConnected'''
 
|-
 
|-
| width="10%" align="center" | [[File:Fc9-bool-icon.png]] - BOOL
+
| 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.&nbsp;
| width="90%" | OnOrOff
 
 
|-
 
|-
| colspan="2" | 1 = Enabled / 0 = Disabled&nbsp;
 
 
|-
 
|-
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID
+
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-bool-icon.png]] - BOOL
 
| width="90%" style="border-top: 2px solid #000;" | ''Return''
 
| width="90%" style="border-top: 2px solid #000;" | ''Return''
 
|}
 
|}
  
  
 +
===RelayOutputState===
 
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 
|-
 
|-
 
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
 
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''DisplayCursor'''
+
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''RelayOutputState'''
 
|-
 
|-
| colspan="2" | Moves the current pixel position of the cursor within the coordinate space&nbsp;
+
| colspan="2" | Allows one of the relay outputs ( Q1 - Q2 ) to be switched on or off.&nbsp;
 
|-
 
|-
 
|-
 
|-
| width="10%" align="center" | [[File:Fc9-u16-icon.png]] - UINT
+
| width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE
| width="90%" | X
+
| width="90%" | Channel
 
|-
 
|-
| colspan="2" | Sets the pixel position on the X plane, 0 is the left most pixel&nbsp;
+
| colspan="2" | Range: 1 - 2 Where 1=Q1 / 2=Q2&nbsp;
 
|-
 
|-
| width="10%" align="center" | [[File:Fc9-u16-icon.png]] - UINT
+
| width="10%" align="center" | [[File:Fc9-bool-icon.png]] - BOOL
| width="90%" | Y
+
| width="90%" | State
 
|-
 
|-
| colspan="2" | Sets the pixel position on the Y plane, 0 is the top most pixel&nbsp;
+
| colspan="2" | 0 = Relay Open Circuit / 1 = Relay Closed Circuit&nbsp;
 
|-
 
|-
 
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID
 
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID
Line 458: Line 475:
  
  
 +
===TransistorOutputState===
 
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 
|-
 
|-
 
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
 
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''InputDigital'''
+
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''TransistorOutputState'''
 
|-
 
|-
| colspan="2" | Reads one of the input channels ( IN1 - IN8 ) as a digital value with range 0-1&nbsp;
+
| colspan="2" | Allows one of the high speed transistor outputs ( A - F ) to be pulled to GND, Pulled to +V or disabled.&nbsp;
 
|-
 
|-
 
|-
 
|-
Line 469: Line 487:
 
| width="90%" | Channel
 
| width="90%" | Channel
 
|-
 
|-
| colspan="2" | Range: 1 - 8&nbsp;
+
| colspan="2" | Range: 1 - 6 where 1=A / 2=B / 3=C / 4=D / 5=E / 6=F&nbsp;
 +
|-
 +
| width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE
 +
| width="90%" | State
 +
|-
 +
| colspan="2" | 0 = Pull to Ground / 1 = Pull to +V / 2 = DisableOutput&nbsp;
 
|-
 
|-
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-bool-icon.png]] - BOOL
+
| 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''
 
| width="90%" style="border-top: 2px solid #000;" | ''Return''
 
|}
 
|}
  
  
 +
===TransistorPWMDuty===
 
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 
|-
 
|-
 
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
 
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''DisplayPrintNumber'''
+
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''TransistorPWMDuty'''
 +
|-
 +
| colspan="2" | Sets the PWM duty on the selected channel&nbsp;
 +
|-
 +
|-
 +
| width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE
 +
| width="90%" | Channel
 +
|-
 +
| colspan="2" | Range: 1-4 Where 1=A / 2=B / 3=C / 4=D&nbsp;
 
|-
 
|-
| colspan="2" | Prints a number to the display as an ASCII string&nbsp;
+
| width="10%" align="center" | [[File:Fc9-bool-icon.png]] - BOOL
 +
| width="90%" | EnableOrState
 
|-
 
|-
 +
| colspan="2" | 1 = Enable / 0 = State&nbsp;
 
|-
 
|-
| width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT
+
| width="10%" align="center" | [[File:Fc9-u16-icon.png]] - UINT
| width="90%" | Number
+
| width="90%" | Duty
 
|-
 
|-
| colspan="2" | Enter the number or variable to print to the display&nbsp;
+
| colspan="2" | Range: 0 - 65535&nbsp;
 
|-
 
|-
 
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID
 
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID
Line 494: Line 528:
  
  
 +
===TransistorPWMEnable===
 
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 
|-
 
|-
 
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
 
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''InputAnalogInt'''
+
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''TransistorPWMEnable'''
 
|-
 
|-
| colspan="2" | Reads one of the input channels ( IN1 - IN8 ) as an analogue value with range 0-4095&nbsp;
+
| colspan="2" | Enables or disables PWM on the selected channel&nbsp;
 
|-
 
|-
 
|-
 
|-
Line 505: Line 540:
 
| width="90%" | Channel
 
| width="90%" | Channel
 
|-
 
|-
| colspan="2" | Range: 1 - 8&nbsp;
+
| colspan="2" | Range: 1-4 Where 1=A / 2=B / 3=C / 4=D&nbsp;
 +
|-
 +
| width="10%" align="center" | [[File:Fc9-bool-icon.png]] - BOOL
 +
| width="90%" | EnableOrState
 +
|-
 +
| colspan="2" | PWM on Enable Pin or State Pin - 1 = Enable / 0 = State&nbsp;
 +
|-
 +
| width="10%" align="center" | [[File:Fc9-bool-icon.png]] - BOOL
 +
| width="90%" | OnOrOff
 +
|-
 +
| colspan="2" | 1 = Enabled / 0 = Disabled&nbsp;
 
|-
 
|-
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-u16-icon.png]] - UINT
+
| 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''
 
| width="90%" style="border-top: 2px solid #000;" | ''Return''
 
|}
 
|}
  
  
 +
===WriteEEPROM===
 
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 
|-
 
|-
 
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
 
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Initialise'''
+
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''WriteEEPROM'''
 +
|-
 +
| colspan="2" | Write a single byte to a location in the EEPROM.&nbsp;
 +
|-
 +
|-
 +
| width="10%" align="center" | [[File:Fc9-u16-icon.png]] - UINT
 +
| width="90%" | Address
 +
|-
 +
| colspan="2" | &nbsp;
 
|-
 
|-
| colspan="2" | Starts up the MIAC IO and display. &nbsp;
+
| width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE
 +
| width="90%" | Data
 
|-
 
|-
 +
| colspan="2" | &nbsp;
 
|-
 
|-
 
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID
 
| 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''
 
| width="90%" style="border-top: 2px solid #000;" | ''Return''
 
|}
 
|}
 
 
  
  

Latest revision as of 13:11, 7 February 2023

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

Fc9-comp-macro.png DisplayClear
Clears all text from the display 
Fc9-void-icon.png - VOID Return


DisplayClearLine

Fc9-comp-macro.png DisplayClearLine
Clears a single line of text from the display 
Fc9-u8-icon.png - BYTE Line
Line to clear. Range 0 to CharacterHeight - 1 
Fc9-void-icon.png - VOID Return


DisplayCursor

Fc9-comp-macro.png DisplayCursor
Moves the current pixel position of the cursor within the coordinate space 
Fc9-u16-icon.png - UINT X
Sets the pixel position on the X plane, 0 is the left most pixel 
Fc9-u16-icon.png - UINT Y
Sets the pixel position on the Y plane, 0 is the top most pixel 
Fc9-void-icon.png - VOID Return


DisplayGetCursorPosition

Fc9-comp-macro.png DisplayGetCursorPosition
Gets the current pixel position of the cursor within the coordinate space 
Fc9-u8-icon.png - BYTE Axis
0=X, 1=Y 
Fc9-u16-icon.png - UINT Return


DisplayPixel

Fc9-comp-macro.png DisplayPixel
Sets or clears a pixel at location X, Y. 
Fc9-u16-icon.png - UINT X1
 
Fc9-u16-icon.png - UINT Y1
 
Fc9-bool-icon.png - BOOL State
0=Off / 1=On 
Fc9-void-icon.png - VOID Return


DisplayPrintASCII

Fc9-comp-macro.png DisplayPrintASCII
Prints a single ASCII character to the display 
Fc9-u8-icon.png - BYTE Character
Holds an ASCII value e.g. 'A' 
Fc9-void-icon.png - VOID Return


DisplayPrintFloat

Fc9-comp-macro.png DisplayPrintFloat
Prints a formatted floating point number to the display 
Fc9-f32-icon.png - FLOAT Number
 
Fc9-u8-icon.png - BYTE DecimalPoints
Number of decimal points to display 
Fc9-void-icon.png - VOID Return


DisplayPrintFormattedNumber

Fc9-comp-macro.png DisplayPrintFormattedNumber
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 display 
Fc9-bool-icon.png - BOOL Format
0 = Signed, 1 = Unsigned 
Fc9-void-icon.png - VOID Return


DisplayPrintNumber

Fc9-comp-macro.png DisplayPrintNumber
Prints a number to the display as an ASCII string 
Fc9-s16-icon.png - INT Number
Enter the number or variable to print to the display 
Fc9-void-icon.png - VOID Return


DisplayPrintString

Fc9-comp-macro.png DisplayPrintString
Prints a string of ASCII characters to the display 
Fc9-string-icon.png - STRING Text
Enter the text or variable to print to the display 
Fc9-void-icon.png - VOID Return


Initialise

Fc9-comp-macro.png Initialise
Starts up the MIAC IO and display.  
Fc9-void-icon.png - VOID Return


InputAnalogByte

Fc9-comp-macro.png InputAnalogByte
Reads one of the input channels ( IN1 - IN8 ) as an analogue value with range 0-255 
Fc9-u8-icon.png - BYTE Channel
Range: 1 - 8 
Fc9-u8-icon.png - BYTE Return


InputAnalogInt

Fc9-comp-macro.png InputAnalogInt
Reads one of the input channels ( IN1 - IN8 ) as an analogue value with range 0-4095 
Fc9-u8-icon.png - BYTE Channel
Range: 1 - 8 
Fc9-u16-icon.png - UINT Return


InputDigital

Fc9-comp-macro.png InputDigital
Reads one of the input channels ( IN1 - IN8 ) as a digital value with range 0-1 
Fc9-u8-icon.png - BYTE Channel
Range: 1 - 8 
Fc9-bool-icon.png - BOOL Return


Print

Fc9-comp-macro.png Print
This macro prints a string of characters to the Graphical LCD. 
Fc9-string-icon.png - STRING Str
String of characters to send to the display. 
Fc9-u16-icon.png - UINT X1
X pixel coordinate to set the output string position. 
Fc9-u16-icon.png - UINT Y1
Y pixel coordinate to set the output string position. 
Fc9-u8-icon.png - BYTE Font
Selects which Font to use Range: 0 to Font Count 
Fc9-u8-icon.png - BYTE Transparent
Specifies if the background of the text is drawn - 0 = Background colour is drawn, 1 = Background colour not drawn. 
Fc9-void-icon.png - VOID Return


ReadEEPROM

Fc9-comp-macro.png ReadEEPROM
Read a single byte from the EEPROM. 
Fc9-u16-icon.png - UINT Address
 
Fc9-u8-icon.png - BYTE Return


ReadKeypad

Fc9-comp-macro.png ReadKeypad
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.. 
Fc9-u16-icon.png - UINT Return


ReadTransistorOutputCurrent

Fc9-comp-macro.png ReadTransistorOutputCurrent
Reads the current for one of the transistor outputs ( A - F ) Returns the current as a floating point number in amps 
Fc9-u8-icon.png - BYTE Channel
Range: 1 - 6 - 1=A / 2=B / 3=C / 4=D / 5=E / 6=F 
Fc9-f32-icon.png - FLOAT Return


ReadUSBConnected

Fc9-comp-macro.png 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. 
Fc9-bool-icon.png - BOOL Return


RelayOutputState

Fc9-comp-macro.png RelayOutputState
Allows one of the relay outputs ( Q1 - Q2 ) to be switched on or off. 
Fc9-u8-icon.png - BYTE Channel
Range: 1 - 2 Where 1=Q1 / 2=Q2 
Fc9-bool-icon.png - BOOL State
0 = Relay Open Circuit / 1 = Relay Closed Circuit 
Fc9-void-icon.png - VOID Return


TransistorOutputState

Fc9-comp-macro.png TransistorOutputState
Allows one of the high speed transistor outputs ( A - F ) to be pulled to GND, Pulled to +V or disabled. 
Fc9-u8-icon.png - BYTE Channel
Range: 1 - 6 where 1=A / 2=B / 3=C / 4=D / 5=E / 6=F 
Fc9-u8-icon.png - BYTE State
0 = Pull to Ground / 1 = Pull to +V / 2 = DisableOutput 
Fc9-void-icon.png - VOID Return


TransistorPWMDuty

Fc9-comp-macro.png TransistorPWMDuty
Sets the PWM duty on the selected channel 
Fc9-u8-icon.png - BYTE Channel
Range: 1-4 Where 1=A / 2=B / 3=C / 4=D 
Fc9-bool-icon.png - BOOL EnableOrState
1 = Enable / 0 = State 
Fc9-u16-icon.png - UINT Duty
Range: 0 - 65535 
Fc9-void-icon.png - VOID Return


TransistorPWMEnable

Fc9-comp-macro.png TransistorPWMEnable
Enables or disables PWM on the selected channel 
Fc9-u8-icon.png - BYTE Channel
Range: 1-4 Where 1=A / 2=B / 3=C / 4=D 
Fc9-bool-icon.png - BOOL EnableOrState
PWM on Enable Pin or State Pin - 1 = Enable / 0 = State 
Fc9-bool-icon.png - BOOL OnOrOff
1 = Enabled / 0 = Disabled 
Fc9-void-icon.png - VOID Return


WriteEEPROM

Fc9-comp-macro.png WriteEEPROM
Write a single byte to a location in the EEPROM. 
Fc9-u16-icon.png - UINT Address
 
Fc9-u8-icon.png - BYTE Data
 
Fc9-void-icon.png - VOID Return


Property reference

Fc9-prop-icon.png Properties
Fc9-conn-icon.png Transistor Output PWM Settings
Fc9-type-16-icon.png Prescaler Divide
Allows the user to change the number of program cycles per PWM cycle count. Note that all PWM channels based on the same timer will share the same prescaler. 
Fc9-type-14-icon.png Period Register
Allows the user to change the number of counts for the whole PWM period. Note that all PWM channels based on the same timer will share the same period overflow. PIC/AVR Range: 0 - 255 16-bit PIC Range: 0 - 65535 
Fc9-type-16-icon.png PWM Timer
Timer associated with PWM to drive the output. Warning - All PWM channels linked to the same timer will share the same period and prescaler settings. 
Fc9-type-15-icon.png Frequency (Hz)
 
Fc9-conn-icon.png Display Settings
Fc9-type-1-icon.png Foreground Color
Specifies the initial foreground color. 
Fc9-type-1-icon.png Background Color
Specifies the initial background color. 
Fc9-type-16-icon.png Font
Font picker to decide which font to use on your display. 
Fc9-type-16-icon.png Character Spacing
Sets the number of blank pixels between each character when printing text. Default 1. 
Fc9-type-16-icon.png Space Width
Sets the number of horizontal pixels used to represent a space character. 
Fc9-conn-icon.png Pin Connections
Fc9-conn-icon.png CAN (2 x Internal + 1 x External MCP2515)
Fc9-type-5-icon.png C1 TX
 
Fc9-type-5-icon.png C1 RX
 
Fc9-type-5-icon.png C2 TX
 
Fc9-type-5-icon.png C2 RX
 
Fc9-type-5-icon.png C3 MOSI
 
Fc9-type-5-icon.png C3 MISO
 
Fc9-type-5-icon.png C3 SCK
 
Fc9-type-5-icon.png C3 CS
 
Fc9-type-5-icon.png C3 INT
 
Fc9-type-5-icon.png C3 RES
 
Fc9-conn-icon.png LIN
Fc9-type-5-icon.png LIN TX
 
Fc9-type-5-icon.png LIN RX
 
Fc9-type-5-icon.png LIN Enable
 
Fc9-conn-icon.png Bluetooth RN4678
Fc9-type-5-icon.png BT TX
 
Fc9-type-5-icon.png BT RX
 
Fc9-type-5-icon.png BT Reset
 
Fc9-conn-icon.png Wifi ESP12S
Fc9-type-5-icon.png Wifi TX
 
Fc9-type-5-icon.png Wifi RX
 
Fc9-type-5-icon.png Wifi Reset
 
Fc9-conn-icon.png Ethernet W5500
Fc9-type-5-icon.png ETH MOSI
 
Fc9-type-5-icon.png ETH MISO
 
Fc9-type-5-icon.png ETH SCK
 
Fc9-type-5-icon.png ETH CS
 
Fc9-type-5-icon.png ETH INT
 
Fc9-type-5-icon.png ETH RES