Output functions, Chapter 12, Chapter – Rockwell Automation 1746-BAS BASIC LANGUAGE User Manual
Page 151

1
Publication 1746-RM001A-US-P
Chapter
12
Output Functions
This chapter describes and illustrates commands that allow the transfer of data
from the BASIC or BASIC-T module to external ports PRT1, PRT2, and DH485
within the BASIC program or from the command line. Table 12.1 lists the
corresponding mnemonics.
Table 12.1 Chapter Reference Guide
If you need (to)
Use this
mnemonic
Page
Transfer data from the SLC I/O or M files to PRT1 or PRT2.
CALL 23
Transfer data from the SLC processor to a remote DH485 data
file.
CALL 28
Handle all errors that are not handled by the ONERR statement. CALL 29
Display the current PRT2 port setup.
CALL 31
Clear port PRT2 input and output buffers.
CALL 37
Transfer module output buffer to the CPU input image buffer.
CALL 54
Transfer module output buffer to the CPU M1 file.
CALL 57
Transfer module output buffer to the DH485 interface file.
CALL 85
Write module output buffer to the remote DH485 data file.
CALL 91
Write module output buffer to the remote DH485 interface file.
CALL 93
Print current PRT1 port setup.
CALL 94
Clear port PRT1 input and output buffers.
CALL 96
User LED control
CALL 112
Transmit the DF1 packet.
CALL 114
Check the DF1 XMIT status.
CALL 115
Write to a PLC data file.
CALL 123
Print hex value with zero suppression to the console device.
PH0.
Print hex value with zero suppression to PRT2.
PH0.#
Print hex value with zero suppression to PRT1.
PH0.@
Print hex value with no zero suppression to the console device.
PH1.
Print hex value with no zero suppression to PRT2.
PH1.#
Print hex value with no zero suppression to PRT1.
PH1.@
Print variables, strings, or literals to the console device; P. is
shorthand for print.
Print to port PRT2.
PRINT#
Print to port PRT1.
PRINT@
Print carriage return.
PRINT CR
Print spaces.
PRINT SPC( )
Print tabs.
PRINT TAB( )
Print numeric values in scientific notation.
PRINT USING(Fx)