VA Motion Controller Programming Manual
246
When the contact
C 212
is
O N
time , the instruction is
executed , the address
V4 52 is
in is
one
of the
number removed , when is
1
is an odd number ,
the address
V453
output is
0
; when a is
1
the number is an
even number when ( or all
0
time ) address
V453
output
1
Execution result:
16#11010100
(
D WORD
)
---- 1
(
BOOL
)
10.5.7 R _BIT_IN_* ( instruction of a single position 0 in a
bit string )
LD, FBD programming language
Function: The R _BIT_IN_* instruction is used to input a single bit position 0 in the input bit
string , including the R_BIT_IN_BYTE and R_BIT_IN_DWORD instructions, to handle input bit
strings of BYTE, WORDAnd DWORD types.
R_BIT_IN_ BYTE IN , BIT_NO
Note : IL, ST language programming needs to insert variables IN1, IN, IN2 and OUT or use
constants in the current POU variable worksheet
R_BIT_IN_BYTE instruction processing data types
A first bit string to be operated
NO
bit
range
: BYTE
when
0 ~ 7, WORD
when
0 ~ 15
DWORD
when
0 to 31
( the other value is
invalid )
Output, when
IN1
is
FALSE
, the
output
OUT
is equal to the
input
IN;
when
IN1
is
TRUE
, the