Beijer-electronics AN-BEI-E2-038 Instrukcja Użytkownika Strona 8

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 11
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 7
APPLICATIONNOTEANBEIE2038 Date:15/02/12
ANBEIE2038ModbusRTUControlandRegisterMapping
8
ModbusExceptionResponseTelegrams
Undersomecircumstances,thedrivemayreplywithanExceptionResponse(error)inresponsetoarequesttelegramsentfrom
thenetworkmaster,forexamplewherethemastertriestoreadaregisterwhichdoesnotexist.ExceptionResponseswhichcan
begeneratedbythedrivearelistedbelow:‐
Exception
Code1:InvalidRequest
Returnedunderthefollowingconditions
NetworkMastersendsanunsupportedModbuscommand(e.g.ReadCoils).
RuncommandissuedtodrivewhilstthedriveisnotsetforModbusControlMode(e.g.P112<>4).
Runcommandissuedtodriveswhilstthedriveisnot
enabled(e.g.DigitalInput1isopen).
Runcommandissuedtodrivewhilstthedriveisinatrippedcondition.
ExceptionCode2:InvalidModbusregister
Returnedunderthefollowingconditions
NetworkMasterattemptstoreadorwritearegisterthatdoesnotexistwithinthedrive.
ExceptionCode3:RegisterValueOutofRange
Returnedunderthefollowingconditions
NetworkMasterattemptstowriteaholdingregisterwithavalueoutsidetherangeoftheregister
ExceptionCode6:DriveBusy
Returnedunderthefollowingconditions
Drivebusyduetointernaldatatransfer.The
NetworkMastershouldresendthemessageafteradelay
Dataflowexample:
Read data from register 6:
Request:[01] [03][00][05] [00][01][94][0B]
 (DriveAddr)(Command)(Regstartaddr)(No.ofRegisters)(Checksum)
Reply:[01] [03][02] [00][00][B8][44]
 (DriveAddr)(Command)(Noofdatabytes)(Data) (Checksum)
Note:Theactualstartaddressofregister6is5.Alldata
in[]isin8bitsHexformat.
Writestartcommandtotheregister1(supposeP12=3,P15=0anddigitalinput1isclosed):
Request:[01] [06][00][00] [00][01][48][0A]
 (DriveAddr)(Command)(Regaddr)(Datavalue)(Checksum)
Reply:[01] [06]
[00][00] [00][01][48][0A]
 (DriveAddr)(Command)(Regaddr)(Datavalue)(Checksum)
Note:Theactualaddressofregister1onthedatalinkis0.Alldatain[]isin8bitsHexformat.
Replycanbeerrormessagedependingondriveparametersettingsanddigital
inputstatus.
Przeglądanie stron 7
1 2 3 4 5 6 7 8 9 10 11

Komentarze do niniejszej Instrukcji

Brak uwag