Iowr Program Example - Omron CS1W-NC113 Manual

Hide thumbs Also See for CS1W-NC113:
Table of Contents

Advertisement

Writing Data with IOWR

5-4-5 IOWR Program Example

118
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 rea-
son, it takes at least two cycles for transfer of all the data to be completed and the
instruction to start to be output.
Note 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 desig-
nated as unit number 2.
Data
(transfer destination)
Speed #0
112C
112D
Speed #1
112E
112F
CPU Unit
Unit number
Address
DM
(transfer source)
00500
00501
00502
00503
Data transfer
Section
Setting
03E8 (1,000 pps)
0000
157C (5,500 pps)
0000
PCU (NC413; unit number 2)
Data area
5-4
Speed #0
Speed #1

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cs1w-nc213Cs1w-nc433Cs1w-nc233Cs1w-nc413Cs1w-nc133

Table of Contents