Omron CS1W-MC221 - 02-2008 Operation Manual page 239

Motion control units
Table of Contents

Advertisement

IOWR and IORD Specifications
Example 2
Execution condition
R1
R3
R2
Execution Timing for IOWR
1,2,3...
212
Changing Acceleration Time of X Axis to 500 ms
DIFU(13)
Set the data
Set in the
shown below in
expansion DM
the DM Area.
area the
positioning data
described below.
IOWR
=
Settings
DM Area
Refer to the following diagrams for the execution timing and processing
method of the IOWR instruction.
Transfer data
IOWR instruction
1. The CPU Unit performs a format check to see if the designations for the
IOWR instruction operands are correct. The Error Flag will be turned ON
and the IOWR instruction will not be executed if a designation is incorrect.
2. The MC Unit performs a data check to see if the MC Unit can process the
data designated with the operands. The Equals Flag will be turned ON if
the MC Unit can process the data. The Equals Flag will not be turned ON
and the IOWR instruction will not be executed if the MC Unit cannot pro-
cess the data. The transfer will be completed by the time the Equals Flag
turns ON.
Data writing bit 06 of word n + 10/n + 18, data write error bit 7 of word n +
10/n + 18, data reading bit 08 of word n + 10/n + 18, and data read error
bit 09 of word n + 10/n + 18 will not change when an IOWR instruction
Work bit
R1
Set the address of the X-axis acceleration
time (1136 Hex corresponds to 4406).
#1136
Set the address of first source word of the
D00100
acceleration time data.
#00020000
Set the source unit number (0) and a total
of two words to be transmitted.
OUT (Work bit)
R3
OUT (Work bit)
R2
500 ms.
D0100
01F4
D0101
0000
Set
(1)
(2)
Data check
Format
and
check
processing
Within one cycle
The completion time
varies with the data to be
transferred and the
number of words.
Section 4-2

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cs1w-mc221Cs1w-mc221-v1Cs1w-mc421Cs1w-mc421-v1

Table of Contents