[Window] Window state=wsNormal Language=EN Tip of day=0 First tip=0 Store settings to registry=False Store settings to INI=True Serial port=sql Left=398 Top=388 Width=470 Height=308 Restore window pos=398;388;868;696 [Log] Events=31%0D%0A31%0D%0A31%0D%0A31%0D%0A31%0D%0A Clear log on start=True Log file size=0 Show message=False Restart on exception=False [Stamp] Display prefix=< Display postfix=> Custom format=YYYY.MM.DD HH:NN:SS.ZZZ View mode=0 Color=12632256 Add direction sign=True Add data source ID=True Italic=False Bold=True Prefix=(ddddfff(dd(dd(dd(dd(dd( [{tcpipsrc:A4BE721F-24CA-43CC-8DA5-44215A022FA7}.IP] Adjust=False Include port=True Try to open port again=True KeepAlive mode=0 Terminal emulation=0 Allowed= Append text= ID postfix=] ID prefix=[ Hosts=192.168.1.3:502%0D%0A Mode=0 Proto=0 Adjust size=30 Reopen port after=30 KeepAliveInterval=1 KeepAliveTime=60 Max clients=255 Disconnect after=-1 ID mode 2=0 Tcp_NoDelay=False [{tcpipsrc:A4BE721F-24CA-43CC-8DA5-44215A022FA7}.File] Rotation=%0D%0AN||N||C:\Logs\||0||YYYYMMDDHH||data||log||0||N||N||N||N||0:00:00||10000||1||0%0D%0A%0D%0A Rotation selected=1 Actions on file access error=0 Beep on write error=True Write event to protocol=False Error message text=Unable to write to file! Temporary folder= [{tcpipsrc:A4BE721F-24CA-43CC-8DA5-44215A022FA7}.Log] After parsing 2=3 Delete after date=False Delete after number of files=False Date old=10 Number of files=10 Date type=0 Stamp prefix=< Stamp postfix=> [{tcpipsrc:A4BE721F-24CA-43CC-8DA5-44215A022FA7}.Data view] Output type=2 [{tcpipsrc:A4BE721F-24CA-43CC-8DA5-44215A022FA7}.Display] Display mode 20=1 Display mode 80=1 Display mode FF=1 User format=#%%d Charset=1 Add date stamp for sended=False Add date stamp for received=False Highlight sended data=True Highlight color=65535 Use custom color=False Custom color=-16777208 Split timeout=300 Split time=3000 Split characters=#0A [{tcpipsrc:A4BE721F-24CA-43CC-8DA5-44215A022FA7}.Stamp] Timeout=2000 Direction=True After parsing=True File begin=False [{tcpipsrc:A4BE721F-24CA-43CC-8DA5-44215A022FA7}.Modules] Query=MODBUS/TCP Parser=MODBUS/TCP Logger= Parse sended data=False Parse received data=True Publication= Events handling= Filters= Redirect= [{tcpipsrc:A4BE721F-24CA-43CC-8DA5-44215A022FA7}.Common] Text mode=8tttt8tt Auto open=True Friendly name= Template=0 [{tcpipsrc:A4BE721F-24CA-43CC-8DA5-44215A022FA7}.Data parsers.MODBUS/TCP (modbus.dll).Common] Left=374 Top=50 Height=868 Width=500 Parser config=16111300WRITE-UINT16VALUE-11D1611116121300WRITE-INTVALUE-11D3211116121300WRITE-FLOATVALUE-11F3211 Open files dir=E:\D3Prj\Arts\asdlpol\!tutorials\modbus-tcp-power-meter-data-logging\sentron-pac3200.xml Save files dir= Min interval=0 Export at once=True Export all at once=False [{tcpipsrc:A4BE721F-24CA-43CC-8DA5-44215A022FA7}.Other modules.Events generator (eventgen.dll).Common] Left=348 Top=392 Height=300 Width=570 Filters=VALUE||1||1||^100$||2||WRITE%0D%0A [{tcpipsrc:A4BE721F-24CA-43CC-8DA5-44215A022FA7}.Other modules.Script execute (scriptexec.dll).Common] Top=250 Left=315 Width=636 Height=585 Editor width=185 Script=const name = 'VALUE';%0D%0Avar v: variant;%0D%0Abegin%0D%0A if IsVariableDefined(name) then%0D%0A+ begin%0D%0A++ v := GetVariable(name);%0D%0A++ if v > 100 then%0D%0A+++ SendEvent('WRITE');%0D%0A+ end;%0D%0Aend.%0D%0A Language=0 [{sqlsrc:F7920AFC-9052-4916-AA42-4A8DA412CF4F}.Other modules.Script execute (scriptexec.dll).Common] Top=292 Left=264 Width=584 Height=599 Editor width=185 Script=var%0D%0A device, addr: integer;%0D%0A v1, v2, v3: variant;%0D%0A strTargetDataSource: string;%0D%0Abegin%0D%0A strTargetDataSource := GetVariable('DATA_SOURCE');%0D%0A device := GetVariable('DEVICE_ID'); // MODBUS device ID%0D%0A addr := GetVariable('OFFSET'); // MODBUS memory offset%0D%0A v1 := GetVariable('VALUE1'); // Int value%0D%0A v2 := GetVariable('VALUE2'); // Float value%0D%0A v3 := GetVariable('VALUE3'); // UInt16 value%0D%0A%0D%0A if VarToStr(v1) <> '' then%0D%0A++ SendEventEx('WRITE-INT', [%0D%0A++ 'EVENT-TO-CFG', strTargetDataSource,%0D%0A++ 'DEVICE', device,%0D%0A++ 'ADDRESS', addr,%0D%0A++ 'VALUE', v1%0D%0A+ ]);%0D%0A%0D%0A if VarToStr(v2) <> '' then%0D%0A++ SendEventEx('WRITE-FLOAT', [%0D%0A++ 'EVENT-TO-CFG', strTargetDataSource,%0D%0A++ 'DEVICE', device,%0D%0A++ 'ADDRESS', addr,%0D%0A++ 'VALUE', v2%0D%0A+ ]);%0D%0A%0D%0A if VarToStr(v3) <> '' then%0D%0A++ SendEventEx('WRITE-UINT16', [%0D%0A++ 'EVENT-TO-CFG', strTargetDataSource,%0D%0A++ 'DEVICE', device,%0D%0A++ 'ADDRESS', addr,%0D%0A++ 'VALUE', v3%0D%0A+ ]);%0D%0A%0D%0Aend.%0D%0A Language=0 [{sqlsrc:F7920AFC-9052-4916-AA42-4A8DA412CF4F}.SQL] Fields=MODBUS_DATA_WRITE.VALUE3||2||0||MODBUS_DATA_WRITE.VALUE2||6||0||MODBUS_DATA_WRITE.VALUE1||3||0||MODBUS_DATA_WRITE.OFFSET||3||0||MODBUS_DATA_WRITE.DEVICE_ID||3||0||MODBUS_DATA_WRITE.DATA_SOURCE||24||32||MODBUS_DATA_WRITE.DATE_TIME_STAMP||11||0||MODBUS_DATA_WRITE.ID||6||0 Data source name=SQL Server type=2 Data source= DB= Remote database=localhost\SQLEXPRESS:test Additional connection params=USE OLEDB=TRUE Reconnect timeout=10 Login name=test Login password=123 Table name mode=True SQL mode=False Table name=MODBUS_DATA_WRITE SQL=+++++%0D%0A Select interval=30 Select interval type=0 Columns=DATE_TIME_STAMP Disconnect module=False [{sqlsrc:F7920AFC-9052-4916-AA42-4A8DA412CF4F}.File] Rotation= Rotation selected=1 Actions on file access error=0 Beep on write error=True Write event to protocol=False Error message text=Unable to write to file! Temporary folder= [{sqlsrc:F7920AFC-9052-4916-AA42-4A8DA412CF4F}.Log] After parsing 2=0 Delete after date=False Delete after number of files=False Date old=10 Number of files=10 Date type=0 Stamp prefix=< Stamp postfix=> [{sqlsrc:F7920AFC-9052-4916-AA42-4A8DA412CF4F}.Data view] Output type=0 [{sqlsrc:F7920AFC-9052-4916-AA42-4A8DA412CF4F}.Display] Display mode 20=0 Display mode 80=2 Display mode FF=2 User format=#%%d Charset=1 Add date stamp for sended=False Add date stamp for received=False Highlight sended data=False Highlight color=65535 Use custom color=False Custom color=-16777208 Split timeout=300 Split time=3000 Split characters=#0A [{sqlsrc:F7920AFC-9052-4916-AA42-4A8DA412CF4F}.Stamp] Timeout=2000 Direction=True After parsing=True File begin=False [{sqlsrc:F7920AFC-9052-4916-AA42-4A8DA412CF4F}.Modules] Query= Parser=OPC parser (opcparser.dll) Logger= Parse sended data=False Parse received data=True Publication= Events handling= Filters=Script execute (scriptexec.dll) Redirect= [{sqlsrc:F7920AFC-9052-4916-AA42-4A8DA412CF4F}.Common] Text mode=8tttt8tt Template=0 Auto open=True Friendly name=