
Errorhandlinganddiagnostics
Kbusstate
TheKbusstatusissavedinthestatebyte(seefig.Kbusinterface“1”).Ifthevalueis0theKbusis
operatingsynchronouslyandwithouterrors.Ifthevalueis<>”0”theremaybeafault,oritmayonlybean
indicationthattheKbuscycleislongerthanthetask,inwhichcaseitwouldnolongerbysynchronouswith
thetask.Thetasktimeshouldbefasterthan100ms.Werecommendatasktimeoflessthan50ms.TheK
busupdatetimetypicallyliesbetweenoneandfivems.
Bit0=KBuserror
Bit1=terminalconfigurationhaschangedsincethestart
Bit2=processimagelengthsdonotmatch
Bit8=novalidinputs(yet)
Bit9=Kbusinputupdatenotyetcomplete
Bit10=Kbusoutputupdatenotyetcomplete
Bit11=watchdog
Bit15=acyclicKbusfunctionactive(e.g.Kbusreset)
IfthereisaKbuserror,thiscanberesetviatheIOF_DeviceResetfunctionblock(intheTcIoFunctions.lib).
CX51x080 Version1.0
Komentáře k této Příručce