Professional Documents
Culture Documents
ADDASDAWD
ADDASDAWD
ms.
Examples
The following example will set the point of interest on the referenced conveyor
The folowing example will save the current speed of the belt associated with the
belt.speed = BELT(%b, 1)
Related Keywords
DEFBELT
DEVICE
SETBELT
BITS
Real-valued function that reads multiple digital signals and returns the value corresponding to the
binary bit pattern.
Syntax
Usage Considerations
External digital input or output signals or internal software signals can be referenced.
Any group of up to 32 signals can be read provided that all the signals in the
Parameters
Details
This function returns a value that corresponds to the binary bit pattern present
on 1 to 32 digital signals.
The binary representation of the value returned by the function has its least-significant bit
determined by signal numbered first_sig and its higher-order bits
Example
The example below assumes that the following input signal states are present.
State: 1 1 0 1 0 1 1 0
The following statement will return a value of 5 for variable "x" because the four
signals 1003, 1004, 1005, and 1006 can be interpreted as a binary representation
of that value.
x = BITS(1003, 4)
Related Keywords
IO
Chapter 3: Keyword Details
RESET
SIG
SIG.INS