Difference between revisions of "Component: MIAC (PIC) (Misc)"
Line 85: | Line 85: | ||
{{Fcfile|MIAC_Clock.fcfx|MIAC Clock}} | {{Fcfile|MIAC_Clock.fcfx|MIAC Clock}} | ||
[[File:MIACclock.jpg]] | [[File:MIACclock.jpg]] | ||
+ | |||
+ | |||
Line 90: | Line 92: | ||
==Macro reference== | ==Macro reference== | ||
+ | ===InputANALOG_10Bit=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 108: | Line 111: | ||
+ | ===RelayOFF=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 126: | Line 130: | ||
+ | ===PrintString=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 144: | Line 149: | ||
+ | ===GetKeypad=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 157: | Line 163: | ||
+ | ===DisplayStart=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 170: | Line 177: | ||
+ | ===DisplayCommand=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 188: | Line 196: | ||
+ | ===PrintASCII=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 206: | Line 215: | ||
+ | ===PrintNumber=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 224: | Line 234: | ||
+ | ===PrintFormattedNumber=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 247: | Line 258: | ||
+ | ===DisplayClear=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 260: | Line 272: | ||
+ | ===RelayON=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 278: | Line 291: | ||
+ | ===OutputOFF=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 296: | Line 310: | ||
+ | ===DisplayCursor=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 319: | Line 334: | ||
+ | ===OutputON=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 337: | Line 353: | ||
+ | ===InputDIGITAL=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 355: | Line 372: | ||
+ | ===InputANALOG=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- |
Revision as of 11:51, 3 February 2023
Author | Matrix 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
![]() |
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
![]() |
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
![]() |
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
![]() |
GetKeypad |
Returns the key code of the key that is pressed, otherwise if nothing is pressed then returns 255 | |
![]() |
Return |
DisplayStart
![]() |
DisplayStart |
Initialise the display ready for use | |
![]() |
Return |
DisplayCommand
![]() |
DisplayCommand |
Sends the given command to the display | |
![]() |
Cmd |
![]() |
Return |
PrintASCII
![]() |
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
![]() |
PrintNumber |
Prints the given number to the display starting at the current cursor position and moves the cursor position. | |
![]() |
n |
![]() |
Return |
PrintFormattedNumber
DisplayClear
![]() |
DisplayClear |
Clears the display to white space | |
![]() |
Return |
RelayON
![]() |
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
![]() |
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 |
DisplayCursor
OutputON
![]() |
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
![]() |
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
![]() |
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 |