Omron SYSMAC C20K Operation Manual page 109

K-type programmable controllers
Hide thumbs Also See for SYSMAC C20K:
Table of Contents

Advertisement

Timer and Counter Instructions
Examples
Extending the Counter
1813 (normally ON)
Transfers limit values
S1 to S32 to DM.
Output thru HR 0
0002
1813 (normally ON)
Transfers limit values
S33 to S64 to DM.
Output thru HR 1
0002
98
The high-speed counter normally provides 16 output bits. If more than 16 are
required, the high-speed counter may be programmed more than once. In
the following program example, the high-speed counter is used twice to pro-
vide 32 output bits.
In this program, each bit in the specified words, HR 0 and HR 1 are turned
ON under the following conditions (where S is the present count value of the
high-speed counter stored as the data of CNT 47):
Where S1
S
S2,
Where S3
S
S4,
Where S31
S
S32, HR 015 is ON.
Where S33
S
S34, HR 100 is ON.
Where S63
S
S64, HR 115 is ON.
Address Instruction
MOV(21)
0000
LD
"S1"
0001
MOV(21)
DM 32
0002
MOV(21)
MOV(21)
"S2"
DM 33
0003
MOV(21)
0004
LD
MOV(21)
0005
HDM(61)
"S32"
DM 35
0006
LD
0007
MOV(21)
HDM(61) 47
A
HR 0
0008
MOV(21)
0009
MOV(21)
MOV(21)
"S33"
0010
LD
DM 32
0011
HDM(61)
MOV(21)
"S34"
DM 33
MOV(21)
"S64"
DM 35
HDM(61) 47
B
HR 1
HR 000 is ON.
HR 001 is ON.
Section 5-11
Operands
1813
"S1"
DM
32
"S2"
DM
33
"S32"
DM
35
0002
47
HR
0
1813
"S33"
DM
32
"S34"
DM
33
"S64"
DM
35
0002
47
HR
1

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac c40kSysmac c60kSysmac c28k

Table of Contents