01.07.2013 Views

Library manual M238 system functions | 2 MB - BERGER - POSITEC

Library manual M238 system functions | 2 MB - BERGER - POSITEC

Library manual M238 system functions | 2 MB - BERGER - POSITEC

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

GetPlcFault: Returns Detected Errors on the Controller I/O<br />

<strong>M238</strong> System Functions<br />

Function Description<br />

This function returns a generic diagnostic of the Controller I/O in a bit field (FFFF hex<br />

means no error detected):<br />

NOTE: The similar information is also available through the System Variable (bit0<br />

and bit1) PLC_R.i_lwSystemFault_1 (see page 16).<br />

Graphical Representation<br />

IL and ST Representation<br />

To see the general representation in IL or ST language, refer to the chapter Function<br />

and Function Block Representation (see page 71).<br />

I/O Variable Description<br />

The following table describes the output variable:<br />

Output Type Comment<br />

GetPlcFault WORD Diagnostic of controller’s I/O in a bit field (FFFF hex means<br />

no error detected).<br />

The following table details the bits contained in the output bit field:<br />

Bit Meaning<br />

0 FALSE = detected error on the I/O expansion bus.<br />

Use the GetRightBusStatus (see page 36) function to get detailed<br />

diagnostic information.<br />

1 FALSE = detected error on the embedded I/O.<br />

Use the GetLocalIOStatus (see page 33) function to get detailed<br />

diagnostic information.<br />

2..15 reserved, always 1<br />

EIO0000000364 04/2012 35

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

Saved successfully!

Ooh no, something went wrong!