IMS - qkuro - Backing up files

IMS - qkuro - Backing up files

The code snippets shown below are for demonstration purposes only and should only be used by qualified personnel. (Microsoft Windows Vista - see note below.)

The qkuro contains four files which determine the pages shown on the Web pages and the data sent over ftp and shown in the Energy Profile.

       dir.txt         a directory listing      read only
       clone.icf       the IP configuration     read/write
       log.csv         the entire datalog file  read only
       webpages.fat    all the individual       read/write
                       webpages as one file
Access to the files is through tftpi and a command can be carried out by creating a single line file with a .bat extension. Vista users will have to ensure that the tftp, which is always included as a standard feature, is enabled.
tftp -i 192.168.1.127 GET dir.txt dir.txt 
This will GET the clone file from a qkuro with an IP address of 192.168.1.127 and create a read only file in the same directory called clone.icf. (Tftp uses port 69 so can normally only be used locally thus preventing any unauthorised remote access to these files. The port can be deliberately opened with port forwarding or a DMZ.) Adding pause to the file then enables you to check that the command completed successfully before acknowledging it and closing the command window.
tftp -i 192.168.1.127 GET dir.txt dir.txt 
pause
All four files can be saved by including the four tftp GET commands in one file.
tftp -i 192.168.1.127 GET dir.txt dir.txt 
tftp -i 192.168.1.127 GET log.csv log.csv
tftp -i 192.168.1.127 GET webpages.fat webpages.fat
tftp -i 192.168.1.127 GET clone.icf clone.icf
pause
As the files are read only this will not normally overwrite earlier files.

Advanced

The sample code shown below creates file names which include the IP address and the local time and date. This enables better records to be maintained and files are unlikely to be overwritten.

set WP_defaultIP=192.168.1.127

for /F "tokens=1-4 delims=/:., " %%a in ('date/T') do set f_name=%%c%%b%%a
for /F "tokens=1-2 delims=:., " %%a in ('time/T') do set f_name=%f_name%_%%a%%b
tftp -i %WP_defaultIP% GET dir.txt __%WP_defaultIP%_%f_name%_dir.txt 
rem notepad __%WP_defaultIP%_%f_name%_dir.txt  


for /F "tokens=1-4 delims=/:., " %%a in ('date/T') do set f_name=%%c%%b%%a
for /F "tokens=1-2 delims=:., " %%a in ('time/T') do set f_name=%f_name%_%%a%%b
tftp -i %WP_defaultIP% GET clone.icf __%WP_defaultIP%_%f_name%_clone.icf
copy  __%WP_defaultIP%_%f_name%_clone.icf __%WP_defaultIP%_clone.icf
rem notepad __%WP_defaultIP%_%f_name%_clone.icf  

for /F "tokens=1-4 delims=/:., " %%a in ('date/T') do set f_name=%%c%%b%%a
for /F "tokens=1-2 delims=:., " %%a in ('time/T') do set f_name=%f_name%_%%a%%b
tftp -i %WP_defaultIP% GET log.csv __%WP_defaultIP%_%f_name%_log.csv 
rem notepad __%WP_defaultIP%_%f_name%_log.csv  

for /F "tokens=1-4 delims=/:., " %%a in ('date/T') do set f_name=%%c%%b%%a
for /F "tokens=1-2 delims=:., " %%a in ('time/T') do set f_name=%f_name%_%%a%%b
tftp -i %WP_defaultIP% GET webpages.fat __%WP_defaultIP%_%f_name%_webpages.fat 
rem notepad __%WP_defaultIP%_%f_name%_webpages.fat  

pause

Note.
Microsoft Windows Vista.
tftp may need to be enabled - see http://windowshelp.microsoft.com/Windows/en-US/Help/1e62706b-ef53-4ecd-a217-0e7bcf82009b1033.mspx

IMS - qkuro - setting the network address

 

IMS - qkuro Etherneti Option - Installation

Before you begin
Please ask your network administrator to complete the table below.

IMS - qkuro settings required.

Notes.

