EasyManua.ls Logo

ABB DCS550 - Page 122

ABB DCS550
316 pages
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...
122
AP
Bset
Logical function
Illustration
Operation
With Bset, it is possible to set the value of a certain bit in a word. Connect the word to be
processed at IN1. Define the number of the bit to be changed at IN2. Define the desired bit
value at IN3 (
e.g. 1 for true and 0 for false). OUT is the result of the operation. Connect OUT
to the word to be processed.
Connections
IN1: 16-bit integer (packed boolean); word to be processed e.g. MainCtrlWord (7.01)
IN2:
0 … 15; bit to be changed
IN3:
boolean; desired bit value
OUT: 16-bit integer (packed boolean), result
Compare
Arithmetical function
Illustration
Operation
Only bits 0, 1 and 2 of OUT are valid:
If IN1 > IN2 OUT = 001 (OUT bit 0 is true),
if IN1 = IN2 OUT = 010 (OUT bit 1 is true) and
if IN1 < IN2 OUT = 100 (OUT bit 2 is true).
Connections
IN1 and IN2: 16 bit integer (15 bit + sign)
IN3:
not used
OUT: 16 bit integer (15 bit + sign)
Count
Arithmetical function
Illustration
Operation
The counter counts the rising edges of IN1. Rising edges at IN2 reset the counter. IN3 limits
OUT.
IN3 > 0: OUT increases to the set limit. IN3 < 0: OUT increases up to the absolute
maximum value (32768). When the maximum value is
reached, the output will be set to 0 and
the counter starts counting from zero.
Connections
IN1: boolean; counts rising edges
IN2:
boolean; reset input (high active)
IN3:
16 bit integer (15 bit + sign); limit
OUT: 16 bit integer (15 bit + sign); shows the counted value
D
-Pot
Arithmetical function
Illustration

Table of Contents

Related product manuals