INSTRUCTION MANUAL NL115 Ethernet and CompactFlash® Module Revision: 4/15 C o p y r i g h t © 2 0 0 6 - 2 0 1 5 C a m p b e l l S c i e n t i f i c , I n c .
Limited Warranty “Products manufactured by CSI are warranted by CSI to be free from defects in materials and workmanship under normal use and service for twelve months from the date of shipment unless otherwise specified in the corresponding product manual. (Product manuals are available for review online at www.campbellsci.com.) Products not manufactured by CSI, but that are resold by CSI, are warranted only to the limits extended by the original manufacturer.
Assistance Products may not be returned without prior authorization. The following contact information is for US and international customers residing in countries served by Campbell Scientific, Inc. directly. Affiliate companies handle repairs for customers within their territories. Please visit www.campbellsci.com to determine which Campbell Scientific company serves your country. To obtain a Returned Materials Authorization (RMA), contact CAMPBELL SCIENTIFIC, INC., phone (435) 227-9000.
Precautions DANGER — MANY HAZARDS ARE ASSOCIATED WITH INSTALLING, USING, MAINTAINING, AND WORKING ON OR AROUND TRIPODS, TOWERS, AND ANY ATTACHMENTS TO TRIPODS AND TOWERS SUCH AS SENSORS, CROSSARMS, ENCLOSURES, ANTENNAS, ETC. FAILURE TO PROPERLY AND COMPLETELY ASSEMBLE, INSTALL, OPERATE, USE, AND MAINTAIN TRIPODS, TOWERS, AND ATTACHMENTS, AND FAILURE TO HEED WARNINGS, INCREASES THE RISK OF DEATH, ACCIDENT, SERIOUS INJURY, PROPERTY DAMAGE, AND PRODUCT FAILURE.
Table of Contents PDF viewers: These page numbers refer to the printed version of this document. Use the PDF reader bookmarks tab for links to specific sections. 1. Introduction ................................................................. 1 2. Cautionary Statements ............................................... 1 3. Initial Inspection ......................................................... 2 4. Quickstart .................................................................... 2 4.1 4.
Table of Contents 7.2.3.2 Applications ..................................................................... 18 7.2.3.3 Program Execution .......................................................... 19 7.2.3.4 Example Powerup.ini Files .............................................. 19 7.2.4 Camera Files............................................................................... 20 7.3 Programming ..................................................................................... 20 7.3.
NL115 Ethernet and CompactFlash® Module 1. Introduction Campbell Scientific’s NL115 Ethernet/CompactFlash® Module provides two independent capabilities: (1) it enables 10Base-T Ethernet communications and (2) stores data on a removable CompactFlash (CF) card. It allows the datalogger to communicate over a local network or a dedicated Internet connection via TCP/IP. It also expands on-site data storage and provides the user with a convenient method of transporting data from the field back to the office.
NL115 Ethernet and CompactFlash® Module • 3. An NL115 with a serial number less than 10297 requires a firmware update to function properly when attached to a CR3000 datalogger with a serial number greater than 6260. This update must be performed by Campbell Scientific. If you require this firmware update, see the Assistance section at the front of this manual for information on returning your NL115 to Campbell Scientific.
NL115 Ethernet and CompactFlash® Module 4.2 Communicating via Ethernet 4.2.1 Step 1: Configure Datalogger a. Connect serial cable from PC COM port to the 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 TCP/IP tab, input the IP Address, Subnet Mask, and IP gateway.
NL115 Ethernet and CompactFlash® Module 4.2.2 Step 2: LoggerNet Setup The next step is to run LoggerNet and configure it to connect to the datalogger via the Ethernet port. a. In LoggerNet’s Setup Screen, press Add Root and choose IPPort. Input the datalogger’s IP address and port number. The IP address and port number are input on the same line separated by a colon. (The datalogger’s default port number is 6785.
NL115 Ethernet and CompactFlash® Module 4.2.3 Step 3: Connect You are now ready to connect to your datalogger using the LoggerNet Connect Screen. Datalogger program transfer, table-data display, and data collection are now possible. 4.3 Programming the Datalogger to Send Data to the NL115 The CardOut() instruction is used in the datalogger program to send data to the CF card. CardOut() must be entered within each DataTable declaration that is to store data on the CF card.
NL115 Ethernet and CompactFlash® Module 4.4 CF Card Data Retrieval Data stored on cards can be retrieved through a communication link to the datalogger or by removing the card and carrying it to a computer with a CF adapter. With large files, transferring the CF card to a computer may be faster than collecting the data over a communication link. CF card-data retrieval is discussed in detail in Section 7.4, CF Card Data-Retrieval Details (p. 23). 5.
NL115 Ethernet and CompactFlash® Module 5.2 Power The Ethernet/CompactFlash module is powered by 12 Vdc received from the datalogger through the peripheral port. Additional power consumption occurs if the Status LED is continuously lit. At 12 Vdc, an additional 1 mA is drawn by the red or green LED; an additional 2 mA is drawn by the orange LED. 5.3 CF Card Data Retention The module accepts CompactFlash (CF) cards which do not require power to retain data.
NL115 Ethernet and CompactFlash® Module EMI and ESD Protection: Meets requirements for a class A device under European Standards Application of Council Directive(s): 89/336/EEC as amended by 89/336/EEC and 93/68/EEC Standards to which conformity is declared: EN55022-1; 1995 and EN50082-1: 1992 Cable Requirements: NOTE Use a straight-through Ethernet cable when the cable is run from the hub to the NL115. Use a crossover Ethernet cable when the cable is run directly from the computer to the NL115.
NL115 Ethernet and CompactFlash® Module 7. Operation 7.1 TCP/IP Functionality This section describes the main TCP/IP functionality of a datalogger with an NL115 attached. Additional functionality may be added in the future. For more information, refer to the Information Services section of the datalogger manual and CRBasic Editor Help. 7.1.1 Communicating Over TCP/IP Once the datalogger, the NL115, and LoggerNet have been set up as described in Sections 4.1, Physical Setup (p. 2), and 4.
NL115 Ethernet and CompactFlash® Module SendVariables (Result1,Socket,-1,4094,0000,100,"Public","Callback",dummy1,1) CallTable CLBK1 NextScan EndProg 7.1.1.2 Datalogger-to-Datalogger Communication Communication between dataloggers is possible over TCP/IP. In order to do this, a socket must be opened between the two dataloggers using the TCPOpen() instruction. The socket opened by this instruction is used by the instructions performing datalogger-to-datalogger communication.
NL115 Ethernet and CompactFlash® Module 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 home page provides links to the current record in all tables, including data tables, the Status table, and the Public table. Clicking on a Newest Record link will bring up the latest record for that table. It will be automatically refreshed every 10 seconds. Links are also provided to the last 24 records in each data table.
NL115 Ethernet and CompactFlash® Module 7.1.3 FTP 7.1.3.1 FTP Server With an NL115 attached, the datalogger will automatically run an FTP server. This allows Windows Explorer to access the datalogger’s file system via FTP. In the FTP world, the “drives” on the datalogger are mapped into directories (or folders). The “root directory” on the datalogger will include CPU and possibly USR and/or CRD. The files will be contained in one of these directories.
NL115 Ethernet and CompactFlash® Module 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 Configuration Utility. Step 1: Configure Datalogger NOTE 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. e.
NL115 Ethernet and CompactFlash® Module b. NOTE Open a Windows Explorer window. Enter ftp://username:password@nnn.nnn.nnn.nnn 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).
NL115 Ethernet and CompactFlash® Module 7.1.6.1 Serial Input The TCPOpen() instruction must be used first to open up a TCP socket. An example of this instruction is shown below. The first parameter in TCPOpen() is the IP address to open a socket to. “” means to listen on this port rather than connect. The second parameter is the port number to be used. The third parameter is buffer size. For a SerialIn() instruction that will use this connection, it gives a buffer size.
NL115 Ethernet and CompactFlash® Module powered up with the NL115 attached and Ethernet cable plugged in. The IP address can be found with the Device Configuration Utility’s Settings tab under TCP/IP info. It can also be found using a CR1000KD attached to the datalogger. Go to Configure, Settings | Settings, scroll down to IP Status and press the right arrow. An IP address obtained through DHCP is not static but is leased for a period of time set by the network administrator.
NL115 Ethernet and CompactFlash® Module Power-up functions of CompactFlash® cards can include: a) b) c) d) e) f) CAUTION Sending programs to the CR1000 or CR3000 Setting attributes of datalogger program files Setting disposition of old CF files Sending an OS to the CR1000 or CR3000 Formatting memory drives Deleting data files Test the power-up functions in the office before going into the field to ensure the power-up file is configured correctly. The key to the CF power-up function is the powerup.
NL115 Ethernet and CompactFlash® Module Device = the device to which the associated file will be copied Options are CPU:, USR:, and CRD:. If left blank or with an invalid option, it will default to CPU:. TABLE 7-1. Powerup.ini Commands Command Description 1 Run always, preserve CF data files 2 Run on power-up 5 Format 6 Run now, preserve CF data files 9 Load OS (File = .
NL115 Ethernet and CompactFlash® Module 7.2.3.3 Program Execution After File is processed, the following rules determine what datalogger program to run: 1) If the Run Now program is changed, it will be the program that runs. 2) If no change is made to the Run Now program, but the Run on Power-up program is changed, the new Run on Power-up program runs. 3) If neither the Run on Power-up nor the Run Now programs are changed, the previous Run on Power-up program runs. 7.2.3.4 Example Powerup.
NL115 Ethernet and CompactFlash® Module 7.2.4 Camera Files JPEG images taken by a CC640 digital camera (retired) connected to the datalogger can be stored to the CF card rather than CPU memory. This is done by configuring the PakBus setting Files Manager for the datalogger. This can be done using Device Configuration Utility or PakBus Graph. 7.3 Programming 7.3.1 The CardOut() Instruction The CardOut() instruction is used to send data to a CF card.
NL115 Ethernet and CompactFlash® Module PROGRAM 'CR1000 Public temp DataTable CardOut Maximum Minimum EndTable (Table1,1,-1) (0, -1) (1,temp,FP2,False,False) (1,temp,FP2,False,False) 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.
NL115 Ethernet and CompactFlash® Module Tables 3 and 4 will output the maximum and minimum of the panel temperature and battery voltage to the card every five seconds. (The tables will be called once a second. The DataInterval() instruction causes data to only be stored every five seconds.) The first parameter of the CardOut() instruction is 0, which sets the tables on the card to ring mode.
NL115 Ethernet and CompactFlash® Module 7.4 CF Card Data-Retrieval Details Data stored on CF cards can be retrieved through a communication link to the datalogger or by removing the card and carrying it to a computer. 7.4.1 Via a Communication Link Data can be transferred to a computer via a communication link using one of Campbell Scientific’s datalogger support software packages (for example, PC200W, PC400, LoggerNet).
NL115 Ethernet and CompactFlash® Module To remove a card, press the Initiate Removal button on the NL115. The datalogger will transfer any buffered data to the card and then power off. The Status LED will turn green when it is OK to remove the card. The card will be reactivated after 20 seconds if it is not removed. When the CF card is inserted into a computer, the data files can be copied to another drive or used directly from the CF card just as one would from any other disk.
NL115 Ethernet and CompactFlash® Module 7.4.2.2 Reinserting the Card If the same card is inserted again into the NL115, the datalogger will store all data to the card that has been generated since the 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 be generated. CAUTION Check the status of the card before leaving the datalogger.
NL115 Ethernet and CompactFlash® Module 26
Appendix A. CF Card Maintenance A.1 Formatting CF Card The CF card can be formatted using 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 identify a drive as a removable disk (F:\). 3) Select that drive and right-click. 4) Choose Format.
Appendix A. CF Card Maintenance 5) Choose FAT32 under file system, give the card a label, and press Start. (The datalogger will work with 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 LoggerNet File Control To format card using LoggerNet File Control: 1) Insert CF card into NL115. 2) Use LoggerNet to connect to datalogger.
Appendix A. CF Card Maintenance 3) Choose FileControl under the Tools menu of the Connect Screen. 4) Highlight CRD. 5) Press 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 reader. 2) Windows Explorer should identify a drive as removable disk. 3) Select that drive and right-click. 4) Choose Properties.
Appendix A. CF Card Maintenance 5) Navigate to the Tools tab. 6) Press Check Now. 7) Select both options. 8) Press Start.
Campbell Scientific Companies Campbell Scientific, Inc. (CSI) 815 West 1800 North Logan, Utah 84321 UNITED STATES www.campbellsci.com • info@campbellsci.com Campbell Scientific Centro Caribe S.A. (CSCC) 300 N Cementerio, Edificio Breller Santo Domingo, Heredia 40305 COSTA RICA www.campbellsci.cc • info@campbellsci.cc Campbell Scientific Africa Pty. Ltd. (CSAf) PO Box 2450 Somerset West 7129 SOUTH AFRICA www.csafrica.co.za • cleroux@csafrica.co.za Campbell Scientific Ltd.