Static IP Address [][][].[][][].[][][].[][][]  
Subnet Mask [][][].[][][].[][][].[][][]

 

IMS - Datalogging - File size and content

IMS - Datalogging - File size and content

During a machine cycle, files containing a header and data are sent at regular intervals to the ftp server.
Between cycles, a file containing just a header is sent at the same time interval to act as a watchdog and confirm that the network is fuctional.
Typical settings and data rates are shown below.

Machine type            Washer/Disinfector        Autoclave/Steriliser 				
Typical cycle time      45 to 90 mins             20 to 45 mins
datalog interval        5 seconds                 1 second
ftp interval            5 minutes                 1 minute		
          
  

IMS

IMS - details

CubeIP - Data Logging memory

Data Logging memory

The CubeIP meter has sufficient non-volatile memory to store over 20,000 records of kwh and kvarh. This will use four datalog channels as they are each long integers and each require two modbusi addresses.

Alternatively, up to 20 channels may be data logged in each record. The CubeIP is then able to store some 5,500 records.

If the CubeIP is configured to log kwh and kvarh every 30 minutes then records spanning more than one year will be stored. Records are maintained in a cicular recording which means that the oldest records will be overwritten when the recording is full.

CubeIP - Backing up files

CubeIP - Backing up files

The code snippets shown below are for demonstration purposes only and should only be used by qualified personnel. (Microsoft Windows Vista - see note below.)

The CubeIP contains four files which determine the pages shown on the Web pages and the data sent over ftp and shown in the Energy Profile.

       dir.txt         a directory listing      read only
       clone.icf       the IP configuration     read/write
       log.csv         the entire datalog file  read only
       webpages.fat    all the individual       read/write
                       webpages as one file
Access to the files is through tftpi and a command can be carried out by creating a single line file with a .bat extension. Vista users will have to ensure that the tftp, which is always included as a standard feature, is enabled.
tftp -i 192.168.1.127 GET dir.txt dir.txt 
This will GET the clone file from a CubeIP with an IP address of 192.168.1.127 and create a read only file in the same directory called clone.icf. (Tftp uses port 69 so can normally only be used locally thus preventing any unauthorised remote access to these files. The port can be deliberately opened with port forwarding or a DMZ.) Adding pause to the file then enables you to check that the command completed successfully before acknowledging it and closing the command window.
tftp -i 192.168.1.127 GET dir.txt dir.txt 
pause
All four files can be saved by including the four tftp GET commands in one file.
tftp -i 192.168.1.127 GET dir.txt dir.txt 
tftp -i 192.168.1.127 GET log.csv log.csv
tftp -i 192.168.1.127 GET webpages.fat webpages.fat
tftp -i 192.168.1.127 GET clone.icf clone.icf
pause
As the files are read only this will not normally overwrite earlier files.

Advanced

The sample code shown below creates file names which include the IP address and the local time and date. This enables better records to be maintained and files are unlikely to be overwritten.

set WP_defaultIP=192.168.1.127

for /F "tokens=1-4 delims=/:., " %%a in ('date/T') do set f_name=%%c%%b%%a
for /F "tokens=1-2 delims=:., " %%a in ('time/T') do set f_name=%f_name%_%%a%%b
tftp -i %WP_defaultIP% GET dir.txt __%WP_defaultIP%_%f_name%_dir.txt 
rem notepad __%WP_defaultIP%_%f_name%_dir.txt  


for /F "tokens=1-4 delims=/:., " %%a in ('date/T') do set f_name=%%c%%b%%a
for /F "tokens=1-2 delims=:., " %%a in ('time/T') do set f_name=%f_name%_%%a%%b
tftp -i %WP_defaultIP% GET clone.icf __%WP_defaultIP%_%f_name%_clone.icf
copy  __%WP_defaultIP%_%f_name%_clone.icf __%WP_defaultIP%_clone.icf
rem notepad __%WP_defaultIP%_%f_name%_clone.icf  

