Installation manual
Publication 1747-RM001G-EN-P - November 2008
5-12 Data Handling Instructions
Entering Parameters
• Source is the address of the word to be encoded. Only one bit of this
word should be on at any time. If more than one bit in the source is set,
the destination bits are set based on the least significant bit that is set. If
a source of zero is used, all of the destination bits are reset and the
arithmetic status zero bit (S:0/2) is set.
• Destination is the address that contains the bit encode information. Bits
4 to 15 of the destination are reset by the ENC instruction.
Updates to Arithmetic Status Bits
The arithmetic status bits are found in Word 0, bits 0 to 3 in the status file.
After an instruction is executed, the arithmetic status bits in the status file are
updated.
Table 5.6 Controller Function
With this Bit The Controller
S:0/0 Carry (C) always resets.
S:0/1 Overflow (V) sets if more than one bit in the source is set; otherwise
reset. The math overflow bit (s:5/0) is not set.
S:0/2 Zero (Z) sets if destination value zero.
S:0/3 Sign (S) always resets.