20 parity conversion instruction (parity) – Yaskawa Ladder Works Programming Manual User Manual
Page 50

2.20 PARITY CONVERSION Instruction (PARITY)
2-33
2.20 PARITY CONVERSION Instruction (PARITY)
[Outline]
The PARITY instruction counts the number of bits in the Source that are set to ON (or 1) and the
result is stored in the Dest.
[Format]
Symbol : PARITY
Full Name : Count ON Bit
Category : MATH
Icon :
[Parameter]
Parameter Name
Setting
Source
· Any integer type and double-length integer type register
· Any integer type and double-length integer type register with subscript
· Subscript register
Dest
· Any integer type and double-length integer type register (except for # and
C registers)
· Any integer type and double-length integer type register with subscript
(except for # and C registers)
· Subscript register
[Program Example]
Integer type data
Double-length integer type data