124
Program Examples with IOWR Instruction
Section 10-5
10-5 Program Examples with IOWR Instruction
Note
After writing programs, make sure that the programs work properly.
Example 1: Unit 0 in Linear Mode
In the following example, the present counter value of counter 1 is changed.
Example 2: Unit 0 in Linear Mode
In the following example, the data of range 0 is changed.
Bit 25506 will be turned ON when the IOWR instruction is executed with no
errors and turned OFF if an error results.
DIFU(13) XXXX1
XXXXX
DIFD(14) XXXX2
XXXXX
XXXX1
XXXX2
@IOWR
#F100
D0080
#0002
10606
10607
Operating Unit Busy
25506
10614
Error
Data has
been written.
Data Transfer
Completion
Error Flag
10615
Start
DIFU(13) XXXX1
XXXXX
@IOWR
#0000
D0000
#0005
DIFD(14) XXXX2
XXXXX
XXXX1
XXXX2
Start
10606
10607
Operating Unit Busy
25506
10614
Data Transfer
Completion
Error Flag
Error
Data has
been written.
10615
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 ...