Omron CS1W-NC113 Manual page 129

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

Advertisement

Writing Data with IOWR
Write switch
R1
R2
R3
R4
R3
Unit: NC113
Unit number: 2
Beginning word of operating
data area: D00200
Example: Sending 200 Words of Speed and Position Data and Starting
Operation
The following ladder program can be used to transfer 100 words (50 items) of
speed data and 100 words (50 items) of position data using the IOWR instruction
and start operation.
R3
=
R5
=
200213
Busy Flag
In the above ladder diagram, when the first IOWR instruction is executed, the
Equals Flag turns ON and, at the same time, the data is transferred to the PCU.
At the PCU, this data is first stored in the receive buffer. After this, the next IOWR
instruction is executed. Because the data in the receive buffer has not been pro-
cessed (i.e., to check that the data items are within the respective ranges and
write the data to the data area), the Equals Flag, which is the completion flag for
the IOWR instruction, does not turn ON. Therefore, the second IOWR instruction
DIFU R1 (work bit)
DIFU
R1
Set the address (112C Hex)
IOWR
for the X-axis speed.
#112C
Set the beginning word of the
D00500
transfer source where the
speed data is set.
#00640002
Set the destination unit number
(2) and the number of transfer
words (100 = 64 Hex).
OUT R3 (work bit)
OUT R2 (work bit)
Set the address (11F4 Hex)
IOWR
for the X-axis position.
#11F4
Set the beginning word of the
D00600
transfer source where the
position data is set.
#00640002
Set the destination unit number
(2) and the number of transfer
words (100 = 64 Hex).
OUT R5 (work bit)
OUT R4 (work bit)
Sets #0 for the
MOV
sequence number.
#0000
D00216
Sequence Number Enable
202000
START
202001
Section
5-4
117

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cs1w-nc213Cs1w-nc433Cs1w-nc233Cs1w-nc413Cs1w-nc133

Table of Contents