
115
SECTION 10
Using IORD and IOWR Instructions
The IORD and IOWR instructions are enabled with the C200HE, C200HG, or C200HX PCs.
These instructions make it possible to read data from the DM area allocated to the High-speed Counter Unit when it is
turned ON or restarted, change the present counter value, or change values set in the High-speed Counter Unit.
The IORD and IOWR instructions can be used only if word n+6 bit 06 is set to 0 (i.e., the High-speed Counter Unit is
not operating).
10-1 IORD and IOWR Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
116
10-1-1
IORD Instruction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
116
10-1-2
IOWR Instruction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
117
10-2 Control Codes of IORD and IOWR Instructions . . . . . . . . . . . . . . . . . . . . . .
119
10-3 Types of Data Written with IOWR Instruction. . . . . . . . . . . . . . . . . . . . . . . .
121
10-4 Program Examples with IORD Instruction . . . . . . . . . . . . . . . . . . . . . . . . . .
123
10-5 Program Examples with IOWR Instruction . . . . . . . . . . . . . . . . . . . . . . . . . .
124
10-6 Flags Used for IOWR Instruction and Data Transfer . . . . . . . . . . . . . . . . . . .
126
Summary of Contents for C200H-CT021
Page 1: ...C200H CT021 High speed Counter Unit Operation Manual Revised December 2000 ...
Page 2: ...iv ...
Page 4: ...vi ...