122
AP
3ADW000379R0501 DCS550 Manual e e
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.
IN1: 16-bit integer (packed boolean); word to be processed e.g. MainCtrlWord (7.01)
IN2:
0 … 15; bit to be changed
boolean; desired bit value
OUT: 16-bit integer (packed boolean), result
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).
IN1 and IN2: 16 bit integer (15 bit + sign)
IN3:
not used
OUT: 16 bit integer (15 bit + sign)
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.
IN1: boolean; counts rising edges
IN2:
boolean; reset input (high active)
16 bit integer (15 bit + sign); limit
OUT: 16 bit integer (15 bit + sign); shows the counted value
-Pot