This function is recommended when you want to insert a row into a large Data Table. A bit parameter, Async Insert Row to DTI, pauses the program scan while the function is in progress.
When the function is in progress, and this bit is:
OFF: the scan pauses until the data insertion is complete. ( Note that this how the standard element LF: Insert Row to DTI works)
ON: the scan continues to run while the data insertion is in progress. If necessary, time is automatically added to the scan. The time added is generally on the order of 10ms; in cases of large data insertion, more time may be added. The added scan time remains in effect until the data insertion is complete. When it is complete, the scan time automatically returns to normal.
The function works as follows
Inserts Struct data into the selected row.
The rows shift down.
The bottom row is shifted out of the table
|
Parameter Name |
Purpose |
A |
Data Table |
Select the Data Table you want to insert data into. |
B |
Struct: Source
|
Select the source Struct. These values will be written to the specified DTI row. You MUST link to a Struct that matches the Data Table row structure. |
C |
Row Number |
Assign a Data Tag to provide the Row Number, or enter a number. This is insertion point. All index numbers shift down from here. |
D |
Async Insert Row to DTI |
Assign a bit tag to control the action: 0 - Pauses the program scan while the function is in progress. The scan will resume when data insertion is complete (default) 1 - Enables the program scan to continue in parallel while the function is in progress (data is being inserted) Recommended for large data tables |