Difference between revisions of "Component: Logo Indicator (Indicators)"
From Flowcode Help
Jump to navigationJump to search| Line 16: | Line 16: | ||
| ==Detailed description== | ==Detailed description== | ||
| + | |||
| + | |||
| ''No detailed description exists yet for this component'' | ''No detailed description exists yet for this component'' | ||
| ==Examples== | ==Examples== | ||
| + | |||
| + | |||
| Line 316: | Line 320: | ||
| |- | |- | ||
| | colspan="2" | Initialise the comms to the Arduino board ready for commands to be sent.  | | colspan="2" | Initialise the comms to the Arduino board ready for commands to be sent.  | ||
| + | |- | ||
| + | |- | ||
| + | | 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;" | '''PWMEnable''' | ||
| + | |- | ||
| + | | colspan="2" | Allows pulse width modulated transistor outputs to be switched on or off. Bit 0 = Enable AB Bit 1 = A / Bit 2 = B Bit 3 = C / Bit 4 = D Bit 5 = Enable CD  | ||
| + | |- | ||
| + | |- | ||
| + | | width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE | ||
| + | | width="90%" | EnableMask | ||
| + | |- | ||
| + | | colspan="2" | Range 0-63 or 0b00000 to 0b111111  | ||
| + | |- | ||
| + | | 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;" | '''Initialise''' | ||
| + | |- | ||
| + | | 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;" | '''LCDClear''' | ||
| + | |- | ||
| + | | colspan="2" | Clears the MIAC 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;" | '''LCDClear''' | ||
| + | |- | ||
| + | | colspan="2" | Clears the LCD  | ||
| |- | |- | ||
| |- | |- | ||
Revision as of 10:37, 17 November 2021
| Author | Matrix TSL | 
| Version | 1.0 | 
| Category | Indicators | 
Contents
Logo Indicator component
A simple component to display multiple icons relating to the state of a machine or process. Includes icons such as: tick, cross, alert, stop, go and coloured lights.
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
Downloadable macro reference
|   | AssignLogo | 
| Sets the logo displayed on the indicator. | |
|  - BYTE | LogoIdx | 
| Logo Index: 1=Tick, 2=Cross, 3=Exclamation, 4=Green, 5=Amber, 6=Red, 7=Stop, 8=Go | |
|  - VOID | Return | 
|   | SetRange | 
| Set the minimum and maximum values of the scale | |
| [[File:]] - | Minimum | 
| Minimum value for the scale | |
| [[File:]] - | Maximum | 
| Maximum value for the scale | |
|  - VOID | Return | 
|   | SetFileIndex | 
| Sets the current file index and used to switch between several open file streams. Default = 0. | |
|  - BYTE | File_Index | 
| File index ranges from 0 to (Max Concurrent Files - 1) | |
|  - VOID | Return | 
|   | ReadFileSize | 
| Reads the entire size of the current file in bytes. | |
|  - ULONG | Return | 
|   | SetTimeAndDate | 
| Sets the current time and date. Time = (Hour << 11) + (Min << 5) + (Sec >> 1) Date = (YearFrom1980 << 9) + (Month << 5) + (Day) Additional details can be found here: http://www.maverick-os.dk/FileSystemFormats/FAT16_FileSystem.html#TimeFormat | |
|  - UINT | Time | 
| Sets the current Time in FAT Time format hhhhhmmmmmmsssss - S=Secs/2 | |
|  - UINT | Date | 
| Sets the current Date in FAT Date format yyyyyyymmmmddddd - Y=Years since 1980 | |
|  - VOID | Return | 
|   | Initialise | 
| Attempts to communicate with the SD card and if successful sets up the file system. Returns 0 for success. | |
|  - BYTE | Return | 
|   | Initialise | 
| Initialise the comms to the Arduino board ready for commands to be sent. | |
|  - VOID | Return | 
|   | Initialise | 
|  - VOID | Return | 
|   | LCDClear | 
| Clears the MIAC display | |
|  - VOID | Return | 
|   | LCDClear | 
| Clears the LCD | |
|  - VOID | Return | 








