Danfoss MCO 305 Design Manual page 30

Programmable motion controller
Hide thumbs Also See for MCO 305:
Table of Contents

Advertisement

MCO 305 Design Guide
Next_step = 1
// Enable next offset step
RETURN
/***************************** Error handler ***********************************/
SUBPROG errhandle
err = 1
// Set error flag to remain in error handler until error is reset.
OUT 8 1
// Set error output
OUT 2 0
// Reset home done output in case of error
WHILE err DO
IF (IN 8) AND NOT (IN 1) THEN
ERRCLR
err=0
ENDIF
ENDWHILE
OUT 8 0
home_done = 0
RETURN
/****************************************************************************/
ENDPROG
/***************************** End of program *********************************/
30
__ Functions and Examples __
// Remain in error handler until the reset is received
// Reset error when Input 8 is high and input 1 low.
// Clear error
// Reset error flag
// Reset error output
// Reset home_done flag after an error
®
MG.33.L5.02 – VLT
is a registered Danfoss trademark

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents