Danfoss MCO 305 Design Manual page 180

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

Advertisement

MCO 305 Design Guide
Interrupt Functions
Command
Description
DISABLE ..
locks the execution of interrupts
ENABLE ..
enables locked interrupts
ON CANINPUT id
calls up a subprogram when a CAN
GOSUB
telegram type 'id' arrives
ON CANMSG
verifies arrival of a buffered CAN
GOSUB
message
ON COMBIT ..
call up a subprogram when Bit n of the
GOSUB
communication buffer is set
ON DELETE ..
deletes a position interrupt: ON posint
GOSUB
GOSUB
ON ERROR
calls subroutine in the event of an error
GOSUB
ON INT .. GOSUB
calls subroutine depending on input
signal
ON KEYPRESSED
interrupts when a LCP key is pressed or
GOSUB
released
ON PARAM ..
calls up a subprogram when a
GOSUB
parameter is altered
ON PERIOD
calls subroutine at regular intervals
GOSUB
ON posint ..
calls up a subprogram when a position
GOSUB
interrupt occurs:
ON APOS = when the slave position xxx
is passed
ON IPOS = distance between the last
marker position and the actual
position
ON MAPOS = when the master position
xxx [qc] is passed
ON MCPOS = when the master position
xxx [MU] is passed
ON MIPOS = distance between two
markers is reached.
180
__ How to Program __
®
MG.33.L5.02 – VLT
is a registered Danfoss trademark
Syntax
Parameter
DISABLE inttyp
inttyp = INT, COMBIT, ...
ENABLE inttyp
inttyp = INT, COMBIT, ...
ON CANINPUT id
id = 0
GOSUB name
name = subroutine
ON CANMSG
name = name of the subroutine
GOSUB name
ON COMBIT n
n = bit n of communication
GOSUB name
buffer
name = subprogram
ON DELETE pos
pos = value
GOSUB name
name = subprogram name
ON ERROR GOSUB
name = subprogram name
name
ON INT n GOSUB
n = input to be monitored
name
name = subprogram name
ON KEYPRESSED
name = subprogram name
GOSUB name
ON PARAM n
n = parameter number
GOSUB name
name = subprogram name
ON PERIOD n
n =
GOSUB name
n > 20 ms (time for re-call)
n = 0 (switch off function)
name = subprogram name
ON sign postype
sign=
position GOSUB
+ = rising edge or when the
name
position is passed in positive
direction
– = falling edge or when the
position is passed in negative
direction
postype = APOS,IPOS, MAPOS
MCPOS, MIPOS
position = depending on the
command in user units [UU],
or master user units [MU],
or curve units [CU]
name = subprogram name

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents