DUTY

DUTY

 

DUTY instruction is used to replace I/O module when CPU is running (Online status).

 

n1

Scan for On status

n2

Scan for OFF status

D

Clock device address

 

Instruction

Device address

No. of Steps

Flag

M

X

Y

K

L

F

T

C

S

Z

D

@D

Int.

 

Error

Zero

Carry

DUTY

n1

o

o

o

o

o

o

o

o

-

o

o

o

o

4

o

-

-

n2

o

o

o

o

o

o

o

o

-

o

o

o

o

D

-

-

-

-

-

o

-

-

-

-

-

-

-

 

When enabled, the DUTY instruction turns D (clock device) On in n1’s scan time and Off in n2’s scan time.

The range of D is from F0100 to F0107.

 

Error)

  • If the D is out of range, F110 (Error flag) is set.

  • If n1 or n1 is 0 or minus (-) value, F110 (Error flag) is set.

 

Example)

If X10 is ON, the DUTY instruction turns ON F100 in 10sane and turns Off F100 in 20scan.