9
4 MODBUS PROTOCOL
4.2 MODBUS Function Codes
The function code instructs the addressed slave which function to perform. Table 4.1 shows the
function codes, and describes the action they initiate.
*NAK = Negative Acknowledgment
Table 4.1 MODBUS Function Codes
noitcnuF
edoC
noitcnuF
eltiT
noitpircseD
10
lioCdaeR
sutatS
.tniopgnitratscificepsamorfstniop)naelooB(etercsidevitucesnoc23otpudaeR
ataddenifedniatnoctonodhcihwstnioprofsorezsnruter005REDNAMMOCehT
.06nahtretaergsrebmuntnioproftseuqeryna*sKANdna
30
daeR
gnidloH
retsigeR
ehT.retsigergnitratscificepsamorfsretsigerevitucesnoc8otpudaeR
dnaataddenifedniatnoctonodhcihwstnioprofsorezsnruter005REDNAMMOC
.022nahtretaergsrebmuntnioproftseuqeryna*sKAN
50elgniSecroF
lioC
tniopehtfisiht*sKAN005REDNAMMOCehT.tniop)naelooB(etercsidenoetirW
.elbaetirwyltnerructonsi
60
elgniSteserP
retsigeR
erofebretsigerehtotstimilgnitsixeynaseilppaoslaedocsihT.retsigerenoetirW
tonsiretsigerehtfi*sKAN005REDNAMMOCehT.tnemurtsniehtniegarots
.elbaetirwyltnerruc
80
kcaBpooL
citsongaiD
tseT
.detroppussi’yreuQfonruteR‘ylnO.egassemehtohcE
51
teserP
slioCelpitluM
erasliocehtfoynafi*sKAN005REDNAMMOCehT.emitataslioc23otpuetirW
.dilaverahcihwsetirwehtllatuoseirractub,elbaetirwyltnerructon
61
teserP
elpitluM
sretsigeR
ehT.retsigergnitratsdeificepsamorfsretsigerevitucesnocthgieotpuetirW
tub,elbaetirwyltnerructonerasretsigerehtfoynafi*sKAN005REDNAMMOC
eulavehtotstimilgnitsixeynagniylppa,dilaverahcihwsetirwehtllatuoseirrac
.tnemurtsniehtniegarotserofeb