4 l_tbconvbitstoword, L_tbconvbitstoword, Function library lenzeplctoolbox.lib – Lenze DDS Function library PLCToolBox User Manual
Page 12: Functions/function blocks

Function library LenzePLCToolBox.lib
Functions/function blocks
2.4
L_TBConvBitsToWord
2−4
L
LenzePLCToolBox.lib EN 1.5
2.4
L_TBConvBitsToWord
WORD L_TBConvBitsToWord (bBit0, bBit1, bBit2, bBit3,
bBit4, bBit5, bBit6, bBit7,
bBit8, bBit9, bBit10, bBit11,
bBit12, bBit13, bBit14, bBit15)
This function converts 16 single bit values into a value of type "word".
L_TBConvBitsToWord
bBit0
bBit1
bBit2
bBit15
Word (16 bits)
Transfer parameters
Identifiers
Data type
Info/possible settings
bBit0
Bool
Bit 0 (valency: 2
0
)
bBit1
Bool
Bit 1 (valency: 2
1
)
bBit2
Bool
Bit 2 (valency: 2
2
)
...
...
...
bBit15
Bool
Bit 15 (valency: 2
15
)
Return value: Word
Value
Meaning
0 ... 65535
Value of type word" corresponding to the transmitted bit values.
Example
Calling the function in ST:
wResult := L_TBConvBitsToWord(0, 1, 1, 0, 1, 0, 0, 1,
1, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0);
(* dwResult = 406 *)
- ESMD smd tmd remote keypad (4 pages)
- EPM Programmer EEPM1RA (114 pages)
- ESMDC (36 pages)
- SMD Frequency Inverter 0.37kW-22kW (116 pages)
- SMD Frequency Inverter: Basic I/O with CANopen 0.25kW-4.0kW (36 pages)
- SMD 0-25kW-4-0kW (112 pages)
- smd Series Drives (32 pages)
- ESV SMV remote keypad H0 (2 pages)
- ESV SMV remote keypad H1 (2 pages)
- SV SMV additional I-O module (14 pages)
- EEPM1RA EPM (26 pages)
- SMVector RS-485 LECOM (29 pages)
- E84AYM10S (4 pages)
- E84AYCET EtherCAT MCI module (109 pages)
- EZAMBKBM (6 pages)
- E84AYCEC (89 pages)
- ERBPxxxRxxxx Brake resistor 200W-300W (134 pages)
- E84AYCPM (115 pages)
- E84AYCEO (165 pages)
- E84AYCER (94 pages)
- E84AVSCx 8400 StateLine C (76 pages)
- EZVxxxx-000 Power supply unit AC 230V 5A-20A (62 pages)
- E84AYCIB (75 pages)
- E82ZWBRB (48 pages)
- EZVxx00−001 Power supply unit AC 400V 5A-20A (64 pages)
- E82ZWBRE (64 pages)
- EZAEBK1001 (94 pages)
- E94AYAE SM301 (134 pages)
- E94AYAE SM301 (74 pages)
- E94AYAE SM301 (140 pages)
- E94AZPS (114 pages)
- E94AYCIB (78 pages)
- E94AYCIB (124 pages)
- E94AZEX100 (84 pages)
- EZS3-xxxA200 Sinusoidal filter 115-150A (44 pages)
- E94AZHA0051 (104 pages)
- E94AZCDM030 (72 pages)
- EZS3-xxxA200 Sinusoidal filter 180-480A (74 pages)
- E94AYCCA (114 pages)
- E94AYCCA (188 pages)
- E94AZHB0101 (104 pages)
- E94AYCPM (125 pages)
- E94AYCPM (114 pages)
- E94AYCET (140 pages)
- E94AYCET (103 pages)