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:15

PLC Programming Command Guide Reference Web Site

1 of 2

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

Immediate Output with Mask Instruction (IOM)


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

The Immediate Output with Mask (IOM) instruction allows the ladder
programmer to update data prior to the normal Output scan.

The symbol for the Immediate Output with Mask command is illustrated above. The IOM command
is placed on the right side of the rung. When the IOM rung is TRUE, the program scan is interrupted, and
data from a specified output slot is transferred through the mask to an output data file. This data is
available to the commandsin the ladder, following the IOM instruction.
The IOM operates on the outputs 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 IOM 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 output or the constant values for the IOM command may be typed. You can enter the
constant in binary, decimal, or hexadecimal.
Slot: Specifies the output slots on the PLC and specific output word. Example O:1.0 means output 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 output in the middle of a program.

02-07-2013 16:15

PLC Programming Command Guide Reference Web Site

2 of 2

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

In this example the IOM instruction retrieves data from O:2.0 and passes it through the mask. The mask
permits only the four least significant bits to be moved to the ouput register O:2.0, allowing the ladder
programmer to only update sections of the output throughout the rest of the program.

[Back] [Next Command]

02-07-2013 16:15

Potrebbero piacerti anche