Sei sulla pagina 1di 3

Menu

1 of 1

http://plcguide.mrplc.com/menu.shtml

Menu
Command Index
Basic Instructions
Timer & Counter
Compare
Data
Math
Register and Sequencer
Program Control
Communication
Programming References
Example Programs
PLC GuestBook
Links
Down Loads

Send Comments

2001-2006
All Rights Reserved
Your IP Address is: 117.222.1.67

02-07-2013 16:11

PLC Programming Command Guide Reference Web Site

1 of 2

http://plcguide.mrplc.com/prgcon/iim.html

Immediate Input with Mask Instruction (IIM)


[Introduction Page] [Command Index] [Programming References]

The Immediate Input with Mask (IIM) instruction allows the ladder
programmer to update data prior to the normal input scan.

The symbol for the Immediate Input with Mask command is illustrated above. The IIM command
is
placed on the right side of the rung. When the IIM rung is TRUE, the program scan is interrupted, and
data from a specified input slot is transferred through the mask to an input data file. This data is available
to the commands in the ladder, following the IIM instruction.
The IIM operates on the inputs assigned to a particular word of a slot (16 bits maximum). For the mask, a
(1) in the bit position passes data from the source to the destination. A (0) inhibits data bits from passing
from the source to the destination.
Values and addresses are assigned to the IIM command by positioning the cursor to the right of the slot,
mask, and length location in the command and then double clicking the left mouse button. This opens a
text box so that the input or the constant values for the IIM command may be typed. You can enter the
constant in binary, decimal, or hexadecimal.
Slot: Specifies the input slot on the PLC and specific input word. Example I:1.0 means input of slot 1
word 0.
Mask: Specify a Hex constant or register address. OFFFh is a mask value that will allow all of the (1) bits
to pass through.
Length: This parameter is used to transfer more than one word per slot, only for the SLC 5/03 and 5/04
processors. For example, fixed and SLC 5/01 controllers can have up to 8 words associated with the slot.
The SLC 5/02, 5/30, 5/04, and 5/05 controllers can have up to 32 words associated with the slot.

Example Problem
Write a ladder logic program that will update a specific input in the middle of a program. The value for
the mask will be 000Fh.

02-07-2013 16:11

PLC Programming Command Guide Reference Web Site

2 of 2

http://plcguide.mrplc.com/prgcon/iim.html

In this example the IIM instruction retrieves data from I:1.0 and passes it through the mask. The mask
permits only the four least significant bits to be moved to the input register I:1.0, allowing the ladder
programmer to only update sections of the inputs to be used throughout the rest of the program.

[Back] [Next Command]

02-07-2013 16:11

Potrebbero piacerti anche