100
6250 Servo Controller User Guide
Step 3
Enable the user fault error-checking bit by putting a 1 in the seventh bit of the ERROR
command. After enabling this error-checking bit, the 6270 will branch to the error program
whenever the user fault input is activated.
Command Description
> ERRORØØØØØØ1 Branch to error program upon user fault input
(As an alternative to the ERRORØØØØØØ1 command, you could
also enable bit #7 by issuing the ERROR.7-1 command.)
Step 4
Test the error handling.
Command Description
>L Loop command
WRITE"IN LOOP\1Ø\13" Send Message IN LOOP
T2 Wait 2 seconds
LN End the loop
(Message IN LOOP will be displayed once every 2 seconds)
> !INEN1 Disable input #1 and force it on for testing purposes. This
simulates the physical activation of input #1.
(Since the error program is called continuously until the
branch to the error program is canceled, the message FAULT
INPUT will be repeatedly displayed once every 3 seconds.)
> !INENE Re-enable input #1
(The message IN LOOP will not be displayed again, because
the user fault input error is a GOTO branch type and not a
GOSUB branch type.)
Commentaires sur ces manuels