Siemens KS7 Series Spezifikationen Seite 1

Stöbern Sie online oder laden Sie Spezifikationen nach Nein Siemens KS7 Series herunter. Siemens KS7 Series Specifications Benutzerhandbuch

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 257
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen

Inhaltsverzeichnis

Seite 1 - Serial I/O Module

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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 7 - Reference Literature

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

Seite 8

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

Seite 9

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

Seite 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

Seite 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

Seite 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

Seite 13

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

Seite 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

Seite 15 - 2 Technical Description

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

Seite 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

Seite 17

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

Seite 18

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

Seite 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

Seite 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

Seite 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

Seite 22 - ON Mode

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

Seite 23

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

Seite 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

Seite 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

Seite 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

Seite 27

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

Seite 28

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

Seite 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

Seite 30

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

Seite 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

Seite 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

Seite 33 - Connections

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

Seite 34

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

Seite 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

Seite 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

Seite 37 - PT 88CP 523

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

Seite 38

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

Seite 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

Seite 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

Seite 41

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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 46 - 4.2.1 Print Mode

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

Seite 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

Seite 48

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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 53

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

Seite 54

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

Seite 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

Seite 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

Seite 57

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

Seite 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

Seite 59

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

Seite 60

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

Seite 61

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

Seite 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

Seite 63

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

Seite 64

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

Seite 65

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

Seite 66

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

Seite 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

Seite 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

Seite 69

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

Seite 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

Seite 71

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

Seite 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

Seite 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

Seite 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

Seite 75

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

Seite 76

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

Seite 77

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

Seite 78

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

Seite 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

Seite 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

Seite 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

Seite 82

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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 88

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

Seite 89

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

Seite 90

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

Seite 91

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

Seite 92

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

Seite 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

Seite 94

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

Seite 95

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

Seite 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

Seite 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 =

Seite 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

Seite 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

Seite 100 - CP 523 Print Mode

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

Seite 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.

Seite 102

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

Seite 103

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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 110

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

Seite 111

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

Seite 112

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

Seite 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

Seite 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

Seite 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

Seite 116

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

Seite 117

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

Seite 118

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

Seite 119

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

Seite 120

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

Seite 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

Seite 122

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

Seite 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

Seite 124

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

Seite 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

Seite 126

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

Seite 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

Seite 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

Seite 129

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

Seite 130

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

Seite 131

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

Seite 132

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

Seite 133

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

Seite 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

Seite 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

Seite 136

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

Seite 137

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

Seite 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

Seite 139

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

Seite 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

Seite 141

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

Seite 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

Seite 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)

Seite 144

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

Seite 145

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

Seite 146

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

Seite 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

Seite 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

Seite 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

Seite 150

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

Seite 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

Seite 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

Seite 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

Seite 154

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

Seite 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

Seite 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

Seite 157

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

Seite 158

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

Seite 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

Seite 160

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

Seite 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

Seite 162

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

Seite 163

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

Seite 164

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

Seite 165

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

Seite 166

SIEMENS Addresses Worldwide CP 523AfricaAlgeriaSiemens BureauAlgerAlgierAngolaTecnidataLuandaBurundiSOGECOMBujumbaraEgyptSiemens ResidentEngineersCa

Seite 167

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

Seite 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

Seite 169

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

Seite 170

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

Seite 171

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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 176

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

Seite 177

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

Seite 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

Seite 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

Seite 180

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

Seite 181 - Frame Length

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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 188

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

Seite 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

Seite 190

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

Seite 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

Seite 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

Seite 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

Seite 194

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

Seite 195

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

Seite 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

Seite 197

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

Seite 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

Seite 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

Seite 200

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

Seite 201

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

Seite 202

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

Seite 203

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

Seite 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 (

Seite 205

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

Seite 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

Seite 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

Seite 208

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

Seite 209

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

Seite 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

Seite 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

Seite 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

Seite 213

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

Seite 214

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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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...

Seite 220

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

Seite 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

Seite 222

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

Seite 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

Seite 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

Seite 225

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

Seite 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

Seite 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,

Seite 228

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

Seite 229

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

Seite 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

Seite 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

Seite 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

Seite 233

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

Seite 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

Seite 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

Seite 236

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

Seite 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

Seite 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

Seite 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

Seite 240

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

Seite 241

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

Seite 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

Seite 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

Seite 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

Seite 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.

Seite 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,

Seite 247 - B SIEMENS Addresses Worldwide

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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 252

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

Seite 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

Seite 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

Seite 255

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

Seite 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

Seite 257

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

Kommentare zu diesen Handbüchern

Keine Kommentare