Siemens KS7 Series Specifications

SIMATIC S5
CP 523
Serial I/O Module
Manual
Order No. 6ES5 998-0DD21
EWA 4NEB 811 6044-02a
Siemens has developed this document for its licensees and customers. The information contained herein
is the property of Siemens and may not be copied, used, or disclosed to others without prior written
approval from Siemens. Users are cautioned that the material contained herein is subject to change by
Siemens at any time and without prior notice.
Siemens shall not be responsible for any damages, including consequential damages, caused by reliance
on material presented, including but not limited to typographical, electronic, arithmetic, or listing
errors.
!
WARNING
Hazardous voltage.
Can cause death, severe
personal injury, or substantial
property damage.
Restrict use to qualified
personnel.
See safety instructions.
Only qualified personnel should install or maintain this equipment after becoming thoroughly familiar
with all warnings, safety notices, and maintenance procedures contained in this manual. The successful
and safe operation of this equipment is dependent upon proper handling, installation, operation, and
maintenance.
The following are definitions of the terms “qualified person,” “danger,” “warning,” and “caution,” as
applicable for this document.
Qualified Person
One who is familiar with the installation,
construction, and operation of this equipment and
the hazards involved. In addition, the person
should have the following qualifications:
•
•
•
Be trained and authorized to use and tag
circuits and equipment in accordance with
established safety practices
Be trained in the proper care and use of
protective equipment in accordance with
established safety practices
Be trained in rendering first aid
DANGER
Indicates loss of life, severe personal injury, or
substantial property damage will result if
proper precautions are not taken.
WARNING
Indicates loss of life, severe personal injury, or
substantial property damage can result if
proper precautions are not taken.
CAUTION
Indicates minor personal injury or property
damage can result if proper precautions are not
taken.
STEP 5® and SIMATIC® are registered trademarks of Siemens AG.
Copyright © Siemens AG 1989
Second Printing, march 1991
Printed in the Federal Republic of Germany
System Overview
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaa
Technical Description
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaa
Hardware Installation
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaa
Notes on Operation
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaa
Address Assignment
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaa
Print Mode
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaa
Communications Mode
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaa
Using the Function Blocks
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaa
Appendices
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaa
Preface
Introduction
Index
EWA 4NEB 811 6044-02a
1
2
3
4
5
6
7
8
A/B
CP 523
Preface
Preface
This manual is a revised, updated edition of the original CP 523 manual. The revision was necessary
because the CP 523 has been equipped with an additional communication control procedure, thus
upgrading the number of transmission modes in ”Communications mode” from two to three:
•
•
•
Transparent mode
Interpretive mode
3964(R) mode (new)
The characteristics of each mode are discussed in Section 2.3.2.
The CP 523 is a powerful I/O module which can be used in the S5-115U, S5-135U, S5-150U, S5-155U
and S5-115F programmable controllers. In order to make best use of the serial I/O module, you
require comprehensive information. For this reason, the CP 523 serial I/O module has its own
manual dealing only with those facts and examples that are relevant to the module. Demands for
a higher quality of technical documentation have also been met, which means
•
•
•
•
Standardization of terminology and notation
More detailed breakdown of subjects
Illustration of individual problems
User-friendly arrangement of the contents
The aim is that both users with little previous experience and SIMATIC S5 experts should find all
the information that they require to work with the CP 523.
However, the applications are so numerous that not all the problems that might occur can be dealt
with in one manual. For other problems, please ask your Siemens representative for advice.
EWA 4NEB 811 6044-02a
v
CP 523
Introduction
Introduction
It is important to study the introduction carefully before reading the rest of the manual. This will
help you to use the manual and will save you time.
Description of Contents
This manual is a comprehensive description of the CP 523. The manual can be divided into blocks
according to topics.
•
Description
- The "System Overview" contains information on the tasks the module can perform and on
how the module is used in the S5-115U, S5-135U, S5-150U, S5-155U and S5-115F.
- The "Technical Description" contains general information on the principle of operation of
the module, technical specifications, details of the serial interface and input/output (I/O)
modules and a list of accessories.
•
Installation and operation
- The chapter on "Hardware Installation" tells you which programmable controllers and
expansion units the module can be used with, how it is assembled and how to connect it to
a printer or I/O module (connector pin assignments and terminal diagrams).
- "Notes on Operation" describes the restart characteristics and actual operation. This
chapter also contains the error messages that can occur during startup.
•
Addressing
This chapter demonstrates how to address the module and describes the function of the
transfer memory.
•
Functional description
We have devoted a separate chapter to the "Print mode" and the "Communications mode".
Each of these chapters contains the information necessary for programming the module for
the relevant mode. This saves you time-consuming searches in the manual.
•
Appendix A: Summary
All the information you require to operate the CP 523 has been gathered together here in list
form. This has been designed for those users who have read the manual and wish to find some
brief item of information quickly.
EWA 4NEB 811 6044-02a
vii
Introduction
CP 523
Conventions
In order to improve the readability of the manual, a menu-style breakdown has been used, i.e.:
•
•
The individual chapters can be quickly located by means of a thumb register.
There is an overview containing the headings of the individual chapters at the beginning of
the manual.
Each chapter is preceded by a breakdown of its subject matter.
The individual chapters are subdivided into sections and subsections. Boldface type is used for
further subdivisions.
Pages, figures and tables are numbered separately in each chapter. The page following the
chapter breakdown contains a list of the figures and tables appearing in that particular
chapter.
•
•
Certain conventions were observed when writing the manual. These are explained below.
•
•
•
•
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaa
•
A number of abbreviations have been used.
Example: Central processing unit (CPU)
Footnotes are identified by superscripts consisting of a small digit (e.g. ”1”), or ”*”. The actual
footnote is generally at the bottom left of the page or below the relevant table or figure.
Cross-references are shown as follows:
”( 7.3.2)" refers to subsection 7.3.2.
No references are made to individual pages.
All dimensions in drawings etc. are given in millimetres/inches (mm/in.).
Information of particular importance is framed in
grey-bordered rectangles.
•
•
•
All program examples have been generated in statement list form and always refer to the
same slot.
All data in connection with the programmer refers to the German version of the PG 685. The
relevant user manual contains a detailed description of programming procedures with this
programmer.
The ”Reader's Note” in Section 7 provides references to various subsections, thus making it
easier to find the subsections relevant to your application or specific requirements.
Manuals can only describe the current version of the device or unit. Should modifications or supplements become necessary in the course of time, a supplement will be prepared and included in
the manual the next time it is revised. The relevant version or edition of the manual appears on
the cover. The present manual is edition "1". In the event of a revision, the edition number will be
incremented by "1".
At the end of the manual you will find correction forms. Please enter in these forms any
suggestions you may have in the way of improvements or corrections and send them to us. Your
comments will help us to improve the next edition.
viii
EWA 4NEB 811 6044-02a
CP 523
Introduction
Courses
Siemens provide SIMATIC S5 users with extensive opportunities for training.
For more information, please contact your Siemens representatives.
Reference Literature
This manual is a comprehensive description of the CP 523 serial I/O module. Topics not specific to
the CP 523, however, are only briefly dealt with. You will find more detailed information in the
following literature:
•
Programmable Controllers
Volume 1: Logic and Sequencing Control; From the Task to the Program.
Günter Wellenreuther, Dieter Zastrov
Braunschweig 1987
Contents:
- Method of operation of a programmable controller
- Theory of control technology using the STEP 5 programming language for the SIMATIC S5
programmable controllers.
Order No.: ISBN 3-528-04464-0
•
Automating with the S5-115U
SIMATIC S5 Programmable Controllers
Hans Berger
2nd Edition, Berlin and Munich: Siemens AG, 1989
Contents:
- STEP 5 programming language
- Program scanning
- Integral program blocks
- I/O interfaces
Order No.: ISBN 3-8009-1526-X
EWA 4NEB 811 6044-02a
ix
CP 523
Introduction
Conventions
The following conventions are used in this book and are listed for your reference:
Convention
Definition
Example
A box that indicates a type of hazard,
describes its implications, and tells you
how to avoid the hazard is a cautionary
statement. Some cautionary statements
include a graphic symbol representing
an electrical or radio-frequency hazard.
All cautionary statements have one of
the following levels of caution:
EWA 4NEB 811 6044-02a
•
A danger indicates that loss of
life, severe personal injury, or
substantial property damage
will result if proper precautions
are not taken.
•
A warning indicates that loss of
life, severe personal injury, or
substantial property damage
can result if proper precautions
are not taken.
•
A caution indicates that minor
personal injury or property
damage can result if proper
precautions are not taken.
xi
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
1
System Overview
2
3
4
5
6
7
8
Technical Description
Hardware Installation
Notes on Operation
Address Assignment
Print Mode
Communications Mode
Using the ”SEND” and ”RECEIVE” Function blocks
EWA 4NEB 811 6044-02a
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
Figures
1-1.
1-2.
S5-115U Programmable Controller with CP 523 and Printer
............. 1 - 1
S5-115U Programmable Controller with CP 523 and Terminal . . . . . . . . . . . . 1 - 2
EWA 4NEB 811 6044-02a
System Overview
CP 523
1
System Overview
Intelligent inputioutput modules (1/0s) expand the application area of 51 MATIC 55 programmable
controllers. They are technology-oriented and offload the central processing unit by preprocessing
input signals.
The CP 523 serial 1/0 module is an intelligent !/0 module, which can be used in the S5-1 15U,
S5-135U, S5-150U, S5-155U and S5-1 15F programmable controllers. It can be operated without
special COM software and offers applications which until now could only be implemented with
expensive and functional y complex modules.
The CP 523 can be used in “Print mode” and “Communications mode”. It has a built-in real-time
clock, which can be backed up by the battery of the power supply unit. The clock data can be read
by the CPU and used in the user program for date-dependent and time-dependent tasks.
Print mode
Message texts can be printed out in this mode. This allows you to list process states and process
faults. . Printers with TTY or RS-232-C (V.24) interfaces can be connected
● The printer interface can be configured (baud rate, BUSY signal, etc.)
● The format of the page to be printed can be configured (headers, footers, margins, etc.)
. Configuration of up to 4095 different message texts in data blocks on a memory submodule
● You can provide for the following when configuring message texts:
Insertion of the date or time of day in the printout
Insertion of current variables in the printout (pressure, temperature, etc.)
Transfer of printer control parameters (double-width type on/off, boldface type, etc.)
Figure 1-1. S5-1 15U Programmable Controller with CP 523 and Printer
.—
EWA4NEB811 6044-02a
1-1
CP 523
System Overview
Communications Mode
—
In “Communications mode”, the CP 523 can communicate over the 1/0 interface with an 1/0 unit
(terminal, CP 523, CPU 944, etc.) equipped with a V.24 (RS 232C) or TTY interface. This mode
enables the transfer of data frames between the CPU and an 1/0 device connected to the CP 523.
The CP 523 provides a total of three communication control procedures, i.e. two protocol-free
procedures and one with a standardized protocol:
. Protocol-free data transmission
- Transparent mode, i.e. data transmission without receiver-side end identifier sequence
- Interpretive mode, i.e. data transmission ~receiver-side end identifier sequence.
. Data transmission with protocol
-3964 (R) mode
Your application program determines the modes you want to use.
You can also evaluate the module’s real-time clock in your program for date and time-dependent
tasks.
The FE 200 “SEND” and FB 201 “RECEIVE” function blocks allow user-friendly bidirectional
transfer of message frames with a length of up to 256 bytes. A thorough description, with
examples, is given of how to use the function blocks.
If you decide to forego the convenience of the FB 200 and FB 201 function blocks in favour of
higher data transmission speeds, you can communicate with the CP 523 direct from the user
program. This method of data exchange is also described in detail with examples.
Figure 1-2. S5-115U Programmable Controller with CP 523 and Terminal
1-2
EWA4NEB811 6044-02a
—
System Overview
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
1
2
3
4
5
6
7
8
Technical Description
2.1
Principle of the CP 523
.....................................2
..- 1
2.2
Technical Specifications
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2. - 4
2.3
2.3.1
2.3.2
Serial Interface CP - Peripheral Device . . . . . . . . . . . . . . . . . . . . . . . . . .2 - 5
Print Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2. . -. 6
Communications Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
..- 7
2.4
2.4.1
Memory Submodule . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2. . - 10
Memory Submodule Evaluation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2. - 10
2.5
Integral Hardware Clock
2.6
Accessories List and Ordering Data
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2. - 11
. . . . . . . . . . . . . . . . . . . . . . . . . . . .2 - 12
Hardware Installation
Notes on Operation
Address Assignment
Print Mode
Communications Mode
Using the ”SEND” and ”RECEIVE” Function Blocks
EWA 4NEB 811 6044-02a
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaa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. . . . . . . . . . . . . . . . . . 2. Using the Transfer Memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2. . 10-Bit-Character Frame with 7 Data Bits, 1 Parity Bit and 1 Stop Bit . . . . . . . 2 11-Bit-Character Frame with 8 Data Bits and 2 Stop Bits . . . . . . . . . . . . . . . . . 2 Timing Diagram for Data Transfer between the
CP and the Peripheral Device . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2. . -
Methods of Transmission in Print Mode
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2. Valid Control Signals of the RS-232-C (V.24) Interface
in Handshake ON Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2. .Overview of Permissible User Submodules . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
. Error Messages in conjunction with the Memory Submodule
............ 2 1
2
5
6
9
Tables
6
8
10
10
EWA 4NEB 811 6044-02a
CP 523
Technical Description
2
Technical Description
2.1
Principle of the CP 523
The CP 523 handles data transfer with a peripheral device autonomously. Data transfer between
the CPU and the CP 523 must always be started by the CPU by sending a job request to the CP 523.
Typical jobs would be, for example, ”Print message text number 20” in Print mode or ”Receive a
message frame from a peripheral device” in Communications mode.
DB1 (parameter setting data
for the serial interface and
configuration data for the
format of message text
RAM
printouts)
DB2 to 255 (up to 4095
message texts)
Send mailbox
Receive mailbox
Message
buffer
RS-232-C (V.24) serial
interface or TTY
interface
(25-pin subminiature D
Microprocessor
Cannon connector) of
peripheral device (printer,
barcode reader, CP 523,
etc.)
Operating system
memory
Integral real-time
clock
8-byte
transfer
memory
Internal bus
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
CP 523
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
EPROM / EEPROM
memory submodule
S5 Bus
Figure 2-1. Schematic Representation of the CP 523
Print mode
The "Print message text XY" job request causes the message text stored in the memory submodule
under the number XY to be transferred to the printer via the serial interface. Current values of
variables, time of day and date can be entered in the message text during this process. You can
configure up to 4095 different message texts and store them in the memory submodule. You can
also include control commands for the printer in the message text. These are then executed on
printout (double-width type on/off).
EWA 4NEB 811 6044-02a
2-1
Technical Description
CP 523
Communications mode
In Communications mode, message frames of up to 256 bytes in length can be transferred between the CPU and a peripheral device connected to the CP 523.
When it receives a "SEND" request from the CPU, the CP 523 transfers the data from the transfer
memory to a Send mailbox. The CP 523 then transfers the data autonomously from the Send
mailbox to the peripheral device.
Data received from the peripheral device is first stored by the CP in a Receive mailbox. On
receiving a "RECEIVE" request from the CPU, the data is forwarded to the transfer where it can be
read out by the CPU.
S5 bus and transfer memory
Data is transferred between the CPU and CP 523 via the S5 bus. Data is stored in an eight-byte
transfer memory in the CP 523. Addresses for the transfer memory are derived from the initial
address of the module and an offset of 0 to 7.
Only when word 0 of the transfer memory has been overwritten with T PW <Initial address of the
module> does the CP 523 read the data from the transfer memory and update the transfer
memory with current values. These current values can then be read by the user program with L PW
statements.
CPU transfers new job
request to word 0 of
the transfer memory
(T PW X).
CP reads out bytes
0 to 7 of the
transfer memory
CP overwrites bytes
0 to 7 of the transfer
memory with the
current data.
CPU can read the
actual data from
the transfer
memory (LPW X).
Figure 2-2. Using the Transfer Memory
You can transfer additional information to the CP in words 2, 4 and 6 before the request is submitted. This depends on the job in question. See the job descriptions for the precise explanation.
Serial interface
The CP 523 has an RS-232-C (V.24) interface and a TTY interface.
The following are examples of peripheral devices that you can connect to the serial interface of
the CP 523:
• Printer with passive or active TTY interface
• Printer with RS-232-C (V.24) interface
• Barcode reader
• Keyboard
• Terminal
• MODEM
• Another CP 523
• CPU 944 (ASCII interface)
• CP 521
• PC
2-2
EWA 4NEB 811 6044-02a
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaa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aaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
CP 523
EWA 4NEB 811 6044-02a
Technical Description
EPROM/EEPROM
You can use EPROM and EEPROM memory submodules of up to 32K bytes. The EPROM/EEPROM is
configured with the programmer.
•
Print mode
In Print mode, the parameter setting data for the serial interface and for the format of the
printout is defined in data block 1 (DB 1) on the memory submodule. You can configure up to 4095
different message texts in DBs 2 to 255.
Note:
The CP 523 can be operated in Print mode only if a memory submodule containing at least one
message text is plugged in.
• Communications mode
You can define the parameter setting data for the serial interface in DB 1 on the memory
submodule.
Note:
In Communications mode, the CP 523 can also be operated without a memory submodule, in
which case the parameter setting data for the serial interface is then transferred from the user
program to the CP.
Integral real-time hardware clock
The CP 523 has an integral real-time hardware clock. The clock can be set and read either with a
programmer or in the user program.
The clock is optimized for an ambient temperature of 25 °C. A correction factor can be programmed to compensate for this temperature dependency. This correction factor can be transferred to the CP from the user program or it can be programmed in DB 1 on the memory submodule.
Addressing
The CP 523 is addressed as an eight-byte input/output module in I/O areas P, O, IM3 and IM4. You
can set the desired start address of the module in eight-byte steps via DIP switches on the module ( 5).
Note:
Byte numbers 0 to 7 specified in this manual always refer to the start address set:
Example: You have set start address 128 with the DIP switches.
Byte 0 has address 128+0=128
Byte 7 has address 128+7=135
2-3
I
CP 523
Technical Description
2.2
Technical Specifications
For environmental, mechanical and electromagnetic conditions see the relevant programmable
control Ier manual.
Galvan(c rsolatfon
TTY signals are floarlng
Memory submodule
EPROM/E EPROM
Serial Interface
V.24 (RS 232 C)/’TTY
Transm mon mode:
Asynchronous
10-b(t character frame
11 -bit cha racter frame
110 to 9600 baud
Transmlsslon rate
Permlsslble cable length
10 m/33 ft.
TTY active
—
1000 m/3280 ft
- TTY passive
Voltage drop
Rece(ver typ.
15V
Sender typ.
0.9 v
at 20 mA
- RS-232-C (V.24)
15 m149 ft.
Battery backup time
Dependent on the battery backup
[n the central controller: at least 1
year
Degree of protection
1P 20
Perm Issible a m bient
temperature
- vertical
0 to 60”C
- horizontal
o to 4o”c
Relative hum Idity
1 5% to 95%
Current consumption
typ.
from + 5 V
130 mA
—
Power losses of
the module
typ
1.2 w
Weight
approx.
300 g
RCV
CP 523 receiwng data
SEN
CP 523 sending data
LEDs
2 green LEDs
—.
2-4
EWA4NEB8116044-02a
CP 523
2.3
Technical Description
Serial Interface CP - Peripheral Device
The CP 523 is equipped with an RS-232-C (V.24) interface and a TTY interface. You can set the serial
interface parameters in two ways:
•
•
In the user program with job number 90H "Set interface parameters" parameter block
( 7.3.2).
The CP 523 copies the parameter setting data from the submodule into a RAM area on the CP
during startup. If the CPU transfers new parameter setting data to the CP during operation,
the CP continues with the new data.
In data block 1, parameter block 0, on the user submodule (Print mode
6.3.1,
Communications mode 7.3.1).
Data is transferred between the CP and the peripheral device in a 10-bit or 11-bit character frame.
Three data formats are available for each character frame.
10-Bit-character frame
• 1 start bit, 7 data bits, 2 stop bits
• 1 start bit, 7 data bits, 1 parity bit, 1 stop bit
• 1 start bit, 8 data bits, 1 stop bit
(data format 3 in parameter block 0)
(data format 4 in parameter block 0)
(data format 5 in parameter block 0)
11-Bit-character frame
• 1 start bit, 7 data bits, 1 parity bit, 2 stop bits
• 1 start bit, 8 data bits, 1 parity bit, 1 stop bit
• 1 start bit, 8 data bits, 2 stop bits
(data format 0 in parameter block 0)
(data format 1 in parameter block 0)
(data format 2 in parameter block 0)
1st example:
1
2
3
4
5
6
7
8
9
1
0
1 start
bit
0
10
aaaaaaaaaa
aaaaaaaaaa
Bit no.:
aaaaaaaa
aaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
Character frame: 10-bit
Data format: 7 data bits (1 start bit, 7 data bits, 1 parity bit, 1 stop bit)
1
1 pari- 1 stop
ty bit
bit
7 data bits
Figure 2-3. 10-Bit Character Frame with 7 Data Bits, 1 Parity Bit and 1 Stop Bit
EWA 4NEB 811 6044-02a
2-5
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa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aaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaa
Bit no.:
0
2.3.1
2-6
2
3
4
Method of
Transmission
Line Used TTY/
RS-232-C (V.24)
XON/XOFF
protocol
RXD
BUSY signal
RXD/DSR
Without
protocol
Irrelevant
5
6
7
Required
Parameters
XON characters
XOFF characters
8
9
1 start
bit
1
Parameter
Block
aaaaaaaaaa
aaaaa
1
aaaaaaaaaa
aaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaa
Technical Description
CP 523
2nd example:
Character frame: 11-bit
Data format: 8 data bits (1 start bit, 8 data bits, 2 stop bits)
10 11
1
2 stop bits
8 data bits
Figure 2-4. 11-Bit Character Frame with 8 Data Bits and 2 Stop Bits
Note:
When using the RS-232-C (V.24) interface, the readiness of the sending or receiving device can
only be recognized via the control signals. You are therefore recommended to set Handshaking
ON mode.
Print Mode
You have a choice of three methods of transmission in Print mode. All three are possible with both
the RS-232-C (V.24) and TTY interfaces.
Table 2-1. Methods of Transmission in Print Mode
Remarks
2
Priority over
BUSY signal and
print without protocol
-
0
Priority over print
without protocol
Wait after
- CR (carriage return)
- LF (line feed)
- FF (form feed)
1
Line break not
detectable
EWA 4NEB 811 6044-02a
CP 523
2.3.2
Technical Description
Communications Mode
The possible methods of transmission depend on the following:
•
•
•
Type of interface (TTY or RS-232-C (V.24)
Whether handshaking has been configured when the RS-232-C (V.24) interface is used
(Handshaking OFF or ON).
Type of Communications mode.
- Transparent (without send-side end identifier sequence)
- Interpretive (with send-side end identifier sequence)
- 3964 (R)
TTY active or RS-232-C (V.24) interface with handshake OFF
The CPU evaluates only the RXD circuit. If the CP receives data from the peripheral device, the
latter must maintain logic "1"* on the RXD line, otherwise the CP 523 will send the following error
flags to the CPU: in byte 0: "Permanent line break" (XDH) and in byte 1: "Peripheral device not
ready" (1XH).
•
Transparent mode
No XON/XOFF protocol is possible in Transparent mode. Message frames received by a peripheral device must be of fixed length.
•
Interpretive mode
If you have programmed an XON/XOFF protocol in Interpretive mode, the CP sends "XOFF" to
the peripheral device when only 20 more bytes are available in the 1-Kbyte Receive buffer. The
CP then only sends XON to the peripheral device again when the receive buffer contains more
than 256 free bytes.
If the peripheral device sends more than 20 bytes to the CP after an XOFF, the message frame
data already received is rejected. The CP forwards the "Receive buffer overflow" error message
flag (XBH) to the CPU.
•
3964(R) mode
This communication control procedure makes it possible to connect peers which also use the
3964(R) line procedure to the CP 523.
3964(R) mode enables comparatively reliable data transmission, as the receiver must signal its
readiness to receive data (connection buildup) and acknowledge once it has done so. Reliability and data integrity are enhanced in 3964(R) mode by an additional block check character.
*
For the TTY interface, logic "1" means: Current
For the RS-232-C (V.24) interface, logic "1" means: V -3 V
EWA 4NEB 811 6044-02a
2-7
aaaaaaaaaa
aaaaaaaaaa
aaaaaa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aaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
Technical Description
Control signal
TXD
DTR
RTS
ON
OFF
CTS
ON
OFF
2-8
CP 523
RS-232-C (V.24) interface with handshake ON
The RS-232-C (V.24) interface of the CP 523 can handle the following signals in handshake ON
mode:
Table 2-2. Valid Control Signals of the RS-232-C (V.24) Interface in Handshake ON Mode
State
Meaning
Outputs
Send data
CP holds send line at logic 1 when not transmitting
(V -3 V).
ON
OFF
Data Terminal Ready
CP 523 switched on; ready to receive
CP 523 not switched on; not ready to receive
ON
OFF
Request to send
CP 523 ready to send
CP 523 not sending
Inputs
RXD
Receive data
Receive line must be held at logic 1 by the peripheral
device (V -3 V).
DSR
Data set ready
Peripheral device switched on; ready to receive
Peripheral device not switched on; not ready to receive
Clear to send
Peripheral device can receive characters from the
CP 523
The CP expects this as reply to RTS = "ON"
Peripheral device cannot receive characters from the
CP 523
Note:
An XON/XOFF protocol is not possible if you evaluate the control signals (handshake ON).
In 3964(R) mode, handshaking is not possible (hardware signals are neither evaluated nor
affected).
EWA 4NEB 811 6044-02a
CP 523
Technical Description
Data transfer between the CP and peripheral device takes place as follows:
The CP 523 sets the "DTR" output after startup. This indicates that the CP is operable and ready to
receive.
Example:
The CP wants to send data
1. CP waits till DSR = ON
If the peripheral device still has not set DSR to ON after 20 s, the CP reports the error to the
CPU (peripheral device not ready).
2. CP sets RTS
3. CP waits till CTS = ON
If the peripheral device still has not set CTS to ON after 20 ms, the CP reports the error to the
CPU (peripheral device not ready).
4. CP sends data
5. CP resets RTS after sending data
6. Peripheral device sets CTS to OFF
1
TXD
XXXXXXXX
XXXXXXXX
0
DTR
ON
OFF
RTS
ON
OFF
1
RXD
XXXXXXXX
XXXXXXXX
0
DSR
ON
OFF
CTS
ON
OFF
CP switched
on
max:
20 s.
max:
20 s.
CP reports data
cannot be received
Peripheral device switched on
Figure 2-5. Timing Diagram for Data Transfer between the CP and the Peripheral Device
Example:
Peripheral device wants to send data
The peripheral device only checks the DTR line
If ON: Data may be sent (CP ready to receive)
If OFF: Data transmission must be interrupted (CP not ready to receive)
EWA 4NEB 811 6044-02a
2-9
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaa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aaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
Technical Description
2.4
2.4.1
2-10
CP 523
Memory Submodule
In Print mode, you require a user submodule, which you must configure with the following data in
off-line mode using a programmer:
• Message texts in DB 2 to 255
These DBs are independent of the DBs stored in the CPU. The DBs in the memory submodule
and the DBs in the CPU may have the same numbers.
• Printer interface parameters and configuration data for the message texts in DB 1.
You can use two types of user submodule:
• EPROM submodule
A UV erasing facility is required for erasing the submodule contents.
• EEPROM submodule
Submodule contents can be overwritten using a programmer.
Table 2-3. Overview of Permissible User Submodules
EEPROM
Submodule Type
Order No.
Capacity
EPROM
6ES5 375 - 0LA15
8 Kbyte
6ES5 375 - 0LA21
16 Kbytes
6ES5 375 - 0LA41
32 Kbytes
6ES5 375 - 0LC11
2 Kbytes
6ES5 375 - 0LC31
8 Kbytes
6ES5 375 - 0LC41
16 Kbytes
Memory Submodule Evaluation
Several error flags can be stored by the CP in byte 0 in conjunction with the memory submodule.
Table 2-4. Error Flags in Conjunction with the Memory Submodule
Contents of
byte 0
Error
Remedy
X1H
Memory submodule defective
1. PLC POWER OFF
2. Plug in (new) memory submodule
3. PLC POWER ON
X2H
No message texts configured
Configure message texts
Wrong or defective user submodule
plugged in?
X= Value for other half-byte irrelevant
EWA 4NEB 811 6044-02a
CP 523
2.5
Technical Description
Integral Hardware Clock
The CP incorporates a hardware clock which is backed up by the battery of the PLC power supply
module.
Using the clock data
You can use the clock data in two ways:
• The current clock data can be inserted in a message text. You can insert spaceholders for date
and time of day for this purpose when configuring the message texts ( 6.4).
• The current clock data can be read out by the CPU and used in the user program ( 6.6 or
7.4.2).
Battery backup of the clock data
The clock is backed up by the battery of the PLC power supply module.
The clock starts with the default values Sunday 1.1.90 12:00:00 on power-up.
The power supply module battery should only be replaced in the POWER ON state, as otherwise
the clock data is lost and the clock must be reset.
Default setting
The clock is factory-set to Sunday 1.1.90 12:00:00
Setting the time and date
You can set the clock:
• In the user program (see Section 6.7.2 for details)
• With the "FORCE VAR" programmer function (refer to the example ”Writing to word 0 of the
transfer buffer with the CPU 944 using ”FORCE VAR” in Section 5.2).
Output format of the clock data in the message text
You can configure how the current clock data is to be output to the printer ( 6.3.3).
The default is:
• For the date: <Day> . <Month> . <Year>
• For the time: <Hours> : <Minutes> : <Seconds>
Accuracy of the integral real-time clock
The accuracy of the clock is tg=±2s/day.
Temperature dependency of the clock
The temperature dependency TD of the clock is TD=3.5 (TA-15)2 ms/day at an ambient temperature of TA.
Correction value
You can configure a correction value to enhance the accuracy of the clock (Print mode 6.3.6,
Communications mode
7.3.1 and 7.3.2). The correction value is given in s/month. A month is
defined as 30 days.
Example:
Determining the correction value
You have observed that the clock loses 12 s in 4 days. This would be 90 s in 30 days. The correction
value is then 90 s/month.
EWA 4NEB 811 6044-02a
2-11
Technical Description
2.6
CP 523
Accessories List and Ordering Data
Memory submodules
Memory submodule (EPROM) 8 Kbytes
”
”
16 Kbytes
”
”
32 Kbytes
6ES5 375-0LA15
6ES5 375-0LA21
6ES5 375-0LA41
Memory submodule (EEPROM)
”
”
8 Kbytes
”
”
16 Kbytes
6ES5 375-0LC31
6ES5 375-0LC41
Printer connecting cable
You can use the same printer connecting cable that you use for connecting the programmer to the PT printer.
PT 88 RS-232-C (V.24)
PT 88 TTY
3.2 m
3.2 m
6ES5 735-2BD20
6ES5 735-1BD20
Printers
See S5-115U Programmable Controller Catalog
and/or
S5-135U and S5-150U Programmable Controller Catalog
2-12
ST 52.3
ST 54.1
EWA 4NEB 811 6044-02a
System Overview
Technical Description
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
1
2
3
Hardware Installation
4
5
6
7
8
3.1
3.1.1
3.1.2
3.1.3
Mechanical Assembly . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3. . Compatible Programmable Controllers and Expansion Units
..... 3 Installing the CP 523 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3. . Settings on the Module
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3. -
1
1
3
4
3.2
3.2.1
3.2.2
3.2.3
Wiring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3. .-.
Connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
. . .Pin Assignments of the 25-Pin D Subminiature Connector . . . . . . . . 3 Pin Assignments of Base Connector X1 . . . . . . . . . . . . . . . . . . . . . . . . .3 -
5
5
6
7
3.3
Cable Length . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3. .- 7
3.4
3.4.1
3.4.2
Terminal Diagrams . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3. . - 8
Terminal Diagrams for Print Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
. - 8
Terminal Diagrams for Communications Mode
. . . . . . . . . . . . . . . . . 3 - 10
Notes on Operation
Address Assignment
Print Mode
Communications Mode
Using the ”SEND” and ”RECEIVE” Function Blocks
EWA 4NEB 811 6044-02a
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
Figures
3-1.
3-2.
3-3.
3-4.
3-5.
3-6.
3-7.
3-8.
3-9.
3-10.
3-11.
3-12.
3-13.
Installing the CP 523 in the Adapter Casing (6ES5 491-0LB11) . . . . . . . . . . . . 3 - 3
Installing the CP 523 in the S5-135U Central Controller . . . . . . . . . . . . . . . . . . 3 - 4
Connectors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3. .- . 5
Pin Assignments of the 25-Pin D Subminiature Connector . . . . . . . . . . . . . . . 3 - 6
Pin Assignments of Backplane Connector X1 . . . . . . . . . . . . . . . . . . . . . . . . . . .3 - 7
Pin Assignments for CP 523 (Passive TTY) to PT 88 (Active TTY)
without BUSY Signal . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3. .- 8
Pin Assignments for CP 523 (Passive TTY) to PT 88 (Active TTY)
with BUSY Signal . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3. . -. 8
Pin Assignment of the RS-232-C (V.24) Interface (Print Mode) . . . . . . . . . . . . 3 - 9
Pin Assignments for CP 523 to CP 523 (TTY Interface) . . . . . . . . . . . . . . . . . . . 3 - 10
Pin Assignments for CP 523 (TTY Passive) to CP 523 (TTY Active). . . . . . . . . . 3 - 10
Pin Assignments for CPU 944 (TTY Active) to CP 523 (TTY Passive)
Zero Modem Operation Taking the CP 523 to CP 523 as Example . . . . . . . . . 3 - 12
Pin Assignments for CP 523 to Modem . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3. - 12
EWA 4NEB 811 6044-02a
aaaaaaaaaaaaaaaaaa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aaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
CP 523
Hardware Installation
3
Hardware Installation
3.1
Mechanical Assembly
3.1.1
Compatible Programmable Controllers and Expansion Units
The CP 523 can be used in the S5-115U, S5-115F (in both cases with adapter casings), S5-135U,
S5-150U and S5-155U programmable controllers - central controllers (CCs) or expansion units
(EUs) - without fans.
The permissible module locations are as follows:
Use in the S5-115U
Central controller
CR 700-1 subrack
PS CPU
PS CPU
0
0
0
1
1
1
2
2
2
3
3
3
4
4
4
5
5
5
6
6
6
7
IM
CR700-0LB subrack
2
CR 700-3 subrack
IM
Expansion unit
ER 701-3 subrack
IM
Possible locations
3-1
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa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aaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaa
Hardware Installation
•
3
•
3
•
3
•
3
•
3-2
11
11
11
11
3
19
27
19
27
19
27
19
27
19
CP 523
Note:
The 304 and 314 or 307/317 or 301/310 interface modules are required when using the CP 523
in an expansion unit.
Use in the S5-135U, S5-150U and S5-155U
S5-135U central controller (Only in the normal I/O i.e. P area)
35
43
35
43
35
43
35
43
35
51
59
51
59
51
59
51
59
51
67
75
67
75
67
75
67
75
67
83
91
83
91
83
91
83
91
83
99
99
99
99
107
107
107
107
99
115
115
115
115
123
123
123
123
115
131
131
131
131
139
139
139
139
131
147
147
147
147
155
155
155
155
147
163
S5-150U central controller (Only in the normal I/O i.e. P area)
163
S5-155U central controller (Only in the normal I/O i.e. P area)
163
S5-185U expansion unit
163
S5-186U expansion unit
163
Possible locations
Possible locations without battery backup
EWA 4NEB 811 6044-02a
CP 523
Hardware Installation
3.1.2 installing the CP 523
You must note the following when installing and unplugging the CP 523:
. The module may only be plugged in or unplugged when the PLC is in the POWER OFF state.
● The memory submodule may only be plugged in or unplugged when the PLC is at POWER OFF.
● The connecting cable to the peripheral device (Cannon subminiature D male connector) may
only be plugged in and unplugged when the CPU is at STOP and data transfer between the CP
and the peripheral device has been term i nated.
Use in the S5-1 15 U/S5-l 15F
You require an adapter casing for the CP 523 (6ES5 491-OLB11)
Figure 3-1. Installing the CP 523 in the Adapter Casing(6ES5491-OLB1 1)
—
EWA4NEB811 6044-02a
3-3
1
Hardware Installation
CP 523
Use in the S5-135U/S5-150U and S5-155U
The CP 523 is mounted direct onto the module rack.
Figure 3-2. Installing the CP 523 in the S5-135U Central Controller
—
3.1.3 Settings on the Module
You must set the address of the module on switch bank S 1 ( + Section 5 ) :
. Select the initial address with switches S 1.1 to S1.5
●
Define the addresses i n the selected [/0 area (P, O, IM 3 or IM 4) in steps of eight bytes using
switches S 1.6 to S 1.8
128, 136 to 248 i n the P area
O, 8 to 248 i n the O, IM 3 and IM 4 areas
Only the P area can be selected when using the S5- 1 15u.
IWte:.
The modules are factory-set to start address 128 in the P (normal 1/0) area. Make sure that no
other modu Ies reserve this address space before putting the modu Ie into service.
CALUTI ON :
When using the module in the S5-1 15F, you must separate the jumpers in the jumper header
( + Figure 5-1) if the device connected (e.g. printer) has no safe electrical isolatlon to VDE 0160.
This ensures safe electrical Isolation between the peripheral device and the S5- 11 SF.
3-4
EWA 4NEB811 6044-02a
Hardware Installation
CP 523
3.2
Wiring
The module has a serial interface port. You can configure either the TTY interface or the RS-232-C
(V.24) interface (-D Section 6). The cables from both interfaces are run to a 25-pin Cannon
subminiature D female connector.
3.2.1
Connections
Backplane connector Xl
Cannon subminiature D female connector
(25-pin)
Shield
Fastening screw, 4-40 VNC-2B thread
.
Figure 3-3. Connectors
Permissible conductor cross section for the Cannon subminiature D connector: up to 0.5 mmz
(20 AWG)
EWA 4NEB81 16044-02a
3-5
Hardware Installation
3.2.2
CP 523
Pin Assignments of the 25-Pin D Subminiature Connector
Shield
25
Shield
24
Ground
23
22
20 mA send
Ground
20 mA receive
-
13
RTS
12
TTY OUT -
11
V.24 -TXD
10
TTY OUT+
9
CTS
8
TTY IN-
7
DSR
6
TTY IN+
5
V.24 -RXD
4
-
3
-
2
Ground
1
-
21
20
19
18
-
17
-
16
DTR
15
-
14
Figure 3-4. Pin Assignments of the 25-Pin D Subminiature Connector
3-6
EWA 4NEB 811 6044-02a
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
a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aaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaa
CP 523
UBATT
BAU
3.3
•
•
Hardware Installation
3.2.3 Pin Assignments of Backplane Connector X1
d
b
z
M
+5 V
PESP
EWA 4NEB 811 6044-02a
2
4
ADB 0
RESET
6
ADB 1
MEMR
8
ADB 2
MEMW
10
ADB 3
RDY
12
ADB 4
DB 0
14
ADB 5
DB 1
16
ADB 6
DB 2
18
ADB 7
DB 3
20
ADB 8
DB 4
22
ADB 9
DB 5
24
ADB 10
DB 6
26
ADB 11
DB 7
28
BASP
30
M
32
Figure 3-5. Pin Assignments of Backplane Connector X1
Cable Length
The cable lengths given below are contingent to error-free data transmission.
TTY interface
CP 523 active TTY
: maximum cable length 10 m/33 ft.
Peripheral device active TTY : Refer to the User's Guide for the relevant device for the
permissible cable length (maximum 1000 m/3280 ft).
Note:
Voltage drops on the cable and the module's sending and receiving elements must be noted
when using longer cables ( 2.2).
RS-232-C (V.24) interface
Cable length is not critical up to 15 m/49 ft. In general, longer cables can be used in conjuction
with lower baud rates.
3-7
Hardware Installation
3.4
CP 523
Terminal Diagrams
This section contains typical terminal diagrams for connecting the following:
• A printer (PT 88)
• A point-to-point connection (data terminal equipment DTE)
- CP 523 to CP 523
- CP 523 to CPU 944
• Modem link (data communications equipment DCE)
3.4.1
Terminal Diagrams for Print Mode
The CP 523 assumes a printer with an RS-232-C (V.24) or TTY interface as the peripheral device.
CP 523 (passive TTY) to PT 88 (active TTY) without BUSY signal
CP 523
PT 88
TTY OUT+ (10)
(10) TTY IN –
20 mA
TTY OUT - (12)
Shield
(24)
Shield
(25)
(9) TTY IN+
(1) Shield
Figure 3-6. Pin Assignments for CP 523 (Passive TTY) to PT 88 (Active TTY) without BUSY Signal
CP 523 (passive TTY) to PT 88 (active TTY) with BUSY signal
Printer setting: Printer not ready to receive = no current
CP 523
PT 88
TTY OUT+ (10)
(10) TTY IN 20 mA
TTY OUT - (12)
Shield
(24)
Shield
(25)
(9) TTY IN+
(1) Shield
TTY IN+
(6)
(21) TTY OUT -
TTY IN -
(8)
(18) TTY OUT+
20 mA
Figure 3-7. Pin Assignments for CP 523 (Passive TTY) to PT 88 (Active TTY) with BUSY Signal
3-8
EWA 4NEB 811 6044-02a
CP 523
Hardware Installation
RS-232-C (V.24) interface
Printer setting: Printer not ready to receive = no current
CP 523
PT 88
V.24 - TXD (11)
(3) RXD
V.24 - RXD
(2) TXD
Shield
CTS
(5)
(24/25)
(1) Shield
(9)
RTS (13)
DTR (15)
GND
(2/21/23)
DSR
(7)
(7) GND
(25) BUSY
Figure 3-8. Pin Assignment of the RS-232-C (V.24) Interface (Print Mode)
EWA 4NEB 811 6044-02a
3-9
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaa
aaaaaa
aaaaaaaaaaaa aaaaaaaa
aaaaaaaaaaaa aaaaaaaa
aaaaaaaaaaaa aaaaaaaa
aaaaaaaaaaaa aaaaaaaa
aaaaaaaaaaaa aaaaaaaa
aaaaaaaaaaaa aaaaaaaa
aaaaaaaaaaaa aaaaaaaa
aaaaaaaaaaaa aaaaaaaa
aaaaaaaaaaaa aaaaaaaa
aaaaaaaaaaaa aaaaaaaa
aaaaaaaaaaaa aaaaaaaa
aaaaaaaaaaaa aaaaaaaa
aaaaaaaaaaaa aaaaaaaa
aaaaaaaaaaaa aaaaaaaa
aaaaaaaaaaaa aaaaaaaa
aaaaaaaaaaaa aaaaaaaa
aaaaaaaaaaaa aaaaaaaa
aaaaaaaaaaaa aaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaa aaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaa
Hardware Installation
3.4.2
3-10
CP 523
Terminal Diagrams Communications Mode
The CP 523 assumes the following as peripheral device:
• Data terminal equipment, e.g. CP 521, CP 523, CPU 944
• Data communications equipment, e.g. a MODEM
CP 523 to CP 523 (TTY interface)
CP 523 (TTY passive)
CP 523 (TTY active)
TTY IN+
(6)
(22) 20 mA
TTY IN (8)
(10) TTY OUT+
(2)
TTY OUT+ (10)
TTY OUT - (12)
Shield
(24)
(2)
(24) Shield
Shield
(25)
(25) Shield
CP 521
TTY IN+
(6)
(22) 20 mA
TTY IN -
(8)
(10) TTY OUT+
(2)
TTY OUT+ (10)
TTY OUT - (12)
Shield
Shield
(24)
(25)
(2)
(24) Shield
(25) Shield
+
(12) TTY OUT -
Ground
(20) 20 mA
+
(6) TTY IN+
(8) TTY IN -
Ground
Figure 3-9. Pin Assignments for CP 523 to CP 523 (TTY Interface)
CP 521 (TTY passive) - CP 523 (TTY active)
CP 523
+
(12) TTY OUT -
Ground
(20) 20 mA
+
(6) TTY IN+
(8) TTY IN -
Ground
Figure 3-10. Pin Assignments for CP 523 (TTY Passive) to CP 523 (TTY Active)
EWA 4NEB 811 6044-02a
aaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaa
+
+
Ground
EWA 4NEB 811 6044-02a
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaa
CP 523
Hardware Installation
CPU 944 (TTY active) - CP 523 (TTY passive)
CPU 944
CP 523
20 mA
TTY OUT+
TTY OUT -
20 mA
(11)
(6) TTY IN+
(6)
(8) TTY IN -
(5)
(7)
Ground
(13)
(10) TTY OUT+
TTY IN+
(9)
(12) TTY OUT -
TTY IN -
(2)
(12)
Shield
(1)
(24) Shield
Shield
(8)
(25) Shield
Figure 3-11. Pin Assignments for CPU 944 (TTY Active) to CP 523 (TTY Passive)
3-11
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
a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aaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaa
Hardware Installation
CP 523
Zero modem operation: Connecting two DTEs taking the CP 523 to CP 523 example
CP 523
CP 523
(11)
V.24 -TXD
(5) V.24 - RXD
(15)
DTR
(7)
DSR
(9)
CTS
(13)
RTS
(2/21/23) GND
(24/25)
Shield
Figure 3-12. Zero Modem Operation Taking the CP 523 to CP 523 as Example
Connecting a DTE to a DCE taking the CP 523 to modem (SIEMENS 2425 B DX) as example
CP 523
Modem
V.24 -RXD (5)
(3)
Modem RXD
V.24 -TXD (11)
(2)
Modem TXD
RTS
(13)
(4)
Modem RTS
CTS
(9)
(5)
Modem CTS
DTR
(15)
(20)
Modem DTR
DSR
(7)
(6)
Modem DSR
GND
(2)
(7)
GND
(1) Shield
Figure 3-13. Pin Assignments for CP 523 to Modem
Note:
Only relevant in the case of communications using an RS-232-C (V.24) interface!
The ”3964(R) communications mode” data transmission procedure does not support control
lines (DSR, DTR, CTS, RTS).
EWA 4NEB 811 6044-02a
System Overview
Technical Description
Hardware Installation
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
1
2
3
4
5
6
7
8
Notes on Operation
4.1
4.1.1
4.1.2
4.1.3
Restart Characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4. . Checking the Module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4. . Memory Submodule Evaluation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4. Clock Test . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4. . -.
4.2
4.2.1
4.2.2
Performance during Operation
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4. - 3
Print Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4. . -. 4
Communications Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
..- 5
Address Assignment
Print Mode
Communication Mode
Using the ”SEND” and ”RECEIVE” Function Blocks
EWA 4NEB 811 6044-02a
1
1
2
3
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
Tables
4-1.
4-2.
4-3.
4-4.
4-5.
Module Errors/Faults . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4. .Memory Submodule Faults . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4. . Clock Test Errors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4. . -.
Faults in Operation (Print Mode)
. . . . . . . . . . . . . . . . . . . .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a
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
CP 523
•
•
•
•
4.1.1
Notes on Operation
4
Notes on Operation
4.1
Restart Characteristics
The CP 523 executes a restart routine when the power supply is restored (POWER ON).
The restart procedure consists of the following:
Clearing the Send and Receive mailboxes
Checking the module ( 4.1.1)
Memory submodule evaluation ( 4.1.2)
Clock test ( 4.1.3)
If errors occur during the restart procedure, the CP 523 forwards an error flag to the CPU in byte 0
"Module status" (Print mode 6.6, Communications mode 7.4).
Note:
The message buffer is not deleted on restart in Print mode if the module was battery-backed and
the memory submodule has not been replaced.
Checking the Module
In this part of the restart procedure, the proper functioning of the hardware is checked. Errors are
assigned an appropriate number in byte 0 "Module status" and can be evaluated in the control
program or with the programmer.
Table 4-1. Module Errors/Faults
Error/Fault
Number in Byte 0
EWA 4NEB 811 6044-02a
Error
Remedy
1XH
Clock defective
Replace module
8XH
Hardware fault
Replace module
X7H
No battery backup
Insert new battery in the power supply
module
XFH
CP in restart routine
Scan the status byte for XFH before issuing
the first job request
X : can assume different values
4-1
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaa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aaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
Notes on Operation
JU
*
4.1.2
4-2
CP 523
During the restart procedure, the CP signals "Module busy" (XFH) in the status byte. The CP cannot
accept any jobs during this time. For this reason, you must scan the module's status byte (byte 0)
for the XFH before issuing the first job request.
OB 22
FB 99
FB99
M001
Error Number in
Byte 0
:L
:T
Explanation
KH
PW
0000
128*
:L KH
:L PY
:AW
000F
128
Error
Wait loop until the CP 523 has completed
the restart routine.
:!=F
:JC =M001
:BE
5.2
Note:
The restart organization block OB 22 is only processed if the CPU is in RUN mode before you
switch from POWER OFF to POWER ON.
Variations in the restart behaviour of the CP 523 or its communications partner can lead to the
loss of data during the restart phase.
Memory Submodule Evaluation
The serial interface parameters and message texts specified on the module are checked in this
routine. Errors are assigned an appropriate number in byte 0 "Module status" and can be evaluated in the control program.
Table 4-2. Memory Submodule Faults
Remedy
X1H
Memory submodule
defective
PLC POWER OFF plug in functional
memory submodule PLC POWER ON
X2H
No message texts
configured
Configure message texts ( 6.4)
Wrong or defective memory submodule
plugged in?
X : may assume different values
EWA 4NEB 811 6044-02a
CP 523
4.1.3
Notes on Operation
Clock Test
The module's real-time clock is tested. The clock is set when the battery back-up fails during PLC
POWER OFF. The clock has the default setting 12:00:00 01.01.90.
Errors and the default setting are provided an appropriate number in byte 0 "Module status" and
can be evaluated in the control program.
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaa
Table 4-3. Clock Test Errors
Error Number in
Byte 0
Message
Remedy
1XH
Clock defective
Replace module
2XH
Clock set
Default setting
Transfer the correct time to the CP with the
programmer "FORCE VAR" Junction
X : may assume different values
4.2
Performance during Operation
You must note the following if you want to modify the configuration during operation:
•
•
•
The CP 523 may be plugged in or unplugged only when the power is switched off.
The memory submodule may only be plugged in or unplugged when the power is OFF.
To guarantee trouble-free printing, make sure the 25-pin subminiature D female connector is
only unplugged when the CPU is in STOP mode and data transfer between the CP and the
printer has been completed.
When the power is switched off, the battery provides backup for the clock data.
EWA 4NEB 811 6044-02a
4-3
Notes on Operation
4.2.1
CP 523
Print Mode
Operation in Print mode may be interrupted for various reasons. The following table lists the
effects of faults.
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaa
Table 4-4. Faults in Operation (Print Mode)
Fault
Comment
CPU goes to
STOP
POWER OFF
(CPU)
25-pin submin.
D connector
unplugged or
cable fault
Activated print jobs* are completed.
Activated print jobs are not continued
Battery backup
available
not available
BUSY line available
and BUSY signal
configured
otherwise
POWER OFF
(printer) **
Effect
BUSY line available
and BUSY signal
configured
Clock data and print jobs are retained
Clock data and print jobs are lost
Activated print jobs are completed after the
connection is re-established.
Perfect print quality is not guaranteed (e.g. smudged
characters).
Activated print jobs are not continued after the
connection is re-established.
Activated print jobs are completed after the
connection is re-established.
Perfect print quality is not guaranteed (e.g. smudged
characters).
otherwise
Activated print jobs are not continued after the
connection is re-established.
XON/XOFF protocol
configured
not configured
Activated print jobs are completed after the
connection is re-established.
Activated print jobs are not continued after the
connection is re-established.
* Print jobs ( 6.5)
** Characters in the internal printer buffer are lost
4-4
EWA 4NEB 811 6044-02a
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa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aaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaa
CP 523
4.2.2
Notes on Operation
Communications Mode
Operation may be interrupted for various reasons in Communications mode. The following table
lists the effects of faults.
Table 4-5. Faults in Operation (Communications Mode)
Fault
Fault in CP peripheral
device
connection
or
POWER OFF
(peripheral
device)
EWA 4NEB 811 6044-02a
Comment
Battery backup
available
not available
Effect
CPU goes to
STOP *
Data traffic continues between CP and peripheral
device. This can lead to overflow of the Receive
mailbox.
POWER OFF
(CPU)
Send and receive message frame data is lost
Clock data is retained
Clock data is lost
Data is corrupted during transmission (in both
directions) **
CP error message
• Character time-out
• Peripheral device not ready (after 20 s)
• Permanent line break
Bad message frames in Receive mailbox **
*
The data transfer between CPU and CP (Send or Receive) is aborted. The job must be restarted following transition
from STOP to RUN. This is of particular relevance for the S5-135U / 150U / 155U.
**
Data cannot be corrupted in 3964(R) mode, as the message frames are transmitted in a protocol message frame
( 7.4).
Note:
If you operate the RS-232-C (V.24) interface without handshaking (Handshake OFF), the CP 523
cannot detect a break in the connection between the CP and the peripheral device.
4-5
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
1
2
3
4
5
6
7
8
System Overview
Technical Description
Hardware Installation
Notes on Operation
Address Assignment
5.1
5.2
Setting the Start Address and the I/O Area
. . . . . . . . . . . . . . . . . . . . .5 - 1
Access to the Transfer Memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5. - 3
Print Mode
Communications Mode
Using the ”SEND” and ”RECEIVE” Function Blocks
EWA 4NEB 811 6044-02a
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa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er Memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5. . - 3
Tables
Switch Settings on Switch Bank S1 for Defining the Start Address . . . . . . . . 5 - 2
Settings on Switch Bank S1 for Defining the I/O Area . . . . . . . . . . . . . . . . . . . 5 - 2
EWA 4NEB 811 6044-02a
CP 523
5
Address Assignment
Address Assignment
This section describes
• how to set the module address ( 5.1)
• when the CP accepts data from the CPU ( 5.2)
• when the CP supplies current data for the CPU ( 5.2)
5.1
Setting the Start Address and the I/O Area
The CP incorporates an eight-byte transfer memory. All data between the CPU and the CP is
exchanged via this area, which can be read and written to by the CPU. You must set the following
with the DIP switches on the S1 switch bank:
• The desired start address with switches S1.1 to S1.5
• The desired I/O area with switches S1.6 to S1.8
Jumper header
Jumper X7: closed
Jumper X9: open
Jumper X8: open
Jumper X6: closed
(beginning revision level 2)
1
8
OFF ON
Switch bank S1
for
address setting
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaa
Figure 5-1. Address Switch Locations
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaa
Note:
The modules are factory-set to start address 128 set in the P (normal I/O) area. Make sure before
startup that there are not several modules reserving the same address space.
The byte and word numbers specified in this manual always refer to the start address that you
have set:
Example:
You have set start address 128 using DIP switches S1.1 to S1.5
Word 0 has address 128 + 0 = 128, word 6 address 128 + 6 = 134.
EWA 4NEB 811 6044-02a
5-1
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
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aaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaa
Address Assignment
I/O Area
P (normal
I/O) area
=on
5-2
CP 523
Table 5-1. Switch Settings on Switch Bank S1 for Defining the Start Address
Start Address
(not in the P Area)
Switch setting
Switch bank S1
1 2 3 4 5
Absolute Address
in RAM
F080H...F0FFH
Q (extended
I/O) area
F100H...F1FFFH
IM 3
FC00H...FCFFH
IM 4
FD00H...FDFFH
Start Address
0
128
8
136
16
144
24
152
32
160
40
168
48
176
56
184
64
192
72
200
80
208
88
216
96
224
104
232
112
240
120
248
Switch Setting
Switch BankS1
6
7
8
Switch Setting
Switch Bank S1
1 2 3 4 5
Table 5-2. Settings on Switch Bank S1 for Defining the I/O Area
Remarks
Beginning start address128
not in the S5-
115U
...
Can only be read and written to with
LIR and TIR
Can only be read and written to with
LIR and TIR
=off
EWA 4NEB 811 6044-02a
CP 523
5.2
Address Assignment
Access to the Transfer Memory
The CPU can write data to the transfer memory at any time.
After the CPU has written the relevant data into word 0,
• the CP 523 fetches data from the transfer memory
• the CP 523 updates the transfer memory with current data
• the CPU can read the current data from the transfer memory
This has the following consequences for the order in which data is transferred from the CPU to the
transfer memory:
• Words 2, 4 and 6 in the transfer memory must be written first if the job requires it. If you want
to print a message text into which three variables are to be inserted, for example, the actual
variable values must be transferred in words 2, 4 and 6.
• Finally, the job number must be written to the transfer memory in word 0.
CPU transfers
data to words
2, 4 and 6 of
the transfer
memory
(T PW X).
CPU transfers
data to word 0
of the transfer
memory
(T PW X).
CP reads the
transfer
memory.
CP writes
current data to
the transfer
memory.
CPU can read
current data
from the
transfer
memory
(L PW X).
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
Figure 5-2. Using the Transfer Memory
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaa
Note:
If you do not observe this order, the new job may be executed with the wrong values.
Special feature of the CPU 944 when accessing the transfer memory
If you are using the CPU 944, you may not write data to word 0 of the transfer memory with T PW
<Start address of the module>. You must write the data to word 0 byte for byte in the following
order:
1. T PY <Start address of the module>
(byte 0)
2. T PY <Start address of the module + 1>
(byte 1).
EWA 4NEB 811 6044-02a
5-3
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaa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aaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaa
Address Assignment
Example:
5-4
L
T
L
KH 0030
PY 128
KF+20
T
PY
Example:
Operand
PY 128
PY 129
:
:L
:L
FW 128
:! = F
:BEC
FW 228
:L
:T
FW 128
FW 228
:L
:T
:L
FY 128
PY 128
FY 129
:T
:BE
PY 129
CP 523
Writing to word 0 of the transfer memory with the CPU 944 in the user program
Initial address 128 is set in the P area on the CP. The job number for "Print message text No. 20" is
to be written to word 0.
STL FB XYZ
Explanation
129
Load ACCUM 1 with the job number "Print message text".
Transfer the low byte of ACCUM 1 to the CP.
Load messsage text number into ACCUM 1.
Transfer the low byte of ACCUM 1 to the CP.
Writing to word 0 of the transfer memory with the CPU 944 using the programmer's
"FORCE VAR" function
Start address 128 is set in the P area on the CP. The job number for "Print all configured message
texts" (8000H) is to be transferred to word 0 using the "FORCE VAR" function.
Only when you convert a peripheral (I/O) word (PW) to a flag word (FW) can you force it with the
"FORCE VAR" function. For this reason, store PW 128 in FW 128 of FY 10. FW 128 can then be
forced in the "FORCE VAR" screen form. FW 228 is an auxiliary word for comparing the old/new
values.
Signal States
KH=80
KH=00
Explanation
Write the "Print all configured message texts" job
number 8000H to bytes 0 (80H) and 1 (00H) of the
transfer memory
STL FB 10
Explanation
Load old value
Load new value
Compare for equal
Block end if equal
Update old value
if not equal and
Transfer flag word byte by byte
to the peripheral (I/O) word
Block End
EWA 4NEB 811 6044-02a
System Overview
Technical Description
Hardware Installation
Notes on Operation
Address Assignment
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
1
2
3
4
5
6
Print Mode
6.1
General . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6. . -. 1
6.2
Prerequisites for Operation in Print Mode
6.3
6.3.1
6.3.6
Setting the CP 523 Parameters in Print Mode . . . . . . . . . . . . . . . . . . . 6 Setting the Serial Interface Parameters
(Parameter Blocks 0, 1 and 2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6. Configuration Data for Entering Message Texts
(Parameter Block 3) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6. . Configuration Data for Message Text Printout
(Parameter Blocks 4 to 6) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6. Configuring the Character Conversion Table
(Parameter Block 8) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6. . Configuring the Correction Value for the Integral Clock
(Parameter Block 9) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6. . Example for Configuring the CP 523 in Print Mode
.............. 6 -
6.4
6.4.1
6.4.2
6.4.3
6.4.4
6.4.5
6.4.6
Configuring Message Texts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6.
Structure of a Message Text . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6.
Entering Spaceholders . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
..
Spaceholders for Date and Time of Day . . . . . . . . . . . . . . . . . . . . . . . .6
Spaceholders for Control Parameters . . . . . . . . . . . . . . . . . . . . . . . . . .6
Spaceholders for Message Text . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.
Spaceholders for Variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6.
6.5
Processing Job Requests in Print Mode . . . . . . . . . . . . . . . . . . . . . . . . .6 - 30
6.6
Status of the CP 523 and the Printer, and Reading the
Current Clock Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6. . - 34
6.7
6.7.1
6.7.2
6.7.3
6.7.4
6.7.5
6.7.6
6.7.7
6.7.8
Overview of Permissible Jobs in Print Mode . . . . . . . . . . . . . . . . . . . . . 6
Print the Message Text (Job Numbers 0, 3 and 4) . . . . . . . . . . . . . . . . 6
Setting Time and Date (Job Number 10H) . . . . . . . . . . . . . . . . . . . . . . 6
Setting the Page Number (Job Number 20H) . . . . . . . . . . . . . . . . . . . . 6
.
Form Feed (Job Number "5000H") . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
Line Feed (Job Number "6000H") . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.
Clearing the Message Buffer (Job Number "7000H")
............. 6
.... 6
Printing All Configured Message Texts (Job Number "8000H")
Transferring the Parameter Setting Data (Job Number 90H)
...... 6
6.3.2
6.3.3
6.3.4
6.3.5
7
8
Communications Mode
Using the ”SEND” and ”RECEIVE” Function Block
EWA 4NEB 811 6044-02a
. . . . . . . . . . . . . . . . . . . . . .6 - 1
-
-
3
5
7
8
11
13
14
15
15
17
19
20
23
26
38
41
45
45
46
46
47
47
48
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
Figures
Schematic for Entering Parameter Blocks in DB 1 . . . . . . . . . . . . . . . . . . . . . . . 6 Schematic for Entering Headers and Footers . . . . . . . . . . . . . . . . . . . . . . . . . . .6 Schematic for Configuring the Character Conversion Table . . . . . . . . . . . . . . 6 Structure of a Message Text . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6. . Structure of a Spaceholder . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6. . Schematic Representation of Job Order Processing in Print Mode . . . . . . . . 6 Schematic Representation of Job Request Processing . . . . . . . . . . . . . . . . . . . 6 Schematic for ”Print Message Text” . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6. -
4
10
11
15
17
30
33
42
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
6-1.
6-2.
6-3.
6-4.
6-5.
6-6.
6-7.
6-8.
Tables
6-1.
6-2.
6-3.
6-4.
6-5.
6-6.
6-7.
6-8.
6-9.
6-10.
6-11.
6-12.
6-13.
6-14.
6-15.
6-16.
6-17.
6-18.
6-19.
6-20.
6-21.
6-22.
Contents of the Parameter Blocks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6. - 3
Parameter Setting Data for the Serial Interface
. . . . . . . . . . . . . . . . . . . . . . . .6 - 5
Configuration Data for Entering Message Texts (Parameter Block 3)
..... 6 - 7
Configuration Data for Message Text Printout (Parameter Blocks 4 to 6)
.. 6 - 8
Page Format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6. .-. 9
Correction Value for the Integral Clock (Parameter Block 9)
. . . . . . . . . . . . . 6 - 13
Overview of Spaceholders Configurable in Message Texts . . . . . . . . . . . . . . . 6 - 18
Data Formats for Variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6. . - 26
Typical Printouts of the ”KT” Data Format
............................6
. - 27
Typical Printouts of the ”KF” Data Format
............................6
. - 27
Value Ranges for the Number of Characters to be Printed and Places
After the Point (”KFa.b” Format)
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6. - 27
Typical ”KFa.b” Data Format Printouts
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6. - 28
Value Ranges for the Number of Characters to be Printed
and Decimal Places . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6. . -. 29
Typical ”KGa.b” Data Format Printouts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6. - 29
Status of the Module in Print Mode (Byte 0)
. . . . . . . . . . . . . . . . . . . . . . . . . . .6 - 34
Status of the Printer and Day of the Week . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
. - 35
Status of the Printer, Date and Time of Day . . . . . . . . . . . . . . . . . . . . . . . . . . . .6 - 36
Permissible Job Requests to the CP 523 in Print Mode . . . . . . . . . . . . . . . . . . . 6 - 38
Transferring Additional Information for
”Print Message Text” . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6. .- 39
Transferring Additional Information for
”Print Message Text” . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6. .- 39
Contents of the Transfer Memory for
”Print Message Text” . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6. .- 41
Contents of the Transfer Memory for ”Set Clock” Job
. . . . . . . . . . . . . . . . . . . 6 - 45
EWA 4NEB 811 6044-02a
CP 523
Print Mode
6
Print Mode
6.1
General
The CP 523 enables the output of message texts to a printer in Print mode:
•
Output of message texts defined by you in data blocks (DB) 2 to 255 on the memory submodule.
Insertion of the actual time of day and date in the message text to be printed out. The clock
data is supplied by the integral real-time clock.
Insertion of current variables in the printout.
The variable values can be transferred from the CPU to the CP 523.
•
•
6.2
Prerequisites for Operation in Print Mode
The following conditions must be met in order to operate the CP 523 in Print mode:
1. Printer settings
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaa
The printer settings must agree with your configured settings on the memory submodule (parameter blocks in DB 1). If you have set a baud rate of 1200 baud on the printer, for example, you
must set the same baud rate in DB 1.
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaa
Note:
Set the parameters for the serial interface as required and then set the parameters in DB 1 in
the memory submodule.
• See 3.4.1 for configuration examples with terminal diagrams.
• Parameter setting in DB 1 is explained in 6.3.
2. Setting the CP 523 parameters
Store all parameter setting data in DB 1 on the memory submodule :
• Parameters for the printer interface (baud rate, type of interface, BUSY signal, ...)
• Configuration data for entering message texts (function character, end-of-text character)
• Configuration data for the message text printout (output format for date and time of day,
headers and footers, ...)
• Correction factor for the accuracy of the integral real-time clock
Set the memory submodule parameters using a programmer in off-line mode.
EWA 4NEB 811 6044-02a
6-1
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaa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aaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaa
Print Mode
6-2
CP 523
3. Configuring message texts
You must configure at least one message text in one of the DBs 2 to 255 on the memory submodule.
Note:
If you have configured a message text in a DB, you can configure further message texts later in
other DBs and store them on the memory submodule.
See 6.4 for information on configuring message texts.
4. Establishing connections
You must take the following measures when the programmable controller is switched off:
• Install the CP 523 in the central controller or the expansion unit.
• Establish a connection between the CP 523 and the printer.
• Plug the configured memory submodule into the CP 523.
You can then power up the programmable controller (POWER ON).
5. Startup of the CP 523 in Print mode
If the CP 523 has a memory submodule, it is automatically in Print mode after power-up.
If the CP 523 has no memory submodule, it is automatically in Transparent mode.
Changing operating modes (during operation)
You can change back and forth between "Print mode", "Transparent mode" and "Interpretive
mode" during operation.
Note:
If you
• change the mode
or
• reinvoke the programmed mode,
the send and receive buffers and all print requests will be deleted.
To change the operating mode, forward the job number for "Transfer parameter setting data"
(90XXH) to the CP 523. Remember that the parameters must agree with the settings on your
peripheral device.
EWA 4NEB 811 6044-02a
CP 523
6.3
Print Mode
Setting the CP 523 Parameters in Print Mode
The CP 523 can only be operated in Print mode if an initialized memory submodule has been
plugged in. Store the following in the memory submodule:
•
•
Parameter setting data for the CP 523 in data block (DB) 1
Message texts in DB 2 to 255 ( 6.4)
The CP 523 has default values for all parameters.
•
•
•
Parameters for the printer interface (baud rate, type of interface, BUSY signal, ...)
Configuration data for entering message texts (function character, end-of-text character)
Configuration data for the message text printout (output format for date and time of day,
headers and footers, ...)
If you want to configure the CP 523 with other data, you must store the configuring data on a
memory submodule in DB 1. This data is subdivided into ten parameter blocks to simplify entry as
much as possible.
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
Table 6-1. Contents of the Parameter Blocks
Parameter
Block Number
Contents
Setting the serial interface parameters:
0
Serial interface parameters
1
Waiting times after "CR", "LF" and "FF"
(only relevant if BUSY signal "0" and no XON/XOFF protocol has been
configured)
2
XON/XOFF protocol (only relevant if XON/XOFF protocol is in use)
The XON/XOFF protocol has priority over the BUSY signal
Configuring data for entering message texts:
3
Text parameters
Configuring data for message text printout:
4
Output format for date and time of day
5
Page format
6
Headers and footers (only relevant if headers and footers are to be printed)
Setting the mode:
7
Parameters for Communications mode
8
Character conversion table
9
Correction value for the integral clock
EWA 4NEB 811 6044-02a
6-3
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaa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
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaa
Print Mode
6-4
CP 523
Dividing the parameters into ten parameter blocks enables you to initialize only the parameter
block you want to modify. However, this parameter block must be entered in its entirety even if
individual parameters within the block are to retain their default values.
Entering the parameter blocks
You must first enter all the parameter blocks you want to change in DB 1 using the programmer.
Then transfer DB1 to the memory submodule.
Note:
Proceed as follows to change a DB in the memory submodule:
1. Transfer total contents of the memory submodule from the memory submodule to the
programmer (diskette, hard disk)
2. Delete memory submodule
3. Change DB
4. Transfer total memory contents back to the memory submodule
Further tips for input:
• When entering text, alternate between data format KS and S for each line. This increases the
clarity of presentation on the programmer screen.
• You can enter comments in addition to the parameter blocks.
Schematic for entering parameter blocks
The parameter blocks can be entered in DB 1 according to the following schematic:
Block separator
”:” (3AH)
Parameter block
number
Configuration
data
Figure 6-1. Schematic for Entering Parameter Blocks in DB 1
Note:
Parameter blocks 0, 2 and 7 can also be initialized in the user program. Parameters set in the
user program have priority over those set on the memory submodule ( 7.3.2).
EWA 4NEB 811 6044-02a
aaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaa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aa
aaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaa
CP 523
6.3.1
0
Print Mode
Setting the Serial Interface Parameters (Parameter Blocks 0, 1 and 2)
Store the data for the serial interface in parameter blocks 0, 1 and 2. If you enter an illegal value, it
will be replaced by the default value.
Table 6-2. Parameter Setting Data for the Serial Interface
Parameter
Block
Description
Baud rate
Parity
BUSY signal
Interface
Data format:
11-bit character
frame
10-bit character
frame
Hardware handshaking
1
Waiting time after
2
XON character
XOFF character
EWA 4NEB 811 6044-02a
Value Range
110 Bd
200 Bd
300 Bd
600 Bd
1200 Bd
2400 Bd
4800 Bd
9600 Bd
1
2
3
4
5
6
7
8
even
odd
”mark”
”space”
no parity check
0
1
2
3
0
no
yes
0
1
0
TTY
V.24
0
1
0
0
1
2
0
7 data bits
8 data bits
8 data bits
Parity:
(yes)
(yes)
(no)
7 data bits
7 data bits
8 data bits
(no)
(yes)
(no)
OFF
ON
0
1
CR
LF
FF
(00H to FFH) · 25ms
(00H to FFH) · 25ms
(00H to FFH) · 25ms
ASCII character
(01H ... 7FH)
ASCII character
(01H ... 7FH)
Default Value on the
CP 523
4
4
3
4
5
0
0AH 0.25 s
0AH 0.25 s
A0H 4 s
FFH (no XON / XOFF protocol)
FFH (no XON / XOFF protocol)
6-5
Print Mode
CP 523
Baud rate
You have a choice of eight baud rates. The default is 600 baud. If you use the RS-232-C (V.24)
interface, you must take the load capacitance of cables longer than 15 m into account. If you
operate the CP 523 with an active TTY interface, a cable length of up to 10 m/33 ft. is possible.
With a passive TTY interface, cable lengths of up to 1000 m/3280 ft. are possible.
Longer cables can be implemented in general in conjunction with reduced baud rates.
Parity
You have a choice of five types of parity.
• Even parity
The parity bit is set when the number of data bits with a value of ”1” is uneven.
• Odd parity
The parity bit is set when there is an even number of data bits with a value of ”1”.
• Mark
The parity bit is always "1".
• Space
The parity bit is always "0".
• No parity check
The signal state of the parity bit is not significant. Parity is not checked when receiving;
however, the parity bit is always set to "1" when sending.
Even parity is the default.
BUSY signal
The BUSY signal is only relevant if you operate the module in Print mode without XON/XOFF
protocol.
The waiting times for "CR", "LF" and "FF" are not significant when evaluating the BUSY signal.
Interface
You can choose between the RS-232-C (V.24) and TTY interfaces here. See 2.3 for the characteristics of the interfaces.
The TTY interface is the default.
Data format
Characters are transmitted between the CP and the peripheral device in a 10-bit or 11-bit character frame. You can choose between seven and eight data bits within the character frame:
10-bit-character frame:
• 1 start bit, 7 data bits, 2 stop bits
• 1 start bit, 7 data bits, 1 parity bit, 1 stop bit
• 1 start bit, 8 data bits, 1 stop bit
(data format 3 in parameter block 0)
(data format 4 in parameter block 0)
(data format 5 in parameter block 0)
11-bit-character frame:
• 1 start bit, 7 data bits, 1 parity bit, 2 stop bits
• 1 start bit, 8 data bits, 1 parity bit, 1 stop bit
• 1 start bit, 8 data bits, 2 stop bits
(data format 0 in parameter block 0)
(data format 1 in parameter block 0)
(data format 2 in parameter block 0)
The default is an 11-bit character frame (1 start bit, 7 data bits, 1 parity bit, 2 stop bits).
6-6
EWA 4NEB 811 6044-02a
CP 523
Print Mode
Parameters for waiting times
These parameters are only significant if you are not using an XON/XOFF protocol in Print mode
and if you are not evaluating the BUSY signal.
You can set waiting times for Carriage Return (CR), Line Feed (LF) and Form Feed (FF) in multiplex
of 0.25 s.
Parameters for XON/XOFF character
If you have an XON/OFF protocol, you have a free choice of XON/XOFF characters. Code 11H (DC1)
is reserved in ASCII code for the XON character and code 13H (DC3) for the XOFF character. You
must not use the same values when initializing the XON/XOFF characters.
If the XON/XOFF characters are valid, the printout is implemented with XON/XOFF protocol. The
"Print with BUSY signal" setting and parameter block 1 (waiting times) are then insignificant.
6.3.2
Configuration Data for Entering Message Texts (Parameter Block 3)
Message texts must always contain an end-of-text character ( 6.4). If you configure spaceholders
in the message text, they must be delimited by a function character.
You can configure any ASCII character you want as function character and end-of-text character.
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaa
Table 6-3. Configuration Data for Entering Message Texts (Parameter Block 3)
Parameter Block
3
EWA 4NEB 811 6044-02a
Text Parameter
Value Range
Default Value on
the CP 523
End-of-text
character
ASCII character (01H to 7FH)
$ (24H)
Function character
ASCII character (01H to 7FH)
” (22H)
6-7
Print Mode
6.3.3
CP 523
Configuration Data for Message Text Printout (Parameter Blocks 4 to 6)
If you enter an illegal value, the CP will replace it with the relevant default value.
• If the lower limit is exceeded, the lower limit value is set.
• If the upper limit is exceeded, the upper limit value is set.
Example:
Input:
Input:
Lines per page "10H" is replaced by "14H"
Left margin "80H" is replaced by "3CH"
Configuration Data for Message Text Printout (Parameter Blocks 4 to 6)
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
Table 6-4.
Parameter
Block
4
Description
Date and time of day:
Order for date
Value Range
Default Value
on the CP 523
Any combination of year,
month and day is
permissible
(lowercase also permissible)
TMJ
Separator for date
ASCII character (20H to 7FH)
”.” (2EH)
Order for time of day
HMS, HSM, MSH, MHS, SHM, HMS
SMH
(lowercase also permissible)
J,Y
M
= Year
= Month
T,D
= Day
H
M
= Hours
= Minutes
S
= Seconds
Separator for time of day
ASCII character (20H to 7FH)
”:” (3AH)
24h clock
12h clock
d, D
e, E
D (24h clock)
14H to FFH
00H to 3CH
48H (72D)
00H
o, O, h, H
u, U, f, F
other characters
u
Page format
5
Lines per page
Left margin
Page number
top
bottom
none
Header and footer
6
6-8
Header 1
Header 2
Footer 1
Footer 2
K1”Text”, H1”Text”
K2”Text”, H2”Text”
F1”Text”
F2”Text”
No header or
footer
EWA 4NEB 811 6044-02a
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaa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aaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
CP 523
1
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
n
Print Mode
Page format
The page format is defined by the information given in parameter blocks 5 and 6.
Table 6-5. Page Format
Line
Page Format
Blank line
Blank line
Blank line
Header 1
Header2
Blank line
Blank line
Blank line
Blank line
Footer 1
Footer 2
Blank line
Blank line
Blank line
EWA 4NEB 811 6044-02a
(if page number, header or footer has been configured)
(if page number, header or footer has been configured)
Page No. at top
(if page number configured at top)
(if header(s) configured)
(if header(s) have been configured)
Lines for message texts
A maximum of 4095 message texts can be configured.
A message text may not exceed 136 characters
Configuration is described in 6.4.
(if footer(s) configured)
(if footer(s) configured)
(if the page number is configured at bottom)
Page number at bottom
(if page number, header or footer has been configured)
(if page number, header or footer has been configured)
Left margin (configurable up to 60 characters)
Number of lines per page: 20 to 255
(configurable within the range 14H to FFH )
Note:
The CP 523 counts the lines on a page using the line feeds (LF) sent to the printer.
If you print 15 message texts with CR/LF, for example, the CP counts 15 lines. The CP does not
count the additional lines for message texts longer than one line.
6-9
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaa
Print Mode
6-10
CP 523
Configuring headers and footers
You can configure up to two headers and two footers.
The headers and footers may contain spaceholders for the date and time of day as well as for
control characters. Spaceholders for variables and message texts are not evaluated, and appear in
the printout as configured.
Headers and footers are configured according to the following schematic:
If entering more than one header or footer
Block
separator
”:” (3AH)
Parameter
block
number
Header or
footer
number
”6” (36H)
(K1, K2, F1, F2)
Text
End-oftext
character
”$”
Figure 6-2. Schematic for Entering Headers and Footers
Enter the header or footer in the same manner as the ASCII characters of a message text ( 6.4).
Note:
A header or footer must not be configured with more than 136 characters. The printed text may
be longer than one line if spaceholders are used.
Continuous printout
It is recommended that the message text printout be configured as followes if you want to output
your message texts to screen:
• without page number (parameter block 5)
• without header
(parameter block 6)
• without footer
(parameter block 6)
You will get so a continous printout of all message texts.
EWA 4NEB 811 6044-02a
CP 523
6.3.4
Print Mode
Configuring the Character Conversion Table (Parameter Block 8)
Up to sixteen ASCII characters from the printer character set can be converted to another character
set for the purpose of adapting to special national characters.
Block 8 must be configured according to the following schematic:
When converting several ASCII characters
Block
separator
Parameter
block
number
”:” (3AH)
”8” (38H)
ASCII
character
to be
converted
Point
or
period
”.”
(2EH)
Code
sequence
Comma
”,”
(2CH)
Consists of a maximum of 7 characters
Code
sequence for
desired
character set
Code for
character to
be converted
Code sequence
for selecting the
previously valid
character set
Figure 6-3. Schematic for Configuring the Character Conversion Table
EWA 4NEB 811 6044-02a
6-11
Print Mode
Example:
CP 523
Configuring the character conversion table for the PT 88/89
The printer is initialized for the international character set. It also contains the character sets of
other languages, among them German.
You want to print the following:
1. The character "Ä" (5BH of the German character set)
The character with the ASCII code "5BH" "[" of the
international character set must be converted.
2. The character "Ö" (5CH of the German character set)
The character with the ASCII code "5CH" "\" of the
international character set must be converted.
[ASCII character:ESC(K]
[ASCII character:ESC(@].
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
Selecting the German character set: 1BH 28H 4BH
Selecting the international character set: 1BH 28H 40H
Entry on PG 675 for DB 1
Explanation
KS =
:8
KH =
KH =
KH =
5B2E
1B28
4B5B
KH =
KH =
KH =
1B28
402C
5C2E
KH =
KH =
KH =
1B38
4B5C
1B28
KH =
402C
Block separator ”:”, Parameter block ”8”,
Character to be converted ”[”, Point/period”.”
Code sequence for German character set
Code cont., character "Ä"
Code sequence for international character set
Code cont., comma ”,”*
Character to be converted ”\”, Point/period”.”
Code sequence for German character set
Code cont., character "Ö"
Code sequence for international character set
Code cont., comma ”,”*
* The comma tells the CP 523 that conversion of the previous character is complete
6-12
EWA 4NEB 811 6044-02a
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaa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aaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
CP 523
:
Print Mode
6.3.5
Configuring the Correction Value for the Integral Clock
(Parameter Block 9)
You can configure a correction value to increase the accuracy of the clock. The correction value is
printed in s/month. A month is defined as 30 days.
Table 6-6. Correction Value for the Integral Clock (Parameter Block 9)
Parameter
Correction value
Example:
KS = ':9+090';
EWA 4NEB 811 6044-02a
Value Range
-400D to +400D s/month
Entry on the PG for DB 1
Default Value
0000D
Note:
The correction value must always be specified as a four-digit number (incl. sign)!
Determining the correction value
You have observed that the clock loses 12 s in 4 days. This would amount to 90 s in 30 days. The
correction value is then +090 s/month.
Explanation
Block separator ”:”
Parameter block number ”9”
Correction value "+090"
6-13
Print Mode
6.3.6
CP 523
Example for Configuring the CP 523 in Print Mode
Start address 128 is set on the CP 523. Configure the CP as follows:
•
Parameters for the serial interface
- 2400 baud
- Even parity
- No BUSY signal
- RS-232-C (V.24) interface
- 7 data bits (11-bit frame)
- Handshake OFF
. . . . . . . . . . . . . . . . . . . . . . . . . . . . .(parameter
.
block 0)
(6)
(0)
(0)
(1)
(0)
(0)
•
Parameters for waiting times
. . . . . . . . . . . . . . . . . . . . . . . . . . . . .(parameter
.
block 1)
Not significant since XON/XOFF protocol is to be used
•
XON/XOFF protocol
- XON character: DC 1
- XOFF character: DC 3
•
Configuration data for entering message texts
No change with respect to default values
•
Configuration data for message text printout
- Time of day and date unchanged with respect
to default values
. . . . . . . . . . . . . . . . . . . . . . . . . . . . .(parameter
.
block 4)
- Page format:
64 lines/page . . . . . . . . . . . . . . . . .(parameter block 5)
10 characters left margin
Page number at bottom
- Header:
”Test mode” . . . . . . . . . . . . . . . . . .(parameter block 6)
Footer:
”Laboratory”
. . . . . . . . . . . . . . . . . . . . . . . . . . . . .(parameter
.
block 2)
(11H)
(13H)
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaa
. . . . . . . . . . . . . . . . . . . . . . (.parameter block 3)
Entry on the PG 685 for DB 1
:
KS = 'Parameters for the serial';
:
:
S = 'interface';
KS = ':0600100';
:
S = 'XON/XOFF protocol';
:
:
KS = ':2';
KH = 1113
:
:
S = 'Message text printout';
KS = ':5';
KH = 400A
:
:
KS = 'B'
S = 'Headers and footers';
KS = ':6K1Test mode$';
:
S = 'F1Laboratory$';
Explanation
Parameter block 0
2400 baud (6H), Even parity (0H),
No BUSY signal (0H), RS-232-C (V.24)
interface (1H),
7 data bits (0H), (11-bit frame)
Handshaking OFF (0H),
Parameter block 2
XON character: DC 1 (11H)
XOFF character: DC 3 (13H)
Parameter block 5
64 lines/page (40H), 10 characters left
margin (0AH)
Page number at bottom
Parameter block 6
Header 1: Test mode
Footer 1. Laboratory
:
6-14
EWA 4NEB 811 6044-02a
CP 523
6.4
Print Mode
Configuring Message Texts
Store the message texts on the memory submodule in data blocks 2 to 255 under a message text
number in the range 1 to 4095. Each message text may comprise up to 136 characters, including
variables. Memory submodule capacity must be taken into account.
The message texts can be distributed over several data blocks in any sequence:
•
•
•
•
You can store the message texts in any data blocks (e.g. message text 13 in DB 20, message
texts 5 and 18 in DB 7, ...).
You can enter the DBs on the programmer in any order (DB 17, DB 3, ...).
The message texts within a DB should be continuous. Your message texts will be clearer if you
separate the message texts from each other by pressing the enter key ( Figure 6-4).
The DBs on the memory submodule are independent of the DBs in the CPU. For example, you
can store message texts in DB 54 on the memory submodule while simultaneously using a
DB 54 in the user program.
6.4.1
Structure of a Message Text
When configuring message texts, you must keep to the following structure, otherwise a correct
printout cannot be guaranteed.
Message text
number
(1 to 4095)
Separator
ASCII characters of
End-of-text
character
”:”
the message text
(Default: $)
can consist of
Text
Spaceholders for
date, time, variables and message texts as
well as control parameters for the printer
(CR, LF, bold type, double-width type etc.)
Enter key (only when entering several message texts)
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaa
Figure 6-4. Structure of a Message Text
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaa
Note:
To make screen presentation clearer, alternate between data formats "KS" and "S" in the input
lines.
EWA 4NEB 811 6044-02a
6-15
Print Mode
CP 523
Message text number
The message text is stored in the DB under a message text number (1 to 4095).If you want to print
a message text, transfer the message text number and a "Print message text" request to the CP
523 in the user program ( 6.7.1).
Separators
After the message text number you must enter the separator ":".
ASCII characters in the message text
You can enter up to 136 ASCII characters of message text. Characters exceeding 136 are not
evaluated. The printout of the configured message text on the printer may be longer than 136
characters.
Example:
You configure a message text which is longer than 136 characters.
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaa
The message text includes spaceholders for the time of day. This requires an entry of only three
ASCII characters (e.g. "t"). On output, the spaceholder is replaced by the current time of day
(e.g. 15:00:00) (8 characters).
The message text printed out is thus 141 characters long.
Note:
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaa
A message text of more than 136 may corrupt the print format (depending on printer line feed,
page makeup...).
The following can be entered as ASCII characters:
• Text
The text can contain all printable characters (see the manual for the printer).
• Spaceholders
You can insert the following in a message text by configuring spaceholders:
- The date
- The time of day
- Variables
- Further message texts
In addition, you can enter spaceholders for control parameters (double-width characters,
subscript...).
6-16
EWA 4NEB 811 6044-02a
CP 523
Print Mode
Example:
Configuring message texts without spaceholders
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaa
You want to store the following message texts in DB2:
Message text 4:
Excess temperature
Message text 5:
Coolant loss
Entry on the PG 685 for DB 2
0:
11:
6.4.2
Explanation
KS = '4:Excess temperature$';
Message text number 4, Separator ”:”,
Message text, End-of-text character ”$”
S = '5:Coolant loss$';
Message text number 5, Separator ”:”,
Message text, End-of-text character ”$”
Entering Spaceholders
Spaceholders are used for inserting the date, time of day, variables, control parameters and
further message texts.
Some spaceholders can also be used in headers and footers. The headers and footers are
configured on the memory submodule in data block 1, parameter block 6 ( 6.3.3).
A spaceholder is enclosed between function characters. You can configure the function characters
in data block 1, parameter block 3. The default value for the function characters is 22H = ".
Function character
Spaceholder
Function character
Figure 6-5. Structure of a Spaceholder
Wrongly entered spaceholders are treated as text.
EWA 4NEB 811 6044-02a
6-17
Print Mode
CP 523
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
Table 6-7. Overview of Spaceholders Configurable in Message Texts
Spaceholder
Meaning
Max. Number in
Configurable in
One Message Text Header and Footer
D
Insert
date
1
Yes
T
Insert
time of day
1
Yes
max. 50
Yes
Sa,b, . . .
Transfer
printer control
parameters
Comment
KPa
Insert message
text (fixed
message text
number)
Unlimited
No
The message text to
be printed must be
250 characters
long
KV
Insert message
text (variable
message text
number)
3
No
The message text to
be printed must be
250 characters
long. Transfer
message text
numbers in bytes
2 to 7 to the CP.
Three 16-bit
variables or one
32-bit variable +
one 16-bit variable
No
Transfer values of
the variables in
bytes 2 to 7 to the
CP
Data
format
(KH, KF,
KG...)
Insert
variable
You can enter spaceholders in either lower or uppercase.
Example:
Spaceholders for date and time of day:
Spaceholders for variables:
”D”, ”d”, ”T”, ”t”
”KH”, ”Kh”, ”kH”, ”kh”
Transfer of data when using the "Insert message text" spaceholder KV and the "Insert variables"
spaceholders.
Transfer the messsage text numbers for the "Insert message text" spaceholder KV and the values
for the "Insert variables" space-holders to bytes 2 to 7 on the CP.
Access to bytes 2 to 7 depends on the order of the spaceholders in the message text.
• The first spaceholder in the message text is replaced by the data in bytes 2 and 3.
• The second spaceholder in the message text is replaced by the data in bytes 4 and 5.
• The third spaceholder in the message text is replaced by the data in bytes 6 and 7.
Special rules apply to the use of spaceholders for "Insert floating-point number" ( 6.4.5).
6-18
EWA 4NEB 811 6044-02a
CP 523
Print Mode
6.4.3
Spaceholders for Date and Time of Day
When printing out a message text the following takes place:
• The spaceholder "D" for the date is replaced by the current date.
• The spaceholder "T" for the time of day is replaced by the current time.
The output format of the date and the time of day can be configured. You must do this in data
block 1, parameter block 4, on the memory submodule ( 6.3.3).
The following is the default output format:
• For the date:<Day>.<Month>.<Year>
• For time of day: <Hour>:<Minute>:<Second>
Example:
Configuring message texts with spaceholder for date and time of day
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaa
You want to store the following message texts in DB 3:
Message text 7:
The motor went down at <time of day>.
Message text 8:
This is the daily listing for <date>.
Message text 9:
The entire plant in Shop 3 was switched off on <date> at <time of day>.
Entry on the PG 685 for DB 3
Explanation
Message text number 7, separator ”:”,
with spaceholder for time of day
Message text, end-of-text character
:
KS = '7:The motor went down';
:
S = 'at ”T”$';
:
:
KS = '8:This is the daily';
S = 'listing for "D".$';
Message text number 8, separator ”:”,
Message text, spaceholder for date,
end-of-text character
:
KS = '9:The entire plant';
:
S = 'in Shop 3 was switched off';
:
KS = 'on "D" at "T".$';
Message text number 9, separator ”:”,
Message text with spaceholder for date
and time of day
Message text, end-of-text character
:
EWA 4NEB 811 6044-02a
6-19
Print Mode
6.4.4
CP 523
Spaceholders for Control Parameters
You can configure printer control parameters in three ways in the message text:
•
•
•
Entry with the ^ character (CTRL key)
Entry with the spaceholder Sa, b
Direct entry with data format KH
Entry with the "^" character
If the module encounters the "^" character when evaluating the message texts, it automatically
subtracts 40H from the next character.
Example:
Selecting double-width type on the PT 88.
Double-width type is selected on the PT 88 printer with the ESC 8 command.
The "ESC" control character has the ASCII code 1BH. Find the ASCII character with
the code 1BH +40H = 5BH in the ASCII code table. It is the character "[".
Entry in message text: ^[8.
Explanation:
The module detects the character "^".
40H is subtracted from the ASCII code of the next character "[" (5BH):
5BH - 40H=1BH.
1BH is the ASCII code for the control character "ESC". The module instructs the
printer to execute the "ESC 8" job, i.e. select double-width type.
Example:
Configuring a message text with a spaceholder for control parameters (^ entry).
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaa
You want to store the following message text in DB 5:
Message text 50: <Double-width type on> Monthly overview <Double-width type off>
Entry on the PG 685 for DB 5
:
:
6-20
KS = '50:ˆ [8 Monthly overviewˆ[<$';
Explanation
Message text number 50, separator ":",
select character string for double-width
type, deselect character string for doublewidth type
EWA 4NEB 811 6044-02a
CP 523
Print Mode
Entry with the spaceholders "Sa, b, ..."
If you use the spaceholders "Sa, b", you must enter the control character in ASCII code in decimal
form. If you want to enter several control characters consecutively, you must separate them with
commas. You can enter a maximum of 50 control characters consecutively.
Example:
Deselecting the subscript on the PT 88.
The subscript on the PT 88 printer is deselected with the "ESC16" command.
”ESC” corresponds to the ASCII code 1BH=27D,
You must enter: ”S27,16”.
Example:
Configuring a message text with a spaceholder for control parameters
(entry with Sa, b).
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaa
You want to store the following message text in DB 6:
Message text 60: The proportion of H<Select subscript>2<Deselect subscript>0 is 50 %
Entry on the PG 685 for DB 6
Explanation
:
KS = '60:The proportion of';
Message text number, separator ”:”,
Message text,
:
S = 'H ”S27,18”2”S27,16” O';
Message text ”H”, spaceholder for on,
Message text ”2”, spaceholder for off,
Mesage text ”O”
:
:
KS = 'is 50%.$';
Message text, end-of-text character
EWA 4NEB 811 6044-02a
6-21
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaa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aaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaa
Print Mode
Example:
6-22
CP 523
Direct entry with the "KH" format
The control parameters are entered direct with the "KH" format during configuration of a
message text.
You must use the table to find the ASCII codes of the control parameters. Switch from the "KS" or
"C" format to the "KH" format on the programmer and specify the control parameters in
ASCII code. Then switch back to the "KS" or "C" data format.
Note:
If you use the "Print all configured message texts" job 8000H to print message texts in which
control parameters have been entered direct, these control parameters will be executed and will
not appear as configured.
Configuring a message text with a place holder for control parameters
(direct entry).
You want to store the following message text in DB 4:
Message text 40: Motor works <Line feed> <Carriage return> Newhaven <Line feed>
<Carriage return> 9999 Wackeldorf
Input at the PG 685 for DB 4
Explanation
:
KS = '40:Engine Plant';
Message text no. 40, separator ”:”,
message text
:
KH = 0A0D
ASCII code for line feed (0AH) and
carriage return (0DH)
:
S = 'Newhaven';
Message text
:
KH = 0A0D
ASCII code for line feed (0AH) and
carriage return (0DH)
:
:
KS = '9999 Wackeldorf$';
Message text, end-of-message character
EWA 4NEB 811 6044-02a
CP 523
6.4.5
Print Mode
Spaceholders for Message Text
The spaceholder is replaced by a message text on printout. The number of the message text to be
replaced can be specified in two ways:
• The number is specified when the message is configured
• The number is transferred to the CP as a variable in the user program.
Direct entry of the message text number "KPa"
”a” is the number of the message text to be inserted. You must specify "a" when configuring the
message text. The values 1 to 4095 are allowed for "a". If the message text called contains spaceholders, these are treated as text and printed out.
You can use the "KPa" spaceholder several times in one message text. In this way, you can
combine several message texts and print them out together.
Example:
Configuring message texts with spaceholders for inserting message text (KPa)
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaa
You want to store the following message texts in DB 7:
Message text 70: The following overview indicates <Insert message text 73>, <Insert message
text 74> and <Insert message text 75>.
Message text 73: the problems that have arisen during the monitoring period
Message text 74: the countermeasures taken
Message text 75: the length of the resulting downtimes
Entry on the PG 685 for DB 7
Explanation
: KS = '70:The following over';
: S = 'view indicates, ”KP73”,';
Message text number, separator ”:”,
message text with spaceholder for "Insert
message text 73"
: KS = '”KP74” and ”KP75”.$';
Message text , end-of-text character
: S = '73:the problems that';
Message text number, separator ”:”,
Message text
: KS = 'have arisen during';
Message text
: S = 'the monitoring period$';
Message text , end-of-text character
: KS = '74:the countermeasures';
Message text number, separator ”:”,
Message text
: S = 'taken$';
Message text , end-of-text character
: KS = '75:the length of the';
Message text number, separator ”:”,
Message text
: S = 'resulting';
Message text
: KS = 'down times$';
:
Message text , end-of-text character
Printout of message text 70:
The following overview indicates the problems that have arisen during the monitoring period, the
measures taken and the length of the resulting downtimes.
EWA 4NEB 811 6044-02a
6-23
Print Mode
CP 523
Message text number as "KV" variable
If you have configured the "KV" variable in a message text, you must specify the numbers of the
message texts to be inserted in bytes 2 to 7 in the case of the "Print message text" job:
• Byte 2 and 3
:
Number of the 1st message text to be inserted (binary code)
• Byte 4 and 5
:
Number of the 2nd message text to be inserted (binary code)
• Byte 6 and 7
:
Number of the 3rd message text to be inserted (binary code)
You can use the "KV" spaceholder up to three times in one message text.
You can use the "KV" spaceholder in a message text simultaneously with spaceholders for
variables. You must then make sure that you transfer the data in bytes 2 and 7 correctly.
Example:
Configuring message texts with spaceholders for inserting message text (KV)
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaa
You want to store the following message texts in DB 8:
Message text 80: The "KV" has "KV" as a result of "KV".
Message text 81: Motor
Message text 82: Water loss
Message text 83: Thermal problems
Message text 84: Motor "KH" is down because of "KV" at "T".
Message text 85: EMERGENCY OFF
Entry on the PG 685 for DB 8
Explanation
Message text number, separator ”:”,
Message text with spaceholder for
message, end-of-text character
:
KS = '80:The "KV" has "KV" as';
:
S = 'a result of "KV".$';
:
KS = '81:Motor$';
Message text number, separator ”:”,
Message text, end-of-text character
:
S = '82:water loss$';
Message text number, separator ”:”,
Message text, end-of-text character
:
KS = '83:thermal problems$';
Message text number, separator ”:”,
Message text, end-of-text character
:
:
:
S = '84:The Motor "KH" is';
KS = 'down because of "KV"';
S = 'at ”T”$';
Message text number, separator ”:”,
Message text with spaceholder for
variable and inserting message text,
end-of-text character
:
KS = '85:EMERGENCY OFF$';
Message text number, separator ”:”,
Message text, end-of-text character
:
Printout of message text 80 with message texts 81, 82 and 83 inserted:
The motor has thermal problems as a result of water loss.
Printout of message text 84 when the CPU transfers 20 as the variable value and message text 85
as the message text to be inserted:
Motor 20 is down because of EMERGENCY OFF at 12:00:00.
6-24
EWA 4NEB 811 6044-02a
CP 523
Print Mode
Maximum length of message texts
Messages may not exceed 136 characters in length. If you use space- holders, the printout may be
longer than 136 characters. The maximum length of the printout is 250 characters.
Example:
Configuring a message text with spaceholders for inserting message text.
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaa
You want to store the following text in DB 9:
Message text 90: The following table privides a general overview of <Insert message text 91>,
<Insert message text 92> and <Insert message text 93>.
Message text 91: the faults occurring in the press controller with associated downtimes
Message text 92: the resulting waiting times to be observed by the next press controller
Message text 93: the average press controller downtime in the course of the last twelve months
Entry on the PG 685 for DB 9
Explanation
: KS = '90:The following table';
: S = ' provides a general';
: KS= ' overview of ”KP91”,';
: KS = ' ”KP92”' and ”KP93”. $ ';
: KS = '91:the faults occurring in';
: S = ' the press controller';
: KS = ' with associated downtim';
: S = 'es $ ';
: KS = '92:the resulting waiting';
: S = ' times to be observed by';
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaa
: KS = ' the next press controll';
: S = 'er $ ';
: KS = '93:the average press';
: S = ' controller downtime in';
: KS = ' the course of the last';
: KS = ' twelve months $ '; *
`
Message text 90 with a length of
78 characters
Message text 91 with a length of
71 characters
Message text 92 with a length of
72 characters
Message text 93 with a length of
88 characters
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
:
*
This text is not printed out
Final printout:
The following table provides a general overview of the faults occurring in the press controller with
associated downtimes, the resulting waiting times to be observed by the next press controller and
the average press controller downtime (250 characters).
EWA 4NEB 811 6044-02a
6-25
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaa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
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaa
Print Mode
6.4.6
•
•
•
*
6-26
CP 523
Spaceholders for Variables
The spaceholder is replaced by the variable at printout.
You must specify the variables in bytes 2 to 7 in the "Print message text" request:
• Byte 2 and 3
:
Value of the 1st variable (data format as configured)
• Byte 4 and 5
:
Value of the 2nd variable (data format as configured)
• Byte 6 and 7
:
Value of the 3rd variable (data format as configured)
The first spaceholder configured for variables in the message text is replaced by the variable 1, the
second by variable 2 and the third by variable 3.
Note:
If the message text contains more than three spaceholders for variables, they are not
interpreted as spaceholders but printed out as text.
If a spaceholder is wrongly configured, it is also treated as text and printed out.
When spaceholders are replaced by the appropriate values, the total length may be greater
than 136 characters.
You must specify the data format in which the variable has been transferred from the CPU as the
spaceholder.
Table 6-8. Data Formats for Variables
Data Format
KM
Constant: Bit pattern
KH
Constant: Hexadecimal pattern
KC/KS
Constant: Alphanumeric characters
KT
Constant: Time base
KZ
Constant: Count
KY
Constant: Byte, byte
KB
Constant: Byte
KF
Value Range
Number of
Printed Positions
16 bits
16
0000H to FFFFH
4
20H to 7FH / 20H to 7FH
2
1.0 to 999.3
*
0 to 999
3
0 to 255, 0 to 255
7
0 to 255
3
Constant: Fixed-point number
-32768 to+32767
6
KFa,b
KFa.b
Constant: Fixed-point number
a Number of characters to be printed ( 9)
b Decimal places
-32768 to+32767
Configurable
( 9)
KG
KG.
Constant: Floating-point number
-1,7E38 to -1,4E-37
KGa,b
KGa.b
Constant: Floating-point number
a Number of characters to be printed ( 9)
b Decimal places ( 6)
-999 999 to 999 999
0.000001 to 9999999
4
1,4E37 to 1,7E-38
13
Configurable
( 9)
The time is printed out in seconds ("s").
EWA 4NEB 811 6044-02a
CP 523
Print Mode
"KB" data format
The CP evaluates the low-order byte of a 16-bit variable as the value for the variable in the
"Constant byte" KB format:
• Byte 3 Value of the 1st variable
• Byte 5 Value of the 2nd variable
• Byte 7 Value of the 3rd variable
"KT" data format
You can use the "KT" format to insert the values of internal timers in a message text. To do so, use
LD TX to load the time in BCD into the accumulator and then transfer it to the CP. Four digits are
always printed out without the seconds unit.
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
Table 6-9. Typical Printout of the "KT" Data Format
Time
3.0
24.0
207.0
8.1
46.1
840.1
1.2
93.2
516.2
4.3
69.3
423.3
Printout of the
KT Variable
0.03
0.24
2.07
0.8
4.6
84.0
001
093
516
0040
0690
4230
( = Space)
"KF" data format
If you configure the "KF"data format, six digits are printed out.
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaa
Table 6-10. Typical Printout of the "KF" Data Format
Variable
+12345
+357
-12345
-357
12345
357
-12345
-357
Printout of the
KF Variable
( = Space)
"KFa.b" data format
You can set the following parameters:
• Specify the total number of characters to be printed with "a".
The sign and the decimal point each count as one character.
• Specify the number of places afer the point with "b". This is the same as correcting the
variable by a factor of 10-b.
• In the case of data format "KFa,b", a comma (between thousands) is printed out and, in the
case of "KFa.b", a decimal point.
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
Table 6-11. Value Ranges for the Number of Characters to be Printed and Places After the Point
("KFa.b" Format)
Character to be Printed "a"
Decimal Places
EWA 4NEB 811 6044-02a
”b”
1 to 9
3 to 9
4 to 9
5 to 9
6 to 9
7 to 9
0
1
2
3
4
5
6-27
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaa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aaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
Print Mode
Configuration
KF 6,2
6-28
CP 523
Errors occurring when setting the "KFa,b" or "KFa.b" format parameters have the following
effects:
• If you specify values outside the value range for "a" and "b", the spaceholder is treated as text
and printed as configured.
• If you configure "a" with a value too small for the variable values to be printed, "?" characters
will be printed instead of the variable value.
Table 6-12. Typical "KFa.b" Data Format Printouts
–00001
–0,01
00008
Printout of the KF = Variable
12345
–12345
00045
–00045
0,08
123,45
??????
0,45
–0,45
00345
3,45
–00345
–3,45
KF 7.2
KF 9,2
KF 3.0
–0.01
–0,01
???
0.08
0,08
8
123.45
123,45
???
–123.45
–123,45
???
0.45
0,45
45
–0.45
–0,45
–45
3.45
3,45
345
–3.45
–3,45
???
KF 2,0
KF 9.5
KF 7,5
??
–0.00001
???????
8
0.00008
0,00008
??
0.12345
0,12345
??
–0.12345
???????
45
0.00045
0,00045
??
–0.00045
???????
??
0.0345
0,00345
??
–0.00345
???????
( = Space)
"KG" and "KGa.b" data formats
You can print out a 32-bit floating-point number in the message text. A floating-point number
requires four bytes of memory.
Note:
In the S5-135U, floating-point numbers have only a 16-bit mantissa. Bits 0 to 7 (byte n + 3) are
always 0.
Floating-point numbers can be used in the S5-115U if the standard function blocks for floatingpoint arithmetic are used.
The value for the floating-point number can be transferred as follows:
• In bytes 2 to 5 if the spaceholder is the only one or the first one in the message text.
• In bytes 4 to 7 if the spaceholder is the second one in the message text.
In addition, the memory requirement of four bytes has the following effects:
• Only one spaceholder per message text can be initialized in KG or KGa.b for "Insert floatingpoint number". A second spaceholder of this type would be interpreted as text and printed as
configured.
• In addition to a spaceholder for "Insert floating-point number", only one further "KV" or
"Insert variable" spaceholder can be configured per message text.
EWA 4NEB 811 6044-02a
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
a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
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
CP 523
Decimal Places
Number to be
Represented
Number to be
Represented
3,141593E+01
EWA 4NEB 811 6044-02a
Print Mode
"KG", "KG." and "KG,", data format
If you configure the "KG" or "KG." data format, 13 characters are printed out. In the case of "KG"
and "KG,", a comma is printed out and in the case of "KG." a decimal point.
"KGa.b" data format
You can set the following parameters:
• Specify the total number of characters to be printed with "a".
The sign and the decimal point each count as one character.
• Configure the number of places after the point with "b".
The variable value is not changed here, in contrast to the "KFa.b" data format.
• In the case of data format "KFa,b", a comma (between thousands) is printed out and, in the
case of "KFa.b", a decimal point.
Table 6-13. Value Ranges for the Number of Characters to be Printed and Decimal Places
Characters to be Printed ”a”
”b”
KG9,0
3,141593E+01
31
1...9
3...9
4...9
5...9
6...9
7...9
8...9
0
1
2
3
4
5
6
Errors occurring when configuring the "KGa,b" format have the following effects:
• If you specify values for "a" and "b" outside the value range, the spaceholder is treated as text
and printed as configured.
• If you configure "a" with a value too small for the variable values to be printed, "?" characters
will be printed instead of the variable value.
Table 6-14. Typical "KGa.b" Data Format Printouts
KG9,4
31,4159
Configuration
KG9,6
KG6,3
KG5,4
31,415930
31,416
'KG 5,4'
KG4,1
Configuration
KG3,1
KG1,0
31,4
31
?
6-29
Print Mode
6.5
CP 523
Processing Job Requests in Print Mode
The CP 523 handles data transfer with the printer autonomously. Data transfer between the CPU
and the CP 523 must always be initiated by the CPU. The CP 523 has an eight-byte transfer
memory, which can be used by the CPU and the CP 523.
Send
print requests
Peripheral
device
CP 523
Transfer
memory
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
S5-CPU
Serial
interface
Job
buffer
Receive
print requests
Message
buffer
Internal bus
Figure 6-6. Schematic Representation of Job Order Processing in Print Mode
The CPU transfers the following in the transfer memory
• Word 0:
the job request, e.g.: "Print message text No. 20"
• Words 2,4,6:
further necessary or possible information on the job,
e.g.: value of a variable to be inserted in the message text at printout.
The CP 523 writes the following to the transfer memory after a job has been executed:
• Byte 0:
Status of the module
• Byte 1:
Status of the printer and current day
• Byte 2 to 7:
The remaining current clock data
6-30
EWA 4NEB 811 6044-02a
CP 523
Print Mode
Access to the CP 523 transfer memory
The CPU can read the transfer memory at any time with L PW statements and write to it with T PW
statements.
The CP 523 must be able to detect the instant at which the data transferred by the CPU is valid.
Data in the transfer memory is recognized as valid by the CP 523 whenever the CPU transfers a
(print) request in word 0 of the transfer memory. As soon as word 0 has been written, the CP 523
evaluates all the transfer memory data and overwites it with the current data (words 0 to 6).
This has the following consequences for the order in which data is transferred from the CPU to the
transfer memory:
•
•
First, words 2, 4 and 6 in the transfer memory must be written if the job request requires it. If
you want to print a message text into which three variables are to be inserted, for example,
the current values must be transferred to words 2, 4 and 6.
Finally, the job number must be written into word 0 of the transfer memory (special feature of
the CPU 944 5.2).
If you do not adhere to this order, the new job request will be executed with the wrong values.
+ Function of the job buffer
The CPU stores print requests in the job buffer immediately without checking them (a full eight
bytes from the transfer memory in each case). The CP then empties the job buffer into the message
buffer. It can happen that the CPU updates the transfer memory faster than the CP writes requests
from the job buffer into the message buffer. The number of job requests in the job buffer increases as a result of this. The job buffer can hold a maximum of 31 job requests. Additional
requests cannot be accepted. The CP reports "Job buffer full" (08H) in the transfer memory. This
can happen if you send more than 31 print requests consecutively to the CP.
If you nevertheless want to send more than 31 print requests, you can proceed in one of the
following ways:
•
Scan the status of the module for "Job buffer empty?" (03H) after 31 print requests. If the CP
stores this response (00H) in the status byte, you can send a further 30 requests.
•
If the "Entries already in the job buffer" message (03H) appears, you can issue at least one
further print request.
•
Scan the status of the module for "Job buffer full?" (08H) after 31 print requests. If the CP
stores this response in the status byte, the job request must be reissued.
EWA 4NEB 811 6044-02a
6-31
Print Mode
CP 523
Function of the message buffer
The CP 523 is equipped with a message buffer. Job requests to the printer (print requests) are
stored in this message buffer. The CP forwards the print requests to the printer from the message
buffer. The print requests are sent in the same order as they are received from the CPU (FIFO).
The print request is deleted in the message buffer once the CP 523 has serviced it. If the CPU sends
a large number of print requests within a short time, the number of pending requests will increase. If there are 255 job requests waiting to be serviced and the CPU sends another request, the
CP 523 cannot process this last request. In this case, the CP 523 flags "Job/message buffer full"
(08H) to the CPU in byte 0 "Status of the module".
The CP reports "Job / message buffer full" 08H in the following two cases:
1. The job buffer is full because more than 31 print requests have been sent consecutively from
the CPU to the CP (CPU faster than CP).
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaa
2. The message buffer is full because more than 255 print requests are waiting to be serviced
(CPU and CP faster than printer).
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaa
Note:
If you have to issue a large number of print requests within a short period, check to make sure
that the message buffer still has capacity.
- See 6.6 for a description of how to proceed when checking the message buffer.
6-32
EWA 4NEB 811 6044-02a
CP 523
Print Mode
The following is a schematic of job request processing. Entry of the print request in the message
buffer is not shown in the figure. It is only important for the user to know if a job request has been
accepted by the CP 523 and will be serviced.
CPU transfers new data to the CP 523 in
words 2, 4 and 6, if required
CPU transfers the new job request to the
CP 523 in word 0*
CPU reads byte 0 of the transfer
memory, evaluates the error flags and
reenters the request in word 0*.
CP checks: "Last job not
completely processed?" or
"Messsage buffer full?"
NO
YES
CP flags the following error message in
byte 0 of the transfer memory
• ”CP in restart routine"
current data in bytes 1 to 7 is not
valid!
or
• ”Job / message buffer full"
bytes 1 to 7 contain the current
clock data!
CP services CPU request
CP stores the following in transfer
memory
- Status of the CP 523 in byte 0
- Status of the printer and current
clock data in bytes 1 to 7
*
5.2
Figure 6-7. Schematic Representation of Job Request Processing
EWA 4NEB 811 6044-02a
6-33
Print Mode
6.6
CP 523
Status of the CP 523 and the Printer, and Reading the Current Clock Data
When you have written to word 0 of the transfer memory, the module makes the following
current data available in the transfer memory which you can read with direct peripheral access:
•
•
•
The status of the module in byte 0
The status of the printer and the current day in byte 1
The remaining current clock data in bytes 2 to 7.
Reading the status of the module in Print mode (byte 0)
The "Status of the module" byte 0 is divided into two half-bytes. Each half-byte is independent of
the other. They can be combined in any way.
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaa
Table 6-15. Status of the Module in Print Mode (Byte 0)
Bit
4 to 7 0 to 3
Status
Detailed Explanation
0
0
No error
Job buffer empty
X
1
Memory submodule
defective
X
2
No text
X
3
Entries in job buffer
X
7
No backup battery
The battery in the power supply module is
- either not inserted
- or defective
X
8
Job / message buffer
full
The module cannot process any further print
requests at present.
The job request must be repeated.
0
F
CP in restart routine
Message only occurs at startup:
The clock data is invalid and the module cannot
accept any job request.
1
X
Clock defective
Replace module
2
X
Default time set
The clock has been set with the values Sunday,
1.1.90, 12:00:00.
3
X
Time of day / date
error
At least one setting is outside the permissible range.
The clock has not accepted the new clock data and is
continuing with the current data.
4
X
Illegal job request
You have issued a request to the CP which is not
permissible in Print mode ( 6.7).
8
X
Hardware fault
Replace module
No message texts have been configured on the
memory submodule
X= Signal state irrelevant for other half-byte
6-34
EWA 4NEB 811 6044-02a
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaa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aaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaa
CP 523
*
Print Mode
Example:
Scanning the status of the module
The module is set to start address 128.
An unconfigured memory submodule is plugged into the module. When the error is detected,
output 4.0 is to be set.
STL FB 100
NAME
:L
:L
:AW
Bit 4 to 7
EWA 4NEB 811 6044-02a
Explanation
:ERROR1
:L
KH 0000
:T
PW 128*
KH 000F
PY 128
:L
KH 0002
:><F
:BEC
:S
Q
4.0
:BE
Transfer nonrelevant data to the CP. The CP then updates the
transfer memory with current data.
Evaluation of "Status of the module" byte.
Compare status byte with 0002H.
If not equal,
block End
Otherwise, set output 4.0
Block End.
5.2
Status of the printer and day (byte 1)
Byte 1 is divided into two half-bytes. The status of the printer is specified in bits 4 to 7 of the left,
the current day is in bits 0 to 3 of the right half-byte. The half-bytes are independent of each
other.
They can be combined in any way.
Table 6-16. Status of the Printer and Day of the Week
Byte 1
Bit 0 to 3
Meaning
X
1 to 7
0
X
Printer ready
1
X
Printer not ready
1=S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aaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaa
Print Mode
Example:
NAME
*
6-36
CP 523
Evaluating the status of the printer
The module is set to start address 128.
If the printer is not ready, output 4.1 is to be set.
STL FB 101
:><F
:BEC
:S
Q
:BE
Explanation
:ERROR2
:L
:T
:L
KH 0000
PW 128*
KH 00F0
:L
:AW
:L
PY 129
KH 0010
Byte
Value Range
1
1 to 7
Transfer nonrelevant data to the CP. The CP then updates the
transfer memory with current data.
Evaluation of "Status of the printer" byte.
Compare status byte with 10H.
If not equal,
block End
Otherwise, set output 4.1.
Block end.
4.1
5.2
Date and time of day (bytes 1 to 7)
The CP 523 supplies the current clock data in BCD.
The status of the printer is specified in byte 1, bit 4. This information is independent of the current
day of the week, which is specified in byte 1, bits 0 to 3.
Table 6-17. Status of the Printer, Date and Time of Day
Meaning
Bit 0 to 3
:
Bit 4=0
Bit 4=1
:
:
2
01BCD to 31BCD
Day
3
01BCD to 12BCD
Month
4
00BCD to 99BCD
Year
5
00BCD to 23BCD
01BCD to 12BCD
81BCD to 92BCD
Hour
6
00BCD to 59BCD
Minute
7
00BCD to 59BCD
Second
1=Sunday, 2=Monday, 3=Tuesday,
4=Wednesday, 5=Thursday, 6=Friday,
7=Saturday
Printer ready
Printer not ready
24h clock
12h clock a. m. (Bit 7=0)
12h clock p. m.(Bit 7=1)
EWA 4NEB 811 6044-02a
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
a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
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
CP 523
Example:
NAME
*
Print Mode
Reading the current clock data
The module is set with to start address 128.
The clock data is to be output on digital output modules beginning address 8.
STL FB 102
:L
:T
:L
KH 0000
PW 128*
PY 129
:T
:L
:T
QB
8
PW 130
QW 10
:L
:T
:L
:T
PW 132
QW 12
PW 134
QW 14
EWA 4NEB 811 6044-02a
Explanation
:CLOCKDAT
Load nonrelevant data into accumulator 1 and transfer it to word
0 of the CP so that the CP transfers current data to the transfer
memory.
Read current clock data and transfer it to digital output modules.
:BE
5.2
Note:
You can also evaluate the following in connection with the integral clock:
• Module in restart routine (XFH)
The clock data is invalid.
• Default time of day set (2XH)
This evaluation is relevant if you are operating your programmable controller without
battery backup.
• Time of day or date error (3XH)
This error evaluation is relevant after you have set the clock.
• Clock fault (1XH)
This error evaluation is only relevant after a restart.
6-37
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aa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aaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
Print Mode
6.7
7
6-38
6
5
0
4
CP 523
Overview of Permissible Jobs in Print Mode
The CPU transfers the job request to the CP 523 in word 0. The job number is stored in byte 0.
Table 6-18.
3
2
1
0
0
0
7
Permissible Job Request to the CP 523 in Print Mode
Byte 0
6
5
Byte 1
4
3
2
0
1
0
Message text number
1
0
Weekday setting
2
0
Page number
0
Job Request
Read status byte, status of the printer and
current clock data
Print message text with CR/LF at end
Set clock (settings in bytes 1 to 7)
Set page number
3
Message text number
Print message text with CR/LF at end
4
Message text number
Print message text without CR/LF at end
5
0
0
0
Execute form feed
6
0
0
0
Execute line feed
7
0
0
0
Clear message buffer
8
0
0
0
Print all messages
9
9
9
0
0
0
0
2
7
0
0
0
Transfer parameter setting data
- Set serial interface parameters
- Set XON/XOFF character parameters
- Select Print mode
= Print requests. These are written to the message buffer as required.
Printing out message texts with and without CR/LF at the end (job numbers 0, 3 and 4)
You must specify the message text number in binary code in byte 0, bit 3 and in byte 1.
You can print more than one message text on one line with "Print message text without CR/LF". If
your configured message texts contain no variables, for example, you can use this job order to
generate tables.
Note:
The CP 523 counts the lines on a page on the basis of the line feeds sent to the printer.
If you want to print 15 message texts without CR/LF, for example, the CP counts 15 lines. The CP
does not count the additional lines printed in those cases where a message text is longer than
one line and the printer has consequently inserted an automatic line feed.
EWA 4NEB 811 6044-02a
CP 523
Print Mode
Additional information for "Print message text" (job numbers 0, 3 and 4)
The following can be additionally transferred to the CP 523 in words 2, 4 and 6 for "Print message
text" (job numbers 0, 3 and 4):
• Values of variables
When printing the message text, the value transferred to the CP 523 is inserted instead of the
first spaceholder for variables configured in the message text.
• Number of a message text to be inserted into a message text
When printing a message text, the message text with the number transferred to the CP 523 is
inserted in place of the spaceholder for message texts.
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
Table 6-19. Transferring Additional Information for "Print Message Text"
Word
(Byte)
2
(2+3)
4
(4+5)
6
(6+7)
Meaning
Assignment
Value of the variables
or
number of the message text to be inserted
0000H to FFFFH
Value of the variables
or
number of the message text to be inserted
0000H to FFFFH
Value of the variables
or
number of the message text to be inserted
0000H to FFFFH
(Dependent on the configured data format)
0000H to 0FFFH
(Dependent on the configured data format)
0000H to 0FFFH
(Dependent on the configured data format)
0000H to 0FFFH
Setting the time of day (job number 10H)
Specify the variables in BCD in bytes 1 to 7. Specify weekdays as digits between 1 and 7 (1 = Sunday, 2 = Monday, ..., 7 = Saturday).
If an item of clock data is to remain unchanged, enter the value FFH in the relevant byte.
If a variable is outside the permissible range, the clock will not be set.
The CP flags the "Time of day/date error".
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
Table 6-20. Transferring Additional Information for "Print Message Text"
Byte
Meaning
Assignment
2
Day
01BCD to 31BCD
3
Month
01BCD to 12BCD
4
Year
00BCD to 99BCD
5*
Hour
(Config. of the 12h clock or the 24h clock
on the memory submodule in DB 1)
00BCD to 23BCD in the case of the 24h clock
01BCD to 12BCD in the case of the 12h clock a.m.
81BCD to 92BCD in the case of the 12h clock p.m.
6
Minute
00BCD to 59BCD
7
Second
00BCD to 59BCD
* Bit 7 = 1 in the case of the 12h clock
EWA 4NEB 811 6044-02a
6-39
Print Mode
CP 523
Setting the page number (job number 20H)
Specify the page number in binary code in byte 1.
Execute form feed (job number 5000H)
If the "Output line feed" request 6000H has not yet been serviced, it is cancelled by this request.
Execute line feed (job number 6000H)
This job request generates a blank line. A subsequent "Execute form feed" request 5000H cancels
this request if it has not yet been serviced.
Clear message buffer (job number 7000H)
All print requests stored in the message buffer are deleted.
Print all messages (job number 8000H)
The message texts are printed as configured, with the message text number at the beginning of
the line.
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
Transfer parameter setting data (job number 90H)
On restart, the CP 523 accepts the data in DB 1 as you configured it on the memory submodule.
You can use this job request to change part of the parameter setting data on the CP 523. You can
change the data in parameter blocks 0, 2 and 7. The contents of the memory submodule remain
unchanged.
• Job number 9000H (parameter block 0 of DB 1 on the memory submodule)
- Parameters for the serial interface
(changing the baud rate, for example)
• Job number 9020H (parameter block 2 of DB 1 on the memory submodule)
- Parameters for the "XON" and "XOFF" protocols
• Job number 9070H, (parameter block 7 of DB 1 on the memory submodule)
Setting the Print mode with job number 9070H.
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
Note:
The data transferred to the CP with the "Transfer parameter setting data " request has priority
over the data stored on the memory submodule in DB 1. The parameter setting data on the
memory submodule is valid after power-up, provided it has not been overwritten by the user
program.
Illegal job orders in Print mode
If you write a job number into word 0 of the transfer memory other than the numbers listed
above, the CP flags "Illegal job request" (4XH) in the status byte. The "Coordinate data transfer"
request A001H, for example, is permissible in Communications mode but not in Print mode. In Print
mode, this request would result in error flag 4XH in the status byte.
This error will also be flagged if you transfer illegal parameter setting data with "Transfer parameter setting data".
6-40
EWA 4NEB 811 6044-02a
CP 523
6.7.1
Print Mode
Print Message Text (Job Numbers 0, 3 and 4)
The CP 523 forwards message text XY to the printer when it receives a "Print out message text XY"
request. You can specify whether the printer is to execute a line feed (LF) or carriage return (CR)
after printing message text XY.
Prerequisites
• You must have configured the message text on the memory submodule. Assign a number to
each message text when configuring it.
• You must have plugged the configured memory submodule into the CP 523.
Specify
• The message text number in binary in byte 0, bits 0 to 3 and in byte 1
• The job number in byte 0, bits 4 to 7
- Job numbers 0 and 3:
Print message text with CR/LF
- Job number 4:
Print message text without CR/LF
Additional specificaitons
You can store a further three 16-bit variables in bytes 2 to 7 if you have configured spaceholders
for variables in the message text.
You must enter the data in the format in which you configured it in the message text on the
memory submodule ( 6.4.5).
At printout, the spaceholders are replaced by the current variable values.
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaa
Table 6-21. Contents of the Transfer Memory for ”Print Message Text”
Byte
Bit
Meaning
0
4 to 7
Job number
0H = Print message text with CR/LF
3H = Print message text with CR/LF
4H = Print message text without CR/LF
0 to 3
Message text number
001H to FFFH (1 to 4095)
Value of the variable
or
number of the message text to
be inserted
0000H to FFFFH
Value of the variable
or
number of the message text to
be inserted
0000H to FFFFH
Value of the variable
or
number of the message text to
be inserted
0000H to FFFFH
1
0 to 7
2
0 to 7
-
3
0 to 7
-
4
0 to 7
-
5
0 to 7
-
6
0 to 7
-
0 to 7
-
7
EWA 4NEB 811 6044-02a
Permissible Assignment
Depending on the configured data format
001H to FFFH (1 to 4095)
Depending on the configured data format
001H to FFFH (1 to 4095)
Depending on the configured data format
001H to FFFH (1 to 4095)
6-41
Print Mode
CP 523
Permissible insertions when printing the message text
You can enter spaceholders in the message text when configuring message texts on the memory
submodule. These spaceholders are replaced accordingly on printout.
You can enter spaceholders for the following:
• Date and time of day
• Further message texts
• Variables
• Control characters for the printer (double-width type, bold type...)
Figure 6-8. is a schematic representation of "Print message text". Prerequisite is that a configured
memory submodule is plugged into the CP.
Start
Transfer variables 1 to 3 in words 2, 4 and 6 to
the CP, where applicable
Transfer the job number and message text
number to the CP in word 0*
Read the CP status in byte 0
YES
Job/message buffer full?
NO
CP services request
End
*
5.2
Figure 6-8. Schematic for "Print Message Text"
The CP 523 can report further errors to the CPU ( 6.6).
For example:
• Default clock time set
• Printer not ready
• No battery backup
6-42
EWA 4NEB 811 6044-02a
CP 523
Print Mode
Example:
Initiation of one-off message text printout
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaa
Start address 128 is set on the CP 523. A memory submodule configured with message text 9 is
plugged into the CP ( 6.4.3). Message text 9 is to be printed if flag 20.0 is set.
The following program prints message text 9 once.
STL FB 103
NAME :TEXT1
:AN F
:BEC
20.0
:L
:T
:R
+9
128*
20.0
KF
PW
F
The program is terminated if flag 20.0 is not set.
Load job number 0 and message text 9 into accumulator 1 and
transfer in word 0 to the CP.
Block end
:BE
*
Explanation
5.2
Example:
Using the "KV" spaceholder three times
You have configured the following message texts on the memory submodule ( 6.4.5):
Message text 80: The "KV" has "KV" because of "KV".
Message text 81: Motor
Message text 82: Water loss
Message text 83: Thermal problems
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
Start address 128 is set on the CP 523. You have programmed the following statements in the user
program:
STL FB 105
NAME :KVTEST1
:L KF+81
*
:T
:L
:T
PW 130
KF+82
PW 132
:L
:T
:L
KF+83
PW 134
KF+80
:T
PW 128*
Explanation
Load ACCUM 1 with the message text number of the 1st message text
to be inserted and transfer it to bytes 2 and 3 of the CP.
Load ACCUM 1 with the message text number of the 2nd message text
to be inserted and transfer it to bytes 4 and 5 of the CP.
Load ACCUM 1 with the message text number of the 3rd message text
to be inserted and transfer it to bytes 6 and 7 of the CP.
Load ACCUM 1 with the message text number of the message text to
be inserted and the "Print message text" request and transfer to bytes
0 and 1 of the CP.
5.2
Printout of message text 80 if message texts 81, 82 and 83 are inserted:
The motor has thermal problems because of water loss.
EWA 4NEB 811 6044-02a
6-43
Print Mode
Example:
CP 523
Simultaneous use of the "KV" spaceholder, the "KH" spaceholder for variables and
the spaceholder for the time of day.
You have configured the following message texts on the memory submodule ( 6.4.5):
Message text 84: The motor went down as a result of "KV" at "T".
Message text 85: EMERGENCY OFF
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
Motor 20 went down at 17:15:30. Start address 128 is set on the CP 523. You have programmed
the following statements in the user program:
STL FB 106
Explanation
NAME :KVTEST2
:L
:T
:L
KH 0020
PW 130
KF+85
:T
:L
:T
PW 132
KF+84
PW 128
Load motor number 20 into ACCUM 1 and transfer to bytes 2 and 3 of
the CP.
Load the message text number of the message text to be inserted into
ACCUM 1 and transfer to bytes 4 and 5 of the CP.
Load ACCUM 1 with the message text number of the message text to
be printed and the "Print message text" request and transfer to bytes
0 and 1 of the CP.
Message text 84 is printed as follows (U = space).
Motor UU20 went down at 17:15:30 as a result of EMERGENCY OFF.
6-44
EWA 4NEB 811 6044-02a
CP 523
6.7.2
Print Mode
Setting the Time and Date (Job Number 10H)
Specify:
• The new settings in bytes 1 to 7
• Job number 10H in byte 0
In each case, you must transfer the settings first and the "Set clock" request last to the CP 523.
Settings
You must note the following as regards the settings:
• The settings must be transferred to the CP 523 in BCD.
• If you enter "FFH" in a setting, the current clock data is retained.
• Specify the days of the week as follows:
01 = Sunday, 02 = Monday, 03 = Tuesday, 04 = Wednesday, 05 = Thursday, 06 = Friday,
07 = Saturday
• AM/PM flag (only in the case of the 12h clock)
When specifying the "Hours" setting in byte 5, you must take account of the AM/PM flag
(bit 7) in the case of the 12h clock: bit 7 = 1 p.m. and bit 7 =0 a.m.
Contents of the Transfer Memory for "Set Clock" Job
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
Table 6-22.
Byte
Meaning
Value range
0
Job number for ”Set Clock”
10H
1
Day of the week
(01 = Sunday, 02 = Monday, ..., 07 = Saturday)
01BCD . . .07BCD
2
Day
01BCD . . .31BCD
3
Month
01BCD . . .12BCD
4
Year
00BCD . . .99BCD
5
Hours
24 h clock
12 h clock a. m.
12 h clock p. m.
00BCD . . .23BCD
01BCD . . .12BCD
81BCD . ..92BCD
6
Minutes
00BCD . . .59BCD
7
Seconds
00BCD . . .59BCD
6.7.3
Setting the Page Number (Job Number 20H)
When configuring the memory submodule, you can define whether and where a page number is
to be printed in parameter block 5. The default is pagination beginning with page number 1,
printed at the bottom centre of the page.
Specify
• The page number in byte 1 (01H to FFH)
• Job number 20H in byte 0.
EWA 4NEB 811 6044-02a
6-45
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaa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
Print Mode
6.7.4
*
6.7.5
*
6-46
CP 523
Form Feed (Job Number "5000H")
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 5000H in word 0.
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
0006
0007
0008
:BEC
:L
KH 5000
:T
PW 128*
0009
000C
:R
:BE
F
STL FB 108
0005
0006
0007
:AN F 25.1
:BEC
:L
KH 6000
0008
0009
000C
:T
:R
:BE
PW 128*
F 25.1
Explanation
NAME :FORMFEED
0005
:AN F 25.0
The program is terminated if flag 25.0 is not set.
25.0
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
5.2
Line Feed (Job Number "6000H")
When prompted by the CPU, the CP 523 instructs the printer to execute a line feed.
Specify
Job number "6000H" in word 0.
Example: Line feed
The module is set to start address 128.
A line feed is to be executed when flag 25.1 is set.
Explanation
NAME :LINEFEED
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
5.2
EWA 4NEB 811 6044-02a
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaa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aaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
CP 523
6.7.6
*
6.7.7
PW 128
*
Print Mode
Clearing the Message Buffer (Job Number "7000H")
When prompted by the CPU, the CP 523 cancels all CPU requests stored in the message buffer.
Specify
Job number "7000H" in word 0.
Example:
Clearing the message buffer with the Programmer's "FORCE VAR" function
You can force a peripheral (I/O) word (PW) using the programmer "FORCE VAR" function only
when you have written it into a flag word (FW). For this purpose, store PW 128 in FW 128 of FY 10
( 6.7.7). FW 128 can then be forced in the "FORCE VAR" screen form. FW 228 is an auxiliary word
for old/new value comparison.
The module is set to start address 128.
Operand
PW 128
Example:
Operand
Signal states
KH= 7000*
Signal States
KH= 8000*
EWA 4NEB 811 6044-02a
Meaning
"Clear message buffer" request
5. 2
Printing All Configured Message Texts (Job Number "8000H")
When prompted by the CPU, the CP 523 prints out all the configured message texts stored on the
memory submodule. This job is used for defining and checking the message texts stored on the
user submodule. Spaceholders are not evaluated.
Specify
Job number "8000H" in word 0.
Printing all configured messages with the programmer "FORCE VAR" function
You can force a peripheral (I/O) word (PW) using the programmer's "FORCE VAR" function only
when you have written it into a flag word (FW). For this purpose, store PW 128 in FW 128 of FY 10
( 6.7.7). FW 128 can then be forced in the "FORCE VAR" screen form. FW 228 is an auxiliary word
for old/new value comparison.
The module is set to start address 128.
Meaning
"Print all configured mess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
FW 128
:! = F
:BEC
FW 228
:L
:T
FW 128
FW 228
:L
:T
:L
FY 128
PY 128
FY 129
:T
:BE
PY 129
Explanation
Load old value
Load new value
Compare for equal
Block End if equal
Update old value if not equal
transfer flag word byte by byte
to the peripheral word
Block end
Transferring the Parameter Setting Data (Job Number 90H)
You can transfer data for a parameter block to the CP 523 with a "Transfer parameter setting
data" request:
• Data for the serial interface (corresponds to parameter block 0 on the memory submodule)
• Characters for XON/XOFF protocol (corresponds to parameter block 2 on the memory
submodule)
• Setting the mode and the parameters (corresponds to parameter block 7 on the memory
submodule)
Note:
"Transfer parameter setting data" job is almost without significance in Print mode since the
parameter setting data for Print mode are stored in DB 1 on the memory submodule.
A typical application might be if you want to replace a defective printer temporarily with
another printer whose interface has been configured differently.
The job does not change the contents of the memory submodule plugged into the CP 523.
After a warm restart, the CP continues to use the data on the memory submodule.
See 7.3.2 for a detailed description.
EWA 4NEB 811 6044-02a
System Overview
Technical Description
Hardware Installation
Notes on Operation
Address Assignment
Print Mode
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
1
2
3
4
5
6
7
Communications Mode
7.1
7.1.1
General . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .7. . -. 1
3964 and 3964R Protocols (relevant in 3964(R) mode only . . . . . . . . 7 - 2
7.2
Prerequisites for Operation in Communications Mode
7.3
7.3.1
7.3.2
Setting the CP 523 Parameters in Communications Mode . . . . . . . . 7 - 9
Setting the CP 523 Parameters with the Memory Submodule . . . . . 7 - 10
Setting the CP 523 Parameters in the User Program . . . . . . . . . . . . . . 7 - 23
7.4
7.4.1
CP 523 Feedback Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .7. - 43
Reading the Status Byte, the Status of the Peripheral Device and
the Current Clock Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
. . - 44
Reading Coordination Information after
”Coordinate Data Transfer”
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .7. - 47
7.4.2
7.5
Overview of Permissible Job Requests in Communications Mode
7.6
Sending Message Frames to a Peripheral Device
(Job Number A001H) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7. . Sending Message Frames with the
Message Frame Length Specification . . . . . . . . . . . . . . . . . . . . . . . . . .7 Sending Message Frames with End-of-Text Character
Specification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .7. .Sending Message Frames with 3964(R) Protocol . . . . . . . . . . . . . . . . . 7 -
7.6.1
7.6.2
7.6.3
7.7
7.7.1
7.7.2
7.7.3
8
.......... 7 - 7
.
7 - 58
Receiving a Message Frame from a Peripheral Device (A080H) . . . . 7
Receiving Message Frames with Evaluation of the Specified
Message Frame Length . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
..
Receiving Message Frames with Evaluation of the Specified
End-of-Text Characters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
..
Receiving Message Frames with 3964(R) Protocol . . . . . . . . . . . . . . . 7
Using the ”SEND” and ”RECEIVE” Function Blocks
EWA 4NEB 811 6044-02a
60
64
66
70
- 72
- 76
- 78
- 82
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
Figures
Example of an 11-Bit Character Frame . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .7. Error-Free Data Interchange (Send) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .7. Error-Free Data Interchange (Receive) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .7. Resolving an Initiation Conflict . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
..Schematic for Entering Parameter Blocks in DB1 . . . . . . . . . . . . . . . . . . . . . . . 7 Using the Transfer Memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7. . Sending Message Frames to a Peripheral Device . . . . . . . . . . . . . . . . . . . . . . . .7 Schematic for ”Send Message Frame” . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .7. Transfer Memory Assignments for ”Send Message Frame” . . . . . . . . . . . . . . 7 Forwarding Data with ”Send Message Frame”
. . . . . . . . . . . . . . . . . . . . . . . . .7 Schematic for FB 123 ”SEND 3” . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
..Receiving a Message from a Peripheral Device . . . . . . . . . . . . . . . . . . . . . . . . .7 Schematic for ”Receive Message” . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .7. Contents of the Transfer Memory for ”Receive Message Frame”
......... 7 Data Interchange with ”Receive Message Frame”
. . . . . . . . . . . . . . . . . . . . . .7 Flowchart for FB 126 ”RECEIVE 3” . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .7. -
2
3
5
6
10
43
60
61
62
63
67
72
73
74
75
79
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
7-1.
7-2.
7-3.
7-4.
7-5.
7-6.
7-7.
7-8.
7-9.
7-10.
7-11.
7-12.
7-13.
7-14.
7-15.
7-16.
Tables
7-1.
7-2.
7-3.
7-4.
7-5.
7-6.
7-7.
7-8.
7-9.
7-10.
7-11.
7-12.
7-13.
Parameter Blocks in Communications Mode . . . . . . . . . . . . . . . . . . . . . . . . . . .7 Parameter Block Assignments for the Memory Submodule
.............. 7 Contents of the Parameter Blocks for Transparent Mode . . . . . . . . . . . . . . . . 7 Setting Parameters for Transparent Mode on the Memory Submodule
... 7 Parameter Block Assignments for Interpretive Mode
...................7 Setting the CP 523 Parameters in Interpretive Mode on the
Memory Submodule . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .7. .Parameter Block Assignments for 3964(R) Mode . . . . . . . . . . . . . . . . . . . . . . . 7 Setting Parameters for 3964(R) Mode on the Memory Submodule
....... 7 Transfer Memory Assignments for ”Transfer Initialization Data for
Parameter Block 0” . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
. . .Transfer Memory Assignments for ”Transfer Parameter Setting Data for
Parameter Block 7” . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
. . .Transfer Memory Assignments for ”Transfer Parameter Setting Data for
Parameter Block 2” . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
. . .Transfer Memory Assignments for the ”Transfer Parameter Setting Data
for Parameter Block 9” Job . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .7. . Transfer Memory Assignments for ”Transfer Parameter Setting Data for
Parameter Block 0” . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
. . .-
9
11
16
17
18
20
21
23
24
25
27
27
28
EWA 4NEB 811 6044-02a
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
Tables
7-14. Transfer Memory Assignments for ”Transfer Initialization Data
for Parameter Block 7” . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .7. .7-15. Transfer Memory Assignments for ”Transfer Parameter Setting Data
for Parameter Block 0” . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .7. .7-16. Transfer Memory Assignments for ”Transfer Parameter Setting Data
for Parameter Block 2” . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .7. .7-17. Transfer Memory Assignments for ”Transfer Parameter Setting Data
for Parameter Block 7” . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .7. .7-18. Transfer Memory Assignments for ”Transfer Parameter Setting Data
for Parameter Block 0” . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .7. .7-19. Transfer Memory Assignments for Job Number ”9073H”
................ 7 7-20. Transfer Memory Assignment for Follow-up Job Request ”907AH”
....... 7 7-21. Job Requests and the Associated Feedback Information . . . . . . . . . . . . . . . . 7 7-22. Status Information and Current Clock Data
. . . . . . . . . . . . . . . . . . . . . . . . . . . .7 7-23. Status Byte (Byte 0) in Communications Mode Following
”Coordinate Data Transfer” . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7. . 7-24. Coordination Information after ”Coordinate Data Transfer”
............ 7 7-25. Status Byte (Byte 0) in Communications Mode after
”Coordinate Data Transfer” . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7. . 7-26. CP 523 Status Information for ”A000H” . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7. 7-27. Status Information for Send Request ”A001H”
. . . . . . . . . . . . . . . . . . . . . . . . .7 . . . . . . . . . . . . . . . . . . . . . . .7 7-28. Status Information for Receive Request ”A080H”
7-29. Return Info and Error Flags in the Coordination Byte 'Send'
(CBS) in ”3694(R) Mode” . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .7. .7-30. Return Info and Error Flags in the Coordination Byte 'Receive'
(CBR) in ”3964(R) Mode” . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .7. . 7-31. Error Priority in ”3964(R) Mode” . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .7. 7-32. Permissible Job Requests to the CP 523 in Communications Mode . . . . . . . . 7 7-33. Flags Used in FB 123 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
. . .-
EWA 4NEB 811 6044-02a
30
32
34
36
38
40
40
43
44
45
47
48
52
53
53
56
56
57
58
66
CP 523
7
Communications Mode
Communications Mode
In Communications mode, the CP 523 permits transfer of a frame of up to 256 bytes between the
CPU and a peripheral device connected to the CP 523 in response to a CPU job request:
• Communication with a terminal device (terminal, barcode reader, keyboard...)
• Point-to-point connection to another CP 523 or a CPU 944
7.1
General
You can choose between the following:
• Transparent mode
The CP 523 does not interpret any characters in Transparent mode.
- No XON/XOFF protocol is possible.
- Only fixed-length message frames can be received. Exception: If you program very skillfully,
you can also receive variable-length frames by evaluating ”ZVZ” (i.e. character time-out)
( 7.4.2 under the heading ”character time-out”).
• Interpretive mode
The CP 523 evaluates the following characters in Interpretive mode:
- RUB OUT (7FH)
- BACKSPACE (08H)
- XON / OFF character (if programmed)
- 1 or 2 end characters
• 3964(R) mode
The CP 523 interprets the following characters in 3964(R) mode:
- DLE
(10H)
- STX
(02H)
- NAK
(15H)
- ETX
(03H)
During the parameter setting phase, you can also specify whether the data frames are to be
transferred with or without a block check character. The block check character (BBC) increases
transmission reliability. A distinction is made between 3964R and 3964 mode, depending on
whether you want to transfer data with or without a block check character.
- With block check character:
3964R
- Without block check character:
3964
The CP 523 handles data transfer with the peripheral device autonomously.
The CPU initiates data exchange between the CPU and the CP by sending a job request. See 7.6
and 7.7 for a detailed description of the data exchange procedure.
See Chapter 8 for a description of function blocks which allow user-friendly handling and control
of data exchange.
The time of day can be read from the integral clock by the CPU in Communications mode and used
in the application program for date-dependent and time-dependent tasks.
Message text printout and editing as in Print mode is not possible in Communications mode. For
this reason, no memory submodule is required in Communications mode.
EWA 4NEB 811 6044-02a
7-1
Communications Mode
7.1.1
CP 523
3964 and 3964R Protocols (relevant in 3964(R) mode only)
Protocol data
The 3964 and 3964R protocols control the flow of data between your programmable controller
and the partner in the communications link.
The data to be transmitted must be entered in the CP 523's output buffer, and is then forwarded
to the partner in the link together with the 3964 or 3964R protocol. The line protocol retries the
transmission where necessary; fatal errors are flagged in the coordination byte.
Data coming from the parameter in the link is entered in input buffers. If the data is received
without error, it can be fetched by the CPU for post-processing.
The 3964 and 3964R protocols are asynchronous, bit-serial transmission procedures. All parameters
on the module and on the partner in the communications link, except for the priority, must be
identical.
Control information and useful data are transmitted over the connecting cables. In order to
enable the receiver to recognize each character and to be able to check for error-free transmission, additional bits are prefixed or appended to each character transmitted. The character
frame is initialized in the parameter block.
Sample character frame:
SA
0
1
2
3
4
5
6
7
PA
SO
Stop bit
Start bit
Data bit no.
Parity bit
Figure 7-1. Example of an 11-Bit Character Frame
When the 3964R protocol is used, a block check character (BCC) is transmitted at the end of each
data frame to increase transmission reliability and ensure data integrity. The BCC is the even
longitudinal parity (EXORing of all data bits) of the frame transmitted or received. Its generation
begins with the first useful data byte (1st byte in the frame) following connection buildup, and
ends on connection cleardown after the DLE ETX character.
Sending
In order to build up a connection, the CP transmits the STX control character (start of text). If the
partner in the link replies with DLE (data link escape) before time-out (QVZ)*, the protocol goes to
Send mode. If the partner responds with NAK (negative acknowledgement) or a random character
(other than DLE), or if no response comes before time-out, the connection cannot be established.
After a total of six** unsuccessful attempts, the procedure is aborted and the cause of error
flagged in coordination byte CBS.
* Default value in 3964(R) mode: 2000 ms
** Default: other values can be entered in parameter block 7
7-2
EWA 4NEB 811 6044-02a
CP 523
Communications Mode
If the connection can be established, the useful data in the output buffer is transmitted to the
partner in the link at the specified baud rate. The partner in the link monitors the interval
between incoming characters, which may not exceed the character delay time (ZVZ)*.
Each DLE character found in the buffer is transmitted as two DLE characters (double DLE), i.e. 10H is
transmitted twice for each DLE character in the output buffer.
When the buffer is empty, the CP appends
DLE ETX
in 3964 mode and
DLE ETX BCC in 3964R mode
as end-of-text identifier and waits for an acknowledgement. A DLE character from the partner
within the allotted time (QVZ) indicates that the data was received without error.
If the partner in the link responds with NAK, a random character, or not at all, the CP once again
transmits STX. After a total of six unsuccessful attempts** to transmit the message frame, the CP
aborts the procedure, enters an error flag in the CBS, and transmits NAK to the partner in the data
link.
If the partner in the link sends a NAK character during an in-progress transmission, the CP aborts
the message frame and attempts a retry as described above. If the partner transmits another
character, the CP waits until the character delay time (ZVZ) has expired and then sends NAK to
bring the partner to the idle state before once again transmitting STX.
Example of error-free transmission:
CP 523
Communications mode 3964(R)
Partner in the link
STX
DLE
aaaaaaaaaaaaaaaaaaaaaa
1st character
.
.
.
nth character
DLE
ETX
BCC 1)
DLE
1) Only in 3964R mode
Figure 7-2. Error-Free Data Interchange (Send)
*
Default value in 3964(R) mode: 220 ms
Value can be initialized in parameter block 7
** Default value: Other values can be initialized in parameter block 7
EWA 4NEB 811 6044-02a
7-3
Communications Mode
CP 523
Receiving
When no Send request is pending in 3964(R) mode, the CP waits for the link partner to establish a
connection.
If the CP receives a character (other than STX) while in the idle state, it waits until the character
delay time has expired (ZVZ) and then sends NAK.
If the CP receives an STX from the partner and the input buffer is not full, it replies with DLE.
Incoming characters are now entered in the input buffer. If two DLE characters are received in
succession, only one is entered in the input buffer.
After each character, the CP waits until the character delay (ZVZ) has elapsed. If no character is
received during this time, the CP sends a NAK to the partner in the link.
How the CP terminates reception depends on whether it is set for 3964 or 3964R mode:
3964 mode:
If the CP detects a DLE ETX string, it terminates reception and sends DLE (if the message frame was
received without error) or NAK (if it was not) to the link partner.
3964R mode:
The CP terminated reception when it receives DLE ETX BCC. The CP then compares the block check
character with the longitudinal parity it has generated internally.
If the BCC is correct and no other receive error occured, the CP transmits DLE. If the BCC is incorrect, the CP sends NAK and waits for a retry. If the frame cannot be received without error after
a total of six attempts* or if the link partner does not initiate a retry with the block (frame) delay
time of 4 s*, the CP aborts reception.
* Default value:
7-4
Other values can be initialized in parameter block 7
EWA 4NEB 811 6044-02a
CP 523
Communications Mode
If transmission errors occur during reception (characters are lost, framing error, parity error), the
CP continues receiving until the connection is cleared down, transmits NAK to the link partner,
and waits for a retry as described above.
Example of error-free data interchange:
CP 523
3964(R) mode
Partner in the link
STX
DLE
aaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaa
1st character
.
.
.
nth character
DLE
ETX
BCC*
DLE
*) BCC in3964R mode only
Figure 7-3. Error-Free Data Interchange (Receive)
EWA 4NEB 811 6044-02a
7-5
Communications Mode
CP 523
Initiation conflict
If one partner in the link replies to a line bid (STX character) from the other link partner with STX
instead of DLE or NAK, the result is an initiation conflict, i.e. both link partners want to transmit.
The low-priority partner retracts its line bid and sends DLE. The high-priority partner sends its data
as described above. Following connection cleardown, the low priority partner can send its data.
The Priority parameter is set when initializing parameter block 7 in 3964R mode. Make sure that
one link partner is assigned high priority and the other low priority.
Example for resolving an initiation conflict:
CP 523
3964(R) mode
Low priority
Link partner
High priority
STX
STX
DLE
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaa
1st character
.
.
nth character
DLE
ETX
BCC*
DLE
STX
DLE
1st character
:
:
:
* BCC in 3964R mode only
Figure 7-4. Resolving an Initiation Conflict
7-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aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaa
CP 523
7.2
Communications Mode
Protocol Errors
The protocol can detect errors caused by incorrect behaviour on the part of the link partner and
errors caused by disturbances or interference on the line.
In both cases, an attempt is first made to transmit or receive the message frame without error by
initiating a retry. If this is still impossible after the maximum number of attempts has been made
(or if another error occurs), the protocol aborts transmission or reception. An error code is entered
in the coordination byte and the CP goes to the idle state.
Prerequisites for Operation in Communications Mode
The following conditions must be met for operating the CP 523:
1. Settings on the peripheral device
The settings on the peripheral device must agree with the parameter setting data for the CP 523. If
your peripheral device is transmitting data at 2400 baud, for example, you must also set this baud
rate for the CP 523.
Note:
• See 3.4.2 for configuration examples with terminal diagrams.
• See 2.6.2 for details of the serial interface.
• Setting the CP 523 parameters in Communications mode is explained in 7.3.
2. Setting the CP 523 parameters
There are two ways of setting the CP 523 parameters:
• Store the parameter setting data on a memory submodule in DB 1.
Initialize the memory submodule with a programmer in offline mode
• Transfer the parameter setting data in the user program after power-up or recovery of power.
The restart organization blocks are used for this purpose.
No memory submodule is required.
You must specify the following parameter setting data:
• Parameters for the interface to the peripheral device (baud rate, type of interface, handshake
mode ...)
• Specifications pertaining to the XON/XOFF protocol (optional)
• Parameter setting data for data transfer in Communications mode (message frame length,
end-of-text character)
• Correction value for the integral clock (optional)
Note:
If the CP 523 and its communications partner have different restart characteristics, data may be
lost during the restart phase. Check that your peripheral device is ready to receive before you
send data.
EWA 4NEB 811 6044-02a
7-7
Communications Mode
CP 523
3. Establishing connections
The programmable controller must be switched off to carry out the following measures:
• Install the CP 523 in the central controller or expansion unit.
• Establish the connection between the CP 523 and the peripheral device.
• If you have stored the parameter setting data in a memory submodule, plug the memory
submodule into the CP 523.
You can then switch the PLC on.
4. CP 523 startup in Communications mode
After power recovery, the CP 523 is automatically in Transparent mode when:
• No memory submodule is plugged in.
• A memory submodule initialized for Transparent mode is plugged in.
• Transparent mode has been forwarded to the CP 523 from the user program.
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
You can set Interpretive or 3964(R) mode in the following ways:
• Transfer Interpretive or 3964(R) mode to the CP 523 in the user program
• Plug a memory submodule initialized for Interpretive or 3964(R) mode into the CP 523.
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
Note:
You can change modes during operation. To do so, you must issue the "Transfer parameter
setting data" request to the CP 523, but remember that you may have to reconfigure the serial
interface. The Send and Receive buffers are cleared.
7-8
EWA 4NEB 811 6044-02a
CP 523
7.3
Communications Mode
Setting the CP 523 Parameters in Communications Mode
The CP 523 is supplied with default values for all parameters.
• Parameters for the interface to the peripheral device (baud rate, type of interface, handshake
mode ...)
The parameters must conform to the specifications and settings on/in the peripheral device.
• Specifications of the XON/XOFF protocol
• Parameter setting data for data transfer in Communications mode (message length, end-oftext character).
• Correction value for the accuracy of the integral clock
The integral clock is set for an ambient temperature of 35 °C. If the CP 523 is used in other
ambient temperatures, you can increase the accuracy of the clock by configuring a correction
value.
If you want to initialize the CP 523 with different data, there are ways of transferring parameter
setting data to the CP:
• Store the parameter setting data on a memory submodule in data block (DB) 1 and plug the
initialized memory submodule into the CP 523 ( 7.3.1).
• Transfer the parameter setting data to the CP 523 in the user program. The restart
organization blocks are used for this purpose ( 7.3.2). No memory submodule is required for
operating the CP 523.
In order to transfer the parameter setting data as simply as possible, the data is divided into
parameter blocks. This subdivision is the same as in Print mode. Parameter blocks 1, 3, 4, 5, 6 and 8
are only significant in Print mode and are not included in the table.
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
Table 7-1. Parameter Blocks in Communications Mode
Parameter
Block No.
Contents
0
Serial interface parameters
2
XON/XOFF protocol (only relevant if XON/XOFF protocol is used in
Interpretive mode)
7
Desired mode
Parameter setting data for data transfer in Communications mode
9
Correction value for the integral clock
Reader's note:
Refer to Section 7.3.1 or 7.3.2, depending on whether you want to set your
CP 523 parameters via a memory submodule or in the user program:
Section 7.3.1: Setting the CP 523 parametersvia a memory submodule
Section 7.3.2: Setting the CP 523 parametersin the user program
EWA 4NEB 811 6044-02a
7-9
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaa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aaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaa
Communications Mode
7.3.1
Block separator
”:” (3AH)
7-10
CP 523
Setting the CP 523 Parameters with the Memory Submodule
You can store the parameter setting data on a memory submodule in data block (DB) 1.
Note:
The procedure for setting the memory submodule parameters in Communications mode is
almost identical to the procedure in Print mode. The only difference is in configuring parameter
block 7, in which additional data must be specified in Communications mode.
Entering the parameter blocks
First, you must enter all the parameter blocks to be changed in DB 1 on the programmer. Then
transfer DB 1 to the memory submodule.
Further tips for input:
• To make the programmer screen presentation clearer, alternate between the "KC" and "C"
formats.
• You can enter comments in addition to the parameter blocks.
Schematic for entering parameter blocks
The parameter blocks can be entered in DB 1 according to the following schematic:
Parameter block
no.
Configuration
data
Figure 7-5. Schematic for Entering Parameter Blocks in DB 1
The following pages contain the parameter block assignments and an example for entering
parameter setting data with the PG 685.
Note:
Parameter block assignment for setting parameters with the memory submodule corresponds to
the assignment of bytes 2 to 7 of the transfer memory when setting parameters with the user
program.
EWA 4NEB 811 6044-02a
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaa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aaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
CP 523
0
2
Significant
only in
Interpretive
mode
Communications Mode
Table 7-2. Parameter Block Assignments on the Memory Submodule
Parameter
Block
Meaning
Baud rate
Parity
BUSY signal
Interface
Data format:
HW handshaking
EWA 4NEB 811 6044-02a
Value Range
Default Values on
the CP 523
Parity:
11-bit character
frame
7 data bits
8 data bits
8 data bits
(yes)
(yes)
(no)
0
1
2
10-bit character
frame
7 data bits
7 data bits
8 data bits
(no)
(yes)
(no)
3
4
5
OFF
ON
0
1
0
XON character
01H to 7EH
FFFFH
(No XON/XOFF
protocol)
XOFF character
01H to 7EH
110 Bd
200 Bd
300 Bd
600 Bd
1200 Bd
2400 Bd
4800 Bd
9600 Bd
1
2
3
4
5
6
7
8
4
even
odd
”mark”
”space”
no parity check
0
1
2
3
4
0
no
0
0
TTY
V.24
0
1
0
0
7-11
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaa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aaaa
Communications Mode
7
7-12
CP 523
Table 7-2. Parameter Block Assignments on the Memory Submodule (Continued)
Mode
Print mode
Transparent mode
Interpretive mode
3964(R) mode
0
1
2
3
0
Character delay time
(1 to 3000) ·10 ms
Message frame length (1 to 256 bytes)
One (byte 7) or two (bytes 6 and 7) end
characters must be specified for a
length of 0 bytes.
Character delay time
(1 to 3000) ·10 ms
Message frame length (0 byte)
One (byte 7) or two (bytes 6 and 7) end
characters must be specified for a
length of 0 bytes.
End characters
(only when frame length= 0)
1 end character
2 end character
0001D to 3000D
1
(for memory
submodule configured with
message texts)
(no memory
submodule)
Parameters for Transparent mode
0001D to 3000D
0001 6 10 ms
000D to 256D
64
Parameters for Interpretive mode
0001 6 10 ms
000D
0DH
0001H to 00FFH
0101H to FFFFH
EWA 4NEB 811 6044-02a
7
9
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
CP 523
Communications Mode
Table 7-2. Parameter Block Assignments on the Memory Submodule (Continued)
Parameters for 3964(R) mode
Character delay time (ZVZ)
(1 to 65535) ·10 ms
00001D to 65535D
22D
Time-out (QVZ)
(1 to 65535) ·10 ms
00001D to 65535D
00200D
Block delay time (BWZ)
(1 to 65535) ·10 ms
00001D to 65535D
00400D
Transfer with block check character
(3964R)
Transfer without block check
character (3964)
Correction value (s/month)
EWA 4NEB 811 6044-02a
1
0
0
Priority
Low
0
High
1
1
Connection buildup attempts
001D to 255D
6
No. of send attempts
001D to 255D
6
- 400D to+400D
000D
7-13
Communications Mode
CP 523
Explanation of data transmission parameters
Baud rate
You have a choice of eight baud rates. The default is 600 baud. If you are using the RS-232-C (V.24)
interface, you must take the load capacitance of cables longer than 15 m/29 ft. into account. If you
operate the CP 523 with the active TTY interface, cable lengths of up to 10 m/330 ft. are possible.
Cable lengths of up to 1000 m/3280 ft. can be implemented using the passive TTY interface.
Longer cables can be used if the baud rate is reduced.
Parity
You have a choice of five types of parity.
• Even parity
The parity bit is set when the number of data bits with a ”1” value is odd.
• Odd parity
The parity bit is set when the number of data bits with a ”1” value is even.
• ”Mark”
The parity bit is always "1".
• ”Space”
The parity bit is always "0".
• No parity check
The signal state of the parity bit is not significant. Parity is not checked when data is received
but is always set to "1" when sending.
The default is even parity.
Interface
You can choose between the RS-232-C (V.24) interface or the TTY interface. (See 2.3 for the
interface characteristics).
The default is the TTY interface.
Data format
Characters are transmitted between the CP and the peripheral device in a 10-bit or 11-bit character frame. You can choose between 7 and 8 data bits within the character frame:
10 -bit character frame
• 1 start bit, 7 data bits, 2 stop bits
• 1 start bit, 7 data bits, 1 parity bit, 1 stop bit
• 1 start bit, 8 data bits, 1 stop bit
Data format 3 in parameter block 0
Data format 4 in parameter block 0
Data format 5 in parameter block 0
11-bit character frame
• 1 start bit, 7 data bits, 1 parity bit, 2 stop bits
• 1 start bit, 8 data bits, 1 parity bit, 1 stop bit
• 1 start bit, 8 data bits, 2 stop bits
Data format 0 in parameter block 0
Data format 1 in parameter block 0
Data format 2 in parameter block 0
The default is the 11-bit character frame (1 start bit, 7 data bits, 1 parity bit, 2 stop bits).
7-14
EWA 4NEB 811 6044-02a
CP 523
Communications Mode
Hardware handshake (HW handshake)
This parameter is only significant for the RS-232-C (V.24) interface.
If you set HW handshaking ON, the "RTS", "CTS", "DTR" and "DSR" control signals of the RS-232-C
(V.24) interface are evaluated. The XON/XOFF protocol is not possible.
The default is HW handshake OFF, i.e. the control signals are not evaluated.
The HW handshake signals are neither evaluated nor affected in 3964(R) mode.
Parameter for XON/XOFF character
If you use the XON/XOFF protocol, you have a free choice of the XON/XOFF character. ASCII code
provides the codes 11H (DC1) for the XON character and 13H (DC3) for the XOFF character. You may
not use the same values for the XON and XOFF characters.
Data transfer is executed with the XON/XOFF protocol when valid values are used for XON and
XOFF.
XON/XOFF is not possible in Transparent mode (mode 1) or 3964(R) mode (mode 3).
Reader's note: Section 7.3.1 is arranged so that the parameter list (Table 7-2) and the parameter
descriptions which follow it are succeeded by the subsections
• Initializing TRANSPARENT MODE (page 7-16)
• Initializing INTERPRETIVE MODE (page 7-18)
• Initializing 3964(R) mode (page 7-21)
When you have chosen the mode you want to use, you can limit your reading to the appropriate
subsection.
The description of parameter block 9 applies for all modes, and was therefore presented only once
on page 7-42.
EWA 4NEB 811 6044-02a
7-15
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaa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aaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaa
Communications Mode
Parameter
Block
0
7
7-16
CP 523
Setting ”TRANSPARENT MODE” parameters via the MEMORY SUBMODULE
When you want to use Transparent mode to tranfer your datas, you must enter all parameter
setting data in parameter blocks 0 and 7.
Table 7-3. Contents of the Parameter Blocks for Transparent Mode
Description
Baud rate
Parity
BUSY signal
Interface
Data format:
HW handshaking
Value Range
11-bit character
frame
7 data bits
8 data bits
8 data bits
(yes)
(yes)
(no)
0
1
2
10-bit character
frame
7 data bits
7 data bits
8 data bits
(no)
(yes)
(no)
3
4
OFF
ON
Mode
Printer mode
Transparent mode
Interpretive mode
3964(R) mode
Character delay time
(1 to 3000) ·10 ms
Message frame length (1 to 256 bytes)
0
1
0
Default Values on
the CP 523
Parity:
110 Bd
200 Bd
300 Bd
600 Bd
1200 Bd
2400 Bd
4800 Bd
9600 Bd
1
2
3
4
5
6
7
8
4
even
odd
”mark”
”space”
no parity check
0
1
2
3
0
no
0
0
TTY
V.24
0
1
0
0
4
5
0
1
2
3
0 (for memory submodule with
configured
message texts)
1 (no memory
submodule)
0001D to 3000D
0001 6 10 ms
001D to 256D
64
EWA 4NEB 811 6044-02a
CP 523
Communications Mode
Example:
Setting parameters on the MEMORY SUBMODULE for ”TRANSPARENT MODE” with
the PG 685
Start address 128 is set on the CP 523. The module is to be operated in ”Transparent mode”.
Parameters are set as follows:
•
Parameters for the serial interface (parameter block 0)
- 2400 Bd
(6)
- Even parity
(0)
- No BUSY signal
(0)
- V.24 interface
(1)
- 7 data bits (11-bit character frame)
(0)
- Handshake OFF
(0)
•
Parameters for Communications mode (parameter block 7)
- Character delay time 300 ms (0030D)
- Message frame size 6 bytes, no end-of-text character
It is recommended that you proceed as follows:
1. Enter parameter setting data in DB 1 on the programmer and include detailed commentary.
2. Store DB 1 on floppy disk or hard disk.
3. Transfer DB 1 to the memory submodule.
Setting Parameters for Transparent Mode on the Memory Submodule
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaa
Table 7-4.
Entry on PG 685
KS = 'Parameters for the seri';
S = 'al interface';
KS = ':0600100';
:
:
S = 'Parameters for Communications';
KS = 'mode';
:
S = ':710030006';
EWA 4NEB 811 6044-02a
0
6
0
0
1
0
0
Parameter block 0
2400 Bd
Even parity
No BUSY signal
V.24 interface
7 data bits (11-bit character
frame)
Handshake OFF
7
1
0030D
006D
Parameter block 7
Transparent mode
Character delay time 300 ms
Frame size 6 bytes
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
:
:
:
Description
7-17
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaa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aa
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
Communications Mode
Parameter
Block
0
2
7-18
CP 523
Setting parameters for ”INTERPRETIVE MODE” via the MEMORY SUBMODULE
When you have decided to transmit your data in Interpretive mode, you enter all parameter
setting data in parameter blocks
Table 7-5. Parameter Block Assignments for Interpretive Mode
Description
Baud rate
Parity
BUSY signal
Interface
Data format:
HW handshake
Parity:
11-bit character
frame
7 Data bits
8 Data bits
8 Data bits
(yes)
(yes)
(yes)
0
1
2
10-bit character
frame
7 Data bits
7 Data bits
8 Data bits
(no)
(yes)
(no)
3
4
Value Range
Default Values
on the CP 523
110 Bd
200 Bd
300 Bd
600 Bd
1200 Bd
2400 Bd
4800 Bd
9600 Bd
1
2
3
4
5
6
7
8
4
even
odd
”mark”
”space”
no parity check
0
1
2
3
0
no
0
0
TTY
V.24
0
1
0
0
0
1
0
XON character
01H to 7EH
XOFF character
01H to 7EH
FFFFH
(no XON/XOFF
protocol)
OFF
ON
4
5
EWA 4NEB 811 6044-02a
CP 523
Communications Mode
Table 7-5. Parameter Block Assignments for Interpretive Mode (Continued)
7
Mode
0
Print mode
1
2
3
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaa
Transparent mode
Interpretive mode
3964 (R) mode
0
Character delay time
(1 to 3000) · 10 ms
Frame length (0 bytes)
One (byte 7) or two (bytes 6 and 7) endof-text characters must be specified
when the frame length is 0 bytes.
End-of-text characters
(only when frame length = 0)
1 end character
2 end character
Example:
1
(for memory
submodule configured with
message texts)
(no memory
submodule)
0001D to 3000D
0001 (6 10 ms)
000D
000
0DH
0001H to 00FFH
0101H to FFFFH
Using the PG 685 to set data parameters on the MEMORY SUBMODULE for
”INTERPRETIVE MODE”.
Start address 128 is set on the CP 523. The module is to be operated in Interpretive mode.
You can set the module parameters as follows:
•
Parameters for the serial interface (parameter block 0)
- 2400 baud
(6)
- Even parity
(0)
- No BUSY signal
(0)
- RS-232-C (V.24) interface
(1)
- 7 data bits (11-bit frame)
(0)
- Handshake OFF
(0)
•
Parameters XON/XOFF (parameter block 2)
- XON character: DC1
(11H)
- XOFF character: DC3
(13H)
•
Parameters for Communications mode (parameter block 7)
- Character delay time 300 ms (0030D)
- Variable frame length with two end-of-text characters (0D0DH)
EWA 4NEB 811 6044-02a
7-19
Communications Mode
CP 523
The following procedure is recommended:
1. Enter the parameter setting data on the programmer in DB 1 and include sufficient comments.
2. Store DB 1 on diskette or hard disk.
3. Transfer DB 1 to the memory submodule.
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaa
Table 7-6. Setting the CP 523 Parameters in Interpretive Mode on the Memory Submodule
Entry on the PG 685
Explanation
KS = 'Parameters for the serial';
S = 'Interface';
KS = ':0600100';
0
6
0
0
1
0
0
:
:
S = 'Parameters XON/XOFF';
KS = ':2';
:
KH = 1113;
2
11H
13H
Parameter block 2
DC1 (XON character)
DC3 (XOFF character)
:
S = 'Parameters for ASCII';
:
:
KS = 'mode';
S = ':720030000';
:
KH = 0D0D;
7
2
0030D
000D
0D0DH
Parameter block 7
Interpretive mode
Character delay time 300 ms
Message frame length 0
End-of-text characters
(two carriage returns)
7-20
Parameter block 0
2400 baud
Even parity
No BUSY signal
RS-232-C (V.24) interface
7 data bits (11-bit frame)
Handshaking OFF
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaa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aaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
CP 523
0
Communications Mode
Setting Parameters for ”3964(R) MODE” via the MEMORY SUBMODULE
When you have decided upon 3964(R) mode, you enter your data in blocks 0 and 7. Enter your
data in the same way as in the other modes. ”3964(R)” mode requires additional parameters in
parameter block 7.
Table 7-7. Parameter Block Assignments for 3964(R) Mode
Parameter
Block
Description
Baud rate
Parity
BUSY signal
Interface
Data format:
HW handshake
EWA 4NEB 811 6044-02a
Value Range
TTY
V.24 (RS 232 C)
11-bit character
frame
7 data bits
8 data bits
8 data bits
(yes)
(yes)
(no)
0
1
2
10-bit character
frame
7 data bits
7 data bits
8 data bits
(no)
(yes)
(no)
3
4
5
OFF
ON
0
1
Default Values
on the CP 523
Parity:
110 Bd
200 Bd
300 Bd
600 Bd
1200 Bd
2400 Bd
4800 Bd
9600 Bd
1
2
3
4
5
6
7
8
4
even
odd
”mark”
”space”
no parity check
0
1
2
3
4
0
No
0
0
0
1
0
0
0
7-21
Communications Mode
CP 523
Table 7-7. Parameter Block Assignments for 3964(R) Mode (Continued)
7
Character delay time (ZVZ)
(1 to 65535) ·10 ms
00001D to 65535D
0 (for memory
submodule configured with
message texts)
1 (no memory
submodule)
22D
Time-out (QVZ)
(1 to 65535) ·10 ms
00001D to 65535D
00200D
Block delay time (BWZ)
(1 to 65535) ·10 ms
00001D to 65535D
00400D
Mode
0
1
2
3
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaa
Print mode
Transparent mode
Interpretive mode
3964(R) mode
Transfer with block check character
(3964R)
Transfer without block check character
(3964)
1
0
0
Low
0
1
High
1
Priority
Example:
Connection buildup attempts
001D to 255D
6
No. of Send attempts
001D to 255D
6
Setting parameters on the MEMORY SUBMODULE for ”3964(R)” MODE over the
PG 685
Start address 128 is set on the CP 523. The module is to be operated in ”3964(R)” mode.
Parameters are to be set as follows:
•
Parameters for the serial interface (parameter block 0)
- 2400 baud
(6)
- Even parity
(0)
- No BUSY signal
(0)
- V.24 (RS 232 C) interface
(1)
- 7 data bits (11-bit frame)
(0)
- Handshaking OFF
(0)
•
Parameters for ”3964(R) mode” (parameter block 7)
- Character delay time
1s
(00100)
- Time-out
2s
(00200)
- Block delay time
4s
(00400)
- With block check character
(1)
- Low priority
(0)
- Buildup attempts
(012)
- No. of Send attempts
(003)
7-22
EWA 4NEB 811 6044-02a
aaaaaaaa
aaaaaaaa
aaaaaaaa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aaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaa
CP 523
Communications Mode
The following procedure is recommended:
1. Enter the initialization data in DB 1 using the programmer, and include sufficient commentary.
2. Store DB 1 on floppy or hard disk.
3. Transfer DB 1 to the memory submodule.
Setting Parameter for 3964(R) Mode on the Memory Submodule
Entry on the PG 685
Description
0
6
0
0
1
0
0
:7
3
00100D
00200D
00400D
1
0
012D
003D
Parameter block 0
2400 baud
Even parity
No BUSY signal
V.24 (RS232C) interface
7 data bits (11-bit frame)
Handshaking OFF
Parameter block 7
3964(R) mode
Character delay time
Time-out
Block delay time
3964R (with BCC)
Low priority
Connection buildup attempts
No. of Send attempts
Setting the CP 523 Parameters in the User Program
You can transfer data for a parameter block to the CP 523 with a ”Transfer parameter setting
data” request (90xxH).
Note:
You can only set parameters for parameter blocks 0, 2, 7 and 9 in the user program with
”Transfer parameter setting data”. Parameter blocks 1, 3 to 6 and 8 are only significant in Print
mode.
Reader's note: You will find a list of parameters (Tables 7-9 to 7-12) in Section 7.3.2. For editorial
reasons, the parameter blocks are discussed in the order 0, 7, 2, 9.
The parameter tables are followed by the subsections
• Setting parameters for TRANSPARENT MODE (page 7-28)
• Setting parameters for INTERPRETIVE MODE (page 7-32)
• Setting parameters for 3964(R) M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aaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
Communications Mode
Byte
Parity
4
BUSY signal
5
Interface
6
Data format:
HW handshake
CP 523
Table 7-9. Transfer Memory Assignments for ”Transfer Initialization Data for Parameter Block 0”
Meaning
Job number
”Transfer parameter setting data”
Bit 4 to 7: Parameter block number
Bit 0 to 3: Only significant for
parameters block 7 and 9
Baud rate
Possible Values
Default Values
on the CP 523
90H
-
00H
11-bit character
frame
7 data bits
8 data bits
8 data bits
(yes)
(yes)
(no)
00H
01H
02H
10-bit character
frame
7 data bits
7 data bits
8 data bits
(no)
(yes)
(no)
03H
04H
05H
OFF
ON
00H
01H
-
Parity:
110 baud
200 baud
300 baud
600 baud
1200 baud
2400 baud
4800 baud
9600 baud
01H
02H
03H
04H
05H
06H
07H
08H
even
odd
”mark”
”space”
no parity check
00H
01H
02H
03H
04H
No
00H
00H
TTY
V.24
00H
01H
00H
00H
04H
00H
00H
EWA 4NEB 811 6044-02a
CP523
Communications
CP523
Mode
Communications
Mode
Table 7-10. Transfer Memory Assignments for “Transfer Parameter Setting Data for Parameter Block 7“
—
I
Transparent
Mode
Interpretive Mode
3964(R) Mode
Follow-Up Request
I
3964(R) Mode
1
lyte
Description
Values
Default
Values on the
CP 523
Job no
Permissible
Values
Default
Values on the
Description
CP 523
Permissible
Values
Default
1
Values on the 1
CP
523
Bits 4 to 7:
Parameter block
Mode
Character delay
time
(1 to 3000).10 ms
3
Frame length
(1 to 256 bytes)
T
0001. to OBB8. OOOIH = 10 ms
0001” to OIOOH
0040,
its 4 to 7;
Iits 4 to 7:
arameter block
lumber
its O to 3:
flode
‘arameter
lumber
:haracter delay
lme
1 to 3000). 10 ms
Job no.
I
1 ,
, Bits 4 to 7:
sible
Values
0001. = 10 ms
:haracter delay
ime (ZVZ)
1 to 65535).10 ms
“ime-out
0001. to FFFFH
QVZ)
1 to 65535) .10 ms
(2000
ms
ODH
ters, 1 end-of-text
character in byte 7
(Byte 6 = O) or2
end-of-text characters in bytes 6
and 7
EWA4NE8811 6044.02a
Ilock delay time
BWZ)
1 to 65535) ● 10 ms
OOOIH to FFFFH
0190.
-------- --------
=
—
00.
OIH
OIH
I Connect. buildup
OOC8H
3
4
2 s ) I attempts(l t o 2 5 5 ) OOHto FFH 06”
,-_---.-- - - - - - - - --------------11
I Number of retries
OOHto FFH
06.
m
;nd-of-text-charac-
2
[
I (1 to 255)
I
Irrelevant
1
1 block check char.
Transm. with block
(22’::s)
,1 High
0000”
o
—
,1
00”
i Transmiss. without
0001. to FFFFH
[ Low
I priority
0000,
90”,,
“’;;:;$&;;:; ”;.
1‘:mber
1 Bits O to 3:
f Mode
~f~e~k-ch_a-ract-e~--.
--
Frame length
(O bytes)
1,,,,
lyte
, Parameter block
block
Iits Oto 3:
/lode
0001, to OBB8.
Default
Values or
the
CP 523
PermisDescription
;
Job no.
Job no.
number
Bits O to 3:
T
Description
1
0
1
Permissible
I Irrelevant
5
T
(4000 ms = 4s) I
I
0001. to OOFF.
0101. to FFFF.
7
—
7-25
EWA4NEB8116W-02a
7-26
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa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aaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
CP 523
Communications Mode
Transferring parameter setting data for parameter block 2
(relevant in Interpretive mode only)
Table 7-11. Transfer Memory Assignments for ”Transfer Parameter Setting Data
for Parameter Block 2”
Byte
Meaning
Job number
”Transfer parameter setting data”
Byte
Meaning
2+3
Correction value (s/month)
4 to 7
Not significant
EWA 4NEB 811 6044-02a
Possible Values
Default Values
on the CP 523
90H
-
Bits 4 to 7: Parameter block number
Bits 0 to 3: Only significant for
parameter blocks 7 and 9
20H
2
XON character
01H to 7EH
3
XOFF character
01H to 7EH
FFFFH
(No XON/XOFF
protocol)
-
Not significant
0
Job number
”Transfer parameter setting data”
90H
1
Bits 4 to 7: Parameter block number
Bits 0 to 3: Sign for correction value
0 positive
1 negative
9H
-
Transferring parameter setting data for parameter block 9
Table 7-12. Transfer Memory Assignments for the "Transfer Parameter Setting Data for
Parameter Block 9"
Possible Values
Default Values
on the CP 523
-
0H
1H
-
0D to 400D
0000D
-
-
7-27
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
Communications Mode
Byte
2
3
7-28
4
BUSY signal
5
Interface
6
Data format:
7
CP 523
Setting parameters for ”TRANSPARENT MODE” in the USER PROGRAM
Transferring the parameter setting data for parameter block 0
Table 7-13. Transfer Memory Assignments for ”Transfer Parameter Setting Data
for Parameter Block 0”
Description
0
Job number
”Transfer parameter setting data”
1
Bits 4 to 7: Parameter block number
Bits 0 to 3: Relevant for parameter
blocks 0 and 9 only
Baud rate
Parity
HW handshake
Possible Values
Default Values
on the CP 523
90H
-
00H
-
Parity:
11-bit character
frame
7 data bits
8 data bits
8 data bits
(yes)
(yes)
(no)
00H
01H
02H
10-bit character
frame
7 data bits
7 data bits
8 data bits
(no)
(yes)
(no)
03H
04H
05H
OFF
ON
00H
01H
110 Bd
200 Bd
300 Bd
600 Bd
1200 Bd
2400 Bd
4800 Bd
9600 Bd
01H
02H
03H
04H
05H
06H
07H
08H
even
odd
”mark”
”space”
no parity check
00H
01H
02H
03H
04H
No
00H
00H
TTY
V.24
00H
01H
00H
00H
04H
00H
00H
EWA 4NEB 811 6044-02a
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaa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aaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaa
CP 523
Communications Mode
Example:
Transferring parameter setting data for parameter block 0
Start address 128 is set on the CP 523.
You can set its parameters as follows:
Parameters for the serial interface (parameter block 0)
• 2400 baud
(06H)
• Even parity
(00H)
• No BUSYsignal
(00H)
• RS-232-C (V.24) interface
(01H)
• 7 data bits (11-bit character frame)
(00H)
• Handshaking OFF
(00H)
STL OB 22
EWA 4NEB 811 6044-02a
STL FB 110
:JU
FB
NAME :SYNC**
99
:JU
FB
NAME :BLOCK0
:BE
110
NAME :BLOCK0
:L
KH 0000
:T
:L
:T
PW 134
KH 0001
PW 132
:L
:T
:L
KH 0600
PW 130
KH 9000
:T
:BE
PW 128 *
Explanation
Handshaking OFF
7 data bits (11-bit character frame)
No BUSY signal
RS-232-C (V.24) interface
2400 baud
Even parity
Transfer "Parameter setting data
parameter block 0" job number
*
5.2
** The program waits at FB 99 until the CP 523 can accept job request ( 4.1)
Note:
Restart organization block OB 22 is only processed if the CPU is in RUN mode before you switch
from "POWER OFF" to "POWER ON".
Note:
The status byte can be scanned approx. 30 ms after the request was issued in order to check
whether correct parameter setting data was transferred (X4 is returned to indicate errored
values ( 7.4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aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
Communications Mode
Byte
7-30
CP 523
Transferring parameter setting data for parameter block 7
Table 7-14. Transfer Memory Assignments for ”Transfer Initialization Data
for Parameter Block 7”
Meaning
0
Job number
”Transfer parameter setting data”
1
Bits 4 to 7: Parameter block number
Bits 0 to 3: Mode
Print mode
Transparent mode
Interpretive mode
”3964(R)” mode
3964(R) mode
Follow-up request
Possible Values
Default Values
on the CP 523
90H
-
7
0: If a memory submodule with
message texts is
plugged in
1: Without
memory
submodule
0
1
2
3
A
2+3
Character delay time
(1 to 3000) · 10 ms
0001H to 0BB8H
0001H 6 10 ms
4+5
Frame length (1 to 256 bytes)
0001H to 0100H
0040H
6+7
Irrelevant
-
-
* Only possible in Interpretive mode
EWA 4NEB 811 6044-02a
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaa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aaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaa
CP 523
Communications Mode
Example:
Transferring the parameter setting data for parameter block 7
Start address 128 is set on the CP 523. The module is to be operated in Transparent mode. The
message frames to be transferred have a length of 6 bytes. An end-of-text character is not
required. The character delay time may be 3 s (3 s=001EH).
STL OB 22
:JU
FB
NAME :SYNC **
:JU
FB
NAME :BLOCK7
:BE
EWA 4NEB 811 6044-02a
STL FB 111
99
111
NAME :BLOCK7
:L
KH O0O0
:T
PW 134
:L
:T
KH 0006
PW 132
:L
:T
:L
:T
KH
PW
KH
PW
:BE
001E
130
9071
128 *
Explanation
Load no end-of-text characters into
ACCUM 1 and transfer to the CP in bytes
6 and 7.
Load frame length into ACCUM 1 and
transfer to the CP in bytes 4+5.
Load character delay time into ACCUM 1
and transfer to the CP in bytes 2+3.
Load job number (90H), parameter block
number (7H) and mode code (1H) into
ACCUM 1 and transfer to the CP
*
5.2
** The program in FB 99 waits until the CP 523 can accept job requests ( 4.1)
Note:
The status byte can be scanned approx. 30 ms after the request was issued in order to check
whether correct parameter values were forwarded (X4 is returned if values are false ( 7.4.1)).
7-31
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
a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format:
7
CP 523
Setting parameters for INTERPRETIVE MODE in the USER PROGRAM
Transferring the parameter setting data for parameter block 0
Table 7-15. Transfer Memory Assignment for ”Transfer Parameter Setting Data
for Parameter Block 0”
Description
0
Job number
”Transfer parameter setting data”
1
Bits 4 to 7: Parameter block number
Bits 0 to 3: Relevant for parameter
blocks 7 and 9 only
Baud rate
Parity
HW handshake
Possible Values
Default Values
on the CP 523
90H
-
00H
-
Parity:
11-bit character
frame
7 data bits
8 data bits
8 data bits
(yes)
(yes)
(no)
00H
01H
02H
10-bit character
frame
7 data bits
7 data bits
8 data bits
(no)
(yes)
(no)
03H
04H
05H
OFF
ON
00H
01H
110 baud
200 baud
300 baud
600 baud
1200 baud
2400 baud
4800 baud
9600 baud
01H
02H
03H
04H
05H
06H
07H
08H
even
odd
”mark”
”space”
no parity check
00H
01H
02H
03H
04H
No
00H
00H
TTY
V.24
00H
01H
00H
00H
04H
00H
00H
EWA 4NEB 811 6044-02a
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaa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aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaa
CP 523
Communications Mode
Example:
Transferring parameter setting data for parameter block 0
Start address 128 is set on the CP 523.
Set CP parameters as follows:
Parameters for the serial interface (parameter block 0)
• 2400 baud
(06H)
• Even parity
(00H)
• No BUSY system
(00H)
• V.24 (RS 232C) interface
(01H)
• 7 data bits (11-bit character frame)
(00H)
• Handshake OFF
(00H)
STL OB 22
:JU
FB
NAME :SYNC**
:JU
FB
NAME :BLOCK0
:BE
EWA 4NEB 811 6044-02a
STL FB 112
99
112
NAME :BLOCK0
:L
KH 0000
:T
PW 134
:L
:T
:L
KH 0001
PW 132
KH 0600
:T
:L
:T
PW 130
KH 9000
PW 128*
Explanation
Handshake OFF
7 data bits (11-bit character frame)
No BUSY signal
V.24 (RS 232C) interface
2400 baud
Even parity
Transfer job number for ”Parameter
setting data for parameter block 0”
:BE
*
5.2
** FB 99 waits until the CP 523 can accept job requests ( 4.1)
Note:
Restart OB 22 is processed only when the CPU is at RUN before switching from ”POWER OFF” to
”POWER ON”.
Note:
The status byte can be scanned approx. 30 ms after issuing the job request to check on whether
correct parameter values were forwarded (X4 is returned to indicate false values ( 7.4.1)).
7-33
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
Communications Mode
Byte
4 to 7
7-34
2
XON character
01H to 7EH
3
XOFF character
01H to 7EH
FFFFH
(No XON/XOFF
protocol)
-
Irrelevant
CP 523
Transferring parameter setting data for parameter block 2
Table 7-16. Transfer Memory Assignments for ”Transfer Parameter Setting Data
for Parameter Block 2”
Description
0
Job number
”Transfer parameter setting data”
90H
1
Bits 4 to 7: Parameter block number
Bits 0 to 3: Relevant for parameter
blocks 7 and 9 only
20H
Possible Values
Default Values
on the CP 523
-
-
EWA 4NEB 811 6044-02a
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaa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aaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaa
CP 523
Communications Mode
Example:
Transferring parameter setting data for parameter block 2
STL OB 22
NAME :SYNC**
:JU FB
NAME :BLOCK2
:JU
STL FB 113
FB
:BE
99
NAME :BLOCK2
113
:L
:T
:L
KH 1113
PW 130
KH 9020
:T
:BE
PW 128*
EWA 4NEB 811 6044-02a
Explanation
Load ASCII codes for XON and XOFF
character into ACCUM 1, transfer to CP
in bytes 2 and 3.
Load ACCUM 1 with job number and
parameter block number and transfer to
CP in bytes 0 and 1.
*
5.2
** FB 99 waits until the CP 523 can accept job requests ( 4.1)
Note:
The status byte can be scanned approx. 30 ms after the request was issued to check whether
correct parameter values were forwarded (X4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aaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
Communications Mode
Byte
7-36
CP 523
Transferring parameter setting data for parameter block 7
Table 7-17. Transfer Memory Assignments for ”Transfer Parameter Setting Data
for Parameter Block 7”
Description
0
Job number
”Transfer parameter setting”
1
Bits 4 to 7: Parameter block number
Bits 0 to 3: Mode
Print mode
Transparent mode
Interpretive mode
”3964(R)” mode
2+3
Character delay time
(1 to 3000) · 10 ms
4+5
Message frame length (1 to 256 bytes)
One (Byte 7) or two (bytes 6 and 7) endof-text characters must be specified if
message frame length is 0 bytes
6+7
End-of-text characters*
(only when message frame length= 0)
1 end-of-text character (Byte 6=0)
2 end-of-text characters
Possible Values
Default Values
on the CP 523
90H
-
7
0
1
2
3
0: when memory
submodule with
message texts is
plugged in
1: no memory subm.
0001H to 0BB8H
0001H 6 10 ms
0000H
0040H
No end-of-text
character
0001H to 00FFH
0101H to FFFFH
* Possible in Interpretive mode only
EWA 4NEB 811 6044-02a
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa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aaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaa
CP 523
Communications Mode
Example:
Transferring parameter setting data for parameter block 7
Start address 128 is set on the CP 523. The module is to be operated in Interpretive mode. The
message frames to be transmitted have different lengths; the end of the message frame is
therefore signalled with 0D0DH (0D0DH=two carriage returns). The character delay time may be
300 ms (300 ms=001EH).
STL OB 22
EWA 4NEB 811 6044-02a
STL FB 114
:JU
FB
NAME :SYNC **
99
:JU
FB
NAME :BLOCK7
:BE
112
NAME :BLOCK7
:L
KH ODOD
:T
:L
:T
PW 134
KH 0000
PW 132
:L
:T
KH 001E
PW 130
:L
KH 9072
:T
:BE
PW 128 *
Explanation
Load end characters into ACCUM 1 and
transfer to CP in bytes 6 and 7.
Load message frame length into
ACCUM 1 and transfer to CP in bytes 4
and 5.
Load character delay time into ACCUM 1
and transfer to CP in bytes 2 and 3.
Load job number (90H), parameter block
number (7H) and mode code (2H) into
ACCUM 1 and transfer to the CP.
*
5.2
** FB 99 waits until the CP 523 can accept job requests ( 4.1)
Note:
The status byte can be scanned approx. 30 ms after the request was issued to check whether
correct parameter values were forwarded (X4 is returned to indicate false values ( 7.4.1)).
7-37
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaa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aaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
Communications Mode
Byte
2
3
7-38
4
BUSY signal
5
Interface
6
Data format:
7
CP 523
Setting parameters for the 3964(R) MODE in the USER PROGRAM
Transferring the parameter setting data for parameter block 0
Table 7-18. Transfer Memory Assignments for ”Transfer Parameter Setting Data
for Parameter Block 0”
Description
0
Job number
”Transfer parameter setting”
1
Bits 4 to 7: Parameter block number
Bits 0 to 3: Relevant for parameter
blocks 7 and 9 only
Baud rate
Parity
HW handshake
Possible Values
Default Values
on the CP 523
90H
-
00H
-
Parity:
11-bit character
frame
7 data bits
8 data bits
8 data bits
(yes)
(yes)
(no)
00H
01H
02H
10-bit character
frame
7 data bits
7 data bits
8 data bits
(no)
(yes)
(no)
03H
04H
05H
OFF
ON
00H
01H
110 baud
200 baud
300 baud
600 baud
1200 baud
2400 baud
4800 baud
9600 baud
01H
02H
03H
04H
05H
06H
07H
08H
even
odd
”mark”
”space”
no parity check
00H
01H
02H
03H
04H
No
00H
00H
TTY
V.24
00H
01H
00H
00H
04H
00H
00H
EWA 4NEB 811 6044-02a
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
a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aaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaa
CP 523
Communications Mode
Example:
Transferring parameter setting data for parameter block 0
Start address 128 is set on the CP 523.
Set CP parameters as follows:
Parameters for the serial interface (parameter block 0)
• 2400 baud
(06H)
• Even parity
(00H)
• No BUSY signal
(00H)
• V.24 (RS232C) interface
(01H)
• 7 data bits (11-bit character frame)
(00H)
• Handshake OFF
(00H)
STL OB 22
:JU
FB
99
NAME :SYNC**
:JU
FB 115
NAME :BLOCK0
:BE
EWA 4NEB 811 6044-02a
STL FB 115
NAME :BLOCK0
:L
KH 0000
:T
PW 134
:L
:T
:L
KH 0001
PW 132
KH 0600
:T
:L
:T
PW 130
KH 9000
PW 128*
Explanation
Handshake OFF
7 data bits (11-bit character frame)
No BUSY signal
V.24 (RS232C) interface
2400 baud
Even parity
Transfer job number for ”Parameter
setting data for parameter block 0”
:BE
*
5.2
** FB 99 waits until the CP 523 can accept job requests ( 4.1)
Note:
Restart OB 22 is processed only when the CPU is at RUN before switching from POWER OFF to
POWER ON.
Special features pertaining to parameter setting of ”3964(R) mode” in the user program
As in ”Transparent” and ”Interpretive” mode, you transfer all parameter setting data to the CP
with job number 90XXH ”Transfer parameter setting data”. You enter the parameter setting data
in the same way as in the other modes, except that you must transfer a number of additional
parameters for ”3964(R) mode”. These added parameters are defined in parameter block 7. Since
it is not possible to transfer all required parameters in 8 bytes, the parameter setting of parameter
block 7 is divided into two steps. The job numbers for these steps are 9073H (1st job request) and
907AH (follow-up job request).
The contents of the transfer memory for job numbers 9073H and 907AH are listed in Tables 7-19
and 7-20.
7-39
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaa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aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaa
Communications Mode
Byte
2+3
Byte
6+7
7-40
CP 523
Transfer parameter setting data for parameter block 7
Table 7-19. Transfer Memory Assignments for Job Number ”9073H”
Description
0
Job number
”Transfer initialization data”
1
Bits 4 to 7: Parameter block number
Bits 0 to 3: Mode
Print mode
Transparent mode
Interpretive mode
3964(R) mode
3964(R) mode
Follow-up request
Character delay time (ZVZ)
(1 to 65535) · 10 ms
Description
0
Job number
”Transfer initialization data”
1
Bits 4 to 7: Parameter block number
Bits 0 to 3: Mode
Print mode
Transparent mode
Interpretive mode
3964(R) mode
3964(R) mode
Follow-up job request
2
Without block check character
With block check character
3
Priority
0
1
2
3
Possible Values
Default Values
on the CP 523
90H
-
7
0: Memory
submodule with
message texts
7
0
1
2
3
00H
01H
Low
00H
High
01H
1: No memory
submodule
A
0001H to FFFFH
16H
(220 ms)
4+5
Time-out (QVZ)
(1 to 65535) · 10 ms
0001H to FFFFH
00C8H
(2 s)
6+7
Message delay time (BWZ)
(1 to 65535) · 10 ms
0001H to FFFFH
0190H
(4 s)
Table 7-20. Transfer Memory Assignment for Follow-up Job Request ”9074H”
Possible Values
DefaultValues
on the CP 523
90H
-
0: Memory
submodule with
message texts
1: No memory
submodule
A
00
01H
4
Connection buildup attempts
00H to FFH
06H
5
Number of Send attempts
004 to FFH
06H
Irrelevant
EWA 4NEB 811 6044-02a
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaa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aaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaa
CP 523
Communications Mode
Example: Transferring parameter setting data for parameter block 7
Start address 128 is set on the CP 523. Set the parameters as follows in ”3964(R) mode”:
• Message frame delay time:
4000 ms
• Time-out:
2000 ms
• Character delay time:
220 ms
• Connection buildup attempts:
6
• Number of Send attempts:
6
• Transmission:
with block check character (BCC)
• Priority:
low
STL OB 22
:JU FB
NAME : SYNC*
:JU FB
NAME :BLOCK7
EWA 4NEB 811 6044-02a
STL FB 116
99
116
NAME :BLOCK7
:L
KH 0190
:BE
:L
KH 907A
:T
:BE
PW 128**
Explanation
:T
PW 134
:L
:T
KH 00C8
PW 132
Load acknowledge delay time
(200D • 10 ms) into ACCUM 1 and transfer
to CP in bytes 4 and 5
:L
:T
KH 0016
PW 130
Load character delay time (22D • 10 ms)
into ACCUM 1 and transfer to CP in bytes
2 and 3
Load message frame delay time
(400 • 10 ms) into ACCUM 1 and transfer
to CP in bytes 6 and 7
:L
:T
KH 9073
PW 128**
Load job number (90H), parameter
block number (7H) and
mode code (3H)
into ACCUM 1 and
transfer to CP
:L
:T
KH 0606
PW 132
Load connection buildup attempts (6)
and number of Send attempts (6) into
ACCUM 1 and transfer to CP in bytes 4
and 5
:L
:T
KH 0100
PW 130
Load ”with BCC” (01H) and ”low
priority” (00H) into ACCUM 1 and
transfer to CP in bytes 2 and 3
Load job number (90H), parameter block
number (7H) and
follow-up request code (AH) into
ACCUM 1 and transfer to CP
* FB 99 waits until the CP 523 can accept job requests ( 4.1)
** ( 5.2)
Note:
The status byte can be scanned approx. 30 ms after the job request is issued to check whether
correct initialization values were forwarded (X4 is returned to indicate errored values
( 7.4.1)).
7-41
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
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aaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
Communications Mode
Byte
Example:
STL OB 22
:JU FB 99
NAME : SYNC**
:JU FB 117
NAME :BLOCK9
:BE
7-42
CP 523
Transfer parameter setting data for parameter block 9
Description
0
Job number
”Transfer parameter setting data”
90H
1
Bits 4 to 7: Parameter block number
Bits 0 to 3: Sign for correction value
0 positive
1 negative
9H
2+3
Correction value (s/month)
4 to 7
Not significant
STL FB 117
NAME :BLOCK9
:L
KF +90
:T
PW 130
:L
:T
:BE
KH 9090
PW 128*
Possible Values
Default Values
on the CP 523
-
0H
1H
-
0D to 400D
0000D
-
Transferring parameter setting data for parameter block 9
You have discovered that the clock loses 12 seconds in 4 days, which totals to 90 seconds in 30 days.
The correction value is thus 90 s/month.
Description
Load correction value into ACCUM 1 and
transfer to CP in bytes 2 and 3
Load job number and parameter block
number into ACCUM 1 and transfer to CP
in bytes 0 and 1
*
5.2
** FB 99 waits until the CP 523 can accept job requests ( 4.1)
EWA 4NEB 811 6044-02a
CP 523
7.4
Communications Mode
CP 523 Feedback Information
The CP 523 has an eight-byte transfer memory for data exchange with the CPU.
The CP 523 reads the data from the transfer memory and updates the transfer memory with
current values only when the start address of the module has been written into word 0 of the
transfer memory with T PW in the user program. The current data can then be read in the user
program with L PW statements.
CPU transfers job
request in word 0 of
the transfer memory*
(T PW X).
*
CP reads bytes 0 to
7 of the transfer
memory.
CP writes current
data into bytes 0
to 7 of the transfer
memory.
CPU can read the
current data from
the transfer
memory (L PW X).
5.2
Figure 7-6. Using the Transfer Memory
The meaning of the data written into the transfer memory by the CP depends on:
• the job number that was transferred to the CP in word 0
and
• the initialized mode
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
Table 7-21. Job Requests and the Associated Feedback Information
Job Requests
Initialized
Mode
Return Info from CP
See Section
0000H:
Read status byte, status of I/O device
and current clock data ( 7.4.1)
1, 2, 3
7.4.1
1000H:
Set clock
( 6.7.2)
1, 2, 3
7.4.1
90XXH:
Transfer parameter setting data
( 7.3.2)
1, 2
7.4.1
3
7.4.1
1
7.4.2
2
7.4.2
3
7.4.2
A0XXH:
Coordinate data transfer
( 7.6 and 7.7)
EWA 4NEB 811 6044-02a
7-43
Communications Mode
7.4.1
CP 523
Reading the Status Byte, the Status of the Peripheral Device and the
Current Clock Data
As soon as job request 0000H has been transferred to the CP, the CP writes the following into the
transfer memory:
• The status byte
(byte 0)
• The status of the peripheral device (byte 1)
• The current clock data
(bytes 1 to 7)
The return info is the same for job requests:
• 1000H: ”Set clock”
• 90XXH: Transfer parameter setting
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
Table 7-22. Status Information and Current Clock Data
Byte
Meaning
0
Status byte
1
Status of the peripheral device
Bits 4 to 7:
Possible Values
7.24
Peripheral device ready
Peripheral device not ready
0XBCD
1XBCD
Bits 0 to 3:
Current day of the week
1=Sunday, 2=Monday, 3=Tuesday, 4=Wednesday
5=Thursday, 6=Friday, 7=Saturday
X1BCD to X7BCD
2
Current day
01BCD to 31BCD
3
Current month
01BCD to 12BCD
4
Current year
00BCD to 99BCD
5
Current hour
24 h clock
12 h clock a.m.
12 h clock p.m.
00BCD to 23BCD
01BCD to 12BCD
81BCD to 92BCD
6
Current minute
00BCD to 59BCD
7
Current second
00BCD to 59BCD
Status byte (byte 0)
The status byte provides information on
• errors during data interchange between CP and I/O device
• the status of a CPU job
• the status of the CP 523
• battery backup
The status byte is divided into two half-bytes. Both half-bytes are independent of each other. They
can be combined in any way.
7-44
EWA 4NEB 811 6044-02a
CP 523
Communications Mode
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
Table 7-23. Status Byte (Byte 0) in Communications Mode Following ”Coordinate Data Transfer”
Byte 0
Bits 4 to 7 Bits 0 to 3
Status
0
0
No error
X
1
Memory submodule defective
X
3
Entries in job buffer (init. requests only)
X
7
No battery backup
X
8
Job buffer full (init. requests only)
0
F
CP restart in progress
1
X
Clock defective
2
X
Default time set
3
X
Time/data error
4
X
Illegal job request
8
X
Hardware fault
No battery backup (X7H)
Either
• no battery has been inserted in the power supply module, or
• the battery is defective
Default time set (2XH)
The clock is set to Sunday 01.01.90 12:00:00.
Data/time error (3XH)
At least one variable is out of range.
The new data were rejected and the clock retains the old setting.
Illegal job request (4XH)
A job number not permitted in Communications mode was entered in word 0 of the transfer
memory. See 7.5 for a list of permissible job numbers for Communications mode. This error code is
also used to flag invalid parameters in a parameter setting request.
EWA 4NEB 811 6044-02a
7-45
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaa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a
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaa
Communications Mode
Example:
NAME :ERROR3
:L
KH 0000
:T
:L
:L
*
Example:
NAME
*
7-46
PW 128*
KH 0010
PY 129
:AW
:><F
:BEC
:S
:BE
Q
:L
:T
:L
KH 0000
PW 128*
PY 129
:L
:AW
:T
KH 000F
:L
:T
:L
:T
PW 130
QW 10
PW 132
QW 12
:L
:T
:BE
PW 134
QW 14
QB
4.1
STL FB 102
CP 523
Evaluating the status of the peripheral device
Start address 128 is set on the module.
If the peripheral device is not ready for operation, output 4.1 is set.
STL FB 118
Explanation
Transfer nonrelevant data to the CP. The CP then updates the
transfer memory with the current data.
”Status of the peripheral device” evaluation
Set bits 0 to 3 to ”0”
Compare ACCUM 1 and ACCUM 2: If not equal,
Block End
Otherwise, set output 4.1
Block End
5.2
Reading the current clock data
Start address 128 is set on the module.
The clock data is to be output to digital output modules beginning address 8.
Explanation
:CLOCKDAT
Load ACCUM 1 with nonrelevant data and transfer to the CP in
word 0 so that the CP will transfer the current data to the transfer
memory.
Read the current clock data and transfer to the digital output
modules.
8
5.2
Note:
When using the integral clock, you can evaluate the following additional flags in the status
byte:
• Default time of day set (2XH)
This evaluation is only of use if you operate the programmable controller without a backup
battery.
• Time of day or date error (3XH)
This error evaluation is only meaningful after you have set the clock.
• Clock defective (1XH)
This error evaluation is only meaningful after a restart.
EWA 4NEB 811 6044-02a
CP 523
Communications Mode
7.4.2
Reading Coordination Information after "Coordinate Data Transfer"
As soon as the "Coordinate data transfer" request has been transferred to the CP, the CP 523
writes coordination information into bytes 1 to 7 of the transfer memory. This information can be
read out with load operations.
This coordination info is available in Transparent and Interpretive mode after the following
requests:
•
•
•
A000H:
A001H:
A080H:
Read status byte and coordination info
Send message frame
Receive message frame
In ”3964(R) mode”, different coordination info is returned when these same job requests are
issued. This info is discussed at the end of this section.
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
Table 7-24. Coordination Information after "Coordinate Data Transfer"
Byte
Meaning
Possible Values
0
Status byte
5XH
1
Permission to send and receive
CPU can neither send nor receive
CPU can send
CPU can receive
CPU can send and receive
00H
01H
80H
81H
2+3
Message length in bytes*
4+5
Irrelevant
0000H to 0100H
0000H
6
Number of message frames
(calculated by the CP after a send request with fixed message
length)
00H to 20H
7
Number of message frames in Receive mailbox
(The CP can buffer up to 100 message frames in the Receive
mailbox. The sum of the length of these messages may not
exceed 1024 bytes. When a message has been entered in the
Receive mailbox, bit 7 of byte 1 is ”0”.)
00H to 64H
* Only after "Receive message" (A080H); in the case of an illegal Send request FF00H
Status byte (byte 0)
In the status byte, bits 4 to 7 always have the value 5H following a "Coordinate data transfer"
request. Bits 0 to 3 contain error flags.
EWA 4NEB 811 6044-02a
7-47
Communications Mode
CP 523
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
Table 7-25. Status Byte (Byte 0) in Communications Mode after ”Coordinate Data Transfer”
Byte 0
Bits 4 to 7 Bits 0 to 3
Status
5
9*
Character delay time exceeded
5
A*
Parity error
5
B*
Receive after XOFF or after DTR = 0
5
C*
Frame exceeds 256 bytes
5
D
Continuous break in line to I/O device
5
E*
Receive mailbox overflow
* Signal state irrelevant for the other half-byte
Character delay time exceeded (59H)
The interval between two characters exceeds the value set in parameter block 7.
The data received up until this point is transferred as message frame to the CPU.
This is advantageous when you want to receive message frames of varied lengths although a fixed
message frame size has been specified. This works when an I/O device sends variable-length data
message frames without specific end-of-text characters and when the message frames arrive at
long intervals (manual entry).
Parity error (5AH)
The parity of received characters does not agree with the parity configured in parameter block 0.
The message frame is not transferred to the CPU and is not stored in the Receive mailbox.
Receive after XOFF or receive after DTR = OFF (5BH)
In the case of XON/XOFF protocol:
The CP 523 sends XOFF to the peripheral device if
• less than 20 bytes are free in the Receive mailbox
• the CP has received 99 message frames.
The CP 523 sends XON again only when more than 256 bytes are free in the Receive mailbox.
When using MODEM control signals:
The CP 523 sends DTR = OFF to the peripheral device if
• less than 20 bytes are free in the Receive mailbox
• the CP has received 99 message frames.
The CP 523 sends DTR = ON again only when more than 256 bytes are free in the Receive mailbox.
Error XBH is flagged if the peripheral device has sent more characters than the CP can
accommodate in the Receive mailbox. The message frame is not transferred to the CPU and not
stored in the Receive mailbox.
7-48
EWA 4NEB 811 6044-02a
CP 523
Communications Mode
Message frames exceeding 256 bytes (5CH)
The peripheral device has sent a message frame that is longer than 256 bytes.
The CP flags error 5CH if it has not detected an end-of-text character after receiving 256
characters.
The message frame is not transferred to the CPU and not stored in the Receive mailbox.
Permanent wire break in the peripheral device cable (5DH)
During the transmission, the peripheral device must
• hold the RXD line constantly at logic "1" or
• hold the CTS line constantly at ”ON” when using MODEM control signals (”ON”: V 3 V).
Otherwise an error is flagged.
After a permanent break has been remedied, the sender can resume transmission when the
receiver has returned "XON". Data arriving at the receiver before the XON may be lost.
Receive mailbox overflow (5EH)
The following can be stored in the Receive mailbox:
• Up to 1024 bytes of data
• Up to 99 message frames.
If these values are exceeded when receiving a message frame from the peripheral device, the CP
flags an error.
The message frame is not transferred to the CPU and not stored in the Receive mailbox.
EWA 4NEB 811 6044-02a
7-49
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa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aaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaa
Communications Mode
Example:
STL FB 119
NAME :SEND1
:A
F 100.3
*
DW 0
DW 1
DW 2
DW 3
DW 4
DW 5
DW 6
DW 7
7-50
:
:
:
:
:
:
:
:
:BEC
:L
KH
:T
PW
0004
130
:L
:T
:L
A001
128*
0001
KH
PW
KH
:L
PW
:AW
:><F
:BEC
:S
F
:C
DB
100.3
20
:L
:T
:L
DW
PW
DW
1
130
0
:T
:BE
PW
128*
CP 523
Reading coordination information after "Send message frame"
Start address 128 is set on the CP 523. A four-byte message frame is to be sent. The message frame
is stored in DB 20 in DW 0. Flag 100.3 is to be set if the CP 523 accepts the job. The program does
not describe how F100.3 is reset. F 100.3 could be reset when another job request is forwarded to
the CP.
Explanation
If flag 100.3 is set, the CP 523 has accepted the job request,
then Block End
Load message frame length 4 bytes into ACCUM 1 and transfer
to word 2 of the transfer memory
Load "Send message frame" (A001H) into ACCUM 1 and transfer
to word 0 of the transfer memory
Check whether the send request has been accepted
128
If no, conditional Block End
If yes, set flag 100.3 and Send message frame
Open DB 20
Transfer DW 1
to word 2 of the transfer memory
Transfer DW 0
to word 0 of the transfer memory
Block End
5.2
Note:
The program can only run if DB 20 has been generated on the CPU. You should create DB 20 as
follows, since it is also accessed in the following examples:
KH=A53D
KH=34E1
KH=9002
KH=8765
KH=6ED4
KH=0D0D
KH=0000
KH=0000
EWA 4NEB 811 6044-02a
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaa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aaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaa
CP 523
*
*
Communications Mode
Example:
Example:
Reading coordination information after "Receive message frame"
Start address 128 is set on the CP 523. If the CP has received message frames from the peripheral
device, these are to be transferred to the CPU. The message frames transferred from the
peripheral device have a fixed length of four bytes. The message frame is to be stored on the CPU
in DB 21 beginning DW 0.
STL FB 120
:L
:T
:L
KH
PW
KH
:L PW
:AW
:><F
:BEC
:C DB
:L KH
21
0000
:T
:L
:T
128*
130
1
PW
PW
DW
:L PW
:T DW
:BE
EWA 4NEB 811 6044-02a
Explanation
NAME :RECEIVE1
A080
128*
0080
128
128
0
:JC FB 120
NAME :PARCHECK
:BE
Load "Receive message frame" into ACCUM 1 and transfer
to word 0 of the transfer memory.
Check that the Receive mailbox is empty
Read the coordination data
If the Receive mailbox is empty,
Block End
If it is not empty, open DB 21 and read out message frame data
Read word 2 of the transfer memory
and store in DW 1
Read word 0 of the transfer memory
and store in DW 0
Block End
5.2
Parity check
Start address 128 is set on the module. FB 120 is to be invoked when a parity error is detected. The
error is processed in FB 120, for instance by requesting the peripheral device to retransmit the
frame.
STL FB 121
Explanation
:L
:T
KH
PW
A080
128*
Fetch data frame
from CP 523
:L
:L
PW
KH
128
0F00
Read module status
Blank error
:AW
:L KH
:!=F
0A00
Has a parity error been detected?
If yes, jump to FB 120;
If no, block end
5.2
7-51
Communications Mode
CP 523
Special features of ”3964(R) mode”
In ”3964 R” mode, you receive different return info after submitting a ”Coordinate data transfer”
request than you receive in Transparent or Interpretive mode. The return info for ”3964(R) mode”
is presented separately in the following.
In ”3964R” mode, there are three job requests which provide different return info:
1. Job request A000H interrogates the status of the CP 523
2. Job number A001H is a Send request
3. Job number A080H is a Receive request
Job number A000H, which checks the status of the CP 523, should be submitted prior to every
Send and Receive request.
The following tables list the status information returned by the CP 523 in all three cases.
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
Table 7-26. CP 523 Status Information for ”A000H”
Byte
Possible Values
0
Status byte
50H
1
Permission to send and receive
CPU can neither send nor receive
CPU can send
CPU can receive
CPU can send and receive
00H
01H
80H
81H
2
3-7
7-52
Description
Coordination byte 'send' (CBS)
Table 7-30
Not significant
EWA 4NEB 811 6044-02a
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaa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aaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
CP 523
3-5
6
7
Communications Mode
Table 7-27. Status Information for Send Request ”A001H”
Byte
Description
Byte
Description
0
Status byte
1
Coordination byte 'receive' (CBR)
2+3
Message frame length in bytes
4+5
Irrelevant
EWA 4NEB 811 6044-02a
Possible Values
0
Status byte
50H
1
Send request accepted
Send request rejected
01H
00H
2
Coordination byte 'send' (CBS)
Table 7-30
Not significant
6
Number of message blocks in Send message frame
00H to 20H
7
Number of message frames in Receive mailbox
00H to 64H
Table 7-28. Status Information for Receive Request ”A080H”
Possible Values
50H
Table 7-31
0000H to 0100H
Number of message blocks in
Receive message frames
00H to 20H
Number of message frames in Receive mailbox
00H to 64H
7-53
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa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aa
aaaaaaaaaaaaaaaaaa
Communications Mode
7
0
1
0
1
7-54
6
5
Bit
4 3
XXH*
XXH*
XXH*
2
CP 523
All information presented in the next three tables (7-29, 7-30, 7-31) is relevant in 3964(R) mode
only.
Table 7-29. Return Info and Error Flags in the Coordination Byte 'Send' (CBS) in ”3964(R)” Mode
1
0
Description
Response
Return info for A000H
Send buffer free
Send buffer not free
Return info for A001H
The information returned in the CBS
following submission of a Send request
(A001H) depends on the value in byte 1.
If byte 1 contains 00H, CBS bit 7=0 means
either that a parameter error was
detected or that the Send request could
not be serviced even though the Send
buffer was free, as it was not preceded by
a”check module status” request.
CBS bit 7= 1 means that the Send buffer is
not free because the previous Send
request is still being serviced.
If byte 1 is 01H, CBS bit 7=1 means that the
request was accepted; the Send buffer is
now reserved for this request.
* See Error Flags
EWA 4NEB 811 6044-02a
CP 523
Communications Mode
Return Info and Error Flags in the Coordination Byte 'Send' (CBS) in
”3964(R)” Mode (Continued)
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaa
Table 7-29.
Error flags for A000H and A001H
09H
Negative acknowledgement from receiver
to connection cleardown attempt
Receive data invalid
0BH
Negative acknowledgement from receiver
to connection buildup attempt
Receive data invalid
0DH
Parameter error
No data is transmitted
0FH
Transmission aborted by receiver
Receive data invalid
15H
Time-out (QVZ) during connection
buildup
No data is transmitted
17H
Time-out (QVZ) during connection
cleardown
Receive data invalid
19H
Initiation conflict, both link partners have
high priority
No data is transmitted
1BH
Break
Transmission is
aborted
1DH
Initiation conflict, both link partners have
low priority
No data is transmitted
00H
No errors
EWA 4NEB 811 6044-02a
7-55
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaa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aaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
Communications Mode
7
1
0
7-56
6
5
Bit
4 3
XXH*
2
CP 523
Table 7-30. Return Info and Error Flags in the Coordination Byte 'Receive' (CBR)
in ”3964(R) Mode”
1
0
Description
Response
Return info for A080H
Request accepted
No message frame to fetch
Error flags for A080H
03H
Parity error
05H
Frame length 0
07H
Receive buffer full
Data rejected
09H
Too many message frames received
Buffer full,
subsequent message
frames will be rejected
0BH
Frame too long (256 bytes)
Data rejected
0DH
DLE not doubled or no ETX after DLE
Data rejected
11H
STX error, handshaking ON but no STX
Data rejected
13H
Character time-out
Data rejected
15H
Message frame time-out
Data rejected
17H
Checksum error
Data rejected
1BH
Break
Data rejected
00H
No errors
Data rejected
* See error message
EWA 4NEB 811 6044-02a
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
CP 523
Communications Mode
When several errors occur simultaneously, the error codes are output in the priority shown below:
Table 7-31. Error Priority in ”3964(R) Mode”
Error Code
0BH
1BH
07H
09H
15H
0DH
11H
13H
03H
17H
05H
EWA 4NEB 811 6044-02a
Description
Message frame too long
Break
Input buffer full
Too many message frames
Message frame time-out
DLE error
STX error
Character time-out
Parity error
BCC error
Message frame length 0
Priority
High
0
1
2
2
2
3
3
4
5
5
6
Low
7-57
Communications Mode
7.5
CP 523
Overview of Permissible Job Requests in Communications Mode
Data exchange between the CPU and the CP 523 is always initiated by a job request from the CPU.
The CPU transfers the job request to the CP 523 in word 0. The job number is stored in byte 0.
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaa
Table 7-32. Permissible Job Requests to the CP 523 in Communications Mode
Job Request
Byte 0
7
6
5
4
3
Byte 1
2
1
0
7
6
5
4
3
2
1
Read the status byte, the status of the
peripheral device and the current clock data
0
0
Set the clock (settings in bytes 1 to 7)
1
0
Initialize the serial interface
9
0
0
0
Set the XON/XOFF parameters
9
0
2
0
Select Print mode
9
0
7
0
Select Transparent mode
9
0
7
1
Select Interpretive mode
9
0
7
2
Select 3964(R) mode
9
0
7
3
Select 3964(R) mode follow-up
job request
9
0
7
A
Correction value for the integral clock positive
9
0
9
0
Correction value for the integral clock neg.
9
0
9
1
Read status byte and coordination
information
A
0
0
0
Send message frame
A
0
0
1
Receive message frame
A
0
8
0
0
0
0
Day of the week
Transfer parameter setting data
Coordinate data transfer
7-58
EWA 4NEB 811 6044-02a
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaa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aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
CP 523
EWA 4NEB 811 6044-02a
Communications Mode
Illegal job requests in Communications mode
If you write a job request into word 0 of the transfer memory other than one of those listed above,
the CP flags "Illegal job request" error 4XH in the status byte.
The "Print all message texts" request 8000H, for example, is permissible in Print mode but not in
Communications mode. Error 4XH would be flagged in the status byte in Communications mode.
You also receive this error flag if you transfer illegal parameter setting data with the "Transfer
parameter setting data" request. In all cases (except A0XXH ”Coordinate data transfer”) you must
wait 30 ms after initiating a job request before reading out the status byte.
Note:
In all cases (except A0XXH ”Coordinate data transfer”) you must wait 30 ms after initiating a job
request before reading out the status byte.
Note:
• The "Transfer parameter setting data" requests (job number 90H) are explained in
section 7.3. These job requests are used to set the CP 523 parameters.
• The "Set clock" request is identical in Communications mode and Print mode ( 6.7.2).
7-59
Communications Mode
7.6
CP 523
Sending Message Frames to a Peripheral Device (Job Number A001H)
The CPU can forward up to 256 bytes to the CP 523 with one Send request. This data is referred to
as a message frame in the following.
Schematic for ” sending a message frame"
Send message
frame
Peripheral
device
CP 523
8-byte
transfer
memory
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
S5-CPU
Serial
interface
Receive
message
frame
Send
mailbox
256 bytes
Internal bus
Figure 7-7. Sending Message Frames to a Peripheral Device
Data transfer between the CPU and the CP is always initiated by the CPU with a job request for
"Coordinate data transfer for sending a message frame". When the CP has accepted the send
job, the CPU transfers the message frame in message blocks of eight bytes.
The CP 523 has a Send mailbox of 256 bytes for storing the data from the CPU. The CP 523
accepts data from the transfer memory in the Send mailbox if the CPU has written the
relevant data into word 0 of the transfer memory (
).
After the CP has received the complete message frame, it transfers the message frame
autonomously from the Send mailbox to the peripheral device via the serial interface (
).
The CP can only accept another Send request when it has transferred the complete message
frame to the peripheral device.
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
The following two pages contain a graphic representation of this procedure:
• "Send message frame" flowchart
• Transfer memory assignments from the user program and from the CP 523 for servicing the
Send request
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
Note:
See 8.1 for a printout and explanation of the statement list of the "SEND" function block. The
function block is a user-friendly interface for handling "Send message frame" requests.
Use of the function block is also explained in 8.1.
7-60
EWA 4NEB 811 6044-02a
CP 523
Communications Mode
START
CPU transfers message frame length or endof-text character to the transfer memory on
the CP (words 2 and 4)
CPU transfers the "Send message frame"
request to the transfer memory of the CP
(word 0*)
CPU reads the transfer memory and evaluates
the coordination bytes (bytes 0 and 1)
Has the
CP accepted
the Send job?
(bit 0 in byte
1=1)
No
Yes
CPU transfers message block to the transfer
memory of the CP
CP transfers data from the transfer memory
to the Send mailbox
Yes
Transfer another
message block to the
transfer memory?
No
CP transfers data from the Send mailbox to
the peripheral device
END
*
5.2
Figure 7-8. Schematic for "Send Message Frame"
EWA 4NEB 811 6044-02a
7-61
Communications Mode
CP 523
CPU user program
CP functions
CPU issues the "Send message frame" request
Word 0
job No.
A001H
Word 2
Send length
in bytes
Word 4
End-of-text
character*
Word 6
Not
significant
CP
- reads job number from
transfer memory
- writes coordination
information into the
transfer memory
CPU reads Coordination information
Word 0
Coordination
information
Word 2
Byte 2: CBS
(coordination byte
for 'Send')**
Word 4
Not
significant
Word 6
Byte 6/byte
7: No. of
subframes/
number of
message
frames
End here if CP has not
accepted the Send request!
CPU transfers 1st message block (8 bytes)
Word 0
Data
Word 2
Data
Word 4
Data
Word 6
Data
8-byte
transfer
memory in
the
CP 523
CP reads data from the
transfer memory and stores
it in the Send mailbox
CPU transfers further message block (8 bytes each)
Word 0
Data
Word 2
Data
Word 4
Data
Word 6
Data
CP reads data from the
transfer memory and stores
it in the Send mailbox
CPU transfers last message block ( 8 bytes)
Word 0
Data
Word 2
Data
* only if Send length = 0 bytes
** relevant only in 3964(R) mode
Word 4
Data
Word 6
Data
CP
- CP reads data from the
transfer memory and
stores it in the Send maibox
- transfers message frames
autonomously from the
Send mailbox to the peripheral device
- accepts no Send requests
during this time!
Figure 7-9. Contents of the Transfer Memory for "Send Message Frame"
7-62
EWA 4NEB 811 6044-02a
CP 523
Communications Mode
Message frame structure
A message frame consists of all the data transferred in response to a Send or Receive request. In
the case of the CP 523, a message frame can be up to 256 bytes long. The CPU sends and receives a
message frame in message blocks of eight bytes.
The CP 523 can detect the end of a message frame sent by the CPU in two ways:
• You specify the message frame size in bytes with the "Send message frame" request.
• You specify one or two end-of-text characters with the "Send message frame" request. You
must specify 0 bytes as the Send message frame size.
The end-of-text characters must be identical to those defined when setting the CP 523
parameters ( 7.3)
Transferring a message frame
After the CP 523 has accepted a Send request, the CPU transfers the message frame to the transfer
memory in message blocks of eight bytes. After the CPU has written word 0, the CP accepts the
data from the transfer memory and stores it in the Send mailbox.
This means you transfer words 2, 4 and 6 to the transfer memory first and then word 0.
Example:
Transferring a message frame with a length of 12 bytes.
Start address 128 is set on the CP 523. The message frame is stored in data block 20 beginning from
DW 0.
DB 20
on the CPU
DW
Contents
0
A53DH
1
34E1H
2
9002H
3
8765H
4
6ED4H
5
0D0DH
Message
block 1
Message
block 2
Transfer memory
of the CP
Send mailbox of
the CP
Word
Word
Contents
128
A53DH
130
34E1H
132
9002H
134
8765H
128
6ED4H
130
0D0DH
Message
block 1
Message
block 2
Contents
0
A53DH
2
34E1H
4
9002H
6
8765H
8
6ED4H
10
0D0DH
Figure 7-10. Forwarding Data with "Send Message Frame"
EWA 4NEB 811 6044-02a
7-63
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa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a
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
Communications Mode
7.6.1
7-64
CP 523
Sending Message Frames with the Message Frame Length Specification
You specify the message frame length in bytes with the Send request in word 2.
Note:
The length of the message frame sent by the CPU can vary from the length configured in
parameter block 7 ( 7.3). The length configured in parameter block 7 refers to message frames
received by the CP from a peripheral device.
Procedure for ”Send message frames with message frame length specification”
1. The CPU transfers the following in the transfer memory
• The message frame length in bytes in word 2
• The "Coordinate data transfer for sending message frames" job number into word 0.
2. The CPU reads the coordination information from word 0 of the transfer memory.
If the CP has not accepted the job (bit 0 in byte 1= "0"), no message frame can be sent.
The CPU can read the number of message blocks to be sent from byte 6 of the transfer
memory. The number is calculated by the CP using the length specified in the job request. If
you specify a message frame length of 12 bytes, for example, the CP stores the value 02H in
byte 6 for two message blocks.
3. CP transfers message frame in 8-byte message blocks to the transfer memory.
Note:
The CP stores the number of message frames in the Receive mailbox in byte 7, so you can also
determine after issuing a Send request whether you can receive a message.
EWA 4NEB 811 6044-02a
CP 523
Communications Mode
Example:
Sending a message frame with a length of 12 bytes
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
Start address 128 is set on the CP. The message frame is stored in data block 20 beginning from
DW 0. Flag 100.0 is set if the CP has accepted the job. The STL does not describe how F 100.0 is to
be reset. You could reset F 100.0 when another job request has been forwarded to the CP.
STL FB 122
Explanation
NAME:SEND2
:A
F 100.0
:BEC
:L
:T
:L
KH
PW
KH
000C
130
A001
:T
PW
128*
:L
:L
KH
PW
0001
128
:S
:C
:L
F
DB
DW
100.0
20
3
:T
:L
:T
PW
DW
PW
134
2
132
:L
:T
:L
DW
PW
DW
1
130
0
:T
PW
128*
:L
:T
:L
DW
PW
DW
5
130
4
:T
:BE
PW
128*
:AW
:><F
:BEC
*
The CP 523 has accepted the job if flag 100.0 is set,
then Block End
Load length 12 bytes into ACCUM 1 and
transfer to word 2 of the transfer memory
Load "Send frame" job (A001H) into ACCUM 1 and transfer to word 0
of the transfer memory
Check that Send request has been accepted
If no, then Block End
If yes then set flag 100.0 and send message frame
Open DB 20
Transfer DW 3 to
word 6 of the transfer memory
Transfer DW 2 to
word 4 of the transfer memory
Transfer DW 1 to
word 2 of the transfer memory
Transfer DW 0 to
word 0 of the transfer memory
The CP transfers the contents of the transfer memory to the Send
mailbox
Transfer DW 5 to
word 2 of the transfer memory
Transfer DW 4 to
word 0 of the transfer memory
The CP transfers the contents of words 2 and 0 in the transfer
memory to the Send mailbox.
The CP then sends the message frame from the Send mailbox to the
peripheral device
5.2
EWA 4NEB 811 6044-02a
7-65
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaa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
aaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
Communications Mode
7.6.2
Example:
Flags
F 100.1
F 100.2
FW
FW
FW
FW
FW
7-66
242
244
250
252
254
CP 523
Sending Message Frames with End-of-Text Character Specification
Specify one or two end-of-text characters with the Send request in word 4. The CP detects the end
of a message frame autonomously through these end-of-text characters.
Note:
The end-of-text characters of the message frame sent by the CPU may differ from the end-oftext characters configured in parameter block 7 ( 7.3). The end-of-text characters configured
in parameter block 7 refer to the message frames received by the CP from a peripheral device.
Procedure for sending message frames with end-of-text characters
1. The CPU transfers the following to the transfer memory.
•
The end-of-text characters (word 4)
•
Message frame length of 0 bytes (word 2)
•
The "Coordinate data transfer for sending message frame" job number (A001H) (word 0).
2. The CPU reads the coordination information from word 0 of the transfer memory. If the CP has
not accepted the job (bit 0 ="0"), no message frame can be sent.
3. The CPU transfers the message frame to the transfer memory in message blocks of eight bytes.
Note:
The CP stores the number of message frames in the Receive mailbox in byte 7, so you can also
determine after a Send job whether you can receive a message frame.
Sending a message frame with end-of-text characters 0D0DH
Start address 128 is set on the CP. The message frame is stored in DB 20 beginning DW0. Flag 100.1
is set if the CP has accepted the job. The program does not describe how F 100.1 is reset. You could
reset F 100.1 when another job request has been transferred to the CP. FB 123 can be assigned the
relevant parameters. You can choose the start address of the module and end-of-text characters.
They must be specified when the FB is invoked.
Table 7-33. Flags Used in FB 123
Meaning
Message frame transmitted
End-of-text character flag set
Flag words
Data word pointer
Auxiliary data word pointer
Start address
Current address of the transfer memory
End-of-text character
EWA 4NEB 811 6044-02a
CP 523
Communications Mode
START
No
Permission to
send?
Yes
Yes
End-oftext character
flag set?
No
Prepare to transfer message block
DW=end-oftext character?
No
Yes
Set end-oftext character
flag
Transfer word to CP
Last word of the
message block?
Yes
No
Prepare transfer of next word
END
Figure 7-11. Flowchart for FB 123 "SEND 3"
EWA 4NEB 811 6044-02a
7-67
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaa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/C: D
I/Q/D/B/T/C: D
STL FB 123
:C
DB
:A
:JC
:LW
F 100.1
=M001
=BADR
:L
:+F
:T
KF +4
:LW
:DO
:T
=ENZE
FW 250
PW
0
:L
:ADD
:T
:L
FW
KF
FW
KF
:DO
:T
:L
FW 250
PW
0
FW 250
2
250
-2
250
+0
:ADD KF -2
:T
FW 250
:L
KH A001
:DO
:T
:L
FW 250
PW
0
KH 0001
:DO
:L
:AW
FW 250
PW
0
:><F
:JC =M001
:S
F 100.1
:LW
:T
:LW
=BADR
FW 250
=ENZE
:T
:L
:T
FW 254
KH FFFF
FW 242
:L
:T
KH FFFC
FW 244
KM/KH/KY/KC/KF/KT/KZ/KG: KF
KM/KH/KY/KC/KF/KT/KZ/KG: KH
Explanation
Open source data block.
Has a message frame been sent?
If yes, Block End.
Load module start address,
Set byte 4 - address of the CP 523
and store.
FW 250
Load end-of-text character
and transfer to CP 523
in bytes 4 and 5.
Set byte 2 - address of the CP 523
and store.
Load message frame length and
transfer to the CP 523 in bytes 2 and 3.
Set byte 0 - address of the CP 523 and
store.
Transfer "Send" coordination request
to the CP 523 in bytes 0 and 1.
Check acknowledgement of
coordination job from the CP 523.
Can data be sent?
If no,
Block End.
Set message frame flag.
Load module start address
and store.
Load end-of-text character
and store.
Preset data word pointer.
Preset auxiliary data word pointer.
EWA 4NEB 811 6044-02a
Communications Mode
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
CP 523
STL FB 123
M003
:A
F
100.2
:JC =M001
:L
FW 242
:ADD KF +4
:T
FW 242
:L
FW 244
:ADD KF +4
:T
FW 244
:L
FW 250
:ADD KF +6
M004
:T
:
:L
FW 254
F 100.2
FW 252
PW
0
:L
FW 242
:L
FW 244
:><F
:JC
:L
:ADD
:T
=M002
FW 242
KF +3
FW 242
:JU =M003
M002 :L
FW 242
:ADD KF -1
:T
FW 242
:L
FW 252
:ADD KF -2
:T
:JU
M001 :
If end-of-text character flag set,
block end.
Load data word pointer,
increment by 4
and store.
Load auxiliary data word pointer,
increment by 4
and store.
Set byte 6 - CP 523 address
and store.
FW 252
:DO FW 242
:L
DW
0
:!=F
:S
:DO
:T
Explanation
Load end-of-text character and
compare with the data word to be
transferred.
If data word = end-of-text character,
set end-of-text character flag.
Transfer data word
to CP 523.
Transfer message block (8 data bytes) to
the CP 523?
If no,
transfer next data word.
Prepare
transfer
of next message block.
Set number of the next data word and
store.
Set transfer area on the CP 523 and
store.
FW 252
=M004
:BE
EWA 4NEB 811 6044-02a
Block End
7-69
Communications Mode
7.6.3
CP 523
Sending Message Frames with 3964(R) Protocol
In principle, data transfers between the CPU and the CP 523 are handled the same way as in
Transparent mode. The additional return information about the protocol itself is entered in a socalled coordination byte (CBS, CBR).
CBS = Coordination byte 'send', CBR = coordination byte 'receive'.
You specify the message frame length in word 2 when you submit the request.
”Send message frames with the 3964(R) protocol”
1. The CPU forwards the following in the transfer memory:
• The message frame length in bytes in word 2
• The job number for ”Coordinate data transfer for sending message frame” in word 0.
2. The CPU reads the coordination info out of word 0 of the transfer memory.
No message frame can be transmitted if the CP rejects the request (bit 0 in byte 1=”0”).
Together with the coordination info, the following is made available to the CPU:
• The coordination byte 'send' (CBS), including error flags, in byte 2
• The number of message blocks comprising the frame in byte 6
On the basis of the length specification given in the job request, the CP automatically
computes the number of message blocks in the frame to be transmitted.
If, for example, you specified a message frame length of 12 bytes, the CP enters the value 02H
in byte 6, i.e. 2 message blocks.
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
3. The CPU transfers the message frame in 8-byte message blocks to the transfer memory.
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
Note:
The CP enters the number of message frames in the Receive mailbox in byte 7, thus making it
possible for you to ascertain whether you can receive a message frame even after a Send request
has been submitted.
7-70
EWA 4NEB 811 6044-02a
CP 523
Communications Mode
Example:
Sending a 12-byte message frame with 3964(R) protocol
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
Base address 128 is set on the CP. The message frame is in data block 20 beginning data word
DW 0. Flag 100.0 is set when the CP has accepted the Send request. The statement list does not
show how or when this flag is reset. This could be done, for instance, after a new request has been
submitted to the CP.
STL FB 124
Explanation
NAME:SEND2
:L
KH
A000
:T
:L
:T
128*
130
110
PW
PY
FY
:A
F 100.0
:BEC
:L
KH 000C
:T
PW 130
:L
:T
:L
KH
PW
PY
A001
128*
130
:T
:L
:L
FY
KH
PW
110
0001
128
:S
:C
:L
F
DB
DW
100.0
20
3
:T
:L
:T
PW
DW
PW
134
2
132
:L
:T
:L
DW
PW
DW
1
130
0
:T
PW
128*
:L
:T
:L
DW
PW
DW
5
130
4
:T
:BE
PW
128*
:AW
:><F
:BEC
*
”Check module status” request
Transfer CBS to flag byte 110 (error analysis)
The CP accepted the job request when flag 100.0 is set,
then Block End
Load message frame size 12 bytes into ACCUM 1 and
forward to word 2 from transfer memory
Load ”Send message frame” request (A001H) into
transfer to word 0/transfer memory
Transfer CBS to flag byte 110
Check to see if request accepted
If not, Block End conditional
If so, set flag 100.0 and send message frame
Open DB 20
DW 3 to
transfer memory word 6
DW 2 to
transfer memory word 4
DW 1 to
transfer memory word 2
DW 0 to
transfer memory word 0
The CP forwards the contents of transfer memory
to the Send mailbox
DW 5 to
transfer memory word 2
DW 4 to
transfer memory word 0
The CP forwards words 2 and 0 of the transfer memory to the Send
mailbox, then transmits the message frame from the Send mailbox
to the I/O device.
5.2
EWA 4NEB 811 6044-02a
7-71
Communications Mode
7.7
CP 523
Receiving a Message Frame from a Peripheral Device (A080H)
The CPU can receive up to 256 bytes with a single job request. This data is referred to as a message
frame in the following.
Receive
message
frame
Peripheral
device
CP 523
Transfer
memory
8 bytes
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
S5-CPU
Serial
interface
Send
message
frame
Receive mailbox 1K bytes
Internal bus
Figure 7-12. Receiving a Message from a Peripheral Device
The CP 523 receives message frames from the peripheral device via a serial interface and stores
them in the Receive mailbox. A maximum of 99 message frames with a total length of 1024
bytes can be stored there.
When the CP 523 is receiving message frames from the peripheral device, it can simultaneously
• Receive a message frame from the CPU
• Send a message frame to the CPU
The CP outputs message frames to the CPU in the order in which they were received from the
peripheral device. The CP 523 transfers new data from the Receive mailbox to the transfer
memory if the CPU has written the relevant data into word 0 of the transfer memory.
Data transfer between the CPU and the CP is always initiated by the CPU with "Coordinate
data transfer for receiving a message frame" request. As coordination information, the CP 523
indicates if there are message frames in the Receive mailbox (bit 7 = "1"). The CPU can also
fetch message frames from the CP which have been fragmented because the character delay
time (ZVZ) was exceeded. In these cases, all data received up until the instant of error is
forwarded as message frame to the CPU (except in 3964(R) mode, in which case the error is
flagged in the CBR).
The CP 523 transfers the following to the CPU, together with the coordination information:
• The length (in bytes) of the next message frame in word 2
• The number of message blocks in the next message frame in byte 6
• The number of message frames in the Receive mailbox in byte 7
If a message frame has been received, the CPU can read it out in message blocks of eight bytes.
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
The next two pages contain a graphic representation of this procedure.
• "Receive message frame" flowchart
• Transfer memory assignments from the user program and from the CP 523 for a Receive
request.
Note:
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaa
The statement list of the "RECEIVE" function block is explained in 8.2. The function block is a
user-friendly interface for handling "Receive message frame". Use of the function block is also
explained in 8.2.
7-72
EWA 4NEB 811 6044-02a
CP 523
Communications Mode
START
CPU forwards a "Receive message" request to
CP's transfer memory (word 0*)
CPU reads transfer memory and evaluates
coordination information and coordination
byte (word 0).
Is a
message frame in
the Receive mailbox?
(bit 7 in byte 1= 1)
No
Yes
CPU writes word 0
CP transfers data from Receive mailbox
to transfer memory
CPU reads message block
from CP's transfer memory
Yes
Read further
message blocks from
transfer memory?
No
END
*
5.2
Figure 7-13. Schematic for "Receive Message"
EWA 4NEB 811 6044-02a
7-73
Communications Mode
CP 523
CPU user program
CP functions
CPU issues "Receive message" request
Word 0
Job No.
A080H
Word 2
Not
significant
Word 4
Not
significant
Word 6
Not
significant
CP reads job request from
transfer memory and writes
coordination information
into transfer memory
CPU reads coordination information
Word 0
Coordination
information
and CBR:
Coordination
byte 'receive'*
Word 2 Word 4
Not
Message
signififrame
cant
length
(in bytes)
Word 6
Byte 6/byte 7:
No. of message
blocks/No. of
message
frames
CPU writes word 0
If no message frame in
Receive mailbox, end here!
Word 0
Data
CPU reads 1st message block (8 bytes)
Word 0
Data
Word 2
Data
Word 4
Data
8-byte
transfer
memory in
CP 523
CP transfers 1st message
block from Receive mailbox
to transfer memory
Word 6
Data
CPU writes word 0
Word 0
Data
CPU reads further message blocks (8 bytes each)
Word 0
Data
Word 2
Data
Word 4
Data
CP transfers further
message blocks from
Receive mailbox to transfer
memory
Word 6
Data
CPU writes word 0
Word 0
Data
CP transfers last message
block from Receive mailbox
to transfer memory
CPU reads last message block ( 8 byte)
Word 0
Data
Word 2
Data
Word 4
Data
Word 6
Data
* Relevant only in 3964(R) mode.
Figure 7-14. Transfer Memory Assignments for "Receive Message Frame"
7-74
EWA 4NEB 811 6044-02a
CP 523
Communications Mode
Message frame structure
A message frame is defined as all data transferred after a Send or Receive request. A message
frame can be up to 256 bytes in length in the case of the CP 523. The CPU sends and receives
message frames in message blocks of eight bytes.
The CP 523 can detect the end of a message frame sent by the peripheral device in three ways:
•
•
•
You define the message frame length in parameter block 7 during configuring.
You specify one or two end-of-text characters in parameter block 7 when you set the
parameters in the parameter block. In this case, the message frame size must be 0 bytes.
The CP 523 must be initialized for Interpretive mode.
The setting of parameters is explained in 7.3.
In 3964(R) mode, the procedure automatically computes the message frame size on the basis
of end identifier string DLE ETX (BCC).
Transferring the message frame
After the CP 523 has accepted the Receive request, it transfers the first message block from the
Receive mailbox to the transfer memory. After the CPU has read a message block, it must write
word 0 of the transfer memory. The CP then updates the transfer memory.
Example:
Receiving a message frame with a length of 12 bytes.
Start address 128 is set on the CP 523. The message frame is to be stored in data block 20
beginning DW 0.
DB 20
on the CPU
DW
Contents
0
A53DH
1
34E1H
2
9002H
3
8765H
4
6ED4H
5
0D0DH
Message
block 1
Message
block 2
Transfer memory
of the CP
Receive mailbox
of the CP
Word
Contents
Word
Contents
128
A53DH
0
A53DH
130
34E1H
2
34E1H
132
9002H
4
9002H
134
8765H
6
8765H
128
6ED4H
8
6ED4H
130
0D0DH
10
0D0DH
Message
block 1
Message
block 2
Figure 7-15. Data Interchange with "Receive Message Frame"
EWA 4NEB 811 6044-02a
7-75
Communications Mode
7.7.1
CP 523
Receiving Message Frames with Evaluation of the Specified Message
Frame Length
You can receive a fixed-length message frame from the CP with a Receive request.
Prerequisites
•
•
You must specify the fixed length in parameter block 7 when initializing the CP 523.
You must also make sure that the peripheral device sends only message frames of this length
to the CP.
Schematic for ”Receiving message frames with evaluation of the specified message frame
length”
1. The CPU transfers the "Coordinate data transfer for receive message frame" request (A080H)
to word 0 of the transfer memory
2. The CPU reads the coordination information from word 0 of the transfer memory. If there is no
message frame in the Receive mailbox (bit 7 in byte 1="0"), no message frame can be
received. The following information is available in the transfer memory together with the
coordination information:
- Word 2: Length of the next message frame to be received (in bytes)
- Byte 6:
Number of message blocks in the next message frame to be received
- Byte 7:
Total number of message frames in the Receive buffer
3. The CPU writes word 0 of the transfer memory.
The CP updates the transfer memory.
4. The CPU reads the message frame from the transfer memory in message blocks of eight bytes.
The CPU reads the 1st message block from the transfer memory (eight bytes).
5. The CPU writes word 0 of the transfer memory.
The CP updates the transfer memory.
6. CPU reads further message blocks from the transfer memory.
7. Steps 5 and 6 are repeated until the CPU has read the last message block.
7-76
EWA 4NEB 811 6044-02a
CP 523
Communications Mode
Example:
Receiving a message frame with a length of 12 bytes
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaa
Start address 128 is set on the module. The message frame is to be stored in data block 21
beginning DW0. Flag 101.0 is to be set if a message frame is in DB 21. The STL does not explain
how flag 101.0 is reset. You could reset the flag when you have evaluated the message frame and
it can be overwritten in DB 21.
STL FB 125
Explanation
NAME :RECEIVE2
*
:A
F
:BEC
:L
KH
101.0
:T
:L
:L
:AW
128*
0080
128
PW
KH
PW
A080
:><F
:BEC
:S
F
101.0
:C
:L
:T
DB
KH
PW
21
0000
128*
:L
:T
:L
PW
DW
PW
134
3
132
:T
:L
:T
DW
PW
DW
2
130
1
:L
:T
:L
PW
DW
KH
128
0
0000
:T
:L
:T
PW
PW
DW
128*
130
5
:L
:T
:BE
PW
DW
128
4
Flag 101.0 is set if a message frame is in DB 21
Then conditional Block End
Load "Receive message frame" request in ACCUM 1,
transfer to word 0 of the transfer memory
and check if the Receive mailbox is empty
Read and evaluate coordination information
If Receive mailbox is empty,
then conditional Block End
If not empty, then set flag 101.0
and open DB 21
Read word 6 of the transfer memory
and store in DW3
Read word 4 of the transfer memory
and store in DW2
Read word 2 of the transfer memory
and store in DW1
Read word 0 of the transfer memory
and store in DW0
Write word 0 of the transfer memory
Read word 2 of the transfer memory
and store in DW5
Read word 0 of the transfer memory
and store in DW4
Block End
5.2
EWA 4NEB 811 6044-02a
7-77
Communications Mode
7.7.2
CP 523
Receiving Message Frames with Evaluation of the Specified End-of-Text
Characters
After a Receive request, you can receive a message frame from the CP which ends with end-of-text
characters. The CP checks the end-of-text characters. You can evaluate the receive data in the user
program.
Prerequisites
•
•
•
You must specify the end-of-text characters in parameter block 7 when initializing the CP 523
( 7.3)
You must make sure that the peripheral device sends only message frames containing these
end-of-text characters to the CP.
The CP 523 must be set for Interpretive mode. You must define this in parameter block 7 at the
initializing stage ( 7.3).
Schematic for ”Receive a message frame with evaluation of the specified end-of-text characters”
1. The CPU transfers the "Coordinate data transfer for receive message frame" request (A080H)
to word 0 of the transfer memory
2. The CPU reads the coordination information from word 0 of the transfer memory. If there is no
message frame in the Receive mailbox (bit 7 in byte 1 = "0"), no message frame can be
received. Byte 7 also contains the number of message frames in the Receive buffer.
3. The CPU reads the message frame from the transfer memory in message blocks of eight bytes.
The CPU reads the message block from the transfer memory and checks that the end-of-text
characters have been transferred.
4a. If end-of-text characters have been received, then Block End.
4b. If no end-of-text character was transferred, then write word 0 of the transfer memory.
The CP then updates the transfer memory.
5. Return to step 3.
Example:
Receiving a message frame with the end-of-text character 0D0DH
Start address 128 is set on the CP 523. The message frame is to be stored in DB 22 beginning DW 0.
Flag 101.1 is to be set if a message frame is stored in DB 22. The STL does not explain how flag
101.1 is reset. You could reset the flag when you have evaluated the message frame and it can be
overwritten in DB 22. FB 126 can be assigned the relevant parameters. You have a free choice of
start address of the module and end-of-text characters. These must be specified when the FB is
called. FB 126 receives only one message frame, and does not evaluate byte 7 of the transfer
memory (number of message frames in the Receive mailbox).
7-78
EWA 4NEB 811 6044-02a
CP 523
Communications Mode
START
Prepare to receive
message block
Read word from the transfer
memory
Word=end-oftext character?
No
Store word in DB
Store word in DB
Last word of the
message block?
No
Prepare
transfer of
next word
Yes
Prepare
transfer of
next
message
block
END
Figure 7-16. Flowchart for FB 126 "RECEIVE 3"
EWA 4NEB 811 6044-02a
7-79
aaaaaaaaaaaa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aaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
Communications Mode
DES
DES
7-80
:BADR
:ENZE
M001
M003
M004
I/Q/D/B/T/C: D
I/Q/D/B/T/C: D
:C
:A
DB
3
F 101.1
:JC
:LW
:T
=M001
=BADR
FW 222
:L
:DO
:T
KH A080
FW 222
PW
0
:L
:DO
:L
KH 0080
FW 222
PW
0
:AW
:><F
:JC =M001
:S
F 101.1
:LW =BADR
:ADD KF +6
:T
:LW
:T
FW 222
=ENZE
FW 224
:L
:T
:L
KH 0000
FW 232
KH 0003
:T
:
:LW
FW 234
:T
:L
:DO
:T
FW 220
KH 0000
FW 220
PW
0
:L
:DO
:L
FW 224
FW 220
PW
0
=BADR
:!=F
:S
F
101.2
CP 523
FB 126
LEN=85
NETWORK 1
0000
NAME :RECEIVE4
KM/KH/KY/KC/KF/KT/KZ/KG: KF
KM/KH/KY/KC/KF/KT/KZ/KG: KH
STL FB 126
Explanation
Open target data block.
Message frame in DB?
If yes, then Block End.
Load and store
module start address.
Load Receive request
and transfer to CP.
Message frame
in Receive mailbox?
If no,
then Block End.
Set message frame flag.
Load module address,
set byte 6 address
and store.
Load end-of-text character
and store.
Preset data word pointer.
Preset auxiliary data word pointer.
Load module address
and store.
Request next message block
by writing byte 0.
Is the next data byte equal to
the end-of-text character?
If yes,
set End flag.
EWA 4NEB 811 6044-02a
Communications Mode
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
CP 523
STL FB 126
:DO
:T
FW 232
DW
0
:A
:JC
:L
F 101.2
=M001
FW 232
:L
FW 234
:><F
:JC =M002
:L
FW 234
:ADD KF +4
:T
FW 234
:L
:ADD
:T
:JU
M002
M001
FW 232
KF +1
FW 232
=M003
:L
FW 232
:ADD KF +1
:T
FW 232
Explanation
Store data bytes
in destination DB.
Block End if
end-of-text character detected.
Has the message block
been completely transferred?
If no, read in two further
data bytes.
Set auxiliary data word pointer
for the next message block.
Set auxiliary data word pointer
for the first two data bytes
of the next message block.
Read in next message block.
Increment data word pointer by 1.
:L
FW 220
:ADD KF +2
:T
FW 220
Increment current address
on the CP by 2.
:JC
:
:BE
Read in next word
of message block.
Block End
=M004
EWA 4NEB 811 6044-02a
7-81
Communications Mode
7.7.3
CP 523
Receiving Message Frames with 3964(R) Protocol
Basically, data transfers between the CPU and the CP 523 are handled the same way as in
Transparent mode. The additional return information pertaining to the itself is entered in a
coordination byte (CBS, CBR).
CBS = coordination byte ”send”, CBR = coordination byte ”receive”.
Schematic for ”Receive message frames with the 3964(R) protocol”
1. The CPU forwards a ”Coordinate data transfer for receive message frame” request (job
number A080H) in word 0 of the transfer memory.
2. The CPU reads out the coordination info from word 0 of the transfer memory, and the CBR
(coordination byte ”receive”). A message frame can be received only when the Receive mailbox contains one (bit 7 of the CBR = ”0” when there is no message frame in the Receive
mailbox). Together with the coordination info, the following information is made available to
the user in the transfer memory:
- Word 2: Length (in bytes) of the message frame that is to be received next
- Byte 6: Number of message blocks in the next message frame to be received
- Byte 7: Total number of message frames in the Receive buffer
3. The CPU writes to word 0 of the transfer memory.
The CP updates the transfer memory.
4. The CPU reads the message frame out of the transfer memory in message blocks of 8 bytes
each.
The CPU reads the first message block (8 bytes) out of the transfer memory.
5. The CPU writes to word 0 of the transfer memory.
The CP updates the transfer memory.
6. The CPU reads out the next message block.
7. Steps 5 and 6 are repeated until the CPU has read out the last message block.
7-82
EWA 4NEB 811 6044-02a
CP 523
Communications Mode
Example:
Receiving a 12-byte message frame with 3964(R) protocol
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaa
Base address 128 is set on the CP. The message frame is to be stored in data block 21 beginning
DW 0. Flag 101.0 is to be set as soon as a message frame is entered in data block 21. The statement
list does not explain how or when flag 101.0 is reset. This can be done, for example, when the
message frame has been evaluated and data block 21 can be overwritten.
STL FB 127
Explanation
NAME :RECEIVE2
:A
F
101.0
:BEC
:L
KH
:T
PW
A080
128*
:L
:T
:L
:L
129
111
0080
128
PY
FY
KH
PW
:AW
:><F
:BEC
:S
:C
:L
F
DB
KH
101.0
21
0000
:T
:L
:T
PW
PW
DW
128*
134
3
:L
:T
:L
PW
DW
PW
132
2
130
:T
:L
:T
DW
PW
DW
1
128
0
:L
:T
:L
KH
PW
PW
0000
128*
130
:T
:L
:T
DW
PW
DW
5
128
4
Flag 101.0 is set when a message frame has been entered in DB 21,
then Block End conditional
Load ”Receive message frame” request into ACCUM 1
Transfer to word 0 in transfer memory
Load CBR into flag byte 111 (for error
analysis if necessary)
Check to see if Receive mailbox is empty
Read and analyze coordination info
When Receive mailbox is empty,
then Block End conditional.
If it is not, set flag 101.0 and
open DB 21.
Read transfer memory word 6 and
transfer to DW 3
Read transfer memory word 4 and
transfer to DW 2
Read transfer memory word 2 and
transfer to DW 1
Read transfer memory word 0 and
transfer to DW 0
Write to transfer memory word 0
Read transfer memory word 2 and
transfer to DW 5
Read transfer memory word 0 and
transfer to DW 4
:BE
*
5.2
EWA 4NEB 811 6044-02a
7-83
System Overview
Technical Description
Hardware Installation
Notes on Operation
Address Assignment
Print Mode
Communications Mode
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
1
2
3
4
5
6
7
8
Using the ”SEND” and ”RECEIVE” Function Blocks
8.1
8.1.1
8.1.2
8.1.3
8.1.4
8.1.5
8.1.6
Using "SEND" FB 200 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8. . Calling "SEND" FB 200 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
..Setting "SEND" FB 200 Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . .8 Structure of the Status Byte . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .8. Schematic of the Principle of Operation of "SEND" FB 200
....... 8 Flowchart of "SEND" FB 200 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .8. Flags in "SEND" FB 200 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
..-
1
2
3
4
5
6
10
8.2
8.2.1
8.2.2
8.2.3
Using "RECEIVE" FB 201 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .8. Calling and Setting "RECEIVE" FB 201 Parameters . . . . . . . . . . . . . . . 8 Structure of the Status Byte . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .8. Schematic Representation of the Method of Operation
of "RECEIVE" FB 201 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8. . Flowchart of "RECEIVE" FB 201 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8. Flags in "RECEIVE" FB 201 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .8. Execution Times for FB 200 and 201 . . . . . . . . . . . . . . . . . . . . . . . . . . . .8 -
21
21
22
8.2.4
8.2.5
8.2.6
EWA 4NEB 811 6044-02a
22
24
28
37
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa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Byte . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .8.
Schematic for "Send Frame" (FB 200) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .8.
Structure of the "STAT" Status Byte . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .8.
Schematic for "Receive Frame" (FB 201) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8.
Block Parameters for "SEND" FB 200 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .8.
Setting the "ENDZ" and "QLAE" Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . .8
Block Parameters for "RECEIVE" FB 201 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8.
Overview of the Flags Used by "RECEIVE" FB 201 . . . . . . . . . . . . . . . . . . . . . . . 8
Execution Times for FB 200 and 201 (in ms) . . . . . . . . . . . . . . . . . . . . . . . . . . . .8
-
4
5
22
23
Tables
2
3
21
28
37
EWA 4NEB 811 6044-02a
CP 523
8
Using the ”SEND” and ”Receive” Function Blocks
Using the "SEND" and "RECEIVE" Function
Blocks
The "SEND" and "RECEIVE" function blocks, FB 200 and FB 201, offer you a user-friendly interface
which considerably simplifies use of "Send message frame to peripheral device" job (A001H) and
"Receive message frame from peripheral device" (A080H). You can initiate the transfer of a
message frame immediately by calling FB 200 or FB 201 instead of having to program the send or
receive program yourself.
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaa
To transfer messages frames, you need only assign the relevant FB parameters. The next two
sections (8.1 and 8.1.1) describe FB parameter setting. Transfer of a message frame is initiated by
calling FB 200 or FB 201. The FBs have a status byte containing information on the CP, the
peripheral device and data transfer.
Note :
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaa
These FBs can execute on CPU 941 to CPU 944. They can also execute in the 135U, 150U and
155U if network 3 is omitted (or ”reprogrammed” for other PLCs). Normally, network 3 can be
omitted when sufficient space is provided in the source and destination DBs.
8.1
Using "SEND" FB 200
"SEND" FB 200 transfers a message frame of fixed or variable length from the CPU to the peripheral device. You must store the message frame to be transferred in a data block (source data
block) before calling "SEND" FB 200. When you invoke the "SEND" FB 200, you must specify the
following:
•
•
•
•
•
•
•
The start address of the CP 523
The number of the source data block from which the message frame is to be transferred to the
CP 523
The number of the source data word beginning in which the message frame is stored.
The length of the message frame to be transferred (number of source data words) or of two
end-of-text characters
A byte address where "SEND" FB 200 is to store the status byte.
A byte address where "SEND" FB 200 is to store the coordination byte for send (CBS) (3964(R)
only).
Specification as to whether with or without computer-computer link.
Send is initiated when the RLO is 1 when FB 200 is invoked.
EWA 4NEB 811 6044-02a
8-1
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaa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aaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
Using the ”SEND” and ”Receive” Function Blocks
8.1.1
NAME
DES:
DES:
DES:
: JU
:
:
:
:
DES:
DES:
DES:
: QLAE : KF
: ENDZ : KH
: STAT : FY
DES:
DES:
: KBS : FY
: RKPL : BI
Name
(Identif.)
8-2
SEND
BADR : KF
Q-DB : B
QANF : KF
Parameter
Type
Data
Type
BADR
D
Q-DB
B
QANF
D
KF
Number of the first source data word
QLAE
I
BY
Number of data words to be transferred (message frame
length: max. 128 data words): Forwarding of a number in
KF format in the relevant byte
ENDZ
D
KH
Hexadecimal pattern for the end-of-text character
(ASCII character)
STAT
Q
BY
Status byte
KBS
Q
BY
Coordination byte 'send' (CBS)
RKPL
I
BI
0: For Interpretive and Transparent mode (no flagging in
CBS)
1: For 3964(R) mode (flagging in CBS)
KF
CP 523
Calling "SEND" FB 200
"SEND" FB 200 can be called in cyclic programs and in programs servicing timed* interrupts and
process* interrupts.
STL
LAD / CSF
FB 200
FB 200
BADR
Q-DB
QANF
QLAE
ENDZ
RKPL
STAT
FY
KBS
FY
Table 8-1. Block Parameters for "SEND" FB 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
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaa
CP 523
8.1.2
valid:
Using the ”SEND” and ”Receive” Function Blocks
Setting ”SEND” FB 200 Parameters
If you want to send a message frame of specific size, specify the length of the message frame to be
sent (in words) in the QLAE parameter. The "ENDZ" parameter is not significant here. In 3964(R)
mode, the message frame size must be specified.
If you want to send a message frame with end-of-text characters (variable length), specify "zero"
in the QLAE parameter and two end-of-text characters in the "ENDZ" parameter. Both end-of-text
characters must be in the same data word.
Example: End-of-text character 0D 0DH
DW n
DW n+1
ENDZ
(End-of-text char.)
EWA 4NEB 811 6044-02a
KH: 44 44
KH: 0D 0D
invalid:
QLAE
(Frame length)
DW n
DW n+1
KH: 44 0D
KH: 0D 00
Table 8-2. Setting the "ENDZ" and "QLAE" Parameters
Transmission mode
=
0
><
0
Message frame of specific length
><
0
><
0
Message frame of specific length
=
0
=
0
NOT PERMISSIBLE
><
0
=
0
Message frame with end-of-text characters
8-3
Using the ”SEND” and ”Receive” Function Blocks
8.1.3
CP 523
Structure of the Status Byte
The status bytes of "SEND" FB 200 and "RECEIVE" FB 201 are identical. The status byte gives
information on whether
•
•
Receive data is available (bit 0 = 1)
The Send mailbox is empty (bit 1 = 1)
If the Send mailbox is occupied, the Send job initiated by calling "SEND" FB 200 can not be
executed.
Errors have occurred (bit 3 = 1)
If bit 3 is set, bits 4 to 7 contain the error code.
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
•
Status byte
SEND FB
Parameter error
RECEIVE FB
Parameter error
Target DB too
small for
Receive data
Error flagged in
the CBS
Bit 7
Bit 6
Bit 5
Bit 4
0
0
1
1
0
1
0
0
0
1
0
1
1
0
0
0
Bit 3
Bit 2
Bit 1
Bit 0
1 Receive data
available
0 No receive data
available
1 Permission to send
0 No permission to send
1 Bits 4 to 7 contain error
code
0 No errors
Figure 8-1. Structure of the "STAT" Status Byte
8-4
EWA 4NEB 811 6044-02a
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaa
CP 523
8.1.4
Using the ”SEND” and ”Receive” Function Blocks
Schematic of the Principle of Operation of ”SEND” FB 200
Note:
This section is intended merely to explain the method of operation of "SEND" FB 200. You do
not require this information to use the "SEND" FB 200.
FB 200 services the Send request according to the following schematic:
Read status of the CP 523
Yes
Check the "SEND" FB parameters
Yes
Yes
Flag error in status
byte
EWA 4NEB 811 6044-02a
Transfer send data to CP 523
Figure 8-2.
Segment 2
Send
mailbox
occupied?
No
Segment 3
Parameter
error?
No
Calculate the number of Send frames
Segment 4
Establish "SEND" connection to the CP 523
Segment 5
Read job acknowledgement from CP 523
Segment 6
Acknowledgement with error?
No
Segment 7
END
Schematic for "Send Frame" (FB 200)
8-5
Using the ”SEND” and ”Receive” Function Blocks
8.1.5
CP 523
Flowchart of "SEND" FB 200
Evaluate RLO and read status
SEGMENT 2
START
Note "RLO at jump"
Transfer "Read STATUS" request to
CP 523
Read job request
acknowledgement from CP 523
Read CBS (when 3964(R) mode)
Display CP 523 - STATUS
Display CBS (when 3964(R) mode)
Yes
RLO = 0 or is SEND
executing?
No
END
8-6
1
EWA 4NEB 811 6044-02a
CP 523
Using the ”SEND” and ”Receive” Function Blocks
SEGMENT 3
Checking the ”SEND” FB parameters
1
No
Q-DB available?
Yes
Calculate Q-DB length
No
QANF ok?
Yes
No
No
QLAE
>
0
Yes
ENDZ
>0
Yes
2
Yes
QLAE
>
128
No
No
Q-DB length>=
QANF+QLAE
Output error message
Yes
END
EWA 4NEB 811 6044-02a
2
8-7
Using the ”SEND” and ”Receive” Function Blocks
CP 523
SEGMENT 4
Calculating the "Number of Send frames"
SEGMENT 5
Establish "SEND" connection to the CP 523
2
Transfer send length to the CP
Transfer end-of-text character
to the CP
Transfer "SEND" ID to the CP
Evaluate job acknowledgement
from CP 523
SEGMENT 6
Read acknowlegement from CP
Yes
Acknowledgement
with error?
No
Output error message
ENDE
8-8
Load number of message blocks to
be sent from the CP
3
EWA 4NEB 811 6044-02a
CP 523
Using the ”SEND” and ”Receive” Function Blocks
SEGMENT 7
Transferring Send data to the CP 523
3
Is data to be
sent in fixed-length
message
frames?
Yes
Set pointer to start of
message block
Calculate message frame
remainder register
Transfer data word
to CP
Decrement message block number by 1
Are the contents
of the DW also the end-oftext character?
No
Yes
Last message block?
Prepare
transfer of
next DW
Yes
Set auxiliary
flag
No
Prepare for
transfer of
last message
block
Prepare transfer of next
DW
Prepare for
transfer of
message
block
Transfer last word of the
message block
Transfer
data word
to CP
No
Yes
No
No
Last word of the
message block
transferred?
Auxiliary flag set?
Yes
Last message block?
No
Yes
END
EWA 4NEB 811 6044-02a
END
8-9
Using the ”SEND” and ”Receive” Function Blocks
8.1.6
CP 523
Flags in "SEND" FB 200
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaa
Explanation of the flags used by "SEND" FB:
Flags
8-10
Symbol
Meaning
F
255.0
H-FLAG-1
Auxiliary flag for buffering the
RLO at jump
F
254.0
H-FLAG-2
Auxiliary flag for STAT bit "SEND executing"
F
237.0
H-FLAG-3
Auxiliary flag for detecting end-of-text
characters
FY
238.0
H-BYTE-2
Auxiliary flag byte for buffering CBS
FY
254
H-BYTE-1
Auxiliary flag byte for buffering STAT
FW
238
HILFREG
Auxiliary flag word for buffering the data words
to be transferred
FW
240
B-AN-S
"Number of send frames" register
FW
242
BADR-REG
Module address register (DO FW register for CP
access)
FW
244
QANF-REG
QANF register (auxiliary register data word block
pointer for Q-DW-IND)
FW
246
Q-DW-IND
Q data word index register (DO FW register for
fetching data words from the Q-DB)
FW
248
B-REST-R
Frame remainder register (number of data words
in the last message block)
FW
250
BYTE1IND
FW
252
BYTE2IND
FW
254
HILFSREG
Byte 1 index register (CP byte address register for
data transfer between CPU and CP, DO FW
register)
Byte 2 index register (CP byte address register for
data transfer between CPU and CP, DO FW
register)
Auxiliary flag word for calculating Q-DB lengths
EWA 4NEB 811 6044-02a
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaa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
NAME :SEND
DES :BADR
Segment2
001E
:
001F
0020
0021
:
:
:
0022
0023
0024
:
:
:
0025
0026
0027
:=
:
:LW
F 255.0
0028
0029
002A
:T
:
:
FW 242
002B
002D
002E
:L
:DO
:T
KH 00A0
FW 242
PY
0
002F
0030
0031
:L
:I
:T
FW 242
1
FW 242
0032
0034
0035
:L
:DO
:T
KH 0000
FW 242
PY
0
0036
0037
0038
:
:DO
:L
FW 242
PY
0
0039
003A
003B
003D
:T
:
:L
:T
003E
:
=BADR
FY 254
KF +0
FY 238
EWA 4NEB 811 6044-02a
LEN=371
0000
I/Q/D/B/T/C: D
KM/KH/KY/KC/KF/KT/KZ/KG: KF
DES
DES
DES
:Q-DB
:QANF
:QLAE
I/Q/D/B/T/C: B
I/Q/D/B/T/C: D
I/Q/D/B/T/C: I
KM/KH/KY/KC/KF/KT/KZ/KG: KF
BI/BY/W/D: BY
DES
DES
DES
:ENDZ
:STAT
:KBS
I/Q/D/B/T/C: D
I/Q/D/B/T/C: Q
I/Q/D/B/T/C: Q
KM/KH/KY/KC/KF/KT/KZ/KG: KH
BI/BY/W/D: BY
BI/BY/W/D: BY
DES
001
:RKPL
:***
I/Q/D/B/T/C: I
BI/BY/W/D: BI
STL FB 200
Explanation
001E
------------------For CPUs
941
942
943
944
------------------Save RLO
Load CP 523 module address
and store
Write KOOR ID
”Read status”
to CP 523 word 0
Fetch acknowledgement
”Read status”
from CP 523 and store
Reset auxiliary flag byte
8-11
CP 523
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
Using the ”SEND” and ”Receive” Function Blocks
STL FB 200
Explanation
no computer link
003F
0040
0041
:AN
:JC
:L
=RKPL
=NORK
FW 242
0042
0043
0044
:I
:T
:
1
FW 242
0045
0046
0047
:DO
:L
:T
FW 242
PY
0
=KBS
0048
0049
004A
:T
:
:L
FY 238
004B
:D
004C
:T
004D NORK :
1
FW 242
004E
004F
0050
:L
:D
:T
FW 242
1
FW 242
Set pointer back to
module base address
0051
0052
0053
:
:A
:JC
F
254.0
=NEIN
Does CP523 report ”send in progress”?
”NO”
0054
0055
0057
:
:L
:JU
KH 0002
=STAT
Load STAT bit ”Send in progress ”
jump to STAT
KH 0000
STAT bit ”Send mailbox empty”
=STAT
Output STAT flag
FY 238
KH 007F
Error code in CBS
(when computer link)?
0058 NEIN :
0059
:L
005B STAT :
FW 242
005C
005D
005E
005F
:T
:
:L
:L
0061
0062
0063
:AW
:L
KB 0
:!=F
0064
0065
0067
:JC
:L
:T
0068
:
0069 KBOK :
006A
:AN
006B
006C
006D
:ON
:BEC
:
006E
:***
8-12
=KBOK
KH 0088
=STAT
F 255.0
F 254.0
Set pointer to base
address + 2 (byte 2 = CBS
for computer link)
Read CBS (when computer link)
output and
buffer
Set pointer back to module
base address + 1
CBS ok
Output error code for
”CBS error / computer link”
RLO = ”0” on jump?
or Send mailbox occupied?
”End” of program
EWA 4NEB 811 6044-02a
Using the ”SEND” and ”Receive” Function Blocks
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
CP 523
STL FB 200
Segment 3
Explanation
006F
Check whether Q DB available
Load Q DB parameter
Isolate DB number from
Q DB parameter
006F
0070
0071
:
:LW =Q-DB
:SLW
8
0072
0073
0074
:SRW
7
:
:L
KH E400
0076
0077
0078
:+F
:LIR
:
0079
007A
007B
:L
KB 0
:!=F
:JC =FE03
007C
007D
007E
:
:TAK
:ADD KF -2
0080
0081
0083
:LIR
0
:ADD KF -5
:T
FW 254
and buffer
0084
0085
0086
:
:
:LW
Check the QANF
QANF less than 0 ?
0087
0088
0089
:L
:<F
:JC
008A
008B
008C
:
:TAK
:L
KB 255
008D
008E
008F
0090
:>F
:JC
:
:
0091
0092
0093
:L
:L
:>F
=QLAE
KB 0
0094
0095
0096
:JC
:
:LW
=CONT
"CONTINUE"
=ENDZ
0097
0099
009A
:L
:>F
:JC
KH 0000
Check end-of-text,
characters for > 0 ?
0
=QANF
Calculate start address
of the Q DB using
the block address list
Q DB available?
"ERROR "
Calculate the length of the Q DB
KB 0
=FE03
=FE03
"ERROR"
QANF > 255 ?
"ERROR"
Check QLAE
QLAE > 0 ?
009B
:JU
009C
:
009D CONT :
=FE03
"P A R A M E T E R S O.K."
otherwise "E R R O R "
009E
=QLAE
QLAE > 128?
:L
=PAOK
EWA 4NEB 811 6044-02a
8-13
CP 523
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
Using the ”SEND” and ”Receive” Function Blocks
STL FB 200
009F
:L
KB 128
00A0
00A1
00A2
:>F
:JC
:
=FE03
00A3
00A4
00A5
:
:LW
:LW
00A6
00A7
00A8
:+F
:L
:>F
00A9
00AA
00AB
:JC =FE03
:TAK
:L
KF +255
"ERROR"
Check to make sure that
QANF+QLAE not > Q-DB length
=QANF
=QLAE
FW 254
00AD
:<=F
00AE
:JC =PAOK
00AF FE03 :
00B0
00B2
00B3
:L
:T
:
00B8
Load calculated Q-DB length
"ERROR"
QANF+QLAE<=255?
Then OK
KH 0038
=STAT
Output "FB PARAMETER
ERROR"
Program "END"
00B4
:BEU
00B5 PAOK :
00B6
:***
Segment 4
00B7
:
Explanation
00B7
:***
Segment 5
00B9
00B9
00BA
00BB
00BC
:
:L
:I
:T
00BD
00BE
00BF
:
:L
=QLAE
:SLW
1
00C0
00C1
00C2
:DO
:T
:
FW 242
PW
0
Write length (bytes) of the
frame to be transferred
to bytes 2 and 3
of the CP 523
00C3
00C4
00C5
:L
:I
:T
FW 242
2
FW 242
Set pointer to base
address + 4 (byte 4)
and store
00C6
00C7
00C8
:
:LW
:DO
=ENDZ
FW 242
00C9
:T
PW
Write end-of-text characters 1 and 2
to bytes 4 and 5
of the CP 523
8-14
FW 242
2
FW 242
0
Increment pointer to
base address +2 (byte 2)
EWA 4NEB 811 6044-02a
Using the ”SEND” and ”Receive” Function Blocks
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
CP 523
STL FB 200
Explanation
00CA
:
00CB
00CC
00CD
:L
:D
:T
FW 242
4
FW 242
Set pointer to base address
of the CP 523
and store
00CE
00CF
00D0
:
:
:L
KH 00A0
00D2
00D3
00D4
:DO
:T
:L
FW 242
PY
0
FW 242
Write KOOR ID "SEND"
to word 0
of the CP 523
00D5
00D6
00D7
:I
:T
:L
1
FW 242
KH 0001
00D9
00DA
00DB
:DO
:T
:
FW 242
PY
0
00DC
00DD
00DE
:L
:D
:T
FW 242
1
FW 242
00DF
:***
Segment 6
00E0
:DO
00E1
:L
00E0
FW 242
PY
0
Set pointer back
to base address
Read status byte 0 from CP 523
00E2
00E3
00E4
:SLW
4
:T
FY 254
:
Isolate error bits
and buffer
00E5
00E7
00E8
00E9
:L
:T
:
:AN
KF +0
FY 238
Reset aux. flag byte
=RKPL
No computer link
00EA
00EB
00EC
:JC
:
:L
=NORK
00ED
00EE
00EF
:I
:T
:
2
FW 242
00F0
00F1
00F2
:DO
:L
:T
FW 242
PY
0
=KBS
00F3
00F4
00F5
:T
:
:L
FY 238
00F6
:D
2
FW 242
FW 242
EWA 4NEB 811 6044-02a
Increment pointer to base address + 2
(byte 2 = CBS when
computer link)
Read CBS,
output
and buffer
Set pointer back to
base address
8-15
CP 523
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
Using the ”SEND” and ”Receive” Function Blocks
STL FB 200
00F7
:T
FW
242
00F8
00F9
00FA
:
:L
:L
KB
FY
0
254
00FB
00FC
00FD
:!= F
:JC = NEIN
:
00FE
00FF
0100
:S
:L
:T
F 254.3
FY 254
=STAT
0101
:
0102
:BEU
0103 NEIN :
Error in status byte
”N O E R R O R”
Set error flag for STAT
Output STAT flags
Program ”END”
0104
0105
0107
:L
:L
:AW
0108
0109
010A
:L
KB 0
:!=F
:JC =KBOK
010B
010D
010E
:L
:T
:
010F KBOK :
0110
:
0111
:L
Explanation
FY 238
KH 007F
KH 0088
=STAT
FW 242
0112
0114
0115
:ADD KF +6
:T
FW 242
:
0116
0117
0118
0119
:DO
:L
:T
:
011A
011B
011D
:L
FW 242
:ADD KF -6
:T
FW 242
011E
011F
:
:***
FW 242
PY
0
FW 240
Contains CBS error flags
(when computer link)
CBS ok
Output error ”Computer link
error in CBS”
Set pointer to base
address +6
The CP loads and stores
no. of message blocks to be sent
Set pointer back to
base address
NETWORK 7
0120
:A
0121
:R
0120
F 237.0
F 237.0
Reset aux. flag for Send
with EOT-characters
0122
0123
0124
:
:LW
:T
=QANF
FW 244
Load QANF parameter
and store (QANF register)
0125
:
8-16
EWA 4NEB 811 6044-02a
Using the ”SEND” and ”Receive” Function Blocks
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
CP 523
STL FB 200
0126
:L
=QLAE
0127
0129
012A
:L
:>F
:JC
KH 0000
012B
012C
012D
:
:
:
=TELE
Explanation
Jump to Send with fixed length
*****************************************
012E
:
012F
:
0130 BLOC :
* SEND WITH END-OF-TEXT CHARACTERS *
*****************************************
0131
0132
0134
:L
FW 244
:ADD KF +3
:T
FW 244
Increment QANF register by 3
0135
0136
0137
:
:T
:
0138
0139
013B
:L
FW 242
:ADD KF +6
:T
FW 250
Set pointer to base address +6
(byte 6)
and store
013C
013D
013E
:
:DO
:
=Q-DB
Open source DB
013F WORT :
0140
:DO
0141
:L
FW 246
DW
0
0142
0143
0144
:T
:L
:DO
FW 238
FY 238
FW 250
Load the data word to be transferred
into the ACCUM
and buffer
0145
0146
0147
0148
:T
:L
:I
:T
PY
0
FW 250
1
FW 250
0149
014A
014B
:L
:DO
:T
FY 239
FW 250
PY
0
014C
014D
014E
:L
:D
:T
FW 250
1
FW 250
014F
0150
0151
:
:L
:LW
FW 238
=ENDZ
0152
0153
0154
:!=F
:S
F 237.0
:
0155
:L
FW 246
FW 250
EWA 4NEB 811 6044-02a
and store
QANF register to DWINDEX register
Transfer 1st word to CP 523
Check whether
word transferred is
EOT char.
Set aux. flag for EOT char.
recognition
Last word of message block
8-17
CP 523
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
Using the ”SEND” and ”Receive” Function Blocks
STL FB 200
0156
:L
0157
0158
0159
:><F
:JC =VORB
:
015A
015B
015C
:A
:JC
:
015D
015E
0160
:L
FW 244
:ADD KF +1
:T
FW 244
0161
0162
0163
:
:JU
:
0164 VORB :
0165
:L
0166
:D
FW 242
F 237.0
=END
:D
:T
:JU
1
FW 246
=WORT
016E
016F
0170
:
:
:
0171
0172
0173
:
:
:
FW 246
:-F
:T
:
0182 NBLO :
0183
:L
0184
:D
8-18
and store
Decrement data word index
register by 1
and store
”NEXT WORD”
****************************
* SEND WITH FIXED FRAME *
*
LENGTH
*
****************************
0174 TELE :
0175
:
0176
:L
FW 240
0177
:SLW
2
017F
0180
0181
Increment QANF register by 1
Decrement current CP 523
address by 2
and store
016A
016B
016C
:
:L
:L
Did this message block contain the endof-text character?->”END”
FW 250
2
FW 250
017B
017C
017E
”Preparations” for next message block
”NEXT MESSAGE BLOCK”
:T
:
:L
:L
:-F
:T
transferred?
=BLOC
0167
0168
0169
0178
0179
017A
Explanation
=QLAE
FW 248
Compute frame remainder register:
Number of message blocks * 4
(number in words)
Buffer number of words
Subtract message frame length from
number of message frames (in words)
and store
KH 0004
FW 248
FW 248
----------------------------
FW 240
1
Decrement number of message blocks by 1
EWA 4NEB 811 6044-02a
Using the ”SEND” and ”Receive” Function Blocks
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
CP 523
STL FB 200
0185
:T
0186
0187
0188
:
:L
KB 0
:!=F
FW 240
0189
018A
018B
:JC
:
:L
018C
018E
018F
:ADD KF +3
:T
FW 244
:
0190
0191
0192
:T
:
:L
0193
0195
0196
:ADD KF +6
:T
FW 250
:
Explanations
and store
=LBLO
Is the message block to be transferred
the last subframe?
”LAST MESSAGE BLOCK”
FW 244
Increment QANF register by 3
and store
FW 246
QANF register to DWINDEX register
FW 242
Set pointer to base
address +6 (byte 6)
and store
0197
:JU
0198
:
0199 LBLO :
=JUM1
019A
019B
019C
:L
:L
:D
FW 244
FW 248
1
Calculate data word index register
019D
019E
019F
:+F
:T
:
FW 246
and store
01A0
01A1
01A2
:L
FW 248
:SLW
1
:D
2
01A3
01A4
01A5
01A6
:L
:+F
:T
:
Compute corresponding
byte address
FW 242
FW 250
and store
01A7 JUM1 :
01A8
:DO
01A9 NWOR :
=Q-DB
Open source DB
01AA
01AB
01AC
:DO
:L
:DO
FW 246
DL
0
FW 250
Load data byte to be transferred
into ACCUM
01AD
01AE
01AF
:T
:L
:I
PY
0
FW 250
1
and transfer to CP
Increment pointer
01B0
01B1
01B2
:T
:DO
:L
FW 250
FW 246
DR
0
01B3
:DO
FW 250
EWA 4NEB 811 6044-02a
Load data byte to
into ACCUM
8-19
CP 523
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
Using the ”SEND” and ”Receive” Function Blocks
STL FB 200
01B4
:T
PY
01B5
01B6
01B7
:L
:D
:T
FW 250
1
FW 250
0
01B8
01B9
01BA
:
:L
:L
FW 250
FW 242
01BB
01BC
01BD
:><F
:JC =NADR
:
01BE
01BF
01C0
:L
FW 240
:L
KB
0
:!=F
01C1
01C2
01C3
:JC
:
:L
01C4
01C6
01C7
:ADD KF + 1
:T
FW 244
:
Explanations
and forward to CP
Decrement pointer
Last word of message block
forwarded?
”NEXT ADDRESS”
=END
Is message block
to be transferred
the last message block?
”END”
FW 244
Increment QANF register by 1
and store
01C8
:JU
01C9 NADR :
01CA
:L
=NBLO
”NEXT MESSAGE BLOCK”
FW 250
01CB
01CC
01CD
:D
:T
:
2
FW 250
Decrement pointer for byte
address by 2
and store
01CE
01CF
01D0
:L
:D
:T
FW 246
1
FW 246
Decrement data word
index register by 1
and store
01D1
01D2
01D3 END
01D4
:
:JU
:
:L
=NWOR
”NEXT WORD”
KH 0002
01D6
01D7
01D8
:T =STAT
:
:A
F 237.0
Load STAT bit ”SEND in progress”
Output STAT bit
01D9
01DA
01DB
:R
:
:BE
8-20
F 237.0
Reset auxiliary flag
for end-of-text character
EWA 4NEB 811 6044-02a
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaa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aaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
CP 523
8.2
8.2.1
Name
BADR
Z-DB
ZANF
ZLAE
STAT
KBE
Using the ”SEND” and ”Receive” Function Blocks
Using "RECEIVE" FB 201
"RECEIVE" FB 201 transfers message frames from the CP 523 to the CPU.
You must specify the following when calling "RECEIVE" FB 201:
• The start address of the CP 523
• The number of the target data block in which the message frame is to be stored on the CP 523
• The number of the target data word starting from which the message frame is to be stored
• A byte address where "RECEIVE" FB 201 can store the number of data words received
• A byte address where "RECEIVE" FB 201 is to store the status byte
• A byte address where ”RECEIVE” FB 201 is to store the CBR (= KBE)
Receive enable is RLO = 1.
Calling and Setting "RECEIVE" FB 201 Parameters
"RECEIVE" FB 201 can be called in cyclic programs and in programs servicing timed interrupts* and
process interrupts*.
STL
NAME
DES
: JU FB 201
: RECEIVE
: BADR : KF
DES
DES
DES
: Z-DB : B
: ZANF : KF
: ZLAE : MB
DES
DES
: STAT : MB
: KBE
Parameter
Type
D
B
D
Q
Q
Q
EWA 4NEB 811 6044-02a
LAD/CSF
FB 201
BADR
Z-DB
ZANF
Data
Type
KF
KF
BY
BY
BY
ZLAE
STAT
KBE
MB
MB
FY
Table 8-3. Block Parameters for "RECEIVE" FB 201
Description
Initial address of the module
Number of the destination data block
Number of the 1st destination data word
Number of data words received (destination length)
Status byte
Coordination byte 'receive' (relevant only in 3964(R)
mode)
Note:
The scan time may be exceeded if several message blocks are received.
Remedy: Program OB 31 "Set scan time" in FB 201 (address 00F0, network 6).
* Please note that FB 201 uses sc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parameter error
RECEIVE FB
Parameter error
Target DB for
receive data too
small
Error flagged
in CBR
8.2.3
8-22
Bit 7
Bit 6
Bit 5
Bit 4
0
0
1
1
0
1
0
0
0
1
0
1
1 Receive data
available
0 No receive data
available
1 Permission to send
0 No permission to send
0
1 Bits 4 to 7 contain
error code
0 No errors
1
0
0
CP 523
Structure of the Status Byte
The status bytes for "SEND" FB 200 and "RECEIVE" FB 201 are identical. The status byte contains
information about whether:
Receive data is available (bit 0 = 1)
The Send mailbox is empty (bit 1 = 1)
If the Send mailbox is occupied, the Send job initiated by calling "SEND" FB 200 is not
executed.
Errors have occurred (bit 3 = 1)
If bit 3 is set, bits 4 to 7 contain the error code.
Status byte
Bit 3
Bit 2
Bit 1
Bit 0
Figure 8-3. Structure of the "STAT" Status Byte
Schematic Representation of the Method of Operation of "RECEIVE"
FB 201
Note:
This section is intended merely to explain how "RECEIVE" FB 201 works. You do not require this
information to use "RECEIVE" FB 201.
EWA 4NEB 811 6044-02a
CP 523
Using the ”SEND” and ”RECEIVE” Function Blocks
The FB 201 services the Receive request according to the following schematic:
Read CP 523 status
No
Segment 2
Data
available?
Yes
Check the "RECEIVE" FB parameters
Yes
Segment 3
Parametererror?
No
Establish "RECEIVE" connection to the CP 523
Segment 4
Read job acknowledgement from CP 523
Segment 5
Yes
Acknowledgement
with error?
No
Flag error in status
byte
Fetch Receive data from CP 523
Segment 6
Store number of DWs received
Segment 6
END
Figure 8-4.
EWA 4NEB 811 6044-02a
Schematic for "Receive Frame" (FB 201)
8-23
Using the ”SEND” and ”RECEIVE” Function Blocks
8.2.4
CP 523
Flowchart of "RECEIVE" FB 201
Evaluate RLO and read status
Segment 2
START
Buffer "RLO at jump"
Issue "Read STATUS" request to
CP 523
Read job acknowledgement from
CP 523
Display CP 523-STATUS
Display CBR (relevant only in
3964(R) mode)
Yes
RLO = 0 or SEND executing
No
END
8-24
1
EWA 4NEB 811 6044-02a
CP 523
Using the ”SEND” and ”RECEIVE” Function Blocks
Segment 3
Check the "RECEIVE" FB parameters
1
No
Z-DB available?
Yes
Calculate Z-DB length
No
ZANF ok?
Yes
No
Q-DB length >=
QANF + QLAE
Yes
Output error
message
END
EWA 4NEB 811 6044-02a
2
8-25
Using the ”SEND” and ”RECEIVE” Function Blocks
CP 523
Establish "RECEIVE" connection to CP 523
Segment 4
2
Transfer "Receive" ID to the CP
Evaluate job acknowledgement from CP 523
Segment 5
Read acknowledgement from CP
Yes
Acknowledge with error?
No
Output error
message
END
8-26
3
EWA 4NEB 811 6044-02a
CP 523
Using the ”SEND” and ”RECEIVE” Function Blocks
Fetch Receive data from CP 523
Segment 6
3
Buffer number of message blocks given in
acknowledgement and process
Buffer message frame length given in
acknowledgement and process
Calculate the number of words in the last message
block
Further program preparations
Access word 0 on CP
Decrement number of message blocks by 1
Fetch a DW from the CP
Yes
Last message
block?
Next DW
Has the last DW
been received?
No
Increment ZLAE by 1
No
No
Increment ZLAE by 1
ZANF
> Z-DB?
Yes
Last DW of the
message block?
No
Yes
Output error message
Yes
Last message
block?
No
Last message
block?
No
Yes
Access word 0 on CP
END
Decrement number of
message blocks by 1
END
EWA 4NEB 811 6044-02a
8-27
Using the ”SEND” and ”RECEIVE” Function Blocks
8.2.5
CP 523
Flags in "RECEIVE" FB 201
Explanation of the flags used by "RECEIVE" FB 201:
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaa
Table 8-4. Overview of the Flags Used by "RECEIVE" FB 201
Flag
8-28
Symbol
Meaning
Auxiliary flag for buffering the RLO at jump
F
255.0
H-FLAG-1
F
254.7
H-FLAG-3
FY
254
H-BYTE-1
Auxiliary flag byte for buffering STAT
FY
246
H-BYTE-2
Auxiliary flag byte for processing the last
message block
FW 230
ZLAE-REG
"Number of data words fetched from the CP
(= ZLAE parameter") register
FW 232
Z-DB-LAE
Auxiliary register for storing length of
destination DB
FW 234
BADR-IND
Module address index register for word-serial
reading from CP
FW 236
ZANF-REG
Register for Z-DB start address for DWs (DO FW
register, store data words in Z DB)
FW 238
B-AN-E
”Number of message blocks" register
FW 240
ANZ-E-W
Number of words to be received
FW 242
BADR-REG
Module address register (DO FW register for CP
access)
FW 244
W-LE-BL
Number of words in last message block
Auxiliary flag for STAT bit "Data available"
EWA 4NEB 811 6044-02a
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaa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aaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
CP 523
0017
Using the ”SEND” and ”RECEIVE” Function Blocks
FB 201
STL FB 201
Segment 2
0018
:
0019
001A
001B
:
:
:
001C
001D
001E
:
:
:
001F
0020
0021
:
:=
:
0022
0023
0024
EWA 4NEB 811 6044-02a
LEN=374
Segment 1
0000
NAME :EMPFANG
DES
DES
DES
:BADR
:Z-DB
:ZANF
I/Q/D/B/T/C: D
I/Q/D/B/T/C: B
I/Q/D/B/T/C: D
KM/KH/KY/KC/KF/KT/KZ/KG: KF
DES
DES
DES
:ZLAE
:STAT
:KBE
I/Q/D/B/T/C: Q
I/Q/D/B/T/C: Q
I/Q/D/B/T/C: Q
BI/BY/W/D: BY
BI/BY/W/D: BY
BI/BY/W/D: BY
KM/KH/KY/KC/KF/KT/KZ/KG: KF
:***
Explanations
0018
-----------------------------For CPUs
941
942
943
944
------------------------------
F 255.0
Save RLO
:LW
:T
:
=BADR
FW 242
Load and store module
address
0025
0027
0028
:L
:DO
:T
KH 00A0
FW 242
PY
0
Write ”Read status” KOOR ID
to bytes 0 and 1
of the CP 523
0029
002A
002B
:L
:I
:T
FW 242
1
FW 242
002C
002E
002F
0030
:L
:DO
:T
:DO
KH 0000
FW 242
PY
0
FW 242
0031
0032
0033
:L
:T
:
PY
0
FY 254
0034
0035
0036
:L
:D
:T
FW 242
1
FW 242
0037
0038
:
:AN
F 254.7
Fetch acknowledgement to
”Read status”
from CP and buffer
Set pointer back to
module base address
Does CP report 'Data available'?
”N O”
8-29
CP 523
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
Using the ”SEND” and ”RECEIVE” Function Blocks
STL FB 201
0039
:JC
=NEIN
003A
003B
003D
:
:L
:JU
KH 0001
=STAT
Load STAT bit ”Data available” and
jump to 'output STAT'
STAT bit ”No data”
003E NEIN :
003F
:L
0041 STAT :
KH 0000
Output STAT bit
0042
0043
0044
:T
:
:L
=STAT
0045
0047
0048
:L
:AW
:T
KH 007F
0049
004A
004B
:
:AN
:ON
004C
004D
004E
:BEC
:
:***
NETWORK 3
Explanations
=KBE
Reset KBE.7 (Request
accepted) but do not
reset error flags
=KBE
F 255.0
F 254.7
RLO ”0” at jump?
or no data available?
Program ”End”
004F
Check whether Z-DB is available
Load Z-DB parameter
Isolate the DB number from
the Z-DB parameter specification
004F
0050
0051
:
:LW =Z-DB
:SLW
8
0052
0053
0054
:SRW
7
:
:L
KH E400
0056
0057
0058
0059
:+F
:LIR
:
:L
KB
005A
005B
005C
:!=F
:JC =FE04
:
005D
005E
0060
:TAK
:ADD KF -2
:LIR
0
0061
0063
0064
:ADD KF -5
:T
FW 232
:
0065
0066
0067
:LW
:L
:<F
=ZANF
KB 0
Check ZANF information
ZANF less than 0?
0068
:JC
=FE04
”E R R O R”
8-30
0
Calculate the start address
of the Z DB using the
block address list
0
Z-DB available?
”E R R O R”
Calculate length of the Z-DB
Gross length in words
Subtract length of block header
and store
EWA 4NEB 811 6044-02a
Using the ”SEND” and ”RECEIVE” Function Blocks
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
CP 523
STL FB 201
Explanations
0069
:
006A
006B
006C
:TAK
:L
KB 255
:>F
ZANF greater than 255?
006D
006E
006F
:JC =FE04
:
:TAK
”E R R O R”
0070
0071
0072
:L
FW 232
:<=F
:JC =PAOK
0073 FE04 :
0074
:L
0076
:T
ZANF >Z-DB length?
KH 0048
=STAT
0077
:
0078
:BEU
0079 PAOK :
007A
”N O”
Output ”FB parameter
error”
PROGRAM ”END”
:***
NETWORK 4
007B
007B
:L
KH 00A0
007D
:DO FW 242
007E
007F
0080
:T
:L
:I
PY
0
FW 242
1
0081
0082
0084
:T
:L
:DO
FW 242
KH 0080
FW 242
0085
0086
0087
0088
:T
:
:L
:D
PY
0089
008A
:T
FW 242
:***
0
FW 242
1
NETWORK 5
008B
008B
:DO FW 242
008C
008D
008E
:L
PY 0
:SLW
4
:T
FY 254
008F
0090
0091
:L
:I
:T
FW 242
1
FW 242
EWA 4NEB 811 6044-02a
Write KOOR ID ”RECEIVE”
to CP 523
word 0
Set pointer back to
module base address
Read byte 0,
isolate error bit
and buffer
Increment pointer to byte 1
8-31
CP 523
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
Using the ”SEND” and ”RECEIVE” Function Blocks
STL FB 201
Explanations
0092
:DO
FW 242
0093
0094
0095
:L
:T
:T
PY
0
=KBE
FY 246
Read byte 1 (acknowledgement or
CBR when computer link)
and output
or buffer
0096
0097
0098
:
:L
:D
FW 242
1
Set pointer back to
module base address
0099
009A
009B
:T
:
:L
009C
009D
009E
:L
FY 254
:!=F
:JC =NEIN
009F
00A0
00A1
:
:S
:L
00A2
00A3
00A4
:T
:
:L
00A6
00A7
00A8
:L
FY 254
:AW
:!=F
00A9
00AA
00AB
:JC
:
:
00AC
00AD
00AE
:
:
:BEU
FW 242
KB
0
Acknowledgement with error?
”N O E R R O R”
F 254.3
FY 254
Set error bit for STAT
=STAT
Output STATbit
KH 0090
Does the CP report
delay time exceeded?
”Y E S” -> message is output
in the status byte
but the function block
is not interrupted
=NEIN
Program ”END”
00AF NEIN :
00B0
:L
00B1
:L
00B3
:AW
FY 246
KH 007F
00B4
00B5
00B6
:L
KB
0
:!=F
:JC =KBOK
00B7
00B9
00BA
:L
KH 0088
:T
=STAT
:BEU
Error flagged in CBR?
(error flag is isolated)
Coordination byte OK
Output error ”CBR error/computer link
Program ”END”
00BB KBOK :
00BC
:***
NETWORK 6
00BD
:L
00BE
00BF
8-32
:T
:
00BD
KB
0
Reset auxiliary register 2
FB 246
EWA 4NEB 811 6044-02a
Using the ”SEND” and ”RECEIVE” Function Blocks
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
CP 523
STL FB 201
Explanations
00C0
:
00C1
00C2
00C3
:L
:I
:T
FW 242
6
FW 242
Set pointer to base
address +6 (byte 6)
00C4
00C5
00C6
:
:DO
:L
FW 242
PY
0
00C7
00C8
00C9
:D
:SLW
:
00CA
00CB
00CC
:T
:
:L
Read no. of message blocks in
Receive message frame from the CP,
decrement by 1,
convert to number of words
(one message block comprises 4 words)
and store
00CD
00CF
00D0
:ADD KF -4
:T
FW 242
:
00D1
00D2
00D3
:DO FW 242
:L
PW
0
:SRW
1
00D4
00D5
00D6
:T
:
:L
00D7
00D8
00D9
:-F
:T
:
00DA
00DB
00DC
:
:
:
00DD
00DE
00DF
00E0
:L
FW 238
:SRW
2
:I
1
:T
FW 238
00E1
00E2
00E3
:
:
:L
00E4
00E5
00E6
:T
:
:LW
FW 230
00E7
00E8
00E9
:T
:
:L
FW 236
00EA
00EB
00EC
:D
:T
:T
2
FW 242
FW 234
00ED
:
1
2
FW 238
FW 242
FW 240
FW 238
FW
244
KB 0
=ZANF
FW 242
EWA 4NEB 811 6044-02a
Set pointer to base
address +2 (byte 2)
Read length of Receive
message frame in the bytes from the CP,
convert to number of words
and store
Subtract the number of message blocks
in words from this
and store
The result of the subtraction
is the number of words
in the last message block
Correct the number
of message blocks
Reset the ZLAE register
Load ZANF
and store
Set module address register
to CP 523 base address
and load into
module address
index register
8-33
CP 523
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
Using the ”SEND” and ”RECEIVE” Function Blocks
STL FB 201
00EE
:DO
=Z-DB
Explanations
Open destination DB
00EF
:
00F0 NBLO :JU
00F1
:L
OB 31*
KH 0000
00F3
00F4
00F5
:DO
:T
:L
FW 242
PY
0
FW 242
00F6
00F7
00F8
:I
:T
:L
1
FW 242
KH 0000
00FA
00FB
00FC
:DO
:T
:
FW 242
PY
0
00FD
00FE
00FF
:L
:D
:T
FW 242
1
FW 242
Set pointer back to
base address
0100
0101
0102
:
:L
:D
FW 238
1
(Retrigger scan time)
Access word 0 on CP 523
for transferring a message block
0103
:T
0104 NWOR :
0105
:DO
FW 238
Decrement no. of message blocks
for Receive message frames
and store
FW 234
Fetch a data word from CP 523
0106
0107
0108
:L
:
:DO
PW
0109
010A
010B
:T
:
:L
DW
010C
010D
010E
010F
:L
KB 0
:><F
:JC =KEND
:
0110
0111
0112
:L
:I
:T
FY 246
1
FY 246
0113
0114
0115
:
:
:L
FW 244
0116
0117
0118
:<F
:
:JC
=KEND
0119
011A
011B
:
:L
FW 230
:ADD KF +1
Increment ZLAE register by 1
011D
:T
and store
0
FW 236
0
FW 238
FW 230
and store
in Z-DB
Last message block?
”N O”
Increment auxiliary register by 1
and store
(shows the number of the word
received in the last message block)
and compare with the number of words
in the last message block to see
if the last word was received
”NO”
* In 115 CPUs only (if required)
8-34
EWA 4NEB 811 6044-02a
Using the ”SEND” and ”RECEIVE” Function Blocks
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
CP 523
STL FB 201
011E
Explanations
:
011F
:JU
0120
:
0121 KEND :
=END
Increment ZLAE register by 1
0122
0123
0125
:L
FW 230
:ADD KF +1
:T
FW 230
0126
0127
0128
:
:L
FW 236
:ADD KF +1
012A
012B
012C
:T
:
:L
012D
012E
012F
:D
1
:<=F
:JC =JUM1
”N O”
0130
0131
0133
:
:L
:T
Buffer ”Z-DB too small for total
Receive data” error message
and store
Increment ZANF register by 1
FW 236
and store
FW 232
ZANF register >DB length?
KH 0058
FY 254
0134
:
0135
:
0136 ENTL :
0137
0138
0139
:L
FW 238
:L
KB 0
:!=F
Last message block?
013A
013B
013C
:JC
:
:L
=END
”Y E S”-->END
KH 0000
013E
013F
0140
0141
:DO
:T
:L
:I
FW 242
PY
0
FW 242
1
Access word 0 on CP 523
for transferring a message block
0142
0143
0145
:T
:L
:DO
FW 242
KH 0000
FW 242
0146
0147
0148
:T
:L
:D
PY
0
FW 242
1
0149
014A
014B
:T
:
:L
FW 242
014C
014D
014E
:D
:T
:
1
FW 238
014F
:JU
=ENTL
FW 238
EWA 4NEB 811 6044-02a
Set pointer to base address
Decrement message block
counter register by 1 and store
Empty Receive mailbox loop
8-35
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
Using the ”SEND” and ”RECEIVE” Function Blocks
STL FB 201
0151
0152
0154
:L
FW 242
:ADD KF +6
:L
FW 234
0155
0156
0157
:!=F
:JC =LWOR
:
0158
015A
015B
:ADD KF +2
:T
FW 234
:
Segment 7
016F
8-36
CP 523
Explanations
0150 JUM1 :
Last word of the message block
read?
”Y E S”
Increment BADR index register by 2
and store
015C
:JU
015D
:
015E LWOR :L
=NWOR
”N E X T W O R D”
FW 242
015F
0160
0161
:T
:
:L
FW 234
Set module index register
to module base address
FW 238
Last message block?
0162
0163
0164
:L
KB 0
:><F
:JC =NBLO
0165
0166 END
0167
:
:
:
0168
0169
016A
:L
:T
:
FW 230
=ZLAE
Output count register
016B
016C
016D
:L
:T
:
FY 254
=STAT
Output status
016E
:***
”N O” -> next message block
:BE
0170
EWA 4NEB 811 6044-02a
aaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaa
CP 523
8.2.6
CPU
Using the ”SEND” and ”RECEIVE” Function Blocks
Execution Times for FB 200 and 201
Table 8-5. Execution Times for FB 200 and 201 (in ms)
941
942
943
944
FB
RLO = 0
(no op.)
12 Bytes
Fixed Mess.
Frame
Length
12 Bytes
with End-of-Text
Character
12 Bytes
with
3964(R)
Protocol
256 Bytes
Fixed Mess.
Frame
Length
256 Bytes
with Endof-Text
Character
256 Bytes
with
3964(R)
Protocol
200
7.5
50
55
52
520
550
520
201
7.5
50
50
48
550
560
550
200
5
20
20
24
240
210
220
201
5
20
20
21
250
225
225
200
2.5
14
15
18
150
140
160
201
2.5
14
16
15
165
165
165
200
0.5
3.5
3.5
3.5
27
30
26
201
0.5
6.5
6.5
6.5
90
90
88
EWA 4NEB 811 6044-02a
8-37
System Overview
Technical Description
Hardware Installation
Notes on Operation
Address Assignment
Print Mode
Communications Mode
Using the ”SEND” and ”RECEIVE” Function Blocks
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
1
2
3
4
5
6
7
8
A
B
Summary
A.1
Parameter Setting in Print Mode
A.2
Job Requests in Print Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .A. - 3
A.3
Feedback Information in Print Mode
A.4
Setting Parameters in Communications Mode
A.5
Job Requests in Communications Mode
A.6
Feedback Information in Communications Modes 1 and 2
A.7
Feedback Information in Communications Mode 3
A.8
Combinations of the Most Important Parameters
Siemens Addresses Worldwide
EWA 4NEB 811 6044-02a
. . . . . . . . . . . . . . . . . . . . . . . . . . . . .A
. - 1
. . . . . . . . . . . . . . . . . . . . . . . . . . .A - 5
..................A - 7
. . . . . . . . . . . . . . . . . . . . . . . .A - 9
. . . . . . . A - 11
. . . . . . . . . . . . . . A - 13
. . . . . . . . . . . . . . . A - 16
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
Tables
A-1.
A-2.
A-3.
A-4.
A-5.
A-6.
A-7.
A-7.a
A-8.
A-9.
A-10.
A-11.
A-12.
A-13.
A-14.
A-15.
A-16.
A-17.
A-18.
A-19.
Parameter Setting Data for Print Mode
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .A
. Permissible Job Requests to the CP 523 in Print Mode (CPU to CP) . . . . . . . . A Transferring Additional Information for
”Print Message Text” (CPU to CP) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .A. Transferring Additional Information for
”Set Time of Day and Date” (CPU to CP) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A
. Status of the Module in Print Mode (Byte 0)
. . . . . . . . . . . . . . . . . . . . . . . . . . .A Status of the Printer, Date and Time of Day . . . . . . . . . . . . . . . . . . . . . . . . . . . .A Assignments of the Parameter Blocks in Communications Mode
(Parameter Blocks 0, 2 and 9) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A
. .Assignments of the Parameter Blocks in Communications Mode
(Parameter Block 7) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A
. . .Permissible Job Requests to the CP 523 in Communications Mode . . . . . . . . A Transfer Memory Assignments for
”Send Fixed-Length Message Frame” (CPU to CP) . . . . . . . . . . . . . . . . . . . . . . A Transfer Memory Assignments for ”Send Message Frame with
End-of-Text Characters” (CP to CPU) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .A. Transfer Memory Assignments for ”Receive Message Frame” (CPU to CP) . A Coordination Information for ”Coordinate Data
Transfer” (CP to CPU) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .A. .Status Information and Current Clock Data (CP to CPU) . . . . . . . . . . . . . . . . . A Status Byte in Communications Mode (CP to CPU) . . . . . . . . . . . . . . . . . . . . . . A Status Info from the CP 523 for Job Number ”A000H”
...................A Status Info for Send Request ”A001H” . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .A. Status Info for Receive Request ”A080H”
. . . . . . . . . . . . . . . . . . . . . . . . . . . . .A
. Return Info and Error Flags in the
Coordination Byte 'Send' (CBS) in 3964(R) Mode . . . . . . . . . . . . . . . . . . . . . . . A Return Info and Error Flags in the
Coordination Byte 'Receive' (CBR) in 3964(R) Mode . . . . . . . . . . . . . . . . . . . . . A -
1
3
4
4
5
6
7
8
9
10
10
10
11
11
12
13
13
13
14
15
EWA 4NEB 811 6044-02a
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaa
CP 523
0
Summary
A
Summary
A.1
Parameter Setting in Print Mode
Table A-1. Parameter Setting Data for Print Mode ( 6.3)
Param.
Block
Description
Baud rate
Parity
BUSY signal
Interface
1
2
XON character
XOFF character
3
End-of-text character
Function character
EWA 4NEB 811 6044-02a
Value
Range
TTY
RS-232-C (V.24)
Data format
11-bit character
frame
Parity:
7 data bits (yes)
8 data bits (yes)
8 data bits (no)
0
1
2
10-bit character
frame
7 data bits (no)
7 data bits (yes)
8 data bits (no)
3
4
5
HW handshaking
OFF
ON
0
1
Waiting time after
CR
LF
FF
(00H to FFH) · 25ms
(00H to FFH) · 25ms
(00H to FFH) · 25ms
Default Value
on the CP 523
110 baud
200 baud
300 baud
600 baud
1200 baud
2400 baud
4800 baud
9600 baud
1
2
3
4
5
6
7
8
even
odd
”mark”
”space”
no parity check
0
1
2
3
4
0
No
Yes
0
1
0
0
1
0
0
4
0
0AH 0.250 s
0AH 0.250 s
A0H 4 s
ASCII character
(01H to 7FH)
ASCII character
(01H to 7FH)
FFH (no XON/XOFF
protocol)
FFH (no XON/XOFF
protocol)
ASCII character
(01H to FFH)
ASCII character
(01H to FFH)
$ (24H)
” (22H)
A-1
Summary
CP 523
Table A-1. Parameter Setting Data for Print Mode (Continued)
4
Date and time of day display
Order for date
Any combination of year,
month and day is permissible
TMY
Separator for date
ASCII character (20H to 7FH)
”.” (2EH)
Order for time of day
HMS, HSM, MSH, MHS, SHM, HMS
SMH
J,Y
M
T,D
H
M
S
= Year
= Month
= Day
= Hours
= Minutes
= Seconds
Separator for time of day
ASCII character (20H to 7FH)
”:” (3AH)
24h clock (German)
12h clock (English)
d, D
e, E
D (24h clock)
14H to FFH
00H to 3CH
48H (72D)
00H
o, O, h, H
u, U, f, F
Other character
u
Page format
5
Lines/page
Left margin
Page number
Top
Bottom
None
Header and footer
6
Header 1
Header 2
Footer 1
Footer 2
A-2
No headers or
footers
Character conversion table
16 characters can be
converted with a code
sequence consisting of up to
7 characters.
None
Correction value for integral
clock
-400D to +400D s/month
0000D
8
9
K1”Text”, H1”Text”
K2”Text”, H2”Text”
F1”Text”
F2”Text”
EWA 4NEB 811 6044-02a
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
CP 523
7
6
0
Summary
A.2
Job Requests in Print Mode
Table A-2. Permissible Job Requests to the CP 523 in Print Mode (CPU to CP) ( 6.7)
5
Byte 0
4
3
2
1
0
0
EWA 4NEB 811 6044-02a
0
7
6
5
Byte 1
4
3
2
0
1
0
Message text number
1
0
Day of the week
setting
2
0
Page number
0
Job Request
Read status byte, status of the printer and
current clock data
Print message text with CR/LF at end
Set clock (settings in bytes 1 to 7)
Print message text with CR/LF at end
3
Message text number
Print message text without CR/LF at end
4
Message text number
Print message text without CR/LF at end
5
0
0
0
Form feed
6
0
0
0
Line feed
7
0
0
0
Clear message buffer
8
0
0
0
Print all messages
9
9
9
0
0
0
0
2
7
0
0
0
Transfer parameter setting data
- Set serial interface parameters
- Set XON/XOFF character parameters
- Select Print mode
= Print requests. These are written into the message buffer if necessary.
A-3
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaa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aaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
Summary
2
(2+3)
4
(4+5)
6
(6+7)
5*
A-4
CP 523
"Print message text" ( 6.7.1)
Table A-3.
Byte
Transferring Additional Information for "Print Message Text" (CPU to CP)
Word
(Byte)
Meaning
Meaning of the Setting
Hour
(Configuration of 12h clock or 24h
clock in DB 1 on the memory submodule)
Assignment
Value of the variable
or
number of the message text to be inserted
0000H to FFFFH
Value of the variable
or
number of the message text to be inserted
0000H to FFFFH
Value of the variable
or
number of the message text to be inserted
0000H to FFFFH
(dependent on the configured data format)
0000H to 0FFFH
(dependent on the configured data format)
0000H to 0FFFH
(dependent on the configured data format)
0000H to 0FFFH
"Set time of day and date" ( 6.7.2)
Table A-4. Transferring Additional Information for "Set Time of Day and Date" (CPU to CP)
Assignment
2
Day
01BCD to 31BCD
3
Month
01BCD to 12BCD
4
Year
00BCD to 99BCD
00BCD to 23BCD in the case of the 24h clock
01BCD to 12BCD in the case of the 12h clock a.m.
81BCD to 92BCD in the case of the 12h clock p.m.
6
Minute
00BCD to 59BCD
7
Second
00BCD to 59BCD
* Bit 7 = 1 in the case of the 12h clock p.m.
EWA 4NEB 811 6044-02a
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaa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) ( 6.6)
Byte 0
Status
Detailed Explanation
0
0
No error
X
1
Defective memory
submodule
X
2
No texts configured
X
3
Entries in job buffer
X
7
No battery backup
Either
- No battery has been inserted in the power
supply module or
- The battery is defective
X
8
Job buffer/message
buffer full
The module cannot service any further print requests
at present.
The request must be repeated.
0
F
CP in restart routine
Message appears only on restart.
The clock data is invalid.
The module cannot accept any job requests.
1
X
Clock defective
Replace module
2
X
Default clock time set
The clock is preset with the values Sunday, 1:1:90,
12:00:00.
3
X
Time of day/date error
At least one setting is outside the permissible range.
The clock has not accepted the new clock data and is
continuing with the current data.
4
X
Illegal job request
You have submitted a request to the CP which is not
permissible in Print mode ( 6.7).
8
X
Hardware fault
Replace module
Job buffer empty
No message texts configured on the memory
submodule
X= Signal state not significant for other half-byte
A-5
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaa
Summary
Byte
1
A-6
CP 523
Table A-6. Status of the Printer, Date and Time of Day
Value Range
01BCD to 07BCD
11BCD to 17BCD
Meaning
Bits 0 to 3 :
Bit 4=0
Bit 4=1
2
01BCD to 31BCD
Day
3
01BCD to 12BCD
Month
4
00BCD to 99BCD
Year
5
00BCD to 23BCD
01BCD to 12BCD
81BCD to 92BCD
Hour
6
00BCD to 59BCD
Minute
7
00BCD to 59BCD
Second
:
:
1=Sunday, 2=Monday, 3=Tuesday,
4=Wednesday, 5=Thursday, 6=Friday,
7=Saturday
Printer ready
Printer not ready
in 24h clock
in 12h clock a. m. (bit 7=0)
in 12h clock p. m. (bit 7=1)
EWA 4NEB 811 6044-02a
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
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
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
CP 523
A.4
•
•
0
2
9
*
Summary
Setting Parameters in Communications Mode
Setting parameters via the memory submodule: Enter the data in DB 1 ( 7.3.1)
Setting parameters via the user program: "Transfer parameter setting data for parameter
block X" ( 7.3.2)
Table A-7. Assignments of the Parameter Blocks in Communications Mode
(Parameter Blocks 0, 2 and 9)
Parameter
block
Byte
7
2+3
EWA 4NEB 811 6044-02a
Description
2
Baud rate
3
Parity
4
BUSY signal
5
Interface
6
Data format:
TTY
RS-232-C (V.24)
Parity:
7
HW handshake
2
XON character*
01H to 7FH
3
XOFF character*
01H to 7FH
11-bit character
frame
7 data bits
8 data bits
8 data bits
(yes)
(yes)
(no)
0
1
2
10-bit character
frame
7 data bits
7 data bits
8 data bits
(no)
(yes)
(no)
3
4
5
OFF
ON
0
1
0
FFFFH
(no XON/XOFF
protocol)
Value
Range
Default Value
on the CP 523
110 baud
200 baud
300 baud
600 baud
1200 baud
2400 baud
4800 baud
9600 baud
1
2
3
4
5
6
7
8
4
even
odd
”mark”
”space”
no parity check
0
1
2
3
4
0
No
0
0
0
1
0
0
see Table A-7a.
Correction value (s/month)
- 400D to+400D
0000D
Only possible in interpretive ASCII mode
A-7
CP 523
Summary
r
l“’
r.
0
1
—
,=
>..
n
3
—
&
,.
,0
;0
.
&
,
,
t
-------4
—
g=
0
.
.
,
EWA4NEB8116044-02a
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
CP 523
A.5
Summary
Job Requests in Communications Mode
Table A-8. Permissible Job Requests to the CP 523 in Communications Mode
Job Request
EWA 4NEB 811 6044-02a
7
6
5
Byte 0
4
3
2
1
0
7
6
5
Byte 1
Transfer parameter setting data
Coordinate data transfer
Read status byte, status of the peripheral
device and current clock data
0
0
Set clock (settings in bytes 1 to 7)
1
0
Initialize serial interface
9
0
0
0
Set the XON/XOFF parameters
9
0
2
0
Select Print mode
9
0
7
0
Select Transparent mode
9
0
7
1
Select Interpretive mode
9
0
7
2
Select 3964(R) Mode
9
0
7
3
Select 3964(R) Mode
Follow-Up Request
9
0
7
A
Correction value for integral clock positive
9
0
9
0
Correction value for integral clock negative
9
0
9
1
Read status byte and coordination info
A
0
0
0
Send message frame
A
0
0
1
Receive message frame
A
0
8
0
0
4
3
2
1
0
0
Day of the week
setting
A-9
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
a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Fixed-Length Message Frame"
(CPU to CP)
Byte
Meaning
Byte
no 2nd end-of-text character
Byte
Value Range
0
Job number for "Coordinate data transfer"
A0H
1
"Send message frame" identifier
01H
Send length in bytes
0001H to 0100H
Not significant
00H to FFH
”Send frame with end-of-text character” ( 7.6.2)
Table A-10. Transfer Memory Assignments for "Send Message Frame with
End-of-Text Characters" (CPU to CP)
Meaning
Value Range
0
Job number for ”Coordinate data transfer"
A0H
1
"Send message frame" identifier
01H
Send length in bytes
0000H
2nd end-of-text character
01H to FFH
00H
1st end-of-text character
01H to FFH
Not significant
00H to FFH
"Receive message frame" ( 7.7)
Table A-11. Transfer Memory Assignments for "Receive Message Frame" (CPU to CP)
Meaning
Value Range
0
Job number for ”Coordinate data transfer"
A0H
1
"Receive message frame" identifier
80H
Not significant
00H to FFH
EWA 4NEB 811 6044-02a
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaa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a
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
CP 523
A.6
*
Summary
Feedback Information in Communications Modes 1 and 2
Table A-12. Coordination Information for "Coordinate Data Transfer" (CP to CPU) ( 7.4)
Byte
Meaning
2+3
Message frame length in bytes*
4+5
Not significant
Byte
0
Status byte
1
Status of the peripheral device
Bits 4 to 7:
EWA 4NEB 811 6044-02a
Possible Values
0
Status byte
5XH
1
Permission to send and receive
CPU can neither send nor receive
CPU can send
CPU can receive
CPU can send and receive
00H
01H
80H
81H
0000H to 0100H
0000H
6
Number of message blocks of the next message frame in the
Receive mailbox
00H to 20H
7
Number of message frames in the Receive mailbox*
00H to 64H
Only after "Receive message frames" request A080H
Table A-13. Status Information and Current Clock Data (CP to CPU)
Meaning
Possible Values
7.4
Peripheral device ready
Peripheral device not ready
24 h clock
12h clock a.m.
12h clock p.m.
0XBCD
1XBCD
Bits 0 to 3:
Current day of the week
1=Sunday, 2=Monday, 3=Tuesday, 4=Wednesday
5=Thursday, 6=Friday, 7=Saturday
X1BCD to X7BCD
2
Current day
01BCD to 31BCD
3
Current month
01BCD to 12BCD
4
Current year
00BCD to 99BCD
5
Current hour
00BCD to 23BCD
01BCD to 12BCD
81BCD to 92BCD
6
Current minute
00BCD to 59BCD
7
Current second
00BCD to 59BCD
A-11
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aa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aa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
Summary
*
A-12
CP 523
Table A-14. Status Byte in Communications Mode (CP to CPU) ( 7.4)
Byte 0
Bits 4 to 7 Bits 0 to 3
Status
0
0
No error
X
1
No memory submodule
X
3
Entries in job buffer (for parameter setting requests only)
X
7
No battery backup
X
8
Job buffer full (for parameter setting requests only)
0
F
CP restart in progress
1
X
Clock defective
2
X
Default time of day set
3
X
Time of day/date error
4
X
Illegal job request
8
X
Hardware fault
Coordination information (only after "Coordinate data transfer" request)
5
9*
Character delay time exceeded
5
A*
Parity error
5
B*
Receive after XOFF or receive after DTR = 0
5
C*
Message frame exceeds 256 bytes
5
D
Permanent break in peripheral device cable
5
E*
Receive mailbox overflow
X= signal state not significant for other half-byte
These errors are not flagged until a "coordinate data transfer" request to receive data has been serviced for this
message frame.
EWA 4NEB 811 6044-02a
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaa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aaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
CP 523
A.7
2
3-7
3-5
6
7
Summary
Feedback Information in Communications Mode 3
Table A-15. Status Info from the CP 523 for Job Number ”A000H”
Byte
Description
Coordination byte 'send' (CBS)
Byte
Description
Byte
Description
0
Status byte
1
Coordination byte 'receive' (CBR)
2+3
Message frame length in bytes
4+5
Not significant
EWA 4NEB 811 6044-02a
Possible
Values
0
Status byte
50H
1
Permission to send and receive
CPU can neither send nor receive
CPU can send
CPU can receive
CPU can send and receive
00H
01H
80H
81H
Table A-18.
Not significant
Table A-16. Status Info for Send Request ”A001H”
Possible
Values
0
Status byte
50H
1
Send request accepted
Send request rejected
01H
00H
2
Coordination byte 'send' (CBS)
Table A-18.
Not significant
6
Number of message blocks in message frame
00H to 20H
7
Number of message frames in Receive mailbox
00H to 64H
Table A-17. Status Info for Receive Request ”A080H”
Possible
Values
50H
Table A-19.
0000H to 0100H
Number of message blocks in the Receive
message frame
00H to 20H
Number of message frames in the Receive mailbox
00H to 64H
A-13
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aa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aaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
Summary
7
0
1
0
1
*
A-14
6
CP 523
Table A-18. Return Info and Error Flags in the Coordination Byte 'Send' (CBS) in 3964(R) Mode
5
Bit
4 3
XXH*
XXH*
XXH*
2
1
0
Description
Response
Return info for job request A000H
Send buffer free
Send buffer not free
Return info for job request A001H
The info returned in the CBS following issue of Send
request A000H depends on the value in byte 1. If byte
1 is 00H, 0 in bit 7 of the CBS means that either a
parameter error was detected or that the Send
buffer is free but the current Send request cannot be
serviced because a Send request was issued following
transfer of a message frame which was not preceded
by a 'Check module status' request.
If bit 7 in the CBS is ”1”, the Send buffer is reserved
because the preceding Send request is still being
serviced.
If byte 1 is 01H, bit 7 = 1 means that the request was
accepted; the Send buffer is now reserved.
Errors flagged for A000H and A001H
09H
The receiver acknowledged with NAK during
connection cleardown
Receive data invalid
0BH
the receiver acknowledged with NAK during
connection buildup
Receive data invalid
0DH
Parameter error
No data is transmitted
0FH
Transmission aborted by receiver
Receive data invalid
15H
QVZ (time-out) during connection buildup
No data is transmitted
17H
QVZ (time-out) during connection cleardown
Receive data invalid
19H
Initiation conflict, both link partners have high
priority
No data is transmitted
1BH
Break
Transmission is aborted
1DH
Initiation conflict, both link partners have low
priority
No data is transmitted
00H
No errors
see error message
EWA 4NEB 811 6044-02a
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
7
1
0
*
6
5
Bit
4 3
2
XXH*
03H
EWA 4NEB 811 6044-02a
1
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaa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aaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
CP 523
Summary
Table A-19. Return Info and Error Flags in the Coordination Byte 'Receive' (CBR) in 3964(R) Mode
0
Description
Parity error
Response
Return info for job request A080H
Request accepted
No frame to fetch
Error flagged for A080H
Data is rejected
05H
Message frame length 0
07H
Receive buffer full
Data is rejected
09H
Too many message frames received
Buffer full, subsequent message frames
will be rejected
0BH
Message frame too long (256 bytes)
Data is rejected
0DH
DLE not doubled or no ETX after DLE
Data is rejected
11H
STX error, handshaking not started
with STX
Data is rejected
13H
Character delay time exceeded
Data is rejected
15H
Message frame delay time exceeded
Data is rejected
17H
Checksum error
Data is rejected
1BH
Break
Data is rejected
00H
No errors
see error message
A-15
0:
1:
2:
3:
4:
3
3
3
3
3
0
Baud
Rate
Parity
Data
Format
Character
Delay Time
3
3
3
3
2
3
2
3
3
0
0
0
Transparent Mode
3
3
3
3
2
2
2
3
3
0
0
0
3964(R)
Mode
Cannot be initialized
Parameters do not affect one another
Is not supported
Parameters not interdependent
ZVZ and baud rate must be in reasonable
relation to one another. Recommendation:
ZVZ 2x (no. of bits in character frame) x1000
baud rate
2
3
BUSY
3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a
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
1
1
1
1
5
2
3
0
3
3
3
3
TTY
5:
6:
7:
8:
9:
1
1
1
1
7
6
3
3
2
2
3
3
XON/
XOFF
1
1
1
1
9
7
5
5
2
2
2
3
BUSY
4
1
1
1
1
1
1
1
3
3
3
3
Baud
Rate
1
8
1
1
1
1
1
1
3
3
3
3
Parity
1
8
1
1
1
1
1
1
3
3
3
3
Data
Format
In Print mode only
HW handshake has priority
XON/XOFF has priority
Data format has priority
BUSY signal and HW handshake are mode-dependent
1
1
1
1
9
6
2
3
2
3
3
2
HW Handshake
1
1
4
1
1
1
1
1
3
3
3
0
Character
Delay Time
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
1
2
3
4
5
6
7
8
A
B
System Overview
Technical Description
Hardware Installation
Notes on Operation
Address Assignment
Print Mode
Communications Mode
Using the ”SEND” and ”RECEIVE” Function Block
Summary
Siemens Addresses Worldwide
EWA 4NEB 811 6044-02a
CP 523
B
SIEMENS Addresses Worldwide
SIEMENS Addresses Worldwide
European Companies and Representatives
Austria
Siemens AG Österreich
Vienna
Bregenz
Graz
Innsbruck
Klagenfurt
Linz
Salzburg
Federal Republic
of Germany (continued)
Hanover
Cologne
Mannheim
Munich
Nuremberg
Saarbrücken
Stuttgart
Belgium
Siemens S.A.
Brussels
Liège
Siemens N.V.
Brussels
Antwerp
Gent
Finland
Siemens Osakeyhtiö
Helsinki
Bulgaria
RUEN office of the
INTERPRED corporation,
agency of the
Siemens AG Sofia
Sofia
Czechoslovakia
EFEKTIM
Engineering Consultants,
Siemens AG
Prague
Denmark
Siemens A/S
Copenhagen, Ballerup
Hojbjerg
Federal Republic
of Germany
Branch offices of the
Siemens AG
Berlin (West)
Bremen
Dortmund
Düsseldorf
Essen
Frankfurt/Main
Hamburg
EWA 4NEB 811 6044-02a
France
Siemens S.A.
Paris, Saint-Denis
Lyon, Caluire-et-Cuire
Marseilles
Metz
Seclin (Lille)
Strasbourg
Great Britain
Siemens Ltd.
London, Sunbury-onThames
Birmingham
Bristol, Clevedon
Congleton
Edinburgh
Glasgow
Leeds
Liverpool
Newcastle
Greece
Siemens A.E.
Athens
Thessaloniki
Hungary
SICONTACT GmbH
Budapest
Iceland
Smith & Norland H/F
Reykjavik
Ireland
Siemens Ltd.
Dublin
Italy
Siemens S. p. A.
Milan
Bari
Bologna
Brescia
Casoria
Florence
Genoa
Macomer
Padua
Rome
Turin
Luxemburg
Siemens S.A.
Luxembourg
Malta
J.R. Darmanin & Co., Ltd.
Valletta
Netherlands
Siemens Nederland N.V.
The Hague
Norway
Siemens A/S
Oslo
Bergen
Stavanger
Trondheim
Poland
PHZ Transactor S.A.
Warsaw
Gda sk-Letnica
Katowice
Portugal
Siemens S.R.A.L.
Lisbon
Faro
Leiria
Porto
B-1
SIEMENS Addresses Worldwide
Romania
Siemens birou de
consulta ii tehnice
Bukarest
Spain
Siemens S.A.
Madrid
Sweden
Siemens AB
Stockholm
Eskilstuna
Göteborg
Jönköping
Luleå
Malmö
Sundsvall
CP 523
Switzerland
Siemens-Albis AG
Zürich
Bern
Siemens-Albis S.A.
Lausanne, Renens
Turkey
ETMA
Istanbul
Adana
Ankara
Bursa
Izmir
Samsun
USSR
Siemens AG Agency
Moscow
Yugoslavia
General Export
OOUR Zastupstvo
Belgrade
Ljubljana
Rijeka
Sarajewo
Skopje
Zagreb
Non-European Companies and Representatives
Africa
Algeria
Siemens Bureau
Alger
Algier
Angola
Tecnidata
Luanda
Burundi
SOGECOM
Bujumbara
Egypt
Siemens Resident
Engineers
Cairo-Mohandessin
Alexandria
Centech
Zamalek-Cairo
Ethiopia
Addis Electrical
Engineering Ltd.
Addis Abeba
B-2
Ivory Coast
Siemens AG
Succursale Côte d'Ivoire
Abidjan
Namibia
Siemens Resident
Engineer
Windhoek
Kenya
Achelis (Kenya) Ltd.
Nairobi
Nigeria
Electro Technologies
Nigeria Ltd. (Eltec)
Lagos
Libya
Siemens AG
Branch Office Libya
Tripoli
Mauritius
Rey & Lenferna Ltd.
Port Louis
Morocco
SETEL
Société Electrotechnique
et de Télécommunications S.A.
Casablanca
Mozambique
Siemens Resident
Engineer
Maputo
Rwanda
Etablissement Rwandais
Kigali
Simbabwe
Electro Technologies
Corporation (Pvt.) Ltd.
Harare
South Africa
Siemens Ltd.
Johannesburg
Cape Town
Durban
Middleburg
Newcastle
Port Elizabeth
Pretoria
EWA 4NEB 811 6044-02a
CP 523
Sudan
National Electrical &
Commercial Company
(NECC)
Khartoum
Swaziland
Siemens (Pty.) Ltd.
Mbabane
Tanzania
Tanzania Electrical
Services Ltd.
Dar-es-Salaam
Tunesia
Sitelec S.A.
Tunis
Zaire
SOFAMATEL S.P.R.L.
Kinshasa
Zambia
Electrical Maintenance
Lusaka Ltd.
Lusaka
Mining projects:
General Mining
Industries Ltd.
Kitwe
SIEMENS Addresses Worldwide
Brazil
Siemens S.A.
São Paulo
Belém
Belo Horizonte
Brasília
Campinas
Curitiba
Florianópolis
Fortaleza
Porto Alegre
Recife
Rio de Janeiro
Salvador de Bahía
Vitoria
Canada
Siemens Electric Ltd.
Montreal, Québec
Toronto, Ontario
Chile
INGELSAC
Santiago de Chile
Colombia
Siemens S.A.
Bogotá
Baranquilla
Cali
Medellín
Costa Rica
Siemens S.A.
San José
America
Argentina
Siemens S.A.
Buenos Aires
Bahía Blanca
Córdoba
Mendoza
Rosario
Bolivia
Sociedad Comercial e
Industrial Hansa Ltd.
La Paz
EWA 4NEB 811 6044-02a
Ecuador
Siemens S.A.
Quito
OTESA
Guayaquil
Quito
Honduras
Representaciones Electroindustriales S. de R.L.
Tegucigalpa
Mexico
Siemens S.A.
México, D.F.
Culiacán
Gómez Palacio
Guadalajara
León
Monterrey
Puebla
Nicaragua
Siemens S.A.
Managua
Paraguay
Rieder & Cia., S.A.C.I.
Asunción
Peru
Siemsa
Lima
Uruguay
Conatel S.A.
Montevideo
Venezuela
Siemens S.A.
Caracas
Valencia
United States
of America
Siemens Energy &
Automation Inc.
Roswell, Georgia
El Salvador
Siemens S.A.
San Salvador
Guatemala
Siemens S.A.
Ciudad de Guatemala
B-3
SIEMENS Addresses Worldwide
Asia
Bahrain
Transitec Gulf
Manama
or
Siemens Resident Engineer
Abu Dhabi
Bangladesh
Siemens Bangladesh Ltd.
Dhaka
Hong Kong
Jebsen & Co., Ltd.
Hong Kong
India
Siemens India Ltd.
Bombay
Ahmedabad
Bangalore
Calcutta
Madras
New Dehli
Secundarabad
Indonesia
P.T.Siemens Indonesia
Jakarta
P.T. Dian-Graha Elektrika
Jakarta
Bandung
Medan
Surabaya
Iran
Siemens Sherkate
Sahami Khass
Teheran
Iraq
Samhiry Bros. Co. (W.L.L.)
Baghdad
or
Siemens AG (Iraq Branch)
Baghdad
Japan
Siemens K.K.
Tokyo
B-4
CP 523
Jordan
Siemens AG (Jordan
Branch)
Amman
or
A.R. Kevorkian Co.
Amman
Korea (Republic)
Siemens Electrical
Engineering Co., Ltd.
Seoul
Pusan
Kuwait
National & German
Electrical and Electronic
Service Co. (INGEECO)
Kuwait, Arabia
Lebanon
Ets. F.A. Kettaneh S.A.
Beirut
Malaysia
Siemens AG
Malaysian Branch
Kuala Lumpur
Oman
Waleed Associates
Muscat
or
Siemens Resident Engineers
Dubai
Pakistan
Siemens Pakistan
Engineering Co., Ltd.
Karachi
Islamabad
Lahore
Peshawer
Quetta
Rawalpindi
People's Republic of China
Siemens Representative Office
Beijing
Guangzhou
Shanghai
Philippine Islands
Maschinen & Technik Inc.
(MATEC)
Manila
Qatar
Trags Electrical Engineering
and
Air Conditioning Co.
Doha
or
Siemens Resident Engineer
Abu Dhabi
Saudi Arabia
Arabia Electric Ltd.
(Equipment)
Jeddah
Damman
Riyadh
Sri Lanka
Dimo Limited
Colombo
Syria
Siemens AG
(Damascus Branch)
Damascus
Taiwan
Siemens Liaison Office
Taipei
TAI Engineering Co., Ltd.
Taipei
Thailand
B. Grimm & Co., R.O.P.
Bangkok
United Arab Emirates
Electro Mechanical Co.
Abu Dhabi
or
Siemens Resident Engineer
Abu Dhabi
Scientechnic
Dubai
or
Siemens Resident Engineer
Dubai
EWA 4NEB 811 6044-02a
CP 523
SIEMENS Addresses Worldwide
Asia (continued)
Yemen (Arab Republic)
Tihama Tractors &
Engineering Co.o., Ltd.
Sanaa
or
Siemens Resident Engineer
Sanaa
Australasia
Australia
Siemens Ltd.
Melbourne
Brisbane
Perth
Sydney
New Zealand
Siemens Liaison Office
Auckland
EWA 4NEB 811 6044-02a
B-5
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
1
2
3
4
5
6
7
8
A
B
System Overview
Technical Description
Hardware Installation
Notes on Operation
Address Assignment
Print Mode
Communications Mode
Using the ”SEND” and ”RECEIVE” Function Blocks
Appendix
Siemens Worldwide
Index
EWA 4NEB 811 6044-02a
CP 523
Index
Index
A
Accuracy of the real-time clock
Addressing
2-11
2-3
ASCII character
- message text
6-16
B
Battery backup
Baud rate
7-45
6-6, 7-4, 7-14
Block check character
Buffering
- clock data
7-1
BUSY
BUSY signal
Byte 1
Configuration data
- for entering message texts
- for message text printout
2-10, 6-7
6-3
6-3, 6-8
Configuring
- message texts on the memory
submodule
6-1
Configuring footers
Configuring headers
Connecting cable to the peripheral
6-10
6-10
6-41
2-11
device
- plug in
- unplug
3-3
3-3
2-6
6-6
7-54
Continuous printout
Control commands
Control parameters
6-10
2-1
6-16
- spaceholders
- transfer
Control signals
6-20
6-18
2-8
Correction value
- integral clock
CPU 944
2-11
6-3, 6-13
C
Cable length
- permissible
Cannon subminiature D connector
Central controller
3-7
3-5
3-1, 3-2
Character conversion table
- configuring
Character delay time exceeded
6-3, 6-12
6-11
7-48
D
- 10-bit
- 11-bit
Character frame
- 10-bit
6-6
2-5, 6-6
Data bit
Data format
2-5, 6-6
- 10-bit character frame
- 11-bit
Character time-out
Clock
2-5, 6-6
7-48
- 11-bit character frame
- for variables
Data transfer
- accuracy
- integral
- setting
2-11
2-11
6-45
Date
Clock data
- battery backup
- read
2-11
6-37
Clock test
Communications mode
- 3964(R)
4-3
1-2, 2-2, 2-3
2-7, 7-1, 7-21
E
EEPROM
2-3
- faults
- illegal job requests
- interpretive
4-5
7-59
2-7, 7-1, 7-8, 7-17
Entering message texts
- parameter setting data
EPROM
6-7
6-3
2-3
- permissible job requests
- transparent
Configuration
7-58
2-7, 7-1, 7-8, 7-17
Error
Error flag
Error number
4-1, 4-2
4-1
4-1, 4-2, 4-3
6-14
Execution times
Expansion unit
8-37
3-1, 3-2
- CP 523
EWA 4NEB 811 6044-02a
- transfer memory
- insertion
- setting
- spaceholder
Default time
Default values
5-3, 5-4
2-6
2-5, 6-6, 6-27,
6-28, 6-29, 7-11
2-5, 7-14
2-5, 7-14
6-26
2-1, 2-9, 7-1
2-1, 6-1, 6-18
6-45
6-19
7-45
6-4, 7-3
1
Index
CP 523
F
M
FB 200 ”SEND”
- parameter setting
8-10
8-3
FB 201 ”RECEIVE”
- parameter setting
Feedback
8-21
A-5, A-13
- CP 523
Form feed
- execute
7-43, 7-44
6-46
6-40
- plug in
- unplug
Message buffer
3-3
3-3
6-30, 6-32
Function block
- ”RECEIVE”
- ”SEND”
8-1
8-1
- clear
Message frame
- receive
6-40, 6-47
2-2
7-51, 7-72, 7-76
Function character
Function mode
- change
6-7
- set
Functioning of the module
6-3
4-1
6-2
Mark
Memory submodule
6-6
2-1, 2-10, 2-12
- evaluation
- initializing
- parameter setting
4-2
7-16
7-17
- receive with end-of-text
character
- receive with length evaluation
7-78
7-76
- receive with 3964(R) protocol
- send
- send with end-of-text
7-70, 7-82
7-50, 7-51, 7-60
2-7, 2-8, 6-5, 7-11,
7-15
character
- send with fixed length
- send with length
7-66, 8-3
8-3
I/O area
3-4, 5-1
specification
- send with 3964(R) protocol
- structure
7-64
7-70
7-63, 7-75
I/O device
Illegal jobs in print mode
Initializing
- FB 201 ”RECEIVE”
1-2
6-40
- memory submodule
Initiation conflict
Installing
7-16
7-6
3-3
- ASCII character
- configured on the memory
submodule
6-41
Integral clock
- correction value
Interface
2-11
6-3, 6-13
6-6, 7-11, 7-14
- configuring
- inserting
- number
6-15
6-18
6-16
2-2
2-2, 2-5
2-2
- output
- printout
6-1, 6-43
6-38, 6-39, 6-40,
6-41
H
Handshake
I
- RS-232-C (V.24)
- serial
- TTY
Interpretive mode
8-21
- illegal
- in Print mode
- processing
- execute
2
6-16
- with spaceholders
- without spaceholders
Message text printout
6-19
6-17
6-31
6-40, A-3, A-11
A-3, A-11
- parameter setting data
Method of transmission
Mode
6-3
2-6, 2-7
1-1
- 3964(R)
- Communications
- Print
7-21
1-2, 2-2
1-1, 2-1
6-40, 7-16
6-38, A-3
6-30
L
Line feed
7-75
7-61
7-49
2-1, 6-1
7-18
J
Job buffer
Job request
- in Communications mode
- transfer
Message frame length
- greater 256 bytes
Message text
6-46
- setting
Modem
Modify DB
6-3
3-12
6-4
6-40
EWA 4NEB 811 6044-02a
CP 523
Module
- functioning
- plug in
- status
- unplug
Index
4-1
3-3
6-30, 6-34, 6-35
3-3
Processing
- job requests
Protocol
6-30
- 3964
- 3964R
Protocol error
7-2
7-2
7-7
O
Operating modes
- change
Output
- message text
Overflow
- Receive mailbox
R
6-2
Reading clock data
6-37
7-47, 7-51
6-1, 6-43
Reading coordination information
Real-time clock
- integral
Receive
- buffer
- fixed-length message frame
8-21
6-2
7-38, 7-76
7-49
P
Page format
Parameter block
6-9
6-3, 6-5, 7-3, 7-4,
7-9
- mailbox
- message frame with
end-of-text character
- entering
Parameter setting
- CP 523
6-4, 7-10
A-1, A-7
6-1, 6-3, 7-7, 7-10,
- message frame with 3964(R)
protocol
- mailbox, overflow
- FB 201 ”RECEIVE”
- FB 200 ”SEND”
7-23
8-21
8-3
- program
Restart procedure
RS-232-C (V.24) interface
2-3
2-2
7-78
7-82
7-49
8-1
4-1, 4-5
2-2
- memory submodule
- serial interface
Parameter setting data
- transfer
7-16, 7-17
6-3, 6-5
2-3, 2-5, 6-1, 7-9
6-40, 6-48, 7-23,
Parity
- bit
7-25, 7-38
6-6, 7-11, 7-14
2-5, 6-6
- mailbox
- message frame with
end-of-text character
- error
Peripheral device
- connecting cable
7-48
2-2
3-3
- message frame with length
specification
- message frame with 3964(R)
7-64
Permanent wire break
Pin assignments
- RS-232-C (V.24)
7-49
protocol
- message frame of specific size
- program
7-70
8-3
8-1
- subminiature D connector
- TTY
- TTY active
3-8
S
Send
- buffer
6-2
2-2
7-66, 8-3
3-6
3-8, 3-10
3-10, 3-11
Separator
Serial interface
- parameter setting
6-15, 6-16
2-2, 2-5
6-3, 6-5
- TTY passive
- V.24
Point-to-point connection
3-8, 3-10, 3-11
3-9
7-1
Setting
- CP 523
- CP 523 parameters
6-45
7-7
7-10
Print mode
- illegal job requests
- interruptions
1-1, 2-1, 2-3
6-40
4-4
- job requests
Printing configured message texts
Printing messages
6-38
6-47
6-40
EWA 4NEB 811 6044-02a
- page number
- parameters on the memory
submodule
- time of day
Space
6-40, 6-45
7-17
6-39
6-6
3
Index
Spaceholder
- for control parameters
- for date
- entering
- inserting
- for message texts
CP 523
6-7, 6-16, 6-18
6-20
6-19
X
6-42
6-17
6-19
XON / XOFF character
XON / XOFF protocol
- for time of day
- for variables
Start address
6-19
6-26
5-1, 5-2
Start bit
Status byte
- structure
2-5, 2-6
7-29, 7-44, 7-52
8-4, 8-22
Status byte (byte 0)
Stop bit
Subminiature D connector
7-44
2-5, 2-6
- pin assignments
Subrack
Switch bank
3-5, 3-6
3-1
3-4, 5-1
XOFF
- receive
7-48
7-15
2-6, 2-7, 6-7, 7-11,
7-15
T
Time
- setting
Time of day
- inserting
6-45
2-1
2-1, 6-1, 6-18
- set
- spaceholder
Transfer memory
6-39, 6-45
6-19
5-1, 5-3, 6-31,
7-24, 7-25, 7-27,
- CPU 944
Transfer parameter setting data
7-28, 7-38, 7-40
5-3, 5-4
7-38
Transmission mode
Transparent mode
TTY interface
2-6, 2-7
7-17
2-2
U
Unplugging
3-3
V
V.24 interface (RS232C)
2-2
Variable
- inserting
- spaceholder
2-1
6-1, 6-18
6-26
W
Waiting times
4
6-7
EWA 4NEB 811 6044-02a
Siemens AG
AUT E1114B
Postfach 1963
Werner-von-Siemens-Str. 50
From ( please fill in )
Name
Company/Department
D-92209 Amberg
Fed. Rep. of Germany
Suggestions:
Corrections:
Address
Telephone
CP 523 Manual Release 3 (6ES5 998-0DD21)
Have you discovered any printing errors in this manual? If so, please list them on the
preprinted form.
We would also appreciate any suggestions for improvement.
EWA 4NEB 811 6044-02a