Siemens KS7 Series Specifikace Strana 1

Procházejte online nebo si stáhněte Specifikace pro ne Siemens KS7 Series. Siemens KS7 Series Specifications Uživatelská příručka

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 257
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků

Shrnutí obsahu

Strany 1 - Serial I/O Module

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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 7 - Reference Literature

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

Strany 8

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

Strany 9

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

Strany 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

Strany 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

Strany 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

Strany 13

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

Strany 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

Strany 15 - 2 Technical Description

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

Strany 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

Strany 17

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

Strany 18

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

Strany 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

Strany 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

Strany 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

Strany 22 - ON Mode

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

Strany 23

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

Strany 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

Strany 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

Strany 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

Strany 27

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

Strany 28

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

Strany 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

Strany 30

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

Strany 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

Strany 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

Strany 33 - Connections

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

Strany 34

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

Strany 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

Strany 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

Strany 37 - PT 88CP 523

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

Strany 38

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

Strany 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

Strany 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

Strany 41

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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 46 - 4.2.1 Print Mode

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

Strany 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

Strany 48

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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 53

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

Strany 54

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

Strany 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

Strany 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

Strany 57

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

Strany 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

Strany 59

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

Strany 60

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

Strany 61

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

Strany 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

Strany 63

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

Strany 64

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

Strany 65

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

Strany 66

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

Strany 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

Strany 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

Strany 69

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

Strany 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

Strany 71

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

Strany 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

Strany 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

Strany 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

Strany 75

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

Strany 76

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

Strany 77

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

Strany 78

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

Strany 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

Strany 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

Strany 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

Strany 82

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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 88

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

Strany 89

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

Strany 90

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

Strany 91

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

Strany 92

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

Strany 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

Strany 94

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

Strany 95

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

Strany 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

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

Strany 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

Strany 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

Strany 100 - CP 523 Print Mode

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

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

Strany 102

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

Strany 103

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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 110

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

Strany 111

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

Strany 112

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

Strany 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

Strany 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

Strany 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

Strany 116

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

Strany 117

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

Strany 118

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

Strany 119

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

Strany 120

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

Strany 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

Strany 122

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

Strany 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

Strany 124

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

Strany 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

Strany 126

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

Strany 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

Strany 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

Strany 129

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

Strany 130

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

Strany 131

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

Strany 132

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

Strany 133

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

Strany 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

Strany 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

Strany 136

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

Strany 137

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

Strany 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

Strany 139

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

Strany 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

Strany 141

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

Strany 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

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

Strany 144

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

Strany 145

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

Strany 146

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

Strany 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

Strany 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

Strany 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

Strany 150

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

Strany 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

Strany 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

Strany 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

Strany 154

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

Strany 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

Strany 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

Strany 157

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

Strany 158

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

Strany 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

Strany 160

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

Strany 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

Strany 162

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

Strany 163

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

Strany 164

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

Strany 165

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

Strany 166

SIEMENS Addresses Worldwide CP 523AfricaAlgeriaSiemens BureauAlgerAlgierAngolaTecnidataLuandaBurundiSOGECOMBujumbaraEgyptSiemens ResidentEngineersCa

Strany 167

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

Strany 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

Strany 169

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

Strany 170

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

Strany 171

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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 176

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

Strany 177

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

Strany 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

Strany 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

Strany 180

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

Strany 181 - Frame Length

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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 188

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

Strany 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

Strany 190

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

Strany 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

Strany 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

Strany 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

Strany 194

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

Strany 195

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

Strany 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

Strany 197

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

Strany 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

Strany 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

Strany 200

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

Strany 201

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

Strany 202

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

Strany 203

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

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

Strany 205

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

Strany 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

Strany 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

Strany 208

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

Strany 209

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

Strany 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

Strany 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

Strany 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

Strany 213

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

Strany 214

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

Strany 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

Strany 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

Strany 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

Strany 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

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

Strany 220

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

Strany 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

Strany 222

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

Strany 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

Strany 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

Strany 225

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

Strany 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

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

Strany 228

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

Strany 229

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

Strany 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

Strany 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

Strany 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

Strany 233

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

Strany 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

Strany 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

Strany 236

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

Strany 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

Strany 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

Strany 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

Strany 240

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

Strany 241

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

Strany 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

Strany 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

Strany 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

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

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

Strany 247 - B SIEMENS Addresses Worldwide

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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 252

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

Strany 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

Strany 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

Strany 255

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

Strany 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

Strany 257

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

Komentáře k této Příručce

Žádné komentáře