![SEW-Eurodrive IPOS plus Скачать руководство пользователя страница 241](http://html1.mh-extra.com/html/sew-eurodrive/ipos-plus/ipos-plus_manual_1250042241.webp)
Manual – IPOSplus®
241
17
Standard functions
Compiler – Functions
Example
See "Task Management and Interrupts / Variable Interrupts with MOVIDRIVE
®
B".
17.3.26 _SystemCall
Syntax
_SystemCall( event, function name)
Description
The function is used to call a user-defined function when a system-controlled even oc-
curs. The name of the function and the required event are given as arguments.
Key points
event
Constant expression that specifies when the function name is called. This
expression can adopt one of the following values:
function name
Name of the event function. (Important: In contrast to a function call,
only the name of the function without () is specified here.)
H+4
Mode
0: No interrupt event. This can be used to deactivate this one interrupt
without deactivating them all.
1: One of the bits of the reference variable, masked out using the Com-
pVar mask, has changed its status:
([*SrcVar(t) ^ *SrcVar(t-T)] & CompVar) != 0
2:As long as the value of the reference variable is equal to the compar-
ison value
(*SrcVar == CompVar)
3:As long as the value of the reference variable is not equal to the com-
parison value
(*SrcVar != CompVar)
4:As long as the value of the reference variable is greater than or equal
to the comparison value
(*SrcVar >= CompVar)
5:As long as the value of the reference variable is less than or equal to
the comparison value
(*SrcVar <= CompVar)
6: Value of the reference variable AND the comparison value is not 0
((*SrcVar & CompVar) != 0)
7: Value of the reference variable AND the comparison value is 0
((*SrcVar & CompVar) == 0)
8: Positive edge of the bit masked out by CompVar
9: Negative edge of the bit masked out by CompVar
10: As 2; however, interrupt is only processed once each time the con-
dition is fulfilled (edge triggered)
11: As 3; however, interrupt is only processed once each time the con-
dition is fulfilled (edge triggered)
12: As 4; however, interrupt is only processed once each time the con-
dition is fulfilled (edge triggered)
13: As 5; however, interrupt is only processed once each time the con-
dition is fulfilled (edge triggered)
H+5
Priority
Priority of the interrupt (1 ... 10); task 2 and task 3 are both assigned
the priority 0.
H+6
IntEvent
Process image of the reference variable from *SourceVar to the time of
the interrupt.
Variable
VARINT element
structure
Description
SC_UC: Unconditional
SC_N0: When the speed is zero
SC_N: When the speed is not zero
SC_NOTPOS: If not in position
SC_TP1: If there is an edge change at touch probe terminal DI02
SC_NTP1: If there is no edge change at touch probe terminal DI02
SC_TP2: If there is an edge change at touch probe terminal DI03
SC_NTP2: If there is no edge change at touch probe terminal DI03
P
i
f
kVA
Hz
n
P
i
f
kVA
Hz
n