FillStop (Stop Storage when Table Fills)
When the FillStop statement is used in a DataTable declaration, records are stored to the DataTable until it is filled, and then data storage stops.
Syntax
FillStop
In the following example, 1000 records are written to the Test table, and then data storage will stop until the table is reset.
Public PTemp, TCTemp
DataTable (Test,True,1000)
DataInterval (0,1,Min,10)
FillStop
Sample (1,TCTemp,FP2)
EndTable
BeginProg
Scan (1,Sec,3,0)
TCDiff (TCTemp,1,mv200C,U1,TypeT,PTemp,True,0,15000,1.0,0)
calltable (Test)
NextScan
EndProg
Remarks
DataTables are configured by default as ring memory. Once the number of records reaches what is defined in the DataTable declaration, new records are stored over the oldest records. If FillStop is used within the DataTable declaration, when the table is full no more data are stored until the table is reset. A table can be reset under program control with the ResetTable instruction, or using LoggerNet.