12.07.2015 Views

IBM System/7 Functional Characteristics - All about the IBM 1130 ...

IBM System/7 Functional Characteristics - All about the IBM 1130 ...

IBM System/7 Functional Characteristics - All about the IBM 1130 ...

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Read Digital Input Reference RegisterO 5 8 11 16 20 26 31Op code R Fun Zeros Mod DA MA0 001 XX O 1000000001000 OX 0 OXXXXXX1 11 Ii II 1111 III 11111 III 11O 8-F 4 0 2 0 or 1 0-3 XThis command stores <strong>the</strong> contents of <strong>the</strong> 16-bit reference register associated with group 0or group 1. The choice is determined by <strong>the</strong> device address field in <strong>the</strong> command: 000000for group 0 or 000100 for group 1.The reference register contents are stored into <strong>the</strong> index register (R), or <strong>the</strong> accumulatorif R=000.The reference registers are part of <strong>the</strong> Process Interrupt feature for groups 0 and 1, andare used for comparison with <strong>the</strong> 16-point group input register. Interruption requests canbe presented for ei<strong>the</strong>r an equal or an unequal comparison; <strong>the</strong> choice is under controlof <strong>the</strong> program. (Refer to "Set Digital Input Interrupt Control" later in this chapter.)Set'Digital Input Latch ControlO 5 8 11 16 20 26 31Op code0 0 0 0 1 X X XFun0 0 11 IZeros0 0 0 0 0Mod0 0 0 0I I IDA0 X X X 0 0I I 1 I 1MAXXXXXX11111O8-F 2 0 0 0-7 0-3 XThis command sends control information to <strong>the</strong> digital input group identified by <strong>the</strong>device address field. The control information is indicated by <strong>the</strong> value of bit 15 of <strong>the</strong> indexregister (R), or <strong>the</strong> accumulator if R=000, and has <strong>the</strong> following format:0 15Not UsedI 1 I I 1 I I I 1 I 1 I I IO 0 0 0 or 1Control information in bit 15 can be directed to any of <strong>the</strong> eight possible digital inputgroups (groups 0 to 7) in a multifunction module. The setting of bit 15 determines whe<strong>the</strong>r<strong>the</strong> selected group is to operate in <strong>the</strong> latched or unlatched mode. Bit 15 set to a 1 valuespecifies <strong>the</strong> latched mode, and a 0 value specifies <strong>the</strong> unlatched mode.When <strong>the</strong> Process Interrupt feature is installed, changing modes (latched to unlatchedor unlatched to latched) resets <strong>the</strong> digital input register to <strong>the</strong> all 0's state. The registerwill remain all 0's until <strong>the</strong> next positive transition of <strong>the</strong> user's input signal (logical 0 to 1).Setting bit 15=0 also resets <strong>the</strong> digital input register to <strong>the</strong> all 0's state.Note. If while in <strong>the</strong> latched mode of operation, <strong>the</strong> user's signal has remained in <strong>the</strong>logical 1 state when unlatched mode of operation is selected, <strong>the</strong> group must be reinitiatedbefore normal unlatched mode operation takes place. Ei<strong>the</strong>r of two methods can be usedto restore <strong>the</strong> digital input register to again reflect <strong>the</strong> user's input values.1. Program <strong>the</strong> following sequence:—Issue a set-test-signal command (bit 15=0).—Establish a 3-microsecond delay.—Issue a read/reset-digital-input-register command.2. Ensure that <strong>the</strong> user's input value returns to a logical 0 after <strong>the</strong> completion oflatched mode operation.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!