Installation manual

Publication 1747-RM001G-EN-P - November 2008
Understanding Interrupt Routines 11-23
If you want to vary the number of items that are packaged together, simply
change the number in the DII preset parameter using a MOV instruction.
DII Parameters
The following parameters are associated with the DII function. These
parameters have status file addresses that are described here.
DII Pending Bit (S:2/11) - When set, this bit indicates that the DII
Accumulator (S:52) equals the DII preset (S:50) and the ladder file
number specified by the DII File Number (S:46) is waiting to be
executed. It is cleared when the DII File Number (S:46) begins
executing, or on exit from the REM Run or REM Test mode.
DII Enable Bit (S:2/12) - To program this feature, use the data monitor
function to set/clear this bit, or address this bit with your ladder
program. This bit is set in its default condition. If set, it allows execution
of the DII subroutine if the DII File Number (S:46) is non-zero. If clear,
when the interrupt occurs, the DII subroutine will not execute and the
DII Pending bit is be set. The DII function continues to run anytime
the DII file (S:46) is non-zero. If the pending bit is set, the enable bit is
examined at the next end of scan.
DII Executing Bit (S:2/13) - When set, this bit indicates that the DII
interrupt has occurred and the DII subroutine is currently being
executed. This bit is cleared on completion of the DII routine,
power-up, or REM Run mode entry.
DII Overflow Bit (S:5/12) - This bit is set whenever the DII interrupt
occurs while still executing the DII subroutine or whenever the DII
interrupt occurs while pending or disabled.
Reconfigure Bit (S:33/10) - When this bit is set (1), it indicates that at
the next end of scan (END, TND, or REF), fault routine exit, STI ISR
exit, Event ISR exit, or next DII ISR exit the:
DII accumulator is cleared,
values at status words S:47 to S:50 are applied,
the pending bit is cleared, and
the DII Reconfigure bit is cleared.
DII Lost Bit (S:36/8) - This bit is set if a DII interrupt occurs while the
DII Pending bit is set.
File Number (Word S:46) - Enter a program file number (3 to 255) to be
used as the discrete input interrupt subroutine. Write a 0 value to disable
the function. This value is applied upon detection of a DII Reconfigure
bit, each DII ISR exit, and each end of scan (END, TND, or REF).
Slot Number (Word S:47) - You enter the slot number (1 to 30) to be
used as the discrete input interrupt subroutine. A zero value disables the
function. This value is applied on detection of the DII Reconfigure bit,
or on entry into the REM Run mode.