Omron SYSMAC C20K Operation Manual page 108

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

Advertisement

Timer and Counter Instructions
1813 (normally ON)
0002 (start input)
Start input 0002
Count input 0000
200
Output 0500
600
Output 0501
Response Speed
Precautions
The values must be four-digit BCD in the range 0000 to 9999. Note that fail-
ure to enter BCD values will not activate the ERR flag. Always set a lower
limit which is less than the corresponding upper limit. MOV is useful in setting
limits. The following ladder diagram shows the use of MOV for setting limits
and the associated timing diagram shows the state of the relevant bits of the
result word (IR 05) as the counter is incremented.
1500
2000
The maximum response speed of the high-speed counter hardware is 2 kHz.
Note however that the start signal, reset signal (in the case of soft reset), and
corresponding outputs are all processed by software. Because of this, re-
sponse may be delayed by the cycle time.
When programming the high-speed counter with the GPC, "00" is displayed
on each of the three lines below the instruction code (HDM(61)). Do not alter
the second and third lines; if they are not "00," an error occurs when an at-
tempt is made to transfer the program from the GPC to the PC.
Do not program the high-speed counter between JMP and JME. The
high-speed counter can be programmed between IL and ILC. However, the
hard reset signal remains active, causing the corresponding output(s) to turn
ON or OFF, even when the IL condition is OFF.
MOV(21)
#0200
DM 32
MOV(21)
#1500
DM 33
Transfers
preset
value to
DM 32 to
MOV(21)
35
#0600
DM 34
MOV(21)
#2000
DM 35
Address Instruction
0000
0001
HDM(61) 47
05
Corresponding
0002
result word is 05
0003
0004
0005
0006
Section 5-11
Operands
LD
1813
MOV(21)
#
0200
DM
MOV(21)
#
1500
DM
MOV(21)
#
0600
DM
MOV(21)
#
2000
DM
LD
0002
HDM(61)
32
33
34
35
47
05
97

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac c40kSysmac c60kSysmac c28k

Table of Contents