Component: Number Pad (Controls )

From Flowcode Help
Revision as of 10:38, 17 November 2021 by Wiki bot (talk | contribs)
Jump to navigationJump to search
Author Matrix TSL
Version 1.0
Category Controls


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

Fc9-comp-macro.png GetInputString
Gets the contents of the text buffer. 
[[File:]] - ClearBuffer
0=Buffer remains, 1=Buffer is cleared 
Fc9-string-icon.png - STRING Return


Fc9-comp-macro.png GetNumber
Attempts to parse a number from the input string 
[[File:]] - ClearBuffer
0=Buffer remains, 1=Buffer is cleared 
[[File:]] - Return


Fc9-comp-macro.png GetFloat
Attempts to parse a floating point number from the input string. 
Fc9-u8-icon.png - BYTE ClearBuffer
0=Buffer remains, 1=Buffer is cleared 
[[File:]] - Return


Fc9-comp-macro.png GetLastChar
Gets the last character of the text buffer. 
[[File:]] - ClearBuffer
0=Buffer remains, 1=Buffer is cleared 
Fc9-u8-icon.png - BYTE Return


Fc9-comp-macro.png ClearBuffer
Erases the contents of the buffer 
Fc9-void-icon.png - VOID Return


Fc9-comp-macro.png ReadDigitalInputs
Reads the state of up to eight digital inputs. Can pack a max of 8-bits together in a single operation 
Fc9-u16-icon.png - UINT StartAddress
Coil Address Range 0 to (NumCoils - 1) 
Fc9-u8-icon.png - BYTE AddressCount
Range 1-8 
Fc9-u8-icon.png - BYTE Return


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


Fc9-comp-macro.png SetAnalogInput
Sets the state of a single analogue input. 
Fc9-u16-icon.png - UINT Address
Coil Address 
Fc9-u16-icon.png - UINT Value
Analogue Value range 0 - 65535 
Fc9-void-icon.png - VOID Return


Fc9-comp-macro.png Initialise
Starts up the UART to allow communications and initialises the states of the various Modbus Coils, Inputs and Registers to 0. 
Fc9-void-icon.png - VOID Return


Fc9-comp-macro.png AppendStringToFile
Adds the contents of the data string parameter to the end of the currently open file. Returns 0 for success. 
Fc9-string-icon.png - STRING Data_String
Data to append to the end of the file 
Fc9-u8-icon.png - BYTE Return


Fc9-comp-macro.png ReadFileSize
Reads the entire size of the current file in bytes. 
Fc9-u32-icon.png - ULONG Return


Fc9-comp-macro.png 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 
Fc9-u16-icon.png - UINT Time
Sets the current Time in FAT Time format hhhhhmmmmmmsssss - S=Secs/2 
Fc9-u16-icon.png - UINT Date
Sets the current Date in FAT Date format yyyyyyymmmmddddd - Y=Years since 1980 
Fc9-void-icon.png - VOID Return


Fc9-comp-macro.png Initialise
Attempts to communicate with the SD card and if successful sets up the file system. Returns 0 for success.  
Fc9-u8-icon.png - BYTE Return


Fc9-comp-macro.png Initialise
Initialise the comms to the Arduino board ready for commands to be sent. 
Fc9-void-icon.png - VOID Return


Fc9-comp-macro.png ReadAnalogInput
Reads a single digital input. 
Fc9-u8-icon.png - BYTE Channel
 
Fc9-u16-icon.png - UINT Return


Fc9-comp-macro.png PWMEnable
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 
Fc9-u8-icon.png - BYTE EnableMask
Range 0-63 or 0b00000 to 0b111111 
Fc9-void-icon.png - VOID Return


Fc9-comp-macro.png Initialise
 
Fc9-void-icon.png - VOID Return


Fc9-comp-macro.png LCDClear
Clears the MIAC display 
Fc9-void-icon.png - VOID Return


Fc9-comp-macro.png LCDClear
Clears the LCD 
Fc9-void-icon.png - VOID Return



Property reference

Fc9-prop-icon.png Properties
Fc9-type-7-icon.png Show Text Buffer
 
Fc9-type-7-icon.png Mouse Input
Checks for mouse clicks on the NumberPad component 
Fc9-type-7-icon.png Keyboard Input
Automatically scans for keyboard presses 
Fc9-type-7-icon.png Call Macro
 
Fc9-type-16-icon.png Theme
 
Fc9-type-3-icon.png Font
 
Fc9-type-15-icon.png Text Size
 
Fc9-type-2-icon.png Text Colour
 
Fc9-type-2-icon.png Text Colour Active
 
Fc9-type-15-icon.png Buffer Size
 
Fc9-type-2-icon.png Buffer Colour
 
Fc9-type-2-icon.png Key Colour
 
Fc9-type-2-icon.png Key Colour Active
 
Fc9-type-2-icon.png Key Gradient
 
Fc9-type-2-icon.png Key Gradient Active
 
Fc9-type-2-icon.png Background Colour
 
Fc9-type-16-icon.png Call Event
 
Fc9-type-22-icon.png Macro
 
Fc9-conn-icon.png Connections
Fc9-conn-icon.png Simulations