Rank: 320769 based on 0 downloads (last 30 days) and 0 file submitted



Personal Profile:


Watch this Author's files


Comments and Ratings by Richard
Updated File Comments Rating
24 Sep 2012 Eurotherm Modbus RS232 Control Reads and writes information to Eurotherm controllers via Modbus RTU protocols. Author: Geoffrey Akien

I have this code working with a Eurotherm 3216 over two-wire RS-485. Two things needed to be fixed. Neither has been rigorously debugged but it should at least be a helpful start.

1) The NOT operator (~) needs to be removed from the line "if ~deviceAddress" in tempobjcomm.m". I don't really see how anything could have worked in its original state ...

2) As it is a two-wire bus, Matlab receives all outgoing commands. I circumvented that by adding the line " "fread(serialObject, length(command));" immediately after the line described in 1). There may be a way to do this in the serial-port settings but this way seems to work fine.

Contact us