Beijer-electronics AN-BEI-P2-038 Manual de usuario Pagina 15

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 16
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 14
APPLICATIONNOTEANBEIP2038 Date:15/02/12
ANBEIP2038ModbusRTUControlandRegisterMapping
15
ModbusExceptionResponseTelegrams
Undersomecircumstances,thedrivemayreplywithanExceptionResponse(error)inresponsetoarequesttelegramsentfrom
thenetworkmaster,forexamplewherethemastertriestoreadaregisterwhichdoesnotexist.ExceptionResponseswhichcan
begeneratedbythedrive
arelistedbelow:‐
ExceptionCode1:InvalidRequest
Returnedunderthefollowingconditions
NetworkMastersendsanunsupportedModbuscommand(e.g.ReadCoils).
RuncommandissuedtodrivewhilstthedriveisnotsetforModbusControlMode(e.g.P112<>4).
Runcommandissuedto
driveswhilstthedriveisnotenabled(e.g.DigitalInput1isopen).
Runcommandissuedtodrivewhilstthedriveisinatrippedcondition.
ExceptionCode2:InvalidModbusregister
Returnedunderthefollowingconditions
NetworkMasterattemptstoreadorwritearegisterthatdoes
notexistwithinthedrive.
ExceptionCode3:RegisterValueOutofRange
Returnedunderthefollowingconditions
NetworkMasterattemptstowriteaholdingregisterwithavalueoutsidetherangeoftheregister
ExceptionCode6:DriveBusy
Returnedunderthefollowingconditions
Drivebusydue
tointernaldatatransfer.TheNetworkMastershouldresendthemessageafteradelay
Dataflowexample:
Readdatafromregister6:
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.Alldatain[]isin8bitsHexformat.
Writestartcommandtotheregister1(supposeP112=4,P113=1anddigitalinput1
isclosed):
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.
Replycanbeerrormessagedependingondriveparametersettingsanddigitalinputstatus.

Vista de pagina 14
1 2 ... 10 11 12 13 14 15 16

Comentarios a estos manuales

Sin comentarios