Basic I/O Unit Instructions
Example
0.00
1000.00
1000.01
CPU Unit
D100
D109
3-22-9 INTELLIGENT I/O WRITE: IOWR(223)
Purpose
Ladder Symbol
Variations
Applicable Program Areas
Be sure to place condition flags directly after IORD(222) instructions, and not
after any other instructions. If a condition flag is placed after another instruc-
tion, it will be affected by the execution results of that instruction.
In this example, IORD(222) is used to read data.
When CIO 0.00 is turned ON, 10 words are read from the Special I/O
Unit with unit number 3, and are stored in D100 to D109.
S
D100
1000.00
1000.01
The control code (C) varies depending on the Special I/O Unit.
Special I/O Unit (Unit #3)
Outputs the contents of the CPU Unit's I/O memory area to 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 IOWR(223) is used in a CP1L CPU Unit, Error Flag
(ER) will be turned ON.
IOWR(223)
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
S+1
S
Number of words
to transfer: 10
10 words
C: Control data
S: Transfer source and number of words
D: Transfer destination and number of words
Step program areas
Subroutines
OK
Section 3-22
Unit number: 3
IOWR(223)
@IOWR(223)
Not supported.
Interrupt tasks
OK
797
Need help?
Do you have a question about the CP - PROGRAMMING MANUAL 05-2007 and is the answer not in the manual?
Questions and answers