Omron C200H-CT021 Operation Manual page 125

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

Advertisement

IORD and IOWR Instructions
S: Source Address
118
Example:
Set C to 0005 and D to F005 to write range 5 of unit F in linear or circular
mode.
Control Code CCXX
A total of 1 to 99 words can be specified. Specify the total number of words to
which data is written.
Example:
Set C to CC07 and D to F002 to write the maximum count value of counter 1
in circular mode to words m+7 and m+8.
Control Codes F100, F200, and F300
F1 or F2 is used to write the present counter value of counter 1 or 2. Set D to
X002 because each of them uses two words.
F3 is used to write the present counter values of both counters 1 and 2. Set D
to X004 because F3 uses four words.
Example:
Set C to F100 and D to F002 to write the present counter value of counter 1 of
unit number F in linear or circular mode.
Set C to F300 and D to 1004 to write the present counter values of counters 1
and 2 of unit number 1 in linear or circular mode.
Set a data area of the PC that stores data written to the High-speed Counter
Unit.
Example:
Set C to 0005, S to D0100, and D to F005 to write range 5 of Unit F stored in
DM 0100 in linear or circular mode.
Control Code EC00
Example:
Set C to EC00, S to 000, and D to 0001 to transfer the error clear command.
Section 10-1

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents