6F3B0253

7. Instructions

Basic ladder instructions (continued)

FUN

Name

 

 

Expression

 

Function

Steps

Speed

Page

No.

 

 

 

 

 

 

 

 

 

(s)

 

Counter

C

 

CNT

 

 

Q

Counts the number of cycles

 

 

 

 

 

 

 

 

 

 

 

E

 

A B

 

 

 

the count input (C) comes ON

 

 

 

 

 

 

 

 

 

 

 

while the enable input (E) is

 

 

 

 

 

 

 

 

 

 

 

ON, and turns ON output (Q)

2

22.6

132

 

 

 

 

 

 

 

 

when the count reaches to the

 

 

 

 

 

 

 

 

 

 

 

value specified by A. B is a

 

 

 

 

 

 

 

 

 

 

 

counter register.

 

 

 

Master control set

−−

 

[ MCS ]−

 

Turns OFF power rail between

1

3.75

 

 

 

 

 

 

 

MCS and MCR when MCS

 

(in a

133

Master control reset

−−

 

[ MCR ]−

 

1

 

 

 

 

 

 

 

 

input is OFF.

pair)

 

 

 

 

 

 

 

 

 

 

 

Jump control set

−−

 

[ JCS ]−

 

Jumps from JCS to JCR when

1

2.75

 

 

 

 

 

 

 

JCS input is ON.

 

(in a

134

Jump control reset

−−

 

[ JCR ]−

 

1

 

 

 

 

 

 

 

 

 

pair)

 

 

 

 

 

 

 

 

 

 

 

 

End

−−

 

[ END ]−

 

Indicates end of main program

1

1.4

135

 

 

 

 

 

 

 

 

or sub-program.

 

 

 

 

 

 

 

 

 

 

 

Data transfer instructions

FUN

Name

Expression

 

Function

Steps

Speed

Page

No.

 

 

 

 

 

 

(s)

 

018

Data transfer

[ A MOV B ]

 

 

Transfers data of A to B.

3

4.2

136

019

Double-word

[ A+1A DMOV B+1B ]

Transfers double-word data

3

7.2

137

 

data transfer

 

 

 

of A+1A to B+1B.

 

 

 

 

 

 

 

020

Invert transfer

[ A NOT B ]

 

 

Transfers bit-inverted data of

3

4.6

138

 

 

 

 

 

A to B.

 

 

 

 

 

 

 

 

022

Data exchange

[ A XCHG B ]

 

Exchanges data of A with B.

3

6.5

139

024

Table initialize

[ A TINZ (n)

B ]

 

Transfers data of A to n

3

 

140

 

 

 

 

 

registers starting with B.

 

 

 

 

 

 

 

 

 

025

Table transfer

[ A TMOV (n) B ]

 

Transfers data of n registers

 

 

 

 

 

 

 

 

starting with A to n registers

3

 

141

 

 

 

 

 

starting with B.

 

 

 

026

Table invert

[ A TNOT (n) B ]

 

Transfers bit-inverted data of

 

 

 

 

transfer

 

 

 

n registers starting with A to

3

 

142

 

 

 

 

 

n registers starting with B.

 

 

 

090

Multiplexer

[ A MPX (n)

B

C ]

Transfers data from the

 

 

 

 

 

 

 

 

register specified by B in the

5

70.6

176

 

 

 

 

 

table, size n starting with A,

 

 

 

 

 

 

 

 

 

 

 

 

 

to C.

 

 

 

091

Demultiplexer

[ A DPX (n)

B

C ]

Transfers data from A to the

 

 

 

 

 

 

 

 

register specified by B in the

5

71.5

177

 

 

 

 

 

table, size n starting with C.

 

 

 

Basic Hardware and Function 107

Page 109
Image 109
Toshiba 6F3B0253 user manual Data transfer instructions, Cnt