62
Example 2
The acceleration time of the X axis is changed to 500 ms.
DIFU(13)
R1
Work bit
Set in the
expansion DM
area the
positioning data
described below.
Set the address of the acceleration time of
the X axis.
Set the first source word of the acceleration
time data.
Set the source unit number (0) a total of
two words to be transmitted.
IOWR
#4406
D0100
#0002
R3
R2
R3
R1
R2
25506 (=)
Execution condition
OUT (Work bit)
Set in the
expansion DM
area the
positioning data
described in the
following.
OUT (Work bit)
Settings
DM
D0100
D0101
0500
0000
Means 500 ms.
4-9-4 Execution Timing of IOWR Instruction
Refer to the following for the execution timing and processing method of the
IOWR instruction.
Set
Transfer data
Format
check
Data
check
(1)
(2)
Data processing
(3)
Within one cycle
The completion time varies with the data to
be transferred and the number of words.
IOWR instruction
1, 2, 3...
1. The PC performs a format check to confirm whether the designation of the
operand of the IOWR instruction is correct. ER Flag 25503 will be turned
OFF if the designation is correct. ER Flag 25503 will be turned ON and the
IOWR instruction will not be executed if the designation is wrong.
2. The MC Unit performs a data check to confirm if the MC Unit can process the
data designated with the operand. Flag 25506 will be turned ON if the MC
Unit can process the data. Flag 25506 will be turned OFF and the IOWR
instruction will not be executed if the MC Unit cannot process the data.
3. The range of the data transferred from the PC is checked. The data will be
transferred to the specified address if the data is within the acceptable
range. The data will not be transferred, bit 14 of word n+8 will be turned ON,
and the corresponding error number will be output to word n+9 or word I+12
of the expansion data area if the data is not within the acceptable range.
IOWR Instruction
Section 4-9
Summary of Contents for C200H-MC221 -
Page 1: ...Cat No W315 E1 03 Motion Control Unit C200H MC221 OPERATION MANUAL ...
Page 2: ......
Page 3: ...C200H MC221 Motion Control Unit Operation Manual Details Revised June 2010 ...
Page 4: ...iv ...
Page 6: ...vi ...
Page 10: ......
Page 12: ......
Page 16: ...xvi ...
Page 42: ......
Page 48: ......
Page 196: ......
Page 212: ......
Page 242: ......
Page 258: ......
Page 304: ......