Iowr Instruction - Omron C200H-CT021 Operation Manual

High-speed counter unit
Hide thumbs Also See for C200H-CT021:
Table of Contents

Advertisement

IORD and IOWR Instructions
D: Destination Address

10-1-2 IOWR Instruction

C: Control Code
Destination Unit Number
and Number of Words
Set a data area of the PC that stores the data read from the High-speed
Counter Unit.
Example:
Set C to 0005, S to F005, and D to D0100 to read range 5 of Unit F from DM
0100 in linear or circular mode.
(@)IOWR
Control
Code
Bits 15
Bits 07
to 08
to 00
00
00 to 15
00 to 19
CC
00 to 99
F1
00
F2
F3
EC
00
Examples:
Set C to 0005 to write range 5 in linear or circular mode.
Set C to 0019 to write counter preset value 19 in preset mode.
Set C to CC07 to write the maximum count value of counter 1 in circular mode
to words m+7 and m+8.
Set a destination unit number (0 to F) in bits 15 to 12.
Set in bits 11 to 00 the number of words to which data is written.
Destination unit number
and number of words
Control Code 00XX
A set of upper and lower limits in circular or linear mode uses five words.
Therefore a block of five words must be set.
A counter preset value in preset mode uses two words. Therefore a block of
two words must be set.
C: Control code
C
S: Source address
S
D: Destination unit number and number of words
D
Description
Ranges 0 to 15 are written in linear and circular modes.
Counter preset values 0 to 19 are written in preset mode.
By specifying the word number of the DM area, data can be
written in a word range m to m+99 of the High-speed
Counter Unit.
The present counter value of counter 1 is written. Set 00 in
bits 07 to 00.
The present counter value of counter 2 is written. Set 00 in
bits 07 to 00.
The present counter values of counters 1 and 2 are written.
Set 00 in bits 07 to 00.
An error is cleared.
Section 10-1
Number of words
Unit number (0 to F)
117

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents