beautypg.com

Immediate input with mask (iim) – Rockwell Automation 1747-PT1, D1747NP002 Hand-Held Terminal User Manual

Page 261

background image

Instructions

Chapter 18
I/O Message and Communication

18–15

This example assumes that the Comms Servicing Selection bit S:2/15 is clear
and that this is the only active MSG instruction.

Important: You may program the SVC instruction unconditionally.

Immediate Input with Mask

IIM

Output Instruction

(IIM)

IIM

IMMEDIATE IN w MASK
Slot

I:4.0

Mask

00FF

F1

F2

F3

F4

F5

ZOOM on IIM –(IIM)– 2.0.0.0.1
NAME: IMMEDIATE INPUT w/ MASK
SLOT: I1:4.0 0000 0000 0000 0000
MASK: 00FF 00FF

EDT_DAT

HHT Ladder Display:

HHT Zoom Display:

Ladder Diagrams and APS Displays:

(online monitor mode)

This instruction updates input data before the normal input scan. When the
IIM instruction is enabled, the program scan is interrupted. Data from a
specified I/O slot is transferred through a mask to the input data file, making
the data available to instructions following the IIM instruction in the ladder
program.

This instruction operates on the inputs assigned to a particular word of a slot
(16 bits maximum). For the mask, a 1 in an input’s bit position passes data
from the physical input slot to the input data file. A 0 inhibits data from
passing from the source to the destination.

Entering Parameters

SLOT: Specify the slot number and the word number pertaining to the slot.
A slot can have up to 8 words for fixed and SLC 5/01 and 32 words for SLC
5/02.

I:0.0

Inputs of slot 0, word 0 (fixed I/O controller)

I:0.1

Inputs of slot 0, word 1 (fixed I/O controller)

I:1.0

Inputs of slot 1, word 0

Immediate Input with Mask
(IIM)