EasyManua.ls Logo

SEW-Eurodrive IPOS plus - Page 342

SEW-Eurodrive IPOS plus
384 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
342
Manual – IPOSplus®
23
Set commands
Assembler – Commands
Structure
Example
SET H01 = 50
SET H0 = 10
M01 :SETI [H0] = H01
ADD H0 + 1
ADD H01 + 10
JMP H0 <= 15 , M01
After the program has been run, the variables have the following values:
H10 = 50
H11 = 60
...
H15 = 100
SETINT/SET
INTERRUPT
The SETINT command sets the start address of an interrupt routine. The address is in-
dicated as label in the command. An interrupt may be triggered by various events. The
events are specified in Argument X1. The interrupt routine itself must be completed with
a RET command.
A jump to the interrupt routine takes place immediately and independent of the currently
processed main program line. If the interrupt routine ends with the RET command, pro-
gram processing continues from the point where the interruption occurred (processing
of an interrupted "wait command" is continued).
The SETINT command is only in effect in task 1 and processing of task 1 is interrupted
whilst the interrupt is processed.
It is only possible to process one interrupt at a time, although an interrupt with a higher
priority can interrupt the processing of another interrupt. ERROR has the highest prior-
ity, then TOUCH PROBE, followed by TIMER 0.
An interrupt only has to be initialized once using SETINT.
Command structure
Mxxx SETI [X1] = X2
Mxxx: Label (optional)
X1: Hxxx = Number of the target variable.
X2: Hyyy = Source variable.
515362827
P
i
f
kVA
Hz
n
P
i
f
kVA
Hz
n

Table of Contents