
B–62073E–2/03
4.CONVERSATIONAL MACRO FUNCTION
63
Conversational macro special variables can be used with a P–CODE
program.
An arbitrary number of conversational macro special variables starting
with #30000 can be used.
To specify the variable format, the parameter (No. 8509, EVF2) allows
the user to select floating–point format as used for general macro
variables or fixed–point format.
Parameter No. 8509
EVF2=0 : Floating–point format
EVF2=1 : Fixed–point format
The usable number of conversational macro special variables is the
number set in parameter No. 8549 multiplied by n. When zero is set in
parameter No. 8549, no conversational macro special variable can be
used.
For floating–point format, n=40
For fixed–point format, n=100.
When EVF2=0 for floating–point format
Parameter No. 8549=1
#30000 to #30039
Parameter No. 8549=2
#30000 to #30079
When EVF2=1 for fixed–point format
Parameter No. 8549=1
#30000 to #30099
Parameter No. 8549=1
#30000 to #30199
Notes
1 When fixed–point format is used, a value from –32768 to +32767 can be set in a conversational
macro special variable. A fractional part, if any, is rounded before the value is stored in
fixed–point format.
If a variable in fixed–point format appears in an expression, the variable is evaluated after being
converted to floating–point format.
2 The maximum number of usable conversational macro special variables depends on the tape
memory size.
When the length of tape memory is 160 m or shorter: Maximum value of parameter
No. 8549=64
When the length of tape memory is 320 m or longer: Maximum value of parameter
No. 8549=100
The length of tape memory corresponding to the value of 1 set in parameter No. 8549 is 0.8 m.
3 The values of conversational macro special variables are preserved even if power is turned off.
4 If the value of parameter No. 8549 is changed, power needs to be turn on again.
5 Conversational macro special variables are displayed on the macro variable display screen
(SETTING), and can be entered through MDI.
6 When the value of parameter EVF2 is 1(fixed–point format), <Null> can not be used.
4.5.5
Conversational Macro
Special Variables
(#30000–)
Example