Form Feed; Line Feed - Siemens SIMATIC S5 CP 523 Manual

Serial i/o module
Hide thumbs Also See for SIMATIC S5 CP 523:
Table of Contents

Advertisement

Print Mode
6.7.4
Form Feed (Job Number "5000
When prompted by the CPU, the CP 523 instructs the printer to execute a form feed. A form feed is
implemented by executing the number of line feeds configured (parameter block 5 "Page
format": lines per page). Headers, footers and page numbers are also printed depending on the
configuration.
Specify
Job number 5000
in word 0.
H
Example:

Form feed

Start address 128 is set for the module.
A from feed is to be executed when flag 25.0 is set
STL FB 107
NAME :FORMFEED
0005
:AN
F
25.0
0006
:BEC
0007
:L
KH 5000
0008
:T
PW 128*
0009
:R
F
25.0
000C
:BE
*
5.2
6.7.5
Line Feed (Job Number "6000
When prompted by the CPU, the CP 523 instructs the printer to execute a line feed.
Specify
Job number "6000
" in word 0.
H
Example:

Line feed

The module is set to start address 128.
A line feed is to be executed when flag 25.1 is set.
STL FB 108
NAME :LINEFEED
0005
:AN
F
25.1
0006
:BEC
0007
:L
KH 6000
0008
:T
PW 128*
0009
:R
F
25.1
000C
:BE
*
5.2
6-46
")
H
The program is terminated if flag 25.0 is not set.
Load ACCUM 1 with the job number for "Form feed" and transfer
to the CP in word 0.
Job accepted by CP. Reset F 25.0
Block End
")
H
The program is terminated if flag 25.1 is not set.
Load ACCUM 1 with the job number for "Line feed" and transfer
to the CP in word 0.
Job accepted by CP. Reset F 25.1
Block End
Explanation
Explanation
CP 523
EWA 4NEB 811 6044-02a

Advertisement

Table of Contents
loading

Table of Contents