Allen-Bradley MicroLogix 1200 Reference Manual page 218

Hide thumbs Also See for MicroLogix 1200:
Table of Contents

Advertisement

17-2
Input and Output Instructions
Publication 1762-RM001C-EN-P
The IIM instruction allows you to selectively update input data without
waiting for the automatic input scan. This instruction uses the following
operands:
• Slot - This operand defines the location where data is obtained for
updating the input file. The location specifies the slot number and the
word where data is to be obtained. For example, if slot = I:0, input
data from slot 0 starting at word 0 is masked and placed in input data
file I:0 starting at word 0 for the specified length. If slot = I0.1, word 1
of slot 0 is used, and so on.
Slot 0 is the only valid slot number that can be used
IMPORTANT
with this instruction. IIM cannot be used with
expansion I/O.
• Mask - The mask is a hex constant or register address containing the
mask value to be applied to the slot. If a given bit position in the
mask is a "1", the corresponding bit data from slot is passed to the
input data file. A "0" prohibits corresponding bit data in slot from
being passed to the input data file. The mask value can range from 0
to 0xFFFF.
Bit
15 14 13 12 11 10 9
Real Input
Input Word
Mask
0
0
0
Input Data
Data is Not Updated
File
• Length - This is the number of masked words to transfer to the input
data file.
Addressing Modes and File Types can be used as shown below:
Table 17.2 IIM Instruction Valid Addressing Modes and File Types
For definitions of the terms used in this table see Using the Instruction Descriptions on page4-2.
Data Files
Parameter
Slot
Mask
• •
• • •
Length
8
7
6
0
0
0
0
0
1
1
Updated to Match Input Word
Function Files
5
4
3
2
1
0
1
1
1
1
1
1
Address
Address
Mode
Level
• • •

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Micrologix 1500

Table of Contents