IAI America ASEL User Manual

Page 131

Advertising
background image

Part 2 Programs

Chapter 3 Explanation of Commands

109

Part 2 Programs

z

TIMC (Cancel timer)

Command, declaration

Extension condition

(LD, A, O, AB, OB)

Input condition

(I/O, flag)

Command,

declaration

Operand 1

Operand 2

Output

(Output, flag)

Optional

Optional

TIMC

Program

number

Prohibited

CP

[Function] Cancel a timer in other program running in parallel.

(Note)

Timers in TIMW, WTON, WTOF and READ commands can be cancelled. In the case of

WTON, WTOF and READ commands, even if timeout is not specified it is assumed that an

unlimited timer has been specified and the wait time will be cancelled.

[Example 1]

TIMC

10

Cancel the wait time in program 10.

[Example 2]

LET

1

10

Assign 10 to variable 1.

TIMC

*1

Cancel the wait time in the content of variable 1

(program 10).

[Example 3]

Program 1

Program 10

:

:

:

WTON 8 20

Program 10 waits for input 8 for 20 seconds.

:

(Wait for input 8)

TIMC

10 (Wait for input 8) Cancel the wait time in program 10.

:

:

(Note)

The steps shown in the above example represent those executed simultaneously in different

programs.

Advertising