
Manual – IPOSplus®
347
23
Set commands
Assembler – Commands
23.8.5 VARINT
Syntax
VARINT Hxx, Mxx
Description
This command is not available in MOVIDRIVE
®
A, only as of MOVIDRIVE
®
B.
The command activates a variable interrupt with the data structure as of variable Hxx.
If the condition for the interrupt is fulfilled and task 2 or 3, in which this interrupt is pro-
cessed, is started, the commands are performed as of the label Mxx. The event for the
interrupt is the comparison with a variable value (see H+4). If the data structure has
been initialized, during run time the behavior of the interrupt can be dynamically adapted
to a complete VarInterrupt using an IPOS
plus®
command.
Note
: The data from the data structure is only transferred when the command
VARINT
Hxx, Mxx
is called (data consistency).
Example: If the value from the data structure Hx+3 CompareVar is changed, for exam-
ple, the value is only taken into account with the command
VARINT Hxx, Mxx
.
Key points
Hxx
First variable of a data structure (see table H+0)
Mxx
Label with the first command of the interrupt function.
Data structure of the variable interrupt:
Variable VARINT element
structure
Description
H+0
Control
0: All VarInterrupt = OFF/Reset
1: Interrupt gets computing time from task 2 and interrupts this task for as
long as the interrupt is processed.
2: Interrupt gets computing time from task 3 and interrupts this task for as
long as the interrupt is processed.
H+1
IntNum
0 ... 3: Defines a sequential number of the VarInterrupt.
An interrupt with the number x, which has already been activated, can
be reactivated during the program run time with another data structure
using the command call
VarInt Hxx, Mxx
when the same interrupt
number is specified in the new data structure at the position H+1.
This feature is not available for the task 1 interrupts.
H+2
SrcVar
Number of the reference variable whose value is compared with the com-
parison value.
ScrVar is the value of the reference variable that ScrVar refers to.
H+3
CompVar
Comparison value or mask used to compare the value of the H+2 refer-
ence variable.
P
i
f
kVA
Hz
n
P
i
f
kVA
Hz
n