Omron CP - PROGRAMMING MANUAL 05-2007 Programming Manual page 827

Cp1h/cp1l cpu unit
Table of Contents

Advertisement

Basic I/O Unit Instructions
Precautions
Example
3-22-8 INTELLIGENT I/O READ: IORD(222)
Purpose
Ladder Symbol
Variations
Applicable Program Areas
Operands
794
Do not read or write the system word (D) from any other instruction.
7SEG(214) will not operate correctly if the system word is accessed by
another instruction. The system word is not initialized by 7SEG(214) in the
first cycle when program execution starts. If 7SEG(214) is being used from
the first cycle, clear the system word from the program.
7SEG(214) will not operate correctly if I/O refreshing is not performed with the
Output Unit connected to the 7-segment display after 7SEG(214) is executed.
Consequently, do not connect the external matrix to the following Units.
• Communications Slaves (DeviceNet or CompoBus/S Slaves)
In this example, 7SEG(214) converts the 8 digits of BCD data in D100 and
D101 and outputs the data through CIO 102.
There are 8 digits of data being output and the 7-segment display's logic is the
same as the Output Unit's logic, so the control data (C) is set to 0004. D32000
is used as the system word, D.
P_On
Always ON Flag
Reads the contents of memory area of a Special I/O Unit or CPU Bus Unit.
This instruction can be used in the CP1H CPU Units only. It cannot be used in
the CP1L CPU Units. If IORD(222) is used in a CP1L CPU Unit, Error Flag
(ER) will be turned ON.
IORD(222)
C
S
D
Variations
Executed Each Cycle for ON Condition
Executed Once for Upward Differentiation
Executed Once for Downward Differentiation Not supported.
Immediate Refreshing Specification
Block program areas
OK
OK
C:
Depends on Special I/O Unit or CPU Bus Unit.
S:
Special I/O Unit: 0000 to 005F hex
(to specify unit numbers 0 to 95)
CPU Bus Unit:
(to specify unit numbers 0 to F hex)
S+1:
Number of words to transfer
(0001 to 0080 hex, depends on Special I/O Unit or CPU Bus Unit)
7SEG(214)
D100
S
102
O
004
C
D
D32000
C: Control data
S: Transfer source and number of words
D: Transfer destination
Step program areas
Subroutines
OK
8000 to 800F hex
Section 3-22
IORD(222)
@IORD(222)
Not supported.
Interrupt tasks
OK

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents