VA Motion Controller Programming Manual
245
When the contact
C 211
is
O N
time , the
instruction is executed , and when the
ENAB
is
ON
,
the inverted
V449
in the second
2
bit , outputs;
if
ENAB
is
FALSE
when , without inverted output
self itself;
Execution result:
16#01
(
byte
)
---16#05
(
byte
)
10.5.6 PARITY_* (parity instruction for bit string )
LD, FBD programming language
Function:
PARITY_ *
instruction to check the input bit string is
. 1
the number of bits is odd or
even number, an odd number if the output is
FALSE
, is even if the output is
TRUE, PARITY_
*
instructions comprise team
RITY_BYTE, PARITY_WORDA
nd
PARITY _DWORD
directive, capable
of handling input bit strings of
BYTE, WORDA
nd
DWORD
types.
Note : IL, ST language programming needs to insert variables IN and OUT or use constants in
the current POU variable worksheet
PARITY_BYTE data processing instruction type
When the input bit string as a number of
bits is an odd number, the output
is FALSE; is a number of bits of an even number
of time ( including 0 th to 1 -bit ) , output
is TRUE
Funtion and Action examples
Check the number of
1
in
the address
V452
for output