Siemens KS7 Series Specifications

Browse online or download Specifications for Unknown Siemens KS7 Series. Siemens KS7 Series Specifications User Manual

  • Download
  • Add to my manuals
  • Print
  • Page
    / 257
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews

Summary of Contents

Page 1 - Serial I/O Module

SIMATIC S5CP 523Serial I/O ModuleManualOrder No. 6ES5 998-0DD21EWA 4NEB 811 6044-02a

Page 2 - Second Printing, march 1991

Figures1-1. S5-115U Programmable Controller with CP 523 and Printer . . . . . . . . . . . . . 1 - 11-2. S5-115U Programmable Controller with CP 523 a

Page 3

CP 523 Print Mode6.7.2 Setting the Time and Date (Job Number 10H)Specify:• The new settings in bytes 1 to 7• Job number 10H in byte 0In each case, y

Page 4 - CP 523 Preface

Print Mode CP 5236.7.4 Form Feed (Job Number "5000H")When prompted by the CPU, the CP 523 instructs the printer to execute a form feed. A

Page 5 - Introduction

CP 523 Print Mode6.7.6 Clearing the Message Buffer (Job Number "7000H")When prompted by the CPU, the CP 523 cancels all CPU requests store

Page 6 - Conventions

Print Mode CP 523STL FB 10 Explanation::L FW 228:L FW 128:! = F:BEC:L FW 128:T FW 228:L FY 128:T PY 128:L FY 129:T PY 129:BELoad old valueLoad new v

Page 7 - Reference Literature

8 Using the ”SEND” and ”RECEIVE” Function Blocks7 Communications Mode7.1 General . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Page 8

Figures7-1. Example of an 11-Bit Character Frame . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7- 27-2. Error-Free Data Interchang

Page 9

Tables7-14. Transfer Memory Assignments for ”Transfer Initialization Datafor Parameter Block 7” . . . . . . . . . . . . . . . . . . . . . . . . . . .

Page 10 - EWA 4NEB 811 6044-02a

CP 523 Communications Mode7 Communications ModeIn Communications mode, the CP 523 permits transfer of a frame of up to 256 bytes between theCPU and

Page 11 - System Overview

Communications Mode CP 5237.1.1 3964 and 3964R Protocols (relevant in 3964(R) mode only)Protocol dataThe 3964 and 3964R protocols control the flow o

Page 12

CP 523 Communications ModeIf the connection can be established, the useful data in the output buffer is transmitted to thepartner in the link at the

Page 13

CP 523System Overview1System OverviewIntelligent inputioutput modules (1/0s) expand the application area of 51 MATIC 55 programmablecontrollers. They

Page 14

Communications Mode CP 523ReceivingWhen no Send request is pending in 3964(R) mode, the CP waits for the link partner to establish aconnection.If th

Page 15 - 2 Technical Description

CP 523 Communications ModeIf transmission errors occur during reception (characters are lost, framing error, parity error), theCP continues receivin

Page 16

Communications Mode CP 523Initiation conflictIf one partner in the link replies to a line bid (STX character) from the other link partner with STXin

Page 17

CP 523 Communications ModeProtocol ErrorsThe protocol can detect errors caused by incorrect behaviour on the part of the link partner anderrors caus

Page 18

Communications Mode CP 5233. Establishing connectionsThe programmable controller must be switched off to carry out the following measures:• Install

Page 19

CP 523 Communications Mode7.3 Setting the CP 523 Parameters in Communications ModeThe CP 523 is supplied with default values for all parameters.• Pa

Page 20 - 2.3.1 Print Mode

Communications Mode CP 5237.3.1 Setting the CP 523 Parameters with the Memory SubmoduleYou can store the parameter setting data on a memory submodul

Page 21 - 2.3.2 Communications Mode

