Program Example For The Ascii Driver - Siemens SIMATIC S5 Series Manual

Second serial interface of the programmable controller
Hide thumbs Also See for SIMATIC S5 Series:
Table of Contents

Advertisement

S5-95U, Second Serial Interface
4.5

Program Example for the ASCII Driver

In this section, the structure of a PLC program for the ASCII driver is explained.
Example:
The program generates a message list for output on the DR 211 printer. It automatically initiates a
printout in 2-second intervals.
Proceed as follows:
Connect the DR 211 printer to SI2 of the S5-95U via the respective cable ( Figure 4-4).
Switch on the printer and set the printer parameters in the menu at the printer.
Only the printer parameter blocks in which you must change the default parameters are represented
below (bold); parameters to be set are printed in italics:
TECHNICAL LIST:
LINE CONTROL
PAPER COMMAND
LINE OVERFLOW
CR
LF
INTERFACE SETTING
SERIAL INTERFACE
RECEIVE BUFFER
DATA BITS
PARITY
STOP BITS
BAUD RATE
PRINTER STATUS
ESCAPE CHARACTER
VERTICAL SPACING
VERTICAL SPACING
Switch printer to on-line (simply follow the menu of the printer).
EWA 4NEB 812 6095-02
PAPER COMMAND + CR
CR + LF
CR
LF
17 KB
7 BIT
EVEN
2 STOP BITS
9600
ON LINE
ESC
1/72 INCH
USER LIST:
LANGUAGE
MENU LANGUAGE
PRINT DENSITY
CHARACTER PITCH
WIDE FONT
CHARACTER REPRESENTATION
NATIONAL CHARACTER SET 0 (for ASCII)
LINE SPACING
PAPER FORMAT
FORM LENGTH (INCH)
LINE LENGTH (1/10 INCH)
ASCII Driver
GERMAN
10 CPI
NO
6 LPI
12
136
4-17

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Simatic s5-95u

Table of Contents