IIM (immediate input)

The IIM instruction updates inputs prior to normal output scan.
Operation details: Typically used at the beginning of an interrupt program to select or mask inputs that are immediately scanned to get the current inputs.
Languages supported: Function block diagram, ladder diagram, structured text.
This instructions applies to the L50E and L70E controllers.
IIM
IIM
IIM parameters
Parameter
Parameter Type
Data Type
Description
Enable
Input
BOOL
Instruction block enable.
  • TRUE: Execute instruction block.
  • FALSE: Do not execute.
InputType
Input
USINT
Identifies the type of input:
  • 0: Embedded input.
  • 1: Plug-in input.
InputSlot
Input
USINT
Identifies the input slot.
  • 0: Embedded input
  • 1,2,3,4,5: Plug-in slot number. (Slots are numbered from left to right, starting with number 1.)
For embedded input, always 0.
For Plug-in input, input slot is 1,2,3,4,5 (Plug-in slot number, starting with left-most slot = 1).
Sts
Output
USINT
Immediate input scan status.
IIM status (Sts) codes:
  • 0x00: Not enabled (no action taken).
  • 0x01: Input/output scan success.
  • 0x02: Input/output type invalid.
  • 0x03: Input/output slot invalid.
ENO
Output
BOOL
Enable output.
  • TRUE: Input updated.
  • FALSE: Input not updated.
Applies only to ladder diagram programs.

IIM examples

IIM function block diagram example
IIM function block diagram example
IIM ladder diagram example
IIM ladder diagram example
IIM structured text example
IIM structured text example
Results
Results
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal