Tc (0) To Tc (7) - Hitachi SJ700-2 Series Instruction Manual

Easy-sequence programming software ezsq
Hide thumbs Also See for SJ700-2 Series:
Table of Contents

Advertisement

Variable name
TC (0) to
TC (7)
Timer counters
- Explanation
These variables can be used to monitor the counts of the timer counters. The timer counters "TC (0)" to
"TC (7)" usually operate as 31-bit free-running timer counters that start simultaneously with user
program startup and are incremented in a 10-ms cycle.
When a timer-start instruction (timer set) or delay operation instruction (delay on or delay off) is
executed, the timer counter corresponding to the instruction operates as the counter for output to a
specified timer contact. In this case, the counter is cleared to zero when the instruction is executed,
starts counting, and then stops counting upon reaching the specified count.
When a timer-stop instruction (timer off) is executed, the timer counter corresponding to the instruction
is cleared to zero and operates as a 31-bit free-running timer counter that is incremented in a 10-ms
cycle.
- Sample program: Program to accelerate the motor step-by-step by using a free-running timer
(Code area [Code Window])
  :
ACCEL=
DECEL=
SET-Freq=
LOOP
FW=
if
if
if
if
LBL1
SET-Freq=
goto
LBL2
SET-Freq=
goto
LBL3
SET-Freq=
goto
LBL4
FW=
wait
SET-Freq=
TC(5)=
LBL5
goto
  :
(Data area [Data Window])
U(00) = 1000
U(01) = 2000
U(02) = 3000
U(03) = 4000
Range of values
31
0 to 2
-1
1000
1000
0
1
TC(5)
<
U(00)
TC(5)
<
U(01)
TC(5)
<
U(02)
TC(5)
>=
U(03)
1000
LBL5
3000
LBL5
6000
LBL5
0
RUN
=
0
0
0
LOOP
: Set 10 seconds in variable "U (00)".
: Set 20 seconds in variable "U (01)".
: Set 30 seconds in variable "U (02)".
: Set 40 seconds in variable "U (03)".
Chapter 5 Instruction Words
Default
0
10 ms
: Set the acceleration time to 10 seconds.
: Set the deceleration time to 10 seconds.
: Set the output frequency to 0 Hz.
: Start forward rotation of the motor.
then
LBL1
: When TC (5) indicates less than 10 seconds
then
LBL2
: When TC (5) indicates less than 20 seconds
then
LBL3
: When TC (5) indicates less than 30 seconds
then
LBL4
: When TC (5) indicates 40 seconds or more
: When TC (5) is less than 10 seconds,
increase the output frequency to 10 Hz.
: When TC (5) is less than 20 seconds,
increase the output frequency to 30 Hz.
: When TC (5) is less than 30 seconds,
increase the output frequency to 60 Hz.
: When TC (5) is 40 seconds or more,
decelerate and stop the motor.
: Wait until the motor stops.
: Set the output frequency to 0 Hz.
: Clear TC (5) to zero.
5 - 35
Unit
Data size
Unsigned
2-word data
and writable
Attribute
Readable

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sj700 series

Table of Contents