CP 523 Communications ModeTable 7-2. Parameter Block Assignments on the Memory Submodule2Signifi-cantonly inInter-pretivemodeFFFFH(No XON/XOFFprot

Page 22 - ON Mode

Communications Mode CP 523Table 7-2. Parameter Block Assignments on the Memory Submodule (Continued)70DHModePrint modeTransparent modeInterpretive

Page 23

CP 523 Communications ModeTable 7-2. Parameter Block Assignments on the Memory Submodule (Continued)7LowPriorityHigh011No. of send attempts 001D t

Page 24 - 2.4 Memory Submodule

System OverviewCP 523Communications ModeIn “Communications mode”, the CP 523 can communicate over the 1/0 interface with an 1/0 unit(terminal, CP 523

Page 25 - 2.5 Integral Hardware Clock

Communications Mode CP 523Explanation of data transmission parametersBaud rateYou have a choice of eight baud rates. The default is 600 baud. If you

Page 26

CP 523 Communications ModeHardware handshake (HW handshake)This parameter is only significant for the RS-232-C (V.24) interface.If you set HW handsh

Page 27

Communications Mode CP 523Setting ”TRANSPARENT MODE” parameters via the MEMORY SUBMODULEWhen you want to use Transparent mode to tranfer your datas

Page 28

CP 523 Communications ModeExample: Setting parameters on the MEMORY SUBMODULE for ”TRANSPARENT MODE” withthe PG 685Start address 128 is set on the C

Page 29 - 3 Hardware Installation

Communications Mode CP 523Setting parameters for ”INTERPRETIVE MODE” via the MEMORY SUBMODULEWhen you have decided to transmit your data in Interpre

Page 30

CP 523 Communications ModeTable 7-5. Parameter Block Assignments for Interpretive Mode (Continued)70DH0000001H to 00FFH0101H to FFFFHEnd-of-text c

Page 31 - 3.1.2 installing the CP 523

Communications Mode CP 523The following procedure is recommended:1. Enter the parameter setting data on the programmer in DB 1 and include sufficien

Page 32

CP 523 Communications ModeSetting Parameters for ”3964(R) MODE” via the MEMORY SUBMODULEWhen you have decided upon 3964(R) mode, you enter your data

Page 33 - Connections

Communications Mode CP 523Table 7-7. Parameter Block Assignments for 3964(R) Mode (Continued)0 (for memorysubmodule con-figured withmessage texts)1

Page 34

CP 523 Communications ModeThe following procedure is recommended:1. Enter the initialization data in DB 1 using the programmer, and include sufficie

Page 35 - 3.3 Cable Length

3 Hardware Installation4 Notes on Operation5 Address Assignment6 Print Mode7 Communications Mode8 Using the ”SEND” and ”RECEIVE” Function Blocks1 Syst

Page 36 - 3.4 Terminal Diagrams

Communications Mode CP 523Table 7-9. Transfer Memory Assignments for ”Transfer Initialization Data for Parameter Block 0”Default Values on the CP

Page 37 - PT 88CP 523

CP523Communications ModeCP523Communications ModeTable 7-10. Transfer Memory Assignments for “Transfer Parameter Setting Data for Parameter Block 7“—39

Page 38

CP 523 Communications ModeTransferring parameter setting data for parameter block 2(relevant in Interpretive mode only)Table 7-11. Transfer Memory

Page 39 - CPU 944 CP 523

Communications Mode CP 523Setting parameters for ”TRANSPARENT MODE” in the USER PROGRAMTransferring the parameter setting data for parameter block 0

Page 40

CP 523 Communications ModeExample: Transferring parameter setting data for parameter block 0Start address 128 is set on the CP 523.You can set its p

Page 41

Communications Mode CP 523Transferring parameter setting data for parameter block 7Table 7-14. Transfer Memory Assignments for ”Transfer Initializ

Page 42

CP 523 Communications ModeExample: Transferring the parameter setting data for parameter block 7Start address 128 is set on the CP 523. The module i

Page 43 - 4 Notes on Operation

Communications Mode CP 523Setting parameters for INTERPRETIVE MODE in the USER PROGRAMTransferring the parameter setting data for parameter block 0T

Page 44 - Notes on Operation CP 523

CP 523 Communications ModeExample: Transferring parameter setting data for parameter block 0Start address 128 is set on the CP 523.Set CP parameters

Page 45 - 4.1.3 Clock Test

Communications Mode CP 523Transferring parameter setting data for parameter block 2Table 7-16. Transfer Memory Assignments for ”Transfer Parameter

Page 46 - 4.2.1 Print Mode

Figures2-1. Schematic Representation of the CP 523 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2- 12-2. Using the Transfer Memory .

Page 47 - 4.2.2 Communications Mode

CP 523 Communications ModeExample: Transferring parameter setting data for parameter block 2* 5.2** FB 99 waits until the CP 523 can accept jo

Page 48

Communications Mode CP 523Transferring parameter setting data for parameter block 7Table 7-17. Transfer Memory Assignments for ”Transfer Parameter

Page 49

CP 523 Communications ModeExample: Transferring parameter setting data for parameter block 7Start address 128 is set on the CP 523. The module is to

Page 50 - 5 Address Assignment

Communications Mode CP 523Setting parameters for the 3964(R) MODE in the USER PROGRAMTransferring the parameter setting data for parameter block 0Ta

Page 51 - Address Assignment CP 523

CP 523 Communications ModeExample: Transferring parameter setting data for parameter block 0Start address 128 is set on the CP 523.Set CP parameters

Page 52 - CP 523 Address Assignment

Communications Mode CP 523Transfer parameter setting data for parameter block 7Table 7-19. Transfer Memory Assignments for Job Number ”9073H”Possi

Page 53

CP 523 Communications ModeExample: Transferring parameter setting data for parameter block 7Start address 128 is set on the CP 523. Set the paramete

Page 54

Communications Mode CP 523Transfer parameter setting data for parameter block 9Possible ValuesDescriptionByte0 Job number ”Transfer parameter settin

Page 55

CP 523 Communications Mode7.4 CP 523 Feedback InformationThe CP 523 has an eight-byte transfer memory for data exchange with the CPU.The CP 523 read

Page 56 - 6 Print Mode

Communications Mode CP 5237.4.1 Reading the Status Byte, the Status of the Peripheral Device and theCurrent Clock DataAs soon as job request 0000H h

Page 57

CP 523 Technical Description2 Technical Description2.1 Principle of the CP 523The CP 523 handles data transfer with a peripheral device autonomously

Page 58

CP 523 Communications ModeTable 7-23. Status Byte (Byte 0) in Communications Mode Following ”Coordinate Data Transfer”Status Byte 0Bits 4 to 7 Bit

Page 59

Communications Mode CP 523Example: Evaluating the status of the peripheral deviceStart address 128 is set on the module.If the peripheral device is

Page 60

CP 523 Communications Mode7.4.2 Reading Coordination Information after "Coordinate Data Transfer"As soon as the "Coordinate data tran

Page 61

Communications Mode CP 523Table 7-25. Status Byte (Byte 0) in Communications Mode after ”Coordinate Data Transfer”* Signal state irrelevant for t

Page 62

CP 523 Communications ModeMessage frames exceeding 256 bytes (5CH)The peripheral device has sent a message frame that is longer than 256 bytes.The C

Page 63

Communications Mode CP 523Example: Reading coordination information after "Send message frame"Start address 128 is set on the CP 523. A fo

Page 64

CP 523 Communications ModeExample: Reading coordination information after "Receive message frame"Start address 128 is set on the CP 523. I

Page 65

Communications Mode CP 523Special features of ”3964(R) mode”In ”3964 R” mode, you receive different return info after submitting a ”Coordinate data

Page 66

CP 523 Communications ModeTable 7-27. Status Information for Send Request ”A001H”Possible ValuesByte Description0 Status byte 50H1 Send request ac

Page 67

Communications Mode CP 523All information presented in the next three tables (7-29, 7-30, 7-31) is relevant in 3964(R) modeonly.Table 7-29. Return

Page 68 - (Parameter Block 9)

Technical Description CP 523Communications modeIn Communications mode, message frames of up to 256 bytes in length can be transferred bet-ween the C

Page 69

CP 523 Communications ModeTable 7-29. Return Info and Error Flags in the Coordination Byte 'Send' (CBS) in ”3964(R)” Mode (Continued)Error

Page 70 - 6.4 Configuring Message Texts

Communications Mode CP 523Table 7-30. Return Info and Error Flags in the Coordination Byte 'Receive' (CBR)in ”3964(R) Mode”* See error me

Page 71

CP 523 Communications ModeWhen several errors occur simultaneously, the error codes are output in the priority shown below:Table 7-31. Error Prior

Page 72 - 6.4.2 Entering Spaceholders

Communications Mode CP 5237.5 Overview of Permissible Job Requests in Communications ModeData exchange between the CPU and the CP 523 is always init

Page 73

CP 523 Communications ModeIllegal job requests in Communications modeIf you write a job request into word 0 of the transfer memory other than one of

Page 74

Communications Mode CP 5237.6 Sending Message Frames to a Peripheral Device (Job Number A001H)The CPU can forward up to 256 bytes to the CP 523 with

Page 75

CP 523 Communications ModeFigure 7-8. Schematic for "Send Message Frame"START* 5.2NoYesYesNoCPU reads the transfer memory and evaluat

Page 76

Communications Mode CP 523Figure 7-9. Contents of the Transfer Memory for "Send Message Frame"Word 6DataCPU transfers last message block

Page 77

CP 523 Communications ModeMessage frame structureA message frame consists of all the data transferred in response to a Send or Receive request. Inth

Page 78

Communications Mode CP 5237.6.1 Sending Message Frames with the Message Frame Length SpecificationYou specify the message frame length in bytes with

Page 79

CP 523 Technical DescriptionEPROM/EEPROMYou can use EPROM and EEPROM memory submodules of up to 32K bytes. The EPROM/EEPROM isconfigured with the pr

Page 80

CP 523 Communications ModeExample: Sending a message frame with a length of 12 bytesStart address 128 is set on the CP. The message frame is stored

Page 81 - -1,7E38 to -1,4E-37

Communications Mode CP 5237.6.2 Sending Message Frames with End-of-Text Character SpecificationSpecify one or two end-of-text characters with the Se

Page 82

CP 523 Communications ModeFigure 7-11. Flowchart for FB 123 "SEND 3"STARTNoNoNoYesYesYesYesNoPrepare to transfer message blockTransfer w

Page 83

Communications Mode CP 523STL FB 123 Explanation:C DB 2:A F 100.1:JC =M001:LW =BADR:L KF +4:+F:T FW 250:LW =ENZE:DO FW 250:T PW

Page 84

CP 523 Communications ModeSTL FB 123 ExplanationM003 :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

Page 85

Communications Mode CP 5237.6.3 Sending Message Frames with 3964(R) ProtocolIn principle, data transfers between the CPU and the CP 523 are handled

Page 86

CP 523 Communications ModeExample: Sending a 12-byte message frame with 3964(R) protocolBase address 128 is set on the CP. The message frame is in d

Page 87

Communications Mode CP 5237.7 Receiving a Message Frame from a Peripheral Device (A080H)The CPU can receive up to 256 bytes with a single job reques

Page 88

CP 523 Communications ModeFigure 7-13. Schematic for "Receive Message"STARTYesNo* 5.2CPU reads transfer memory and evaluatescoordinat

Page 89

Communications Mode CP 523Figure 7-14. Transfer Memory Assignments for "Receive Message Frame"CPU writes word 0CPU writes word 0 Word 0Dat

Page 90

ITechnical DescriptionCP 5232.2Technical SpecificationsFor environmental, mechanical and electromagnetic conditions see the relevant programmablecontr

Page 91

CP 523 Communications ModeMessage frame structureA message frame is defined as all data transferred after a Send or Receive request. A messageframe

Page 92

Communications Mode CP 5237.7.1 Receiving Message Frames with Evaluation of the Specified MessageFrame LengthYou can receive a fixed-length message

Page 93

CP 523 Communications ModeExample: Receiving a message frame with a length of 12 bytesStart address 128 is set on the module. The message frame is

Page 94

Communications Mode CP 5237.7.2 Receiving Message Frames with Evaluation of the Specified End-of-TextCharactersAfter a Receive request, you can rece

Page 95

CP 523 Communications ModeFigure 7-16. Flowchart for FB 126 "RECEIVE 3"NoNoYesLast word of themessage block?Store word in DBWord=end-of

Page 96 - - Value of the variable

Communications Mode CP 523STL FB 126 Explanation:C DB 3 Open target data block.M001 :A F 101.1 Message frame in DB?:JC =M001 If yes, then B

Page 97

CP 523 Communications ModeSTL FB 126 Explanation :DO FW 232 Store data bytes:T DW 0 in destination DB.:A F 101.2 Block End if:JC =

Page 98

Communications Mode CP 5237.7.3 Receiving Message Frames with 3964(R) ProtocolBasically, data transfers between the CPU and the CP 523 are handled t

Page 99

CP 523 Communications ModeExample: Receiving a 12-byte message frame with 3964(R) protocolBase address 128 is set on the CP. The message frame is t

Page 100 - CP 523 Print Mode

8 Using the ”SEND” and ”RECEIVE” Function Blocks8.1 Using "SEND" FB 200 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Page 101 - Print Mode CP 523

CP 523 Technical Description2.3 Serial Interface CP - Peripheral DeviceThe CP 523 is equipped with an RS-232-C (V.24) interface and a TTY interface.

Page 102

Figures8-1. Structure of the "STAT" Status Byte . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8- 48-2. Schematic for

Page 103

CP 523 Using the ”SEND” and ”Receive” Function Blocks8 Using the "SEND" and "RECEIVE" FunctionBlocksThe "SEND" and &qu

Page 104

Using the ”SEND” and ”Receive” Function Blocks CP 5238.1.1 Calling "SEND" FB 200"SEND" FB 200 can be called in cyclic programs a

Page 105

CP 523 Using the ”SEND” and ”Receive” Function Blocks8.1.2 Setting ”SEND” FB 200 ParametersIf you want to send a message frame of specific size, spe

Page 106

Using the ”SEND” and ”Receive” Function Blocks CP 5238.1.3 Structure of the Status ByteThe status bytes of "SEND" FB 200 and "RECEIVE

Page 107 - 7 Communications Mode

CP 523 Using the ”SEND” and ”Receive” Function Blocks8.1.4 Schematic of the Principle of Operation of ”SEND” FB 200Note:This section is intended mer

Page 108 - Communications Mode CP 523

Using the ”SEND” and ”Receive” Function Blocks CP 5238.1.5 Flowchart of "SEND" FB 200Yes1NoEvaluate RLO and read statusSEGMENT 2STARTNote

Page 109 - CP 523 Communications Mode

CP 523 Using the ”SEND” and ”Receive” Function BlocksNoYesYesYesNoNo1SEGMENT 3 Checking the ”SEND” FB parametersNoQ-DB available?Calculate Q-DB leng

Page 110

Using the ”SEND” and ”Receive” Function Blocks CP 523Calculating the "Number of Send frames"SEGMENT 4NoEvaluate job acknowledgement from C

Page 111

CP 523 Using the ”SEND” and ”Receive” Function BlocksYesYesNoNoNoLast message block?NoNoYesTransferring Send data to the CP 523SEGMENT 7Decrement me

Page 112

Only qualified personnel should install or maintain this equipment after becoming thoroughly familiarwith all warnings, safety notices, and maintenanc

Page 113

Technical Description CP 523Figure 2-4. 11-Bit Character Frame with 8 Data Bits and 2 Stop Bits2nd example:Character frame: 11-bitData format: 8 d

Page 114

Using the ”SEND” and ”Receive” Function Blocks CP 5238.1.6 Flags in "SEND" FB 200Explanation of the flags used by "SEND" FB:Flag

Page 115 - Reader's note

CP 523 Using the ”SEND” and ”Receive” Function Blocks FB 200 LEN=371Segment 1 0000NAME :SENDDES :BADR I/Q/D/B/T/C: D KM/KH/KY/KC/KF/KT/KZ

Page 116

Using the ”SEND” and ”Receive” Function Blocks CP 523 STL FB 200 Explanation003F :AN =RKPL no computer link0040 :JC =NORK0041 :L

Page 117

CP 523 Using the ”SEND” and ”Receive” Function BlocksSTL FB 200 ExplanationSegment 3 006F006F :Check whether Q DB available0070 :LW =

Page 118

Using the ”SEND” and ”Receive” Function Blocks CP 523 STL FB 200 Explanation009F :L KB 12800A0 :>F00A1 :JC =FE03" E R R O

Page 119

CP 523 Using the ”SEND” and ”Receive” Function Blocks STL FB 200 Explanation00CA :00CB :L FW 242Set pointer to base address00CC :D

Page 120

Using the ”SEND” and ”Receive” Function Blocks CP 523 STL FB 200 Explanation00F7 :T FW 24200F8 :00F9 :L KB 0Error in status byte0

Page 121 - Reader's note:

CP 523 Using the ”SEND” and ”Receive” Function Blocks STL FB 200 Explanation 0126 :L =QLAE0127 :L KH 00000129 :>F012A :JC

Page 122

Using the ”SEND” and ”Receive” Function Blocks CP 523 STL FB 200 Explanation 0156 :L FW 242 transferred?0157 :><F0158 :JC =V

Page 123

CP 523 Using the ”SEND” and ”Receive” Function Blocks STL FB 200 Explanations 0185 :T FW 240 and store0186 :0187 :L KB 0Is the me

Page 124

CP 523 Technical Description2.3.2 Communications ModeThe possible methods of transmission depend on the following:• Type of interface (TTY or RS-232

Page 125

Using the ”SEND” and ”Receive” Function Blocks CP 523 STL FB 200 Explanations 01B4 :T PY 0 and forward to CP01B5 :L FW 250 Decrement

Page 126

CP 523 Using the ”SEND” and ”Receive” Function Blocks8.2 Using "RECEIVE" FB 201"RECEIVE" FB 201 transfers message frames from th

Page 127

Using the ”SEND” and ”RECEIVE” Function Blocks CP 5238.2.2 Structure of the Status ByteThe status bytes for "SEND" FB 200 and "RECEI

Page 128

CP 523 Using the ”SEND” and ”RECEIVE” Function BlocksThe FB 201 services the Receive request according to the following schematic:Figure 8-4. Sch

Page 129

Using the ”SEND” and ”RECEIVE” Function Blocks CP 5238.2.4 Flowchart of "RECEIVE" FB 201Yes1Evaluate RLO and read statusSegment 2STARTBuf

Page 130

CP 523 Using the ”SEND” and ”RECEIVE” Function BlocksNoNoNoYesYesYes2Q-DB length >= QANF + QLAECheck the "RECEIVE" FB parametersSegment

Page 131

Using the ”SEND” and ”RECEIVE” Function Blocks CP 523Evaluate job acknowledgement from CP 523NoSegment 5Segment 4YesAcknowledge with error?Establis

Page 132

CP 523 Using the ”SEND” and ”RECEIVE” Function BlocksYesYesNoNoNoYesFetch Receive data from CP 523Segment 6Buffer number of message blocks given ina

Page 133

Using the ”SEND” and ”RECEIVE” Function Blocks CP 5238.2.5 Flags in "RECEIVE" FB 201Explanation of the flags used by "RECEIVE"

Page 134

CP 523 Using the ”SEND” and ”RECEIVE” Function Blocks FB 201 LEN=374Segment 1 0000NAME :EMPFANGDES :BADR I/Q/D/B/T/C: D KM/KH/KY/KC/KF/KT/KZ/K

Page 135

Technical Description CP 523RS-232-C (V.24) interface with handshake ONThe RS-232-C (V.24) interface of the CP 523 can handle the following signals

Page 136

Using the ”SEND” and ”RECEIVE” Function Blocks CP 523 STL FB 201 Explanations 0039 :JC =NEIN003A :Load STAT bit ”Data available” and003B

Page 137

CP 523 Using the ”SEND” and ”RECEIVE” Function Blocks STL FB 201 Explanations 0069 :006A :TAKZANF greater than 255?006B :L KB 25500

Page 138

Using the ”SEND” and ”RECEIVE” Function Blocks CP 523 STL FB 201 Explanations 0092 :DO FW 242 Read byte 1 (acknowledgement or0093 :L P

Page 139

CP 523 Using the ”SEND” and ”RECEIVE” Function Blocks STL FB 201 Explanations 00C0 :00C1 :L FW 242Set pointer to base00C2 :I

Page 140

Using the ”SEND” and ”RECEIVE” Function Blocks CP 523 STL FB 201 Explanations 00EE :DO =Z-DB Open destination DB00EF :00F0 NBLO :JU OB

Page 141

CP 523 Using the ”SEND” and ”RECEIVE” Function Blocks STL FB 201 Explanations 011E :011F :JU =END0120 :0121 KEND :0122 :L FW

Page 142

Using the ”SEND” and ”RECEIVE” Function Blocks CP 523 STL FB 201 Explanations 0150 JUM1 :0151 :L FW 242Last word of the message block0152

Page 143

CP 523 Using the ”SEND” and ”RECEIVE” Function Blocks8.2.6 Execution Times for FB 200 and 201Table 8-5. Execution Times for FB 200 and 201 (in ms)

Page 144

A SummaryA.1 Parameter Setting in Print Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A- 1A.2 Job Requests in Print Mode . . . . .

Page 145

TablesA-1. Parameter Setting Data for Print Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A- 1A-2. Permissible Job Requests to t

Page 146

CP 523 Technical DescriptionData transfer between the CP and peripheral device takes place as follows:The CP 523 sets the "DTR" output aft

Page 147

CP 523 SummaryA SummaryA.1 Parameter Setting in Print ModeTable A-1. Parameter Setting Data for Print Mode ( 6.3)$ (24H)” (22H)ASCII character (0

Page 148

Summary CP 523Table A-1. Parameter Setting Data for Print Mode (Continued)4Date and time of day displayOrder for dateJ,Y = YearM = MonthT,D = DayS

Page 149 - Current Clock Data

CP 523 SummaryA.2 Job Requests in Print ModeTable A-2. Permissible Job Requests to the CP 523 in Print Mode (CPU to CP) ( 6.7) Byte 176543210 Byt

Page 150

Summary CP 523"Print message text" ( 6.7.1)Table A-3. Transferring Additional Information for "Print Message Text" (CPU to CP)

Page 151

CP 523 SummaryA.3 Feedback Information in Print Mode Table A-5. Status of the Module in Print Mode (Byte 0) ( 6.6)X= Signal state not significan

Page 152

Summary CP 523Table A-6. Status of the Printer, Date and Time of DayValue RangeByte Meaning2 01BCD to 31BCDDay3 01BCD to 12BCDMonth4 00BCD to 99BC

Page 153

CP 523 SummaryA.4 Setting Parameters in Communications Mode• Setting parameters via the memory submodule: Enter the data in DB 1 ( 7.3.1)• Setting

Page 154

SummaryCP 5230r.r l“’1—,>.. . .3;0 && ,0,,t,=n—-------4—g=0..,EWA4NEB8116044-02a

Page 155

CP 523 SummaryA.5 Job Requests in Communications Mode Table A-8. Permissible Job Requests to the CP 523 in Communications Mode Byte 176543210 Byte

Page 156

Summary CP 523"Send fixed-length message frame" or send with 3964(R) ( 7.6.1)Table A-9. Transfer Memory Assignments for ”Send Fixed-Lengt

Page 157

Technical Description CP 5232.4 Memory SubmoduleIn Print mode, you require a user submodule, which you must configure with the following data inoff-

Page 158

CP 523 SummaryA.6 Feedback Information in Communications Modes 1 and 2Table A-12. Coordination Information for "Coordinate Data Transfer"

Page 159

Summary CP 523Table A-14. Status Byte in Communications Mode (CP to CPU) ( 7.4)X= signal state not significant for other half-byte* These errors

Page 160

CP 523 SummaryA.7 Feedback Information in Communications Mode 3Table A-15. Status Info from the CP 523 for Job Number ”A000H” PossibleValuesByte

Page 161

Summary CP 523Table A-18. Return Info and Error Flags in the Coordination Byte 'Send' (CBS) in 3964(R) Mode* see error messageThe info r

Page 162

CP 523 SummaryTable A-19. Return Info and Error Flags in the Coordination Byte 'Receive' (CBR) in 3964(R) Mode* see error messageDescrip

Page 163

A.8 Combinations of the Most Important ParametersCharacterDelay TimeDataFormatTTYPrinterMode Interpre-tive ModeTranspa-rent Mode3964(R)ModeV.24(RS2

Page 164

1 System Overview2 Technical Description3 Hardware Installation4 Notes on Operation5 Address Assignment6 Print Mode7 Communications Mode8 Using the ”S

Page 165

CP 523 SIEMENS Addresses WorldwideAustriaSiemens AG ÖsterreichViennaBregenzGrazInnsbruckKlagenfurtLinzSalzburgBelgiumSiemens S.A.BrusselsLiègeSiemen

Page 166

SIEMENS Addresses Worldwide CP 523AfricaAlgeriaSiemens BureauAlgerAlgierAngolaTecnidataLuandaBurundiSOGECOMBujumbaraEgyptSiemens ResidentEngineersCa

Page 167

CP 523 SIEMENS Addresses WorldwideSudanNational Electrical &Commercial Company(NECC)KhartoumSwazilandSiemens (Pty.) Ltd.MbabaneTanzaniaTanzania

Page 168

CP 523 Technical Description2.5 Integral Hardware ClockThe CP incorporates a hardware clock which is backed up by the battery of the PLC power suppl

Page 169

SIEMENS Addresses Worldwide CP 523AsiaBahrainTransitec GulfManamaorSiemens Resident EngineerAbu DhabiBangladeshSiemens Bangladesh Ltd.DhakaHong Kong

Page 170

CP 523 SIEMENS Addresses WorldwideAsia (continued)Yemen (Arab Republic)Tihama Tractors &Engineering Co.o., Ltd.SanaaorSiemens Resident EngineerS

Page 171

Index1 System Overview2 Technical Description3 Hardware Installation4 Notes on Operation5 Address Assignment6 Print Mode7 Communications Mode8 Using

Page 172

CP 523 IndexIndexAAccuracy of the real-time clock 2-11Addressing 2-3ASCII character- message text 6-16BBattery backup 7-45Baud rate 6-6, 7-4, 7-14Bl

Page 173

Index CP 523FFB 200 ”SEND” 8-10- parameter setting 8-3FB 201 ”RECEIVE”- parameter setting 8-21Feedback A-5, A-13- CP 523 7-43, 7-44Form feed 6-46- e

Page 174

CP 523 IndexModule- functioning 4-1- plug in 3-3- status 6-30, 6-34, 6-35- unplug 3-3OOperating modes- change 6-2Output- message text 6-1, 6-43Overf

Page 175

Index CP 523Spaceholder 6-7, 6-16, 6-18- for control parameters 6-20- for date 6-19- entering 6-42- inserting 6-17- for message texts 6-19- for tim

Page 176

Company/DepartmentAddressTelephoneSuggestions: Corrections:CP 523 Manual Release 3 (6ES5 998-0DD21)Siemens AGAUT E1114BPostfach 1963Werner-von-Sie

Page 177

Technical Description CP 5232.6 Accessories List and Ordering DataMemory submodulesMemory submodule (EPROM) 8 Kbytes 6ES5 375-0LA15” ” 16 Kbytes 6E

Page 178 - CP 523 Communications Mode

4 Notes on Operation5 Address Assignment6 Print Mode7 Communications Mode8 Using the ”SEND” and ”RECEIVE” Function Blocks3 Hardware Installation3.1 Me

Page 179

Figures3-1. Installing the CP 523 in the Adapter Casing (6ES5 491-0LB11) . . . . . . . . . . . . 3 - 33-2. Installing the CP 523 in the S5-135U Centr

Page 180

CP 523 Hardware Installation3 Hardware Installation3.1 Mechanical Assembly3.1.1 Compatible Programmable Controllers and Expansion UnitsThe CP 523 ca

Page 181 - Frame Length

12345678 A/BPrefaceIntroductionSystem OverviewHardware InstallationNotes on OperationAddress AssignmentPrint ModeCommunications ModeUsing the Functi

Page 182

Hardware Installation CP 523Note:The 304 and 314 or 307/317 or 301/310 interface modules are required when using the CP 523in an expansion unit.Use

Page 183 - Characters

CP 523Hardware Installation3.1.2 installing the CP 523You must note the following when installing and unplugging the CP 523:. The module may only be

Page 184

1Hardware InstallationUse in the S5-135U/S5-150U and S5-155UThe CP 523 is mounted direct onto the module rack.CP 523Figure 3-2. Installing the CP 523

Page 185

CP 523Hardware Installation3.2WiringThe module has a serial interface port. You can configure either the TTY interface or the RS-232-C(V.24) interface

Page 186

Hardware Installation CP 5233.2.2 Pin Assignments of the 25-Pin D Subminiature ConnectorFigure 3-4. Pin Assignments of the 25-Pin D Subminiature C

Page 187

CP 523 Hardware Installation3.2.3 Pin Assignments of Backplane Connector X1M +5 VUBATT PESPADB 0 RESETADB 1 MEMR ADB 2 MEMW ADB 3 RDY ADB 4 DB 0ADB

Page 188

Hardware Installation CP 523 3.4 Terminal DiagramsThis section contains typical terminal diagrams for connecting the following:• A printer (PT 88)•

Page 189

CP 523 Hardware InstallationRS-232-C (V.24) interfacePrinter setting: Printer not ready to receive = no currentFigure 3-8. Pin Assignment of the R

Page 190

Hardware Installation CP 523 3.4.2 Terminal Diagrams Communications ModeThe CP 523 assumes the following as peripheral device:• Data terminal equip

Page 191

CP 523 Hardware InstallationCPU 944 (TTY active) - CP 523 (TTY passive)Figure 3-11. Pin Assignments for CPU 944 (TTY Active) to CP 523 (TTY Passiv

Page 192

CP 523 PrefacePrefaceThis manual is a revised, updated edition of the original CP 523 manual. The revision was necessarybecause the CP 523 has been

Page 193

Hardware Installation CP 523 Zero modem operation: Connecting two DTEs taking the CP 523 to CP 523 exampleFigure 3-12. Zero Modem Operation Takin

Page 194

5 Address Assignment6 Print Mode7 Communication Mode8 Using the ”SEND” and ”RECEIVE” Function Blocks4 Notes on Operation4.1 Restart Characteristics .

Page 195

Tables4-1. Module Errors/Faults . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4- 14-2. Memory Submod

Page 196

CP 523 Notes on Operation4 Notes on Operation4.1 Restart CharacteristicsThe CP 523 executes a restart routine when the power supply is restored (POW

Page 197

Notes on Operation CP 523During the restart procedure, the CP signals "Module busy" (XFH) in the status byte. The CP cannotaccept any jobs

Page 198

CP 523 Notes on Operation4.1.3 Clock TestThe module's real-time clock is tested. The clock is set when the battery back-up fails during PLCPOWE

Page 199

Notes on Operation CP 5234.2.1 Print ModeOperation in Print mode may be interrupted for various reasons. The following table lists theeffects of fau

Page 200

CP 523 Notes on Operation4.2.2 Communications ModeOperation may be interrupted for various reasons in Communications mode. The following tablelists

Page 201

6 Print Mode7 Communications Mode8 Using the ”SEND” and ”RECEIVE” Function Blocks1 System Overview2 Technical Description3 Hardware Installation4 Note

Page 202

Figures5-1. Address Switch Locations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5- 15-2. Using the Transf

Page 203

CP 523 IntroductionIntroductionIt is important to study the introduction carefully before reading the rest of the manual. This willhelp you to use t

Page 204

CP 523 Address Assignment5 Address AssignmentThis section describes• how to set the module address ( 5.1)• when the CP accepts data from the CPU (

Page 205

Address Assignment CP 523Table 5-1. Switch Settings on Switch Bank S1 for Defining the Start AddressSwitch setting Switch bank S112345081624324048

Page 206

CP 523 Address Assignment5.2 Access to the Transfer MemoryThe CPU can write data to the transfer memory at any time.After the CPU has written the re

Page 207

Address Assignment CP 523Example: Writing to word 0 of the transfer memory with the CPU 944 in the user programInitial address 128 is set in the P a

Page 208

7 Communications Mode8 Using the ”SEND” and ”RECEIVE” Function Block6 Print Mode6.1 General . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Page 209

Figures6-1. Schematic for Entering Parameter Blocks in DB 1 . . . . . . . . . . . . . . . . . . . . . . . 6 - 46-2. Schematic for Entering Headers and

Page 210

CP 523 Print Mode6 Print Mode6.1 GeneralThe CP 523 enables the output of message texts to a printer in Print mode:• Output of message texts defined

Page 211

Print Mode CP 5233. Configuring message textsYou must configure at least one message text in one of the DBs 2 to 255 on the memory sub-module.Note:I

Page 212

CP 523 Print Mode6.3 Setting the CP 523 Parameters in Print ModeThe CP 523 can only be operated in Print mode if an initialized memory submodule has

Page 213

Print Mode CP 523Dividing the parameters into ten parameter blocks enables you to initialize only the parameterblock you want to modify. However, th

Page 214

Introduction CP 523ConventionsIn order to improve the readability of the manual, a menu-style breakdown has been used, i.e.:• The individual chapter

Page 215

CP 523 Print Mode6.3.1 Setting the Serial Interface Parameters (Parameter Blocks 0, 1 and 2)Store the data for the serial interface in parameter blo

Page 216

Print Mode CP 523Baud rateYou 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

Page 217 - Segment 6

CP 523 Print ModeParameters for waiting timesThese parameters are only significant if you are not using an XON/XOFF protocol in Print modeand if you

Page 218

Print Mode CP 5236.3.3 Configuration Data for Message Text Printout (Parameter Blocks 4 to 6)If you enter an illegal value, the CP will replace it w

Page 219

CP 523 Print ModePage formatThe page format is defined by the information given in parameter blocks 5 and 6.Table 6-5. Page Format1...

Page 220

Print Mode CP 523Configuring headers and footersYou can configure up to two headers and two footers.The headers and footers may contain spaceholders

Page 221

CP 523 Print Mode6.3.4 Configuring the Character Conversion Table (Parameter Block 8)Up to sixteen ASCII characters from the printer character set c

Page 222

Print Mode CP 523Example: Configuring the character conversion table for the PT 88/89The printer is initialized for the international character set.

Page 223

CP 523 Print Mode6.3.5 Configuring the Correction Value for the Integral Clock(Parameter Block 9)You can configure a correction value to increase th

Page 224

Print Mode CP 5236.3.6 Example for Configuring the CP 523 in Print ModeStart address 128 is set on the CP 523. Configure the CP as follows:• Paramet

Page 225

CP 523 IntroductionCoursesSiemens provide SIMATIC S5 users with extensive opportunities for training.For more information, please contact your Sieme

Page 226

CP 523 Print Mode6.4 Configuring Message TextsStore the message texts on the memory submodule in data blocks 2 to 255 under a message textnumber in

Page 227

Print Mode CP 523Message text numberThe message text is stored in the DB under a message text number (1 to 4095).If you want to printa message text,

Page 228

CP 523 Print ModeExample: Configuring message texts without spaceholdersYou want to store the following message texts in DB2:Message text 4: Excess

Page 229

Print Mode CP 523Table 6-7. Overview of Spaceholders Configurable in Message TextsSpace-holderConfigurable inHeader and FooterMax. Number inOne Me

Page 230 - A Summary

CP 523 Print Mode6.4.3 Spaceholders for Date and Time of DayWhen printing out a message text the following takes place:• The spaceholder "D&quo

Page 231 - Summary CP 523

Print Mode CP 5236.4.4 Spaceholders for Control ParametersYou can configure printer control parameters in three ways in the message text:• Entry wit

Page 232 - CP 523 Summary

CP 523 Print ModeEntry with the spaceholders "Sa, b, ..."If you use the spaceholders "Sa, b", you must enter the control charact

Page 233

Print Mode CP 523Direct entry with the "KH" formatThe control parameters are entered direct with the "KH" format during configur

Page 234

CP 523 Print Mode6.4.5 Spaceholders for Message TextThe spaceholder is replaced by a message text on printout. The number of the message text to ber

Page 235 - 12h clock p. m. (bit 7=1)

Print Mode CP 523Message text number as "KV" variableIf you have configured the "KV" variable in a message text, you must specif

Page 236

CP 523 IntroductionConventionsThe following conventions are used in this book and are listed for your reference:Convention Definition ExampleA box t

Page 237 - -------4

CP 523 Print ModeMaximum length of message textsMessages may not exceed 136 characters in length. If you use space- holders, the printout may belong

Page 238

Print Mode CP 5236.4.6 Spaceholders for VariablesThe spaceholder is replaced by the variable at printout.You must specify the variables in bytes 2 t

Page 239

CP 523 Print Mode"KB" data formatThe CP evaluates the low-order byte of a 16-bit variable as the value for the variable in the"Consta

Page 240

Print Mode CP 523Errors occurring when setting the "KFa,b" or "KFa.b" format parameters have the followingeffects:• If you speci

Page 241

CP 523 Print Mode"KG", "KG." and "KG,", data formatIf you configure the "KG" or "KG." data format,

Page 242

Print Mode CP 5236.5 Processing Job Requests in Print ModeThe CP 523 handles data transfer with the printer autonomously. Data transfer between the

Page 243

CP 523 Print Mode Access to the CP 523 transfer memoryThe CPU can read the transfer memory at any time with L PW statements and write to it with T

Page 244

Print Mode CP 523 Function of the message bufferThe CP 523 is equipped with a message buffer. Job requests to the printer (print requests) arestore

Page 245

CP 523 Print ModeThe following is a schematic of job request processing. Entry of the print request in the messagebuffer is not shown in the figure.

Page 246

Print Mode CP 5236.6 Status of the CP 523 and the Printer, and Reading the Current Clock DataWhen you have written to word 0 of the transfer memory,

Page 247 - B SIEMENS Addresses Worldwide

2 Technical Description3 Hardware Installation4 Notes on Operation5 Address Assignment6 Print Mode7 Communications Mode8 Using the ”SEND” and ”RECEIVE

Page 248

CP 523 Print ModeExample: Scanning the status of the moduleThe module is set to start address 128.An unconfigured memory submodule is plugged into t

Page 249

Print Mode CP 523Example: Evaluating the status of the printerThe module is set to start address 128.If the printer is not ready, output 4.1 is to b

Page 250

CP 523 Print ModeExample: Reading the current clock dataThe module is set with to start address 128.The clock data is to be output on digital outpu

Page 251 - Australasia

Print Mode CP 5236.7 Overview of Permissible Jobs in Print ModeThe CPU transfers the job request to the CP 523 in word 0. The job number is stored i

Page 252

CP 523 Print ModeAdditional information for "Print message text" (job numbers 0, 3 and 4)The following can be additionally transferred to

Page 253 - CP 523 Index

Print Mode CP 523Setting the page number (job number 20H)Specify the page number in binary code in byte 1.Execute form feed (job number 5000H)If the

Page 254 - Index CP 523

CP 523 Print Mode6.7.1 Print Message Text (Job Numbers 0, 3 and 4)The CP 523 forwards message text XY to the printer when it receives a "Print

Page 255

Print Mode CP 523Permissible insertions when printing the message textYou can enter spaceholders in the message text when configuring message texts

Page 256

CP 523 Print ModeExample: Initiation of one-off message text printoutStart address 128 is set on the CP 523. A memory submodule configured with mes

Page 257

Print Mode CP 523Example: Simultaneous use of the "KV" spaceholder, the "KH" spaceholder for variables andthe spaceholder for th

Comments to this Manuals

No comments