Code covered by the BSD License  

Highlights from
RS485/MODBUS Communication with JLD416PVA Power Meter

image thumbnail

RS485/MODBUS Communication with JLD416PVA Power Meter

by

 

04 Apr 2012 (Updated )

Reads power, voltage and current data via RS485/MODBUS from a JLD416PVA meter.

checkCRC(response)
function crcCheck = checkCRC(response)
receivedMsg = response;
challengeMsg = append_crc(response(1:length(response)-2));
if all(challengeMsg==receivedMsg)
    crcCheck = 1;
else
    crcCheck = 0;
end

Contact us