L9_IMIO: Immediate I/O
(Original Document)
Naming
Name in LL984 Editor
Function Block Name
name of legacy 984 instruction
name in other tools and editors like:
  • Type Library Browser
  • Data Editor
  • Animation Tables
  • Search Results
Function Description
The L9_IMIO EFB permits access of specified I/O modules from within LL984.
This differs from normal I/O processing, where inputs are accessed at the beginning of the logic solve for the segment in which they are used and outputs are updated at the end of the segment’s solution.
The I/O modules being accessed must reside in the local backplane with the Quantum PLC.
In order to use L9_IMIO EFBs, the local I/O modules to be accessed must be designated in the I/O Map in your panel software.
Representation
Parameters
Input Pin
Name
Data Type
Address Range
Meaning
Top
IN
ON = enables the immediate I/O access
Node
Node Type
Name
Data Type
Address Range
Meaning
Top
IN
CONTREG
ArrUInt2
%MW
physical address of the I/O module (CONTREG[1]) and detected error status (CONTREG[2])
For more information see tables below.
Bottom
IN
IOFUN
UINT
1...3
type of operation (constant integer in the range of 1...3)
For more information see tables below.
Output Pin
Name
Data Type
Address Range
Meaning
Top
OUT
BOOL
ON = I/O access succeeded
(Echoes the status of the IN input).
Bottom
ERR
BOOL
ON = detected error
CONTREG Node
The first of two contiguous %MW words is entered in CONTREG[1]. CONTREG[2] is implied.
Word
Content
CONTREG[1]
This word specifies the physical address of the I/O module to be accessed.
For more information see tables below.
CONTREG[2]
This word logs the detected error status, which is maintained by L9_IMIO.
For more information see tables below.
Physical Address of the  I/O Module
The high byte of CONTREG[1] allows you to specify which rack the I/O module to be accessed resides in, and the low byte allows you to specify slot number within the specified rack where the I/O module resides.
Rack/Slot Bit Description
Control Expert-IEC bits
Function
0...4 (LSB)
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
Slot number:
0
0
0
0
1
slot 1
0
0
0
1
0
slot 2
0
0
0
1
1
slot 3
0
0
1
0
0
slot 4
0
0
1
0
1
slot 5
0
0
1
1
0
slot 6
0
0
1
1
1
slot 7
0
1
0
0
0
slot 8
0
1
0
0
1
slot 9
0
1
0
1
0
slot 10
0
1
0
1
1
slot 11
0
1
1
0
0
slot 12
0
1
1
0
1
slot 13
0
1
1
1
0
slot 14
0
1
1
1
1
slot 15
1
0
0
0
0
slot 16
5...7 (LSB)
not used
8...10 (MSB)
Bit 10
Bit 9
Bit 8
Rack number:
rack 1 only for Quantum
racks 1 through 4 can be used for 32-bit Compact
0
0
1
rack 1
0
1
0
rack 2
0
1
1
rack 3
1
0
0
rack 4
11...15 (MSB)
not used
Detected Error Status
CONTREG[2] will contain the following detected error code when L9_IMIO detects an error:
Detected Error Code
Meaning
2001
invalid type specified in the bottom node
2002
detected error with the specified I/O slot
Either an invalid slot number entered in CONTREG[1] or the I/O Map does not contain the correct module definition for this slot.
2003
A type 3 operation is specified in IOFUN, and the module is not bidirectional.
F001
specified I/O module is not healthy
IOFUN Node
Enter a constant integer in the range 1...3 in IOFUN. The value represents the type of operation to be performed by the L9_IMIO EFB, where:
Integer Value
Type of Immediate Access
1
input operation: transfers data from the specified module to state RAM
2
output operation: transfers data from state RAM to the specified module
3
I/O operation: does both input and output if the specified module is bidirectional