
MCO 305 Design Guide
__ Functions and Examples __
MG.33.L4.02 – VLT
®
is a registered Danfoss trademark
45
ON MCPOS 2500 GOSUB drier
// Call up a subprogram when the master position 2500 is passed in positive direction
SUBMAINPROG
SUBPROG
drier
OUT 1 1
// Turn on drier
DELAY
300
// Dry for 300 ms
OUT 1 0
// Turn off drier
RETURN
ENDPROG
Mechanical Brake Control
In applications controlled by MCO 305 involving an electro-mechanical brake it normally makes sense to
control the brake from the MCO 305 application program to avoid situations when the position controller of
MCO 305 attempts to move the motor while the brake is still engaged.
Controlling the brake from the MCO 305 application
program can be combined with the Mechanical
brake control of FC300 by using 2 outputs in series
e.g. Digital output 29 set to Mechanical brake
control (par. 5-31) and relay output 1 set to MCO
controlled (par. 5-40 [0]) and connect the brake as
shown below:
Program Example for Relative Positioning with Mechanical Brake
/**********************************************************************/
Inputs:
1
Go to position
8 Clear
Error
Outputs: 1 In
position
8 Error
11
Relay output for mechanical brake
/************************** Interrupts **********************************/
ON ERROR GOSUB errhandle
// In case of error go to error handler routine, this must always be included
/************************ Define flags *********************************/
flag = 0
/*********************** Basic settings ******************************/
VEL 80
// Sets positioning velocity related to par. 32-80 Maximum velocity.
ACC 100
// Sets positioning acceleration related to par. 32-81 Shortest ramp.
DEC 100
// Sets positioning deceleration related to par. 32-81 Shortest ramp.
/******************* Define application parameters *************************/
LINKGPAR 1900 "Box height" 0 1073741823 0
LINKGPAR 1901 "Brake close delay" 0 1000 0
LINKGPAR 1902 "Brake open delay" 0 1000 0
/******************* Initialize drive to safe state *************************/
GOSUB engage
// Ensure that mechanical brake is closed after power up.
/****************************** main loop ******************************/
MAIN:
IF (IN 1 == 1) AND (flag == 0) THEN
// Go to position once (ensured by flag) when input 1 is high.
GOSUB
disengage
// Open mechanical brake before start.
OUT 1 0
// Reset "In position" output.
Содержание MCO 305
Страница 4: ......