EasyManua.ls Logo

SEW-Eurodrive IPOS plus - Binary Outputs

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...
Manual – IPOSplus®
293
22
Binary inputs/outputs
Assembler – Programming
22.2.2 Binary outputs
Reading binary
outputs
The terminal level of the binary inputs in the basic unit and any installed option are rep-
resented cyclically in the system variables H482 OUTPUT LVL (MOVIDRIVE
®
A) / H521
OUTPUT LVL B (MOVIDRIVE
®
B). In the process, the bits of the H482 system variable
are each assigned to one hardware output.
The individual terminal levels of binary outputs can be evaluated with the BMOV com-
mand in the IPOS
plus®
program. The BMOV command copies a bit from system variable
H482 (OUTPUT LVL) / H521 (OUTPUT LVL B) to any bit position (significance) of an-
other variable. The terminal level of output DO02 is queried using the following sample
program. To do this, bit 1 of system variable H482 is copied to bit 0 (significance 2
0
) of
H200. This makes it easy to query (0 or 1) the terminal level with a JMP command.
Alternatively, one or more terminal levels of the binary outputs can be filtered using a
logical operation with the system variables H 482 (OUTPUT LVL) / H521 (OUTPUT LVL
B). The terminal level of output DO02 is queried using the following sample program:
The result of the AND operation is written to the first variable, that is H200. Therefore,
the first argument must be a variable.
Setting the binary
outputs
To set the outputs, the binary outputs (parameters 620/621 (MOVIDRIVE
®
A), 620
... 626 (MOVIDRIVE
®
B), 630 ... 637) must be set to "IPOS OUTPUT".
Digital outputs are set using the system variables:
H 480 (OPT. OUT IP) for option DIO11 / DIP11 (DO10 ... DO17)
H 481 (STD. OUT IP) for the basic unit (DO01 / DO02 (MOVIDRIVE
®
A) DO01 ...
DO05 (MOVIDRIVE
®
B); DB00 is set to "/Brake". The brake is controlled directly by
the firmware. As a result, the output cannot be written.)
SET H200 = 0
BMOV H200.0 = H482.1
JMP H200 == 1 ,Mxx
M1 : SET H200 = 2
AND H200 & H482
JMP H200 == 2 ,M1
AND operation of H200 and H482
H200 = 2 00000000010 (= DO01)
H482 = 11011100110 (= current status of the binary outputs)
Result 00000000010 (= the jump is performed, as H200 = 2)
P
i
f
kVA
Hz
n
P
i
f
kVA
Hz
n

Table of Contents