for /F "tokens=1-4 delims=/:., " %%a in ('date/T') do set f_name=%%c%%b%%a
for /F "tokens=1-2 delims=:., " %%a in ('time/T') do set f_name=%f_name%_%%a%%b
tftp -i %WP_defaultIP% GET log.csv __%WP_defaultIP%_%f_name%_log.csv 
rem notepad __%WP_defaultIP%_%f_name%_log.csv  

for /F "tokens=1-4 delims=/:., " %%a in ('date/T') do set f_name=%%c%%b%%a
for /F "tokens=1-2 delims=:., " %%a in ('time/T') do set f_name=%f_name%_%%a%%b
tftp -i %WP_defaultIP% GET webpages.fat __%WP_defaultIP%_%f_name%_webpages.fat 
rem notepad __%WP_defaultIP%_%f_name%_webpages.fat  

pause

Note.
Microsoft Windows Vista.
tftp may need to be enabled - see http://windowshelp.microsoft.com/Windows/en-US/Help/1e62706b-ef53-4ecd-a217-0e7bcf82009b1033.mspx

CubeIP - Carbon emission factors

Carbon emission factors

This information is correct at the time of writing but is subject to regulatory revision and should not be relied upon.

The factors given below are from Annex A of UKETS(01)05 (Guidelines for the measurement and reporting of emissions in the UK Emissions Trading Scheme). These figures are consistent with the National Air Emission Inventory and with the carbon factors given in the generic PP3.02 (Underlying Climate Change Agreement for the [ ] sector).

Carbon emission factors 
Fuel                          kg C/kWh    kg C02/kWh  
          
  

CubeIP - Display scaling

2.7 Display Scaling
Measured values displayed on the LCD are scaled by 
the user settings of CT and/or
PT primaries to provide optimum resolution.

2.7.1 Voltage Scaling)
PT 	Setting                  Resolution
10VL-L - 80VL-L                 0.01 V
81VL-L - 800VL-L                0.1 V
801VL-L - 8,000VL-L             1 V
8,001VL-L - 80,000VL-L          0.01 kV
80,001VL-L - 440,000VL-L        0.1 kV

2.7.2 Current Scaling
          
  

CubeIP - Configuration save and restore

NC300 Configuration Save and Restore

The full configuration can be downloaded as a text file, clone.icf, from the NC300 by using tftpi.


For example, replace 192.168.2.45 with the correct address for the NC300.

tftp -i 192.168.2.45 GET clone.icf

The file contains a list of addresses and their corresponding settings. The file can be edited with a simple editor such as Wordpad but this is not recommended as the file may be rendered useless if any erroneous values are entered.

The NC300 configuration file should be kept in a secure location to provide a backup of the configuration and form part of any future audit.

CubeIP - Variables in WebPages and datalogs

