Programming language, User's manual – Toshiba T2N User Manual

Page 246

Advertising
background image

User's manual

233

5. Programming Language

(A) TSHR (m)

(B)

(A) TSHL (m)

(B)

D SR Q
S (n)
E (A)

D DSR Q
S (n)
E
L

(A)

SFT (A)

Ladder Diagram Instructions (Function Instructions)

Group

FUN

No.

Name

Representation

Summary

Number of

steps

required

Execution

time

required

(

µ

s)

Remarks

Shift

72

m bit file n bits shift right

When (B) is a register:
Takes the m-word table headed by (B), and shifts it
to the right (low address direction) by the number of
words indicated by (A).

When (B) is a device:
Takes the m-bit file headed by (B), and shifts it to the
right (LSB direction) by the number of bits indicated
by (A). The carry flag changes according to the
result.

4~5

73

m bit file n bits shift left

When (B) is a register:
Takes the m-word table headed by (B), and shifts it
to the left (high address direction) by the number of
words indicated by (A).

When (B) is a device:
Takes the m-bit file headed by (B), and shifts it to the
left (MSB direction) by the number of bits indicated
by (A). The carry flag changes according to the
result.

4~5

74

Shift register

If the enable input (E) is ON, then when the shift
input (S) comes ON, the instruction takes the
contents of the n devices headed by the device (A)
and shifts them 1 bit to the left. The carry flag
changes according to the result.

3

116

75

Bidirectional shift register

If the enable input (E) is ON, then when the shift
input (S) comes ON, the instruction takes the
contents of the n devices headed by the device (A)
and shifts them 1 bit to the left or to the right (the
shift direction depends on the state of the direction
input (L)). The carry flag changes according to the
result.

3

120

76

Device shift

Takes the contents of the device ((A)-1) which
immediatety precedes the device (A), stores them in
(A), and sets (A)-1 to 0

2

94

Advertising