Setvarinterrupt - SEW-Eurodrive IPOS plus Manual

Positioning and sequence control system
Table of Contents

Advertisement

n
n
kVA
kVA
Compiler – Functions
17
f
f
Standard functions
i
i
P
Hz
Hz
P

17.3.25 _SetVarInterrupt

Syntax
Description
Key points
240
_SetVarInterrupt ( h1 , function name )
This command is not available in MOVIDRIVE
The command activates a variable interrupt with the data structure as of variable H1. If
the condition for the interrupt is fulfilled, the "function name" function is performed. 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 dy-
namically adapted to a complete VarInterrupt using an IPOS
Note: The data from the data structure is only transferred when the command
_SetVarInterrupt ( H1 , function name ) is called (data consistency). An
exception is the variable pSourceVar.
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 _SetVarInterrupt ( H1
, function name ).
H1 First variable of a data structure (see table H+0)
function name
Name of the interrupt function. In contrast to a function call, only the
name of the function without () is specified here.
Data structure of the variable interrupt:
Variable
VARINT element
structure
H+0
Control
H+1
IntNum
H+2
SrcVar
H+3
CompVar
®
A, only as of MOVIDRIVE
Description
0: All VarInterrupt = OFF/Reset
1: Interrupt task 2
2: Interrupt task 3
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 _SetVarInterrupt ( H1 , function
name ) 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.
Number of the reference variable whose value is compared with the
comparison value.
Comparison value or mask used to compare the value of the H+2 refer-
ence variable.
®
B.
plus®
command.
Manual – IPOSplus®

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the IPOS plus and is the answer not in the manual?

Questions and answers

Table of Contents

Save PDF