SIEMENS AG PRODAVE S7
Toolbox for Data Link PGs/PCs to SIMATIC S7
56
kf_integer
The function kf_integer swaps the high byte and the low byte of a transferred
16-bit value and returns the new value.
C-Adapter
unsigned short kf_integer (unsigned short);
testbit
The function testbit checks whether a specified bit is set in a byte variable. The
byte variable and the bit number are transferred to the function in the form of
parameters.
Return value = TRUE or 1 Bit is set
Return-value = FALSE or 0 Bit is not set
C-Adapter
char testbit (char value, char bitno);