device commands used to read or set the setup parameters of the Serial Com
-
munication Device.
Below are some examples of using the device commands to set the device setup
parameters. For these examples it is assumed that the 3560 Communication
Module is placed fourth in the stack. These commands can be sent through any
communication interface including the IEEE-488 and RS-232 interfaces.
SYST:MOD4:DEV2:WRIT “BAUD”,9600 Set the baud rate to 9600.
SYST:MOD4:DEV2:WRIT “DUPL”,HALF Set the duplex mode to half
duplex (echo off).
SYST:MOD4:DEV2:READ? “DUPL” Read the duplex mode.
SYST:MOD4:DEV2:WRIT “LFEE”,OFF Disable linefeed.
14.6 Serial Printer Device
The RS-232 port of the 3560 can be used as either a communications interface
or a printer interface. This section explains the operation of the 3560 Serial
Printer Device. The Serial Printer Device can be used to print data to a printer
or terminal equipped with an RS-232 serial interface. For connection of the
RS-232 interface refer to Section 14.5.1 above.
14.6.1 Device Setup
The setup parameters for the 3560 Serial Printer Device include baud rate and
linefeed. The baud rate must be set the same as the baud rate of the printer or
terminal. The parameters are set using the SET UP DEVICE function in the
MODULE soft-key menu (see Section 5.4.2). Select the SERP device. A win
-
dow appears showing the setup parameters for the device:
169
14 3560 Extended Communication Module
Serial Printer Device
Device Command Parameter Description
BAUD 1200, 2400, 9600, 14400, or
19200
baud rate
DUPL HALF or FULL duplex mode
LFEE OFF or ON linefeed
Table 32 Serial Communication Device Commands