Programming language, Prosec t2n – Toshiba T2N User Manual

Page 245

Advertising
background image

5. Programming Language

232

PROSEC T2N

(A) TAND (n) (B)

→

(C)

(A) TOR (n) (B)

→

(C)

(A) TEOR (n) (B)

→

(C)

(A) TENR (n) (B)

→

(C)

(A) TEST (B)

(A) +1·(A) DTST (B)+1·(B)

(A) TTST (n) (B)

SHR 1 (A)

SHL 1 (A)

(A) SHR n

→

(B)

(A) SHL n

→

(B)

Ladder Diagram Instructions (Function Instructions)

Group

FUN

No.

Name

Representation

Summary

Number of

steps

required

Execution

time

required

(

µ

s)

Remarks

Logical
Operations

57

Table AND

Finds the logical AND of the table of size n headed
by (A) and the table of size n headed by (B), and
stores it in the location headed
by (C).

5

301+8.5n

58

Table OR

Finds the logical OR of the table of size n headed by
(A) and the table of size n headed by (B), and stores
it in the location headed
by (C).

5

301+8.5n

59

Table exclusive OR

Finds the exclusive lOR of the table of size n headed
by (A) and the table of size n headed by (B), and
stores it in the location headed by (C).

5

301+8.5n

60

Table Not exclusive OR

Finds the NOT exclusive OR of the table of size n
headed by (A) and the table of size n headed by (B)
and stores it in the location headed by (C).

5

301+8.5n

64

Test

Turns the output ON if the logical AND of (A) and (B)
is other than 0.

3~5

80

65

Double-length test

Turns the output ON if the logical AND of (A)+1•(A)
plus (B)+1•(B) is other
than 0.

3~7

113

66

Bit file bit test

Decides the ON/OFF state of the (A)th bit of the bit
table size n headed by (B).

5~6

148

Shifts

68

1 bit shift right

Shifts the data in (A) 1 bit to the right (LSB direction)
and stores the result in (A). The carry flag changes
according to the result.

2

92

69

1 bit shift left

Shifts the data in (A) 1 bit to the left (MSB direction)
and stores the result in (A). The carry flag changes
according to the result.

2

92

70

1 bit shift right

Shifts the data in (A) n bits to the right (LSB direction)
and stores the result in (B). The carry flag changes
according to the result.

4~5

97

71

1 bit shift left

Shifts the data in (A) n bits to the left (MSB direction)
and stores the result in (B). The carry flag changes
according to the result.

4~5

97

Advertising