116
IORD and IOWR Instructions
Section 10-1
10-1 IORD and IOWR Instructions
This section explains the configurations of the IORD and IOWR instructions.
10-1-1 IORD Instruction
C: Control Code
Examples:
Set C to 0005 to read range 5 in linear or circular mode.
Set C to 0019 to read counter preset value 19 in preset mode.
Set C to CC00 to read the operating mode set in word m in linear or circular
mode.
S: Source Unit Number
and Number of Words
Set a source unit number (0 to F) in bits 15 to 12.
Set in bits 11 to 00 the number of words from which data is read.
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.
Example:
Set C to 0005 and S to F005 to read 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
from which data is read.
Example:
Set C to CC00 and S to F001 to read the operating mode set in word m of Unit
F in linear or circular mode.
(@)IORD
C
S
D
C: Control code
S: Source unit number and number of words
D: Destination address
Bits 15
to 08
Bits 07
to 00
Description
00
00 to 15
Ranges 0 to 15 are read in linear or circular mode.
00 to 19
Counter preset values 0 to 19 are read in preset mode.
CC
00 to 99
By specifying the word number of the DM area, data can be
read in a word range m to m+99 from the High-speed
Counter Unit.
Control
code
Source unit number
and number of words
Number of words
Unit number (0 to F)
Содержание C200H-CT021
Страница 1: ...C200H CT021 High speed Counter Unit Operation Manual Revised December 2000 ...
Страница 2: ...iv ...
Страница 4: ...vi ...