interbus - Onlinecomponents.com

interbus - Onlinecomponents.com interbus - Onlinecomponents.com

onlinecomponents.com
from onlinecomponents.com More from this publisher
06.05.2014 Views

Diagnostic Register The three diagnostic registers (diagnostic status register, diagnostic parameter register, and extended diagnostic parameter register) map the diagnostic display to the control system. They inform the control system about the current state of the INTERBUS system. In the application program, operating states, errors, and other information appear as inputs. For certain controller boards, the diagnostic registers must be integrated in a specific way. The Quick Start Guide for your controller board provides instructions on how to proceed. Diagnostic Status Register The diagnostic status register contains information in the form of input bits. In the event of an error, additional information is written to the diagnostic parameter register. % % $ # " ! % $ # " ! % onlinecomponents.com * ) 5 2 5 ; 5 . ) 1 + JH I O I JA EI E JD A 5 6 2 I J= JA + ) * 5 6 2 K JF K JI = HA HA I A J 4 - 5 7 6 5 J= @ = H@ BK ? JE A C = JEL A O F H ? A I I A @ 5 ; 4 - 5 7 6 4 7 4 - ) , ; + 6 4 2 . 7 5 - 4 7 I A HA HH H 2 A HEF D A H= B= K J * 7 5 * K I A HH H - HH H ? JH A H> = H@ D = H@ M = HA B= K J , - 6 - + 6 , E= C I JE? H K JE A EI = ? JEL A , = J= JH= I EI I E EI = ? JEL A ) + 6 18 - 5 A A ? JA @ ? BEC K H= JE EI HA = @ O J F A H= JA + JH A H> = H@ EI HA = @ O J F A H= JA * 5 ) * K I I A C A J= > HJA @ 5 O ? D H E = JE A HH H ? ? K HHA @ , + 4 - 5 7 6 . = K JO @ = J= ? O ? A I 9 ) 4 1 / , A BE A @ M = EJE C JE A A N ? A A @ A @ 3 7 ) 16 ; , A BE A @ A HH H@ A I EJO A N ? A A @ A @ 5 , 5 1 Figure 3 Diagnostic status register A I I = C A B H? JH I O I JA F HA I A J # % % + " 12 5277CC01

Diagnostic Parameter Registers The diagnostic parameter registers provide additional information on the error indicated in the diagnostic status register. This is either in the form of the error location or the error code. - H H H ? = JE Figure 4 - H H H + @ A Figure 5 Diagnostic parameter register (error location) Diagnostic parameter register (error code) Special case: If a local bus error cannot be located, byte n+1 of the error location indicates the value 128 or 129, or bit 7 is set. Whenever an error bit is set, the 16-bit diagnostic parameter register is rewritten. If no error bit is set, the register has the value 0. onlinecomponents.com % % 5 A C A J K > A H - N = F A , A L E? A K > A H! ! 2 I EJE E JD A I A C A J # % % + ! & % % ) # - HH H K > A H - N = F A ) @ @ HA I I L A H= F A HH H? @ A ) # D A N # % % + ! % The extended diagnostic parameter register is only updated once the "Confirm_Diagnostics" service (0760 hex ) has been sent. By default, it is set in the MPM at address 37E6 hex and can also be moved to the I/O area using the "Set_Value" service (Variable_ID 010C hex ). 5277CC01 13

Diagnostic Parameter Registers<br />

The diagnostic parameter registers provide additional<br />

information on the error indicated in the diagnostic status<br />

register. This is either in the form of the error location or the<br />

error code.<br />

- H H H ? = JE <br />

Figure 4<br />

- H H H + @ A<br />

Figure 5<br />

<br />

Diagnostic parameter register (error location)<br />

Diagnostic parameter register (error code)<br />

Special case: If a local bus error cannot be located,<br />

byte n+1 of the error location indicates the value 128<br />

or 129, or bit 7 is set.<br />

Whenever an error bit is set, the 16-bit diagnostic<br />

parameter register is rewritten. If no error bit is set,<br />

the register has the value 0.<br />

online<strong>com</strong>ponents.<strong>com</strong><br />

<br />

% % <br />

5 A C A J K > A H<br />

- N = F A , A L E? A K > A H! <br />

! <br />

2 I EJE E JD A I A C A J<br />

<br />

# % % + ! &<br />

% % <br />

<br />

<br />

) # <br />

- HH H K > A H<br />

- N = F A ) @ @ HA I I L A H= F A HH H? @ A ) # D A N<br />

# % % + ! %<br />

The extended diagnostic parameter register is only<br />

updated once the "Confirm_Diagnostics" service<br />

(0760 hex ) has been sent.<br />

By default, it is set in the MPM at address 37E6 hex<br />

and can also be moved to the I/O area using the<br />

"Set_Value" service (Variable_ID 010C hex ).<br />

5277CC01 13

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!