02.02.2015 Views

Safety Considerations Guide for Triconex General ... - ICEWeb

Safety Considerations Guide for Triconex General ... - ICEWeb

Safety Considerations Guide for Triconex General ... - ICEWeb

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Development <strong>Guide</strong>lines 45<br />

Array Index Errors<br />

If an array index error is detected during runtime, the default behavior is to trap. This results in<br />

the Tri-GP controller going to the safe state, with all outputs de-energized.<br />

If your application requires some other behavior, you can use a CHK_ERR function block to<br />

detect the error, and a CLR_ERR function block to clear the error and prevent a trap.<br />

Note<br />

If an array index is too small or too large, the array operation is per<strong>for</strong>med on the last<br />

element of the array. Array bounds checking is always turned on—there is no means to<br />

disable the array index checking.<br />

See the TriStation 1131 Libraries Reference <strong>for</strong> more in<strong>for</strong>mation about the CHK_ERR and<br />

CLR_ERR function blocks.<br />

Infinite Loops<br />

If the actual scan time exceeds the maximum allowable scan time <strong>for</strong> the Tri-GP controller, the<br />

main processors will reset, causing the Tri-GP controller to go to the safe state, with all outputs<br />

de-energized. The maximum allowable scan time <strong>for</strong> the Tri-GP is 450 milliseconds.<br />

Although it is not possible to program an endless loop with TriStation 1131 software, it is<br />

possible to create a loop with a very long time, enough to increase the actual scan time beyond<br />

the controller’s maximum allowable scan time.<br />

See Setting Scan Time on page 47 <strong>for</strong> more in<strong>for</strong>mation about actual and maximum scan times.<br />

<strong>Safety</strong> <strong>Considerations</strong> <strong>Guide</strong> <strong>for</strong> <strong>Triconex</strong> <strong>General</strong> Purpose v2 Systems

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

Saved successfully!

Ooh no, something went wrong!