
5. CUSTOM MACRO
133
5.8 External Output Command
Name Format Description
Open
command
POPEN This command makes a connection with
an external I/O device.
Specify this command before executing
a series of output data commands.
Data output
command
(binary)
BPRNT [ a #b [c] a
1
#b
1
[c
1
] ... ]
a: Output character string
b: Number of a variable
holding output data
c: Specifies the number
of significant decimal
places of a variable.
This command outputs character
strings and the contents of variables
to an external I/O device (in binary).
Data output
command
(ISO/EIA)
DPRNT [ a #b [cd] a
1
#b
1
[c
1
d
1
] ... ]
a: Output character string
b: Number of a variable
holding output data
c: Specifies the number
of significant integer
digits of a variable.
d: Specifies the number
of significant decimal
places of a variable.
This command outputs character
strings and the contents of variables
to an external I/O device (in ISO/EIA
according to the setting).
Related parameter: PRM6001#1(PRT)
Close
command
PCLOS This command clears the connection
with an external I/O device.
Specify this command after all data
output commands are executed.
5.9 Command Range
Item Contents
Variables Local variable: #1–#33
Common variable: #100–#149, #500–#531
Additional common variable: #100–#199, #500–#999
System variable: #1000–#19988
Value of variables Maximum value "10
47
Minimum value "10
–29
Constant in expression Maximum value "99999999
Minimum value "0.0000001
Decimal point possible
Arithmetic precision Decimal 8 digits
Macro call duplex Max. 4 loops
Iteration
classification no.
1 to 3
Nesting Max. 5 loops
Nesting of
subprograms
Max. 4 loops (8 loops including macro calls)