ASCII Driver
S5-95U, Second Serial Interface
Activate the S5-95U and carry out a
”
PLC overall reset
”
(PLC mode STOP).
Parameterize the ASCII driver in DB1 of the S5-95U as described below.
Program the individual blocks as described below.
Do not forget to generate the DB for the parameter set!
Transfer DB1 and the PLC program to the S5-95U.
Switch the mode selector of the PLC to RUN.
See the following diagram for the structure of the program example ( Figure 4-10).
Figure 4-10 Program Structure of the ASCII Driver
OB1
FB1 is called
in 2-second
intervals
FB1
Output of
different
message texts
on the printer
DB203
Send mailbox
(reports for
printer output)
FB4
Conversion
binary
number
ASCII charac.
for out. printer
DB1
enters the
relevant ASCII
parameters
in system data
words
48 to 55
DB202
ASCII para-
meter set
4-18
EWA 4NEB 812 6095-02