Chapter 6 Applied Instructions 7. When chkCR is ON, the actual device represented by C511. Since the legal range of devices is from C0 to C511, and C511+10-1=C520 which exceeds the range, CR_ChkBit is OFF. 8. When chkHCR is ON, the actual device represented by HC50 is VarHCR1. Since the legal range of deices is from HC0 to HC255, and HC50+10-1=HC59 which does not exceed the range, HCR_ChkBit is ON. Additional remarks 1. If the value (the actual device address) in S exceeds the device range, the CHKADR instruction is not executed, SM is ON, and the error code in SR0 is 16#2003. 2.
If the value in the operand n is not between 1–1024, the CHKADR instruction is not executed, SM is ON, and the error code in SR0 is 16#200B. 6_ 6-39