Iowr Program Example - Omron CS1W-213 - REV 02-2008 Operation Manual

Position control units
Table of Contents

Advertisement

Writing Data with IOWR
Note
5-4-6

IOWR Program Example

second IOWR instruction is executed once more in the next cycle. Execution
of this second instruction is repeated until all the data in the receive buffer has
been processed. For this reason, it takes at least two cycles for transfer of all
the data to be completed and the instruction to start to be output.
Depending on the timing of IOWR instructions, transfer errors may not be
reflected in the CPU Unit. (For details, refer to 5-1 Transferring and Saving
Data.)
A sample program is provided below for writing the indicated speed data to
the PCU. The beginning word address of the transfer data is to be D00500,
and the other settings are as indicated. The data will be transferred to the
PCU designated as unit number 2.
Data
Address
(transfer destination)
Speed #0
112C
112D
Speed #1
112E
112F
CPU Unit
Unit number
DM
(transfer source)
00500
00501
00502
00503
PCU (NC413; unit number 2)
Data area
Data transfer
Section 5-4
Setting
03E8 (1,000 pps)
0000
157C (5,500 pps)
0000
Speed #0
Speed #1
135

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents