I'm pretty new to Dex2 and DT and I'm trying to connect a power meter using Modbus RTU (RS 485) to Serial Port in my DT85. I've tried to write my own script with help of many code examples found in internet which didn't work. I also tried to program DT with Dex2 using graphical features it provides.
And this is code I wrote which can't be even uploaded to Dex2:
BEGIN"config" 'Generated by new dEX-2 password="" PROFILE SERSEN_PORT BPS=9600 PROFILE SERSEN_PORT FLOW=NONE PROFILE SERSEN_PORT DATA_BITS=8 PROFILE SERSEN_PORT STOP_BITS=1 PROFILE SERSEN_PORT PARITY=NONE PROFILE SERSEN_PORT MODE=RS485 PROFILE SERSEN_PORT FUNCTION=MODBUS_MASTER PROFILE MODBUS_SERVER SERSEN_ADDRESS=0 RS10S RA("b:",ALARMS:OV:10KB,DATA:OV:1MB)5S LOGONA 1MODBUS(AD1,R1:4096,=1001CV,W) 1001CV("Voltage") END
Anyone knows the solution to this problem?