Component: Number Pad (Controls )
From Flowcode Help
Jump to navigationJump to searchAuthor | Matrix TSL |
Version | 1.0 |
Category | Controls |
Contents
Number Pad component
A numeric keypad component allowing user to enter numeric data using a mouse, touchscreen or keyboard. Contains a byffer and the ability to automatically call a user macro when data is entered.
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
Downloadable macro reference
![]() |
GetInputString |
Gets the contents of the text buffer. | |
[[File:]] - | ClearBuffer |
0=Buffer remains, 1=Buffer is cleared | |
![]() |
Return |
![]() |
GetNumber |
Attempts to parse a number from the input string | |
[[File:]] - | ClearBuffer |
0=Buffer remains, 1=Buffer is cleared | |
[[File:]] - | Return |
![]() |
GetFloat |
Attempts to parse a floating point number from the input string. | |
![]() |
ClearBuffer |
0=Buffer remains, 1=Buffer is cleared | |
[[File:]] - | Return |
![]() |
GetLastChar |
Gets the last character of the text buffer. | |
[[File:]] - | ClearBuffer |
0=Buffer remains, 1=Buffer is cleared | |
![]() |
Return |
![]() |
ClearBuffer |
Erases the contents of the buffer | |
![]() |
Return |
![]() |
GetLastIncoming |
Gets a value from the last incoming command. Index 0 = 0 Read / 1 Write Index 1 = 0 Coils / 1 DigInput / 2 AnInput / 3 Register Index 2 = Address Index 3 = Number | |
![]() |
Return |
![]() |
SetAnalogInput |
Sets the state of a single analogue input. | |
![]() |
Address |
Coil Address | |
![]() |
Value |
Analogue Value range 0 - 65535 | |
![]() |
Return |
![]() |
Initialise |
Starts up the UART to allow communications and initialises the states of the various Modbus Coils, Inputs and Registers to 0. | |
![]() |
Return |
![]() |
ReadFileSize |
Reads the entire size of the current file in bytes. | |
![]() |
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 | |
![]() |
Time |
Sets the current Time in FAT Time format hhhhhmmmmmmsssss - S=Secs/2 | |
![]() |
Date |
Sets the current Date in FAT Date format yyyyyyymmmmddddd - Y=Years since 1980 | |
![]() |
Return |
![]() |
Initialise |
Attempts to communicate with the SD card and if successful sets up the file system. Returns 0 for success. | |
![]() |
Return |
![]() |
Initialise |
Initialise the comms to the Arduino board ready for commands to be sent. | |
![]() |
Return |
![]() |
ReadAnalogInput |
Reads a single digital input. | |
![]() |
Channel |
![]() |
Return |
![]() |
Initialise |
![]() |
Return |
![]() |
LCDClear |
Clears the MIAC display | |
![]() |
Return |
![]() |
LCDClear |
Clears the LCD | |
![]() |
Return |