background image

User Manual 

13 

Step 1: Configure Datalogger 

a. 

Connect serial cable from PC COM port to datalogger RS-232 port. 

b. 

Open Campbell Scientific’s Device Configuration Utility.  Select the device 
type of the datalogger (CR1000 or CR3000), the appropriate serial port and 
baud rate.  Connect to the datalogger. 

c. 

Under the Net Services tab, verify that FTP Enabled is checked.  Input the 
FTP User Name and FTP Password.   

d.

 

Press the Apply button to save the changes and then close the Device 
Configuration Utility. 

Using “anonymous” as the user name with no password allows FTP 
access without inputting a user name or password.   

Step 2: Access File System  

a.  The datalogger must be set up for Ethernet communications as explained in 

Sections 4.1, 

Physical Setup

, and 0, 

Communicating via Ethernet

 (Step 1 

only). 

b. 

Open a Windows Explorer window.  Enter 

ftp://username:[email protected]

 where nnn.nnn.nnn.nnn is the 

IP address of the datalogger.  

If  the  user  name  is  “anonymous”  with  no  password,  enter 

ftp://nnn.nnn.nnn.nnn

 where nnn.nnn.nnn.nnn is the IP address of 

the datalogger. 

7.1.3.2

 

FTP Client 

The datalogger can also act as an FTP Client to send a file to or get a file from an 
FTP Server (for example, another datalogger or web camera).  This is done using 
the 

FTPClient()

 instruction.  The following program is an example of using 

FTPClient()

 to send a file to another datalogger and get a file from that 

datalogger.  The first parameter in the instruction is the 

FTP Server’s IP address

.  

The second parameter is the 

FTP username

.  The third parameter is the 

FTP 

password

.  The fourth parameter is the 

local filename

.  The fifth parameter is the 

remote file name

.  The final parameter is the 

put/get option

:  0 for put and 1 for 

get.  The instruction returns –1 if the instruction was successful and 0 if it was not.   

PROGRAM 

' CR1000 
' FTPClient.cr1 
 
Public Result1, Result2 
 
BeginProg 
 
  Scan (20,Sec,1,1) 
 
    Result1 = FTPClient("192.168.7.85","user","password","CRD:pic.jpg","CRD:pic.jpg",0) 
    Result2 = FTPClient("192.168.7.85","user","password","CRD:file.html","CRD:file.html",1) 
 
  NextScan 
 
EndProg 

 

NOTE 

NOTE 

Содержание NL115

Страница 1: ...NL115 Ethernet Interface and CompactFlash Module Issued 24 3 14 Copyright 2006 2014 Campbell Scientific Inc Printed under licence by Campbell Scientific Ltd CSL 629 USER MANUAL...

Страница 2: ......

Страница 3: ...e repair is under guarantee or not Please state the faults as clearly as possible and if the product is out of the guarantee period it should be accompanied by a purchase order Quotations for repairs...

Страница 4: ......

Страница 5: ...l cell phones and aerials may also not be applicable according to your locality Some brackets shields and enclosure options including wiring are not sold as standard items in the European market in so...

Страница 6: ......

Страница 7: ...r 6 5 3 CF Card Data Retention 6 6 Specifications 7 7 Operation 8 7 1 TCP IP Functionality 8 7 1 1 Communicating Over TCP IP 8 7 1 1 1 Data Callback 8 7 1 1 2 Datalogger to Datalogger Communication 9...

Страница 8: ...22 7 4 2 1 Converting File Formats 22 7 4 2 2 Reinserting the Card 23 7 4 2 3 Card Swapping 23 Appendix A CF Card Maintenance A 1 A 1 Formatting CF Card A 1 A 1 1 Windows Explorer A 1 A 1 2 CR1000KD A...

Страница 9: ...5 please study Section 2 Cautionary Statements Section 3 Initial Inspection Section 4 Quickstart The Quickstart section explains how to quickly begin using an NL115 for straightforward Ethernet commun...

Страница 10: ...talling to or removing the NL115 from the datalogger After powering down the datalogger plug the NL115 into the datalogger peripheral port see Figure 4 1 Attach Ethernet cable to the 10Base T port If...

Страница 11: ...the TCP IP tab input the IP Address Subnet Mask and IP gateway These values should be provided by your network administrator Figure 4 2 DevConfig setup d Press the Apply button to save the changes an...

Страница 12: ...n the same line separated by a colon The datalogger s default port number is 6785 It can be changed using Device Configuration Utility or by modifying its value in the Status Table b Add a PakBus port...

Страница 13: ...and a sample of PTemp are written to the card each time the data table is called The StopRing parameter is 0 for ring mode This means that once the data table is full new data will begin overwriting...

Страница 14: ...een orange LED light emitting diode and two buttons Initiate Removal and eject The LED indicates the status of the module The LED will flash red when the CF card is being accessed solid green when it...