HEX Decimal
Network Settings
IP address
IP Address 1 0x07F2 2034
IP Address 2 0x07F3 2035
IP Address 3 0x07F4 2036
IP Address 4 0x07F5 2037
IP Address 5 0x07F6 2038
IP Address 6 0x07F7 2039
Subnet
Subnet Address 1 0x07F8 2040
Subnet Address 2 0x07F9 2041
Subnet Address 3 0x07FA 2042
Subnet Address 4 0x07FB 2043
Gateway
Gateway Address 1 0x07FC 2044
Gateway Address 1 0x07FD 2045
Gateway Address 1 0x07FE 2046
Gateway Address 1 0x07FF 2047
Primary DNS
Primary Address 1 0x07E8 2024
Primary Address 2 0x07E9 2025
Primary Address 3 0x07EA 2026
Primary Address 4 0x07EB 2027
Secondary DNS
Secondary Address 1 0x07E4 2020
Secondary Address 2 0x07E5 2021
Secondary Address 3 0x07E6 2022
Secondary Address 4 0x07E7 2023
MAC address
MAC Address 1 0x07EC 2028
MAC Address 2 0x07ED 2029
MAC Address 3 0x07EE 2030
MAC Address 4 0x07EF 2031
MAC Address 5 0x07F0 2032
MAC Address 6 0x07F1 2033
Datalogging
Datalog Enable 0x0743 1859
Datalog Parameters
Number of parameters to log 0x0739 1849
Channel 1 0x0745 1861
Channel 2 0x0748 1864
Channel 3 0x074B 1867
Channel 4 0x074E 1870
Channel 5 0x0751 1873
Channel 6 0x0754 1876
Channel 7 0x0757 1879
Channel 8 0x075A 1882
Channel 9 0x075D 1885
Channel 10 0x0760 1888
Channel 11 0x0763 1891
Channel 12 0x0766 1894
Channel 13 0x0769 1897
Channel 14 0x076C 1900
Channel 15 0x076F 1903
Channel 16 0x0772 1906
Channel 17 0x0775 1909
Channel 18 0x0778 1912
Channel 19 0x077B 1915
Channel 20 0x077E 1918
Datalog Period (seconds) 0x0780 1920
Datalog FTP server credentials
FTP URL 0x0740 1856
FTP username 0x0741 1857
FTP server Password 0x0742 1858
FTP send interval minutes 0x073F 1855
FTP server IP address -
only used if a url is not entered
FTP server IP Address 1 0x0781 1921
FTP server IP Address 2 0x0782 1922
FTP server IP Address 3 0x0783 1923
FTP server IP Address 4 0x0784 1924
Custom File Format 0x0738 1848
Profile Settings
Oldest Record date in the datalog UITC 0x073A 1850
Newest Record date in the datalog UITC 0x073B 1851
Profile report date from date (history.log) 0x073C 1852
Profile report time resolution 0x073D 1853
Profile number of records to report 0x073E 1854
Graph Scales
Left vertical scaling (low) 0x0700 1792
Left vertical scaling (high) 0x0701 1793
Left vertical scaling (division spacing) 0x0702 1794
Right vertical scaling (low) 0x0703 1795
Right vertical scaling (high) 0x0704 1796
Right vertical scaling (division spacing) 0x0705 1797
Graph Parameters Logged
Parameter 1 to log 0x0706 1798
Scale (left or right) for parameter 1 0x0707 1799
Parameter 2 to log 0x0708 1800
Scale (left or right) for parameter 2 0x0709 1801
Parameter 3 to log 0x070A 1802
Scale (left or right) for parameter 3 0x070B 1803
Parameter 4 to log 0x070C 1804
Scale (left or right) for parameter 4 0x070D 1805
Chart speed tba 0x070E 1806
Acquisition rate (seconds) 0x070F 1807
Config changed - used to update settings 0x0710 1808
Graph indirection
Read from address pointed to by GRAPH_PARAMETER1 0x0711 1809
Read from address pointed to by GRAPH_PARAMETER2 0x0712 1810
Read from address pointed to by GRAPH_PARAMETER3 0x0713 1811
Read from address pointed to by GRAPH_PARAMETER4 0x0714 1812
Monthly Totals kWh
January 0x0785 1925
February 0x0786 1926
March 0x0787 1927
April 0x0788 1928
May 0x0789 1929
June 0x078A 1930
July 0x078B 1931
August 0x078C 1932
September 0x078D 1933
October 0x078E 1934
November 0x078F 1935
December 0x0790 1936
Meter Name 0x0791 1937
Simple Network Time Protocol
SNTP_TIMESTAMP 0x07DA 2010
SNTP_URL 0x07DB 2011
SNTP_IP1 0x07DC 2012
SNTP_IP2 0x07DD 2013
SNTP_IP3 0x07DE 2014
SNTP_IP4 0x07DF 2015
System Settings
Firmware Version 0x07E0 2016

Correction

Syndicate content


Product overview
  • Webserver
  • Automatically Control
    • Heaters
    • Coolers
    • Humidity
    • Lighting
  • Power over Etherneti
  • Universal Input
  • Contact Output
  • New Linear Output
  • New Solid State Relay Output
  • New Autotune PIDi Control
  • AJAXi technology
  • Modbusi TCP/IP
  • Graph Plotting
  • Datalogging