Difference between revisions of "Component: MIAC (PIC) (Misc)"
Line 16: | Line 16: | ||
==Component Source Code== | ==Component Source Code== | ||
+ | |||
+ | Please click here to download the component source project: [https://www.flowcode.co.uk/wikicopy/componentsource/FC_Comp_Source_MIAC.fcfx FC_Comp_Source_MIAC.fcfx] | ||
Please click here to view the component source code (Beta): [https://www.flowcode.co.uk/FlowchartView/?wfile=componentsource/FC_Comp_Source_MIAC.fcfx FC_Comp_Source_MIAC.fcfx] | Please click here to view the component source code (Beta): [https://www.flowcode.co.uk/FlowchartView/?wfile=componentsource/FC_Comp_Source_MIAC.fcfx FC_Comp_Source_MIAC.fcfx] | ||
==Detailed description== | ==Detailed description== | ||
+ | |||
+ | |||
Line 32: | Line 36: | ||
==Examples== | ==Examples== | ||
+ | |||
+ | |||
Line 73: | Line 79: | ||
==Macro reference== | ==Macro reference== | ||
+ | |||
+ | {| 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" | Returns the 10 bit value for the analogue input requested by parameter InputID (Inputs 1 to 8) | ||
+ | |- | ||
+ | |- | ||
+ | | width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE | ||
+ | | width="90%" | InputID | ||
+ | |- | ||
+ | | colspan="2" | The input to read from 1 to 8. | ||
+ | |- | ||
+ | | 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'' | ||
+ | |} | ||
+ | |||
+ | |||
+ | {| 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 | ||
+ | |- | ||
+ | |- | ||
+ | | width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE | ||
+ | | width="90%" | RelayID | ||
+ | |- | ||
+ | | colspan="2" | The relay to turn off. From 1 to 4. | ||
+ | |- | ||
+ | | 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'' | ||
+ | |} | ||
+ | |||
+ | |||
+ | {| 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. | ||
+ | |- | ||
+ | |- | ||
+ | | width="10%" align="center" | [[File:Fc9-string-icon.png]] - STRING | ||
+ | | width="90%" | Str | ||
+ | |- | ||
+ | | colspan="2" | The string to send to the display. | ||
+ | |- | ||
+ | | 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'' | ||
+ | |} | ||
+ | |||
+ | |||
+ | {| 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 | ||
+ | |- | ||
+ | |- | ||
+ | | 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'' | ||
+ | |} | ||
+ | |||
+ | |||
+ | {| 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 | ||
+ | |- | ||
+ | |- | ||
+ | | 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'' | ||
+ | |} | ||
+ | |||
+ | |||
+ | {| 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;" | '''DisplayCommand''' | ||
+ | |- | ||
+ | | colspan="2" | Sends the given command to the display | ||
+ | |- | ||
+ | |- | ||
+ | | width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE | ||
+ | | width="90%" | Cmd | ||
+ | |- | ||
+ | | colspan="2" | | ||
+ | |- | ||
+ | | 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'' | ||
+ | |} | ||
+ | |||
+ | |||
+ | {| 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;" | '''PrintASCII''' | ||
+ | |- | ||
+ | | colspan="2" | Prints the given character to the display at the current cursor position and increments the cursor position. | ||
+ | |- | ||
+ | |- | ||
+ | | width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE | ||
+ | | width="90%" | Char | ||
+ | |- | ||
+ | | colspan="2" | ASCII code of the character to print. | ||
+ | |- | ||
+ | | 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'' | ||
+ | |} | ||
+ | |||
+ | |||
+ | {| 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. | ||
+ | |- | ||
+ | |- | ||
+ | | width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT | ||
+ | | width="90%" | n | ||
+ | |- | ||
+ | | colspan="2" | | ||
+ | |- | ||
+ | | 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'' | ||
+ | |} | ||
+ | |||
+ | |||
+ | {| 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 | ||
+ | |- | ||
+ | |- | ||
+ | | 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 | ||
+ | |- | ||
+ | | width="10%" align="center" | [[File:Fc9-bool-icon.png]] - BOOL | ||
+ | | width="90%" | Format | ||
+ | |- | ||
+ | | colspan="2" | 0=Signed, 1=Unsigned | ||
+ | |- | ||
+ | | 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'' | ||
+ | |} | ||
+ | |||
+ | |||
+ | {| 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 | ||
+ | |- | ||
+ | |- | ||
+ | | 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'' | ||
+ | |} | ||
+ | |||
+ | |||
+ | {| 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 | ||
+ | |- | ||
+ | |- | ||
+ | | width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE | ||
+ | | width="90%" | RelayID | ||
+ | |- | ||
+ | | colspan="2" | The relay to turn on from 1 to 4. | ||
+ | |- | ||
+ | | 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'' | ||
+ | |} | ||
+ | |||
+ | |||
+ | {| 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) | ||
+ | |- | ||
+ | |- | ||
+ | | width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE | ||
+ | | width="90%" | TransID | ||
+ | |- | ||
+ | | colspan="2" | 1 to 4 (Outputs A to D) | ||
+ | |- | ||
+ | | 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'' | ||
+ | |} | ||
+ | |||
+ | |||
+ | {| 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. | ||
+ | |- | ||
+ | |- | ||
+ | | 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. | ||
+ | |- | ||
+ | | width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE | ||
+ | | width="90%" | y | ||
+ | |- | ||
+ | | colspan="2" | The line to move the cursor to. | ||
+ | |- | ||
+ | | 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'' | ||
+ | |} | ||
+ | |||
+ | |||
+ | {| 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) | ||
+ | |- | ||
+ | |- | ||
+ | | width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE | ||
+ | | width="90%" | TransID | ||
+ | |- | ||
+ | | colspan="2" | 1 to 4 (Outputs A to D) | ||
+ | |- | ||
+ | | 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'' | ||
+ | |} | ||
+ | |||
+ | |||
+ | {| 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) | ||
+ | |- | ||
+ | |- | ||
+ | | width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE | ||
+ | | width="90%" | InputID | ||
+ | |- | ||
+ | | colspan="2" | The input number from 1 to 8. | ||
+ | |- | ||
+ | | 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'' | ||
+ | |} | ||
+ | |||
+ | |||
+ | {| 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) | ||
+ | |- | ||
+ | |- | ||
+ | | width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE | ||
+ | | width="90%" | InputID | ||
+ | |- | ||
+ | | colspan="2" | The input to read from 1 to 8. | ||
+ | |- | ||
+ | | 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'' | ||
+ | |} | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | ==Property reference== | ||
+ | |||
+ | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
+ | |- | ||
+ | | width="10%" align="center" style="background-color:#D8C9D8;" | [[File:Fc9-prop-icon.png]] | ||
+ | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Properties''' | ||
+ | |- | ||
+ | |}==Macro reference== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" |
Revision as of 15:23, 20 January 2023
Author | Matrix Ltd |
Version | 1.7 |
Category | Misc |
Contents
MIAC (PIC) component
MIAC - Matrix Industrial Automotive Controller PLC type module based on a PIC18F4455 device, produced by Matrix Component includes functions to drive the functionality of the MIAC and MIAC system.
Component Source Code
Please click here to download the component source project: FC_Comp_Source_MIAC.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_MIAC.fcfx
Detailed description
No detailed description exists yet for this component
Examples
Analogue Input
Basic example of how to read an analogue input on the MIAC and display it on the LCD.
MIAC ADC LCD
Keypad Input
Basic example of how to read the keypad and display the value on the LCD.
MIAC Keypad
For reference the numbering of the MIAC keypad looks like this.
Output Control
Basic example of how to control all of the individual outputs on the MIAC using the keypad.
Note that for the transistor outputs to come on you must wire a connection from the +V terminal to the M terminal.
If you are driving high current outputs then you can instead supply separate DC power to the M terminal.
MIAC Outputs
MIAC Interrupt Controlled Clock
Basic example of how to create a timer interrupt based clock.
MIAC Clock
Macro reference
![]() |
InputANALOG_10Bit |
Returns the 10 bit value for the analogue input requested by parameter InputID (Inputs 1 to 8) | |
![]() |
InputID |
The input to read from 1 to 8. | |
![]() |
Return |
![]() |
RelayOFF |
Turns off the requested relay given by parameter RelayID, values 1 to 4 | |
![]() |
RelayID |
The relay to turn off. From 1 to 4. | |
![]() |
Return |
![]() |
PrintString |
Prints the given character string to the display at the current cursor position and moves the cursor position. | |
![]() |
Str |
The string to send to the display. | |
![]() |
Return |
![]() |
GetKeypad |
Returns the key code of the key that is pressed, otherwise if nothing is pressed then returns 255 | |
![]() |
Return |
![]() |
DisplayStart |
Initialise the display ready for use | |
![]() |
Return |
![]() |
DisplayCommand |
Sends the given command to the display | |
![]() |
Cmd |
![]() |
Return |
![]() |
PrintASCII |
Prints the given character to the display at the current cursor position and increments the cursor position. | |
![]() |
Char |
ASCII code of the character to print. | |
![]() |
Return |
![]() |
PrintNumber |
Prints the given number to the display starting at the current cursor position and moves the cursor position. | |
![]() |
n |
![]() |
Return |
![]() |
DisplayClear |
Clears the display to white space | |
![]() |
Return |
![]() |
RelayON |
Turns on the requested relay given by parameter RelayID, values 1 to 4 | |
![]() |
RelayID |
The relay to turn on from 1 to 4. | |
![]() |
Return |
![]() |
OutputOFF |
Outputs a digital low state on the output requested by parameter TransID (Outputs 1 to 4) | |
![]() |
TransID |
1 to 4 (Outputs A to D) | |
![]() |
Return |
![]() |
OutputON |
Outputs a digital high state on the output requested by parameter TransID (Outputs 1 to 4) | |
![]() |
TransID |
1 to 4 (Outputs A to D) | |
![]() |
Return |
![]() |
InputDIGITAL |
Returns the digital state of the input requested by parameter InputID (Inputs 1 to 8) | |
![]() |
InputID |
The input number from 1 to 8. | |
![]() |
Return |
![]() |
InputANALOG |
Returns the 8 bit value for the analogue input requested by parameter InputID (Inputs 1 to 8) | |
![]() |
InputID |
The input to read from 1 to 8. | |
![]() |
Return |
Property reference
![]() |
Properties |
==Macro reference==
![]() |
InputANALOG_10Bit |
Returns the 10 bit value for the analogue input requested by parameter InputID (Inputs 1 to 8) | |
![]() |
InputID |
The input to read from 1 to 8. | |
![]() |
Return |
![]() |
RelayOFF |
Turns off the requested relay given by parameter RelayID, values 1 to 4 | |
![]() |
RelayID |
The relay to turn off. From 1 to 4. | |
![]() |
Return |
![]() |
PrintString |
Prints the given character string to the display at the current cursor position and moves the cursor position. | |
![]() |
Str |
The string to send to the display. | |
![]() |
Return |
![]() |
GetKeypad |
Returns the key code of the key that is pressed, otherwise if nothing is pressed then returns 255 | |
![]() |
Return |
![]() |
DisplayStart |
Initialise the display ready for use | |
![]() |
Return |
![]() |
DisplayCommand |
Sends the given command to the display | |
![]() |
Cmd |
![]() |
Return |
![]() |
PrintASCII |
Prints the given character to the display at the current cursor position and increments the cursor position. | |
![]() |
Char |
ASCII code of the character to print. | |
![]() |
Return |
![]() |
PrintNumber |
Prints the given number to the display starting at the current cursor position and moves the cursor position. | |
![]() |
n |
![]() |
Return |
![]() |
DisplayClear |
Clears the display to white space | |
![]() |
Return |
![]() |
RelayON |
Turns on the requested relay given by parameter RelayID, values 1 to 4 | |
![]() |
RelayID |
The relay to turn on from 1 to 4. | |
![]() |
Return |
![]() |
OutputOFF |
Outputs a digital low state on the output requested by parameter TransID (Outputs 1 to 4) | |
![]() |
TransID |
1 to 4 (Outputs A to D) | |
![]() |
Return |
![]() |
OutputON |
Outputs a digital high state on the output requested by parameter TransID (Outputs 1 to 4) | |
![]() |
TransID |
1 to 4 (Outputs A to D) | |
![]() |
Return |
![]() |
InputDIGITAL |
Returns the digital state of the input requested by parameter InputID (Inputs 1 to 8) | |
![]() |
InputID |
The input number from 1 to 8. | |
![]() |
Return |
![]() |
InputANALOG |
Returns the 8 bit value for the analogue input requested by parameter InputID (Inputs 1 to 8) | |
![]() |
InputID |
The input to read from 1 to 8. | |
![]() |
Return |
Property reference
![]() |
Properties |
==Macro reference==
![]() |
InputANALOG_10Bit |
Returns the 10 bit value for the analogue input requested by parameter InputID (Inputs 1 to 8) | |
![]() |
InputID |
The input to read from 1 to 8. | |
![]() |
Return |
![]() |
RelayOFF |
Turns off the requested relay given by parameter RelayID, values 1 to 4 | |
![]() |
RelayID |
The relay to turn off. From 1 to 4. | |
![]() |
Return |
![]() |
PrintString |
Prints the given character string to the display at the current cursor position and moves the cursor position. | |
![]() |
Str |
The string to send to the display. | |
![]() |
Return |
![]() |
GetKeypad |
Returns the key code of the key that is pressed, otherwise if nothing is pressed then returns 255 | |
![]() |
Return |
![]() |
DisplayStart |
Initialise the display ready for use | |
![]() |
Return |
![]() |
DisplayCommand |
Sends the given command to the display | |
![]() |
Cmd |
![]() |
Return |
![]() |
PrintASCII |
Prints the given character to the display at the current cursor position and increments the cursor position. | |
![]() |
Char |
ASCII code of the character to print. | |
![]() |
Return |
![]() |
PrintNumber |
Prints the given number to the display starting at the current cursor position and moves the cursor position. | |
![]() |
n |
![]() |
Return |
![]() |
DisplayClear |
Clears the display to white space | |
![]() |
Return |
![]() |
RelayON |
Turns on the requested relay given by parameter RelayID, values 1 to 4 | |
![]() |
RelayID |
The relay to turn on from 1 to 4. | |
![]() |
Return |
![]() |
OutputOFF |
Outputs a digital low state on the output requested by parameter TransID (Outputs 1 to 4) | |
![]() |
TransID |
1 to 4 (Outputs A to D) | |
![]() |
Return |
![]() |
OutputON |
Outputs a digital high state on the output requested by parameter TransID (Outputs 1 to 4) | |
![]() |
TransID |
1 to 4 (Outputs A to D) | |
![]() |
Return |
![]() |
InputDIGITAL |
Returns the digital state of the input requested by parameter InputID (Inputs 1 to 8) | |
![]() |
InputID |
The input number from 1 to 8. | |
![]() |
Return |
![]() |
InputANALOG |
Returns the 8 bit value for the analogue input requested by parameter InputID (Inputs 1 to 8) | |
![]() |
InputID |
The input to read from 1 to 8. | |
![]() |
Return |
Property reference
![]() |
Properties |