163
DL8 USERS
MANUAL EM-7691-B Rev.24
16.4.2 JAVASCRIPT FORMAT DATA FILES (.js)
Character set : UTF-8
Cloud mode : Available (DL8 data is transferred to the cloud server.)
FILE NAME
DATA
VARIABLE DEFINITION FORMAT
dl_header.js
Present time
var year = 2014;
var mon = 7;
var day = 3;
var hour = 17;
var min = 0;
var sec = 0;
var dl_time1 = "2014/07/03";
var dl_time2 = "17:00:00"
Name 1
var_dl_name1 = "name1";
Name 2
var_dl_name2 = "name2";
Name 3
var_dl_name2 = "name2";
data_ai.js
Number of AI channels
var ai_chs = 16;
(Number of array elements in the following format de-
scriptions equals the number of AI channels.)
AI Channel
AI CH name
AI CH comment
AI Engineering unit value
AI % value [% x 100]
AI Engineering unit
AI Zone name
AI Zone color
AI Channel No.
var ai_ch = ["AI1","AI2",...];
var ai_name = ["AI_NAME1","AI_NAME2",...];
var ai_comm = ["Ai-0001","Ai-0002",...];
var ai_real = [-50.32,30.55,...];
var ai_per = [20.00,15.00,...];
var ai_unit = ["km","kg",...];
var ai_area = ["HH","H",...];
var ai_color = ["#FFFFFF",...];
var ai_chno = [1,2,...];
data_di.js
Number of DI channels
Enable/Disable DI control
var di_chs = 16;
var di_enable = 0; (0: Disable, 1: Enable)
(Number of array elements in the following format de-
scriptions equals the number of DI channels.)
DI Channel
DI CH name
DI CH comment
DI Count
DI Engineering unit (counter)
DI Status (display comment)
DI Status color
DI Channel No.
var di_ch = ["DI1","DI2",...];
var di_name = ["DI_NAME1","DI_NAME2",...];
var di_comm = ["Di-0001","Di-0002",...];
var di_count = ["1000","335",...];
var di_unit = ["counts","cycles",...];
var di_data = ["OFF","Shut",...];
var di_color = ["#FFFFFF",...];
var di_chno = [1,2,...];
data_pi.js
Number of PI channels
Enable/Disable PI control
var pi_chs = 16;
var pi_enable = 0; (0: Disable, 1: Enable)
(Number of array elements in the following format de-
scriptions equals the number of PI channels.)
PI Channel
PI CH name
PI CH comment
PI Engineering unit value
PI Engineering unit
PI Zone name
PI Zone color
PI Channel No.
var pi_ch = ["PI1","PI2",...];
var pi_name = ["PI_NAME1","PI_NAME2",...];
var pi_comm = ["Pi-0001","Pi-0002",...];
var pi_real = [100,500,...];
var pi_unit = ["km","kg",...];
var pi_area = ["HH","H","L","LL",...];
var pi_color = ["#FFFFFF",...];
var pi_chno = [1,2,...];
(continued to next page)