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

Page 256

Advertising
background image

User's manual

243

5. Programming Language

(A) MAVE (n) (B)

→

(C)

(A) DFL (B)

→

(C)

(A) UL (B)

→

(C)

(A) LL (B)

→

(C)

(A) MAX (n) (B)

(A) MIN (n) (B)

(A) AVE (n) (B)

(A) FG (n) (B)

→

(C)

(A) DB (B)

→

(C)

(A)+1·(A) RT (B)

(A) INTG (B)

→

(C)

(A) RAMP (B)

→

(C)

Ladder Diagram Instructions (Function Instructions)

Group

FUN

No.

Name

Representation

Summary

Number of

steps

required

Execution

time

required

(

µ

s)

Remarks

Function

56

Moving average

Moves the data of (A) to the n-word data table
headed by (B) and calculates the average value and
stores it in (C).

5

237+18.4n

61

Digital Filter

Calculates the data of (A) by the value of (B)
according to the filtering function and stores it in (C).

4

109

160

Upper limit

Applies an upper limit to the contents of (A) using the
value of (B), and stores the results in (C).

4~6

88

161

Lower limit

Applies a lower limit to the contents of (A), using the
value of (B), and stores the results in (C).

4~6

88

162

Maximum value

Searches the n-word data table headed by (A) for the
maximum value, stores the maximum value in (B),
and stores the pointer with the maximum value in
(B)+1.

4

150+18n

163

Minimum value

Searches the n-word data table headed by (A) for the
minimum value, stores the minimum value in (A), and
stores the pointer with the minimum value in (B)+1.

4

150+18n

164

Average value

Calculates the average value for the n-word data
table headed by (A), and stores it in (B).

4

138+17n

165

Function generator

Using the function defined by the 2x n parameters
headed by (B), finds the function value which takes
the contents of (A) as its argument, and stores it in
(C).

5~6

140

166

Dead band

Finds the value which gives the dead band indicated
by (B) for the contents of (A), and stores it in (C).

4~6

91

167

Square root

Finds the square root of the double-length data (A)+1
and (A), and stores it in (B).

3~5

102

168

Integral

Calculates the integral for the value of (A) from the
integral constant for (B)+1 and (B), and stores the
result in (C)+1•(C).

4~5

154

169

Ramp function

Generates the ramp function for the value of (A) the
parameters starting with (B), and stores it in (C).

4~5

246

Advertising