IAI America ASEL User Manual

Page 256

Advertising
background image

Part 2 Programs

Chapter 3 Explanation of Commands

234

Part 2 Programs

z

TSLP (Task sleep)

Command, declaration

Extension condition

(LD, A, O, AB, OB)

Input condition

(I/O, flag)

Command,

declaration

Operand 1

Operand 2

Output

(Output, flag)

Prohibited

Prohibited

TSLP

Time

Prohibited

CP

[Function] Set the time during which the applicable task will sleep, in order to distribute the processing

time to other tasks.

If the task level is set to User HIGH, this command must always be specified.

The applicable task will sleep during the set time.

The time in operand 1 is set in msec.

An appropriate time setting must be examined on the actual system. (Normally approx. 1 to 3

is set.)

(If the ladder statement becomes long, state this command multiple times between steps, as

necessary.)

This command can also be used with non-ladder tasks.

Advertising