Basic-ex1
objectPage http://www.yama-lab.org/fwb4pi/index.php?Basic-ex2 or http://www.yama-lab.org/fwb4pi/index.php?Basic-ex2
device yamaRasPiDp9_1 or yamaRasPiDp9_2 start after no write for 10 min.
command: set readInterval=60000
command: set execInterval=0
command: program ex1
program: ex("service","clear sendBuffer")
program: s=0
program: for i=0 to 10
program: s=s+i
program: ex("service","putSendBuffer "+s)
program: next i
program: d=ex("service","getCurrentDate.")
program: ex("service","putSendBuffer d="+d)
program: ld=date2l(d)
program: ex("service","putSendBuffer ld="+ld)
program: dl=l2date(ld)
program: ex("service","putSendBuffer dl="+dl)
program: ex("service","sendResults.")
command: end ex1
command: run ex1
result:
0
1
3
6
10
15
21
28
36
45
55
d=2019/6/27/ 0:44:20
ld=1561563860000
dl=2019/06/27/ 00:44:20
currentDevice="yamaRasPiDp1_1",Date=2019/6/27/ 0:44:20