Programming in TwinCAT
KL85xx und KL9309
53
Version: 2.1.0
b05:
Bit 4
b06:
Bit 5
b07:
Bit 6
b08:
Bit 7
b09:
Bit 8
b10:
Bit 9
b11:
Bit 10
b12:
Bit 11
b13:
Bit 12
b14:
Bit 13
b15:
Bit 14
b16:
Bit 15
VAR_OUTPUT
wOut : WORD;
wOut:
Word composed of the 16 bits.
4.2.5.2
FB_KL85xx8BitToByte
Fig. 32: Function block FB_KL85xx8BitToByte
Application
This function block converts 8 bits to 1 byte.
VAR_INPUT
b01 : BOOL;
b02 : BOOL;
b03 : BOOL;
b04 : BOOL;
b05 : BOOL;
b06 : BOOL;
b07 : BOOL;
b08 : BOOL;
b01:
Bit 0
b02:
Bit 1
b03:
Bit 2
b04:
Bit 3
b05:
Bit 4
b06:
Bit 5
b07:
Bit 6
b08:
Bit 7
VAR_OUTPUT
byOut : BYTE;
byOut:
Byte composed of the 8 bits.
Summary of Contents for KL85 Series
Page 2: ......