TRTG

TRTG instruction counts downward up to preset value.

 

 

S

Timer device address to set

t

Preset value

 

Instruction

Device address

No. of Steps

Flag

M

X

Y

K

L

F

T

C

S

Z

D

@D

Int.

Error

Zero

Carry

TRTG

S

-

-

-

-

-

-

o

-

-

-

-

-

-

3

-

-

-

t

-

-

-

-

-

-

-

-

-

-

o

-

o

 

 

When enabled, TRTG instruction counts downward preset value (t) and when the accumulated value (ACC value) reaches preset value (t), Timer device(S) will be turned OFF.

You can set up the time base (t) in PLC Parameter

 

According to Timer parameter, T0~T127 is 100ms and T128~T511 is 10ms.

(EX. TRTG T1 100 : 10,000ms = 10sec.)

The TRTG is a non-retentive timer. When the TRTG instruction is disabled, it clears current value and decrements again from the beginning of preset value (t)

The range of preset (t) : 0 ~ 65535

 

 

Example)

If M00 is ON, T1 and Y15 are turned ON and TRTG instruction decrements the preset value (from 10 to 0sec). When it reaches 0sec, T1 and Y10 are turned OFF.

Even if M00 is disabled while ACC value decrements, the TRTG instruction keeps decrementing preset value. When M00 is enabled again, the TRTG instruction clears

current value and decrements the preset value (t) again from the beginning.

 

 

Even if M00 is OFF, the TRTG instruction keep decrementing preset value.

 

 

 

When M00 is ON again, the TRTG instruction counts downward from 10sec again.

 

 

 

When it reaches 0sec, T1 and Y15 are turned OFF.