Страница 15: ...ruction Add 1 mA to current drain if red or green Status LED is continuously on Add 2 mA to current drain if orange Status LED is continuously on Operating Temperature Range 25 to 50 C Standard 40 to...

Страница 16: ...ver TCP IP Once the datalogger the NL115 and LoggerNet have been set up as described in Sections 4 1 Physical Set up and 0 Communicating via Ethernet communication is possible over TCP IP This include...

Страница 17: ...nelTemperature 250 Battery BatteryVoltage If not Route 4094 then Socket TCPOpen 192 168 7 231 6785 0 SendVariables Result1 Socket 1 4094 0000 100 Public Callback dummy1 1 CallTable CLBK1 NextScan EndP...

Страница 18: ...50 Public PTemp PTemp_Base 1 CallTable Test NextScan EndProg 7 1 2 HTTP Web Server Typing the datalogger s IP address into a web browser will bring up its home page as shown in Figure 7 1 This default...

Страница 19: ...st writing the file to the datalogger s USR drive It is less convenient and the page will be only as current as it is written to the file 7 1 3 FTP 7 1 3 1 FTP Server With an NL115 attached the datalo...

Страница 20: ...and CompactFlash Module 12 Figure 7 2 FTP root directory Figure 7 3 FTP CRD directory In order to use FTP the datalogger s FTP User Name and FTP Password must be set This is done using Device Configu...

Страница 21: ...ogger If the user name is anonymous with no password enter ftp nnn nnn nnn nnn where nnn nnn nnn nnn is the IP address of the datalogger 7 1 3 2 FTP Client The datalogger can also act as an FTP Client...

Страница 22: ...Instruction An example of this instruction is shown below The first parameter is the string variable into which the incoming serial data will be stored The second parameter is the socket returned by...

Страница 23: ...nstructions 7 2 File Formats This section covers the different types of files stored on the CF card 7 2 1 Data Files The datalogger stores data on the CF card in TOB3 format TOB3 is a binary format th...

Страница 24: ...tes CF data files from the overwritten just previous program Powerup ini takes precedence during power up Though it sets file attributes for the programs it uploads its presence on the CF does not all...

Страница 25: ...s Commands 1 2 6 13 and 14 Run Now and or Run On Power up If a device other than CRD drive is specified the file will be copied to that device Commands 1 2 and 13 Run On Power up If the copy first app...

Страница 26: ...ram on Power up Copy pwrup cr1 to USR will run only when powered up later 2 pwrup cr1 usr EXAMPLE 7 3 Format the USR Drive Format the USR drive 5 usr EXAMPLE 7 4 Send OS on Power up Load this file int...

Страница 27: ...line or row of data is output with the number of values determined by the output instructions within the table This data is called a record Note Enter 1000 and the size of the table on the card will m...

Страница 28: ...Datalogger Station Status Table Fill Times Reset Tables or use the CRBasic ResetTable instruction 7 3 2 3 Mixed Modes The following program stores four data tables to the card The first two tables wi...

Страница 29: ...can be different It is important to note that if the CPU memory is set to fill and stop mode once a table is full all data storage to the table will stop No more records will be stored to the CPU mem...

Страница 30: ...ind scenario where LoggerNet never catches up and the datalogger repeatedly overwrites uncollected data The possibility of missing records is greater when collecting data via IP This is due to the hig...

Страница 31: ...card was removed that is still in the CPU memory If the data tables have been left on the card new data will be appended to the end of the old files If the data tables have been deleted new ones will...

Страница 32: ..._tablename dat Once the data is copied use Windows Explorer to delete all data files from the card Windows98 and WindowsME users need to shift delete to completely delete files Using standard delete m...

Страница 33: ...ing 1 Windows Explorer 2 the CR1000KD or 3 LoggerNet File Control A 1 1 Windows Explorer To format card using Windows Explorer 1 Insert CF card into CF adapter or CF reader 2 Windows Explorer should i...

Страница 34: ...th either FAT or FAT32 A 1 2 CR1000KD To format card using the CR1000KD 1 Insert CF card into NL115 2 From the main menu of CR1000KD choose PCCard 3 Choose Format Card 4 Choose Yes to proceed A 1 3 Lo...

Страница 35: ...ess Format 6 Press Yes to confirm A 2 Checking CF Card Integrity The Windows Check Disk tool can be used to check the integrity of a CF card To access the Check Disk tool 1 Insert CF card into CF read...

Страница 36: ...Appendix A CF Card Maintenance A 4 5 Navigate to the Tools tab 6 Press Check Now 7 Select both options 8 Press Start...

Страница 37: ......

Страница 38: ...Centro Caribe S A CSCC 300N Cementerio Edificio Breller Santo Domingo Heredia 40305 COSTA RICA www campbellsci cc info campbellsci cc Campbell Scientific Ltd CSL Campbell Park 80 Hathern Road Shepshe...

Отзывы: