NL116 Ethernet and CompactFlash
®
Module
7.3.2 Program Examples
7.3.2.1 Ring Mode
The following program outputs the maximum and minimum of the panel
temperature to the card once a second. The first parameter of the
CardOut()
instruction is 0, which sets the table on the card to ring mode. The second
parameter is negative, so all available memory on the card will be allocated to
the data table. Once all available memory is used, new data will begin
overwriting the oldest.
PROGRAM
'CR1000
Public temp
DataTable (Table1,1,-1)
CardOut (0, -1)
Maximum (1,temp,FP2,False,False)
Minimum (1,temp,FP2,False,False)
EndTable
BeginProg
Scan(1,SEC,3,0)
PanelTemp(temp,250)
CallTable Table1
NextScan
EndProg
7.3.2.2 Fill-and-Stop Mode
The following program outputs a sample of the panel temperature to the card
once a second. The first parameter of the
CardOut()
instruction is 1, which
sets the table on the card to fill-and-stop mode. The second parameter (1000)
is the number of records which will be written before the table is full and data
storage stops. Once 1000 records have been stored, data storage to the
specified table on CRD: and CPU: datalogger memory drives will stop.
PROGRAM
'CR1000
Public temp
DataTable (Table1,1,1000)
CardOut (1,1000)
Sample(1,temp,IEEE4)
EndTable
BeginProg
Scan(1,SEC,3,0)
PanelTemp(temp,250)
CallTable Table1
NextScan
EndProg
To restart data storage to the fill-and-stop table, the table must be reset.
24
Содержание NL116
Страница 2: ......
Страница 6: ......
Страница 24: ...NL116 Ethernet and CompactFlash Module FIGURE 7 2 FTP root directory FIGURE 7 3 FTP CRD directory 16 ...
Страница 38: ...NL116 Ethernet and CompactFlash Module 30 ...
Страница 42: ...Appendix A CF Card Maintenance 5 Navigate to the Tools tab 6 Press Check 7 Select Scan and Repair Drive A 4 ...
Страница 43: ......