105
Function Input Mode
PERIOD
Function
Speci es the variation domain of the period variable T.
Format
PERIOD T=<default value> TO <end value>
Example
PERIOD T=0 TO PI
Explanation This instruction is used to specify the variation domain of the variable T, which is a reserved
word. The variable T varies from the <default value> to the <end value> within the area
speci ed with the AREA instruction. In the absence of a PERIOD instruction, or immediately
after an AREA instruction, the <default value> is 0, and the <end value> is 2*PI. When there
is a PERIOD instruction, the instructions included before the next AREA instruction, END
instruction, or the last line of the program are repeated based on the AREA instruction that is
valid at that time.
PI
Function
Serves as a constant that expresses the ratio of the circumference of a circle to its diameter (
S
).
Format
PI
Example
A=2*PI
Explanation This instruction is used to denote the ratio of the circumference of a circle to its diameter. Its
value is approximately 3.141593.
T
Function
Used as the period variable.
Format
T
Example
AREA0,10
PERIODT=0 to 2*PI
V=10*SIN(T)
Explanation T is a variable. A PERIOD instruction must be used to change the value of T. In the above
example, the SIN (sine) is calculated with T = 0 when the area is 0 to generate waveform
data. Next, a series of substitutions are performed until the data has been generated, setting
the value of T to PI/5 when the area 1, to 2*PI/5 when the area is 2, and to 9*PI/5 when the
area is 9.
V
Function
Serves as a variable for storing actual data.
Format
V
Example
V=10
Explanation Although V is a variable, it differs from other variables in that is consists of an array containing
the same number of elements as the length of the set waveform size, with each element in the
array storing the actual waveform data. Each element in the array is set to 0 by default and
stores a value as an expression. When the stored data is retrieved, it is necessary to perform
calculations to evaluate the expression.
13
W
aveform Maker
www.
.com
1.800.561.8187