Memcio Cqm1h de w364

Embed Size (px)

Citation preview

  • 7/28/2019 Memcio Cqm1h de w364

    1/5

    148

    IR Area Section 3-2

    3-2 IR Area

    The functions of the IR area are explained below.

    3-2-1 Input and Output Areas

    IR area bits are allocated to terminals on I/O Output Units and Dedicated I/O

    Units. They reflect the ON/OFF status of input and output signals. Input bitsbegin at IR 00000, and output bits begin at IR 10000. With the CQM1H, onlyIR 00000 through IR 01515 can be used as input bits and only IR 10000through IR 11515 can be used as output bits.

    Note Input bits cannot be used in output instructions. Do not use the same outputbit in more than one OUT and/or OUT NOT instruction, or the program will not

    execute properly.

    3-2-2 Work Areas

    The work bits can be used freely within the program. They can only be usedwithin the program, however, and not for direct external I/O. Work bits are

    reset (i.e., turned OFF) when the CQM1H power supply is turned OFF orwhen operation begins or stops. The following table shows the parts of the IRarea that have been set aside for use as work areas.

    The bits in the ranges shown below have specific functions, but can still beused as work bits when their specific functions are not being used.

    3-2-3 I/O Allocation

    I/O words are allocated to I/O Units and Dedicated I/O Units in order from theleft, beginning with IR 001 for inputs and IR 100 for outputs. The CPU Units16 input points are allocated to IR 000. I/O bits are allocated in one-wordunits, even for I/O Units that require only 8 bits.

    Note Input and output bits are not allocated to Inner Boards or Communications

    Units.

    Words Bits

    IR 016 to IR 089 (74 words) IR 01600 to IR 08915 (1,184 bits)

    IR 116 to IR 189 (74 words) IR 11600 to IR 18915 (1,184 bits)

    IR 216 to IR 219 (4 words) IR 21600 to IR 21915 (64 bits)

    IR 224 to IR 229 (6 words) IR 22400 to IR 22915 (96 bits)

    Range Function

    IR 001 to IR 015 When allocated to Input Units, these bits serve as input bits.

    IR 090 to IR 095 When a Controller Link Unit is mounted to the PC, these bitsindicate the status of the Data Link.

    IR 096 to IR 099 When the MACRO instruction is used, these bits serve asoperand input bits.

    IR 100 to IR 115 When allocated to Output Units, these bits serve as output bits.

    IR 190 to IR 195 When a Controller Link Unit is mounted to the PC, these bitsindicate information on errors and nodes in the network.

    IR 196 to IR 199 When the MACRO instruction is used, these bits serve asoperand output bits.

    IR 200 to IR 215 These bits are used by an Inner Board mounted in slot 1.

    IR 220 to IR 223 These bits serve to store the analog settings when an AnalogSetting Board is installed.

    IR 230 to IR 231 When high-speed counter 0 is used, these bits are used to storeits present value.

    IR 232 to IR 243 These bits are used by an Inner Board mounted in slot 2.

  • 7/28/2019 Memcio Cqm1h de w364

    2/5

    149

    IR Area Section 3-2

    There isnt a registered I/O table in CQM1H PCs, so it isnt necessary to regis-ter an I/O table from a Programming Device. Just mount the desired Units inthe PC and I/O is allocated automatically.

    8-point I/O Units I/O bits are allocated in one-word units, even for I/O Units that require only 8bits.

    The unused input bits (08 to 15) cannot be used as work bits, but unused out-put bits (08 to 15) can be used as work bits.

    16-point I/O Units One input word is allocated to each 16-point Input Unit and one output word isallocated to each 16-point Output Unit. Input or output points 0 to 15 corre-spond to bits 00 to 15 of the allocated word.

    CPU Unit

    Other Units(I/O Units and Dedicated I/O Units)

    Inputs and outputs are allocated sepa-rately from the left in the order that theUnits are connected.

    Input area

    16 words max.(256 bits)

    (CPU Unit inputs)

    Output area

    16 words max.(256 bits)

    Inputsonly

    Fromhere

    Fromhere

    Outputsonly

    Inputsonly

    Inputs and outputs

    16 built-ininputs (1 word)

    One word allocated

    These bits are allocated.

    8-point Units

    16-point Units

    One word allocated

  • 7/28/2019 Memcio Cqm1h de w364

    3/5

    150

    IR Area Section 3-2

    32-point I/O Units Two input words are allocated to each 32-point Input Unit and two outputwords are allocated to each 32-point Output Unit. I/O points 0 to 15 of connec-tor pin A correspond to bits 00 to 15 of the first allocated word (n) and I/Opoints 0 to 15 of connector pin B correspond to bits 00 to 15 of the next allo-cated word (n+1).

    Dedicated I/O Units Dedicated I/O Units require a predetermined number of input bits, output bits,or both input and output bits. In some Dedicated I/O Units, the number ofwords required may depend on the Units DIP switch settings.

    For example, a CQM1-AD041 Analog Input Unit requires either 4 input wordsor 2 input words. (The Analog Input Unit requires 4 input words when 4 analoginputs are being used and 2 input words when 2 analog inputs are beingused.)

    Input words and output words that were not allocated to Units can be used aswork words.

    I/O Allocation Example CPU Block Only

    This example shows the I/O allocation for a PC with two DC Input Units, twoTransistor Output Units, and a Sensor Unit.

    Two words allocated

    32-point Units

    Analog inputs

    Four words allocated

    IR 000

    IR 001

    IR 002

    IR 003

    IR 004

    IR 100

    IR 101

    IR 102

    IN

    16

    OUT16

    IN

    8

    OUT

    32

    SEN

    IN: Input UnitOUT: Output UnitSEN: Sensor Unit

    Input area

    Output area

    16 outputs

    32 outputs

    Sensor Unit

    (CPU Unit inputs)

    16 inputs8 inputs

  • 7/28/2019 Memcio Cqm1h de w364

    4/5

    151

    IR Area Section 3-2

    CPU Block and Expansion I/O Block

    When an Expansion I/O Block is connected, words are allocated started withthe CPU Block and then continuing in order to the Expansion I/O Block. Inputwords are allocated from IR 001 and output words are allocated from IR 100.

    Orderin PC

    Unit Specifications Number ofwords

    Allocated word(s)

    CPU Unit 16 inputs 1 input word IR 000

    1 CQM1-ID111 16 inputs 1 input word IR 001

    2 CQM1-OD212 16 outputs 1 output word IR 100

    3 CQM1-ID211 8 inputs 1 input word IR 0024 CQM1-OD213 32 outputs 2 output words IR 101 and IR 102

    5 CQM1-SEN01 1 sensor input 2 input words IR 003 and IR 004

    Orderin PC

    Unit Specifications Number ofwords

    Allocated word(s)

    CPU Unit 16 inputs 1 input word IR 000

    1 CQM1-ID111 16 inputs 1 input word IR 001

    2 CQM1-ID112 32 inputs 2 input words IR 002 and IR 003

    3 CQM1-OD213 32 outputs 2 output words IR 100 and IR 101

    4 CQM1-ID111 16 inputs 1 input word IR 004

    5 CQM1-ID112 32 inputs 2 input words IR 005 and IR 006

    6 CQM1-OC222 16 outputs 1 output word IR 102

    7 CQM1-AD041 2 input words 2 input words IR 007 and IR 008

    8 CQM1-IPS01 --- --- ---

    9 CQM1-DA021 2 output words 2 output words IR 103 and IR 104

    CPU Block Expansion I/O BlockI/O Control Unit I/O Interface Unit

    IR 000IR 001IR 002IR 003IR 004IR 005IR 006IR 007IR 008

    IR 100

    IR 101

    IR 102

    IR 103

    IR 104

    I

    N16

    O

    UT32

    I

    N

    32

    O

    UT16

    IN: Input UnitOUT: Output UnitAD: Analog Input UnitIPS: Analog Power Supply UnitDA: Analog Output Unit

    Input area

    (CPU Unit inputs)

    Output area

    I

    N32

    I

    N16

    16 inputs

    32 inputs

    16 inputs

    32 inputs

    2 input words

    32 outputs

    16 outputs

    2 output words

  • 7/28/2019 Memcio Cqm1h de w364

    5/5