Code covered by the BSD License  

Highlights from
Eurotherm Modbus RS232 Control

Eurotherm Modbus RS232 Control

by

 

11 Jul 2009 (Updated )

Reads and writes information to Eurotherm controllers via Modbus RTU protocols.

tempobjwritesetpointratelimit.m
function tempobjwritesetpointratelimit(serialObject, rateLimit)
% TEMPOBJWRITESETPOINTRATELIMIT changes the SP rate limit of Eurotherms
% tempobjwritesetpointratelimit(serialObject, rateLimit) changes the set
% point rate limit of Eurotherm temperature controllers given a valid
% serial port object and a rate limit from 0 to 999.9 C/min.  The set
% point rate limit is sent as a single precision number.

% e.g. tempobjwritesetpointratelimit(tempobj(7), 0) - turns the rate
% limiter off.

% Range:

% serialObject = valid serial object (generated by tempobj)

% rateLimit = number: 0 - 999.9


% check the number of arguments
error(nargchk(2, 2, nargin))

% error handling (the numbers are tested more thoroughly in tempobjcomm)
if rateLimit < 0 || rateLimit > 999.9
    % errors
    error('Set point rate limit must be between 0 and 999.9 C min^-1.')
end

% sends command
tempobjcomm('writefullres', serialObject, 1, 35, rateLimit);

Contact us