78
Data Transfer Programs
Section 7-5
3.
Program
7-5-4
Program Example for Present Counter Value Change
The present counter value of counter 1 is changed to the value set with rotary
switches in the following example.
1,2,3...
1.
Prepare a data storage area for the source.
Set as shown in the following diagram because the unit number is 1, the
PC data area is the I/O area, and the number of transfer data blocks is 1.
MOV(21)
#0000
030
DIFU(13) 03000
10003
25315
DIFU(13) 03001
DIFD(14) 03002
03003
10614
10000
10007
03000
00001
03000
03003
00000
00000
10000
03001
03002
00001
03003
(1 cycle ON)
(SW2)
(SW1)
(SW1)
(SW2)
Data transfer
switch
Data transfer
instruction
Start
instruction
Enable
external
output
(Start/Stop)
(Data transfer completion)
Unit No. 1
Wd 0
Wd 3
Wd 4
Rotary switch (Leftmost digit
of present counter value
preset data)
Rotary switch (Rightmost digit
of present counter value preset
data)
Rotary encoder
16
points
16
points
16
points
SW1 (00000): Start switch
SW2 (00001): Data transfer switch
DM 1103
DM 1104
First word no. of source
No. of transfer data blocks and
PC data areas
Содержание C200H-CT021
Страница 1: ...C200H CT021 High speed Counter Unit Operation Manual Revised December 2000 ...
Страница 2: ...iv ...
Страница 4: ...vi ...