EasyManua.ls Logo

Galil Motion Control DMC-40x0 Series - Page 185

Default Icon
280 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
DMC-40x0 Command Reference OB • 175
OB
FUNCTION: Output Bit
DESCRIPTION:
The OB n, logical expression command defines output bit n as either 0 or 1 depending on the
result from the logical expression. Any non-zero value of the expression results in a one on
the output.
ARGUMENTS: OB n, expression where
n denotes the output bit
expression is any valid logical expression, variable or array element.
USAGE: DEFAULTS:
While Moving Yes Default Value
In a Program Yes Default Format
Command Line Yes
Controller Usage
ALL CONTROLLERS
EXAMPLES:
OB 1, POS=1 If POS 1 is non-zero, Bit 1 is high.
If POS 1 is zero, Bit 1 is low
OB 2, @IN[1]&@IN[2] If Input 1 and Input 2 are both high, then
Output 2 is set high
OB 3, COUNT[1] If the element 1 in the array is zero, clear bit 3
OB N, COUNT[1] If element 1 in the array is zero, clear bit N

Related product manuals