Siemens KS7 Series Dokumentacja

Przeglądaj online lub pobierz Dokumentacja dla Nie Siemens KS7 Series. Siemens KS7 Series Specifications Instrukcja obsługi

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 257
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów

Podsumowanie treści

Strona 1 - Serial I/O Module

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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 7 - Reference Literature

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

Strona 8

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

Strona 9

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

Strona 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

Strona 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

Strona 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

Strona 13

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

Strona 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

Strona 15 - 2 Technical Description

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

Strona 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

Strona 17

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

Strona 18

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

Strona 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

Strona 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

Strona 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

Strona 22 - ON Mode

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

Strona 23

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

Strona 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

Strona 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

Strona 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

Strona 27

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

Strona 28

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

Strona 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

Strona 30

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

Strona 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

Strona 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

Strona 33 - Connections

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

Strona 34

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

Strona 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

Strona 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

Strona 37 - PT 88CP 523

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

Strona 38

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

Strona 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

Strona 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

Strona 41

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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 46 - 4.2.1 Print Mode

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

Strona 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

Strona 48

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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 53

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

Strona 54

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

Strona 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

Strona 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

Strona 57

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

Strona 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

Strona 59

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

Strona 60

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

Strona 61

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

Strona 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

Strona 63

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

Strona 64

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

Strona 65

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

Strona 66

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

Strona 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

Strona 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

Strona 69

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

Strona 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

Strona 71

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

Strona 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

Strona 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

Strona 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

Strona 75

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

Strona 76

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

Strona 77

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

Strona 78

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

Strona 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

Strona 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

Strona 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

Strona 82

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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 88

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

Strona 89

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

Strona 90

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

Strona 91

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

Strona 92

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

Strona 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

Strona 94

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

Strona 95

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

Strona 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

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

Strona 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

Strona 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

Strona 100 - CP 523 Print Mode

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

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

Strona 102

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

Strona 103

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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 110

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

Strona 111

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

Strona 112

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

Strona 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

Strona 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

Strona 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

Strona 116

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

Strona 117

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

Strona 118

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

Strona 119

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

Strona 120

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

Strona 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

Strona 122

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

Strona 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

Strona 124

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

Strona 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

Strona 126

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

Strona 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

Strona 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

Strona 129

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

Strona 130

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

Strona 131

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

Strona 132

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

Strona 133

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

Strona 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

Strona 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

Strona 136

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

Strona 137

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

Strona 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

Strona 139

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

Strona 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

Strona 141

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

Strona 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

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

Strona 144

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

Strona 145

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

Strona 146

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

Strona 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

Strona 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

Strona 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

Strona 150

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

Strona 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

Strona 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

Strona 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

Strona 154

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

Strona 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

Strona 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

Strona 157

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

Strona 158

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

Strona 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

Strona 160

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

Strona 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

Strona 162

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

Strona 163

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

Strona 164

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

Strona 165

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

Strona 166

SIEMENS Addresses Worldwide CP 523AfricaAlgeriaSiemens BureauAlgerAlgierAngolaTecnidataLuandaBurundiSOGECOMBujumbaraEgyptSiemens ResidentEngineersCa

Strona 167

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

Strona 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

Strona 169

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

Strona 170

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

Strona 171

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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 176

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

Strona 177

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

Strona 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

Strona 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

Strona 180

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

Strona 181 - Frame Length

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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 188

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

Strona 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

Strona 190

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

Strona 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

Strona 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

Strona 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

Strona 194

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

Strona 195

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

Strona 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

Strona 197

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

Strona 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

Strona 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

Strona 200

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

Strona 201

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

Strona 202

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

Strona 203

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

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

Strona 205

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

Strona 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

Strona 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

Strona 208

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

Strona 209

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

Strona 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

Strona 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

Strona 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

Strona 213

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

Strona 214

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

Strona 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

Strona 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

Strona 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

Strona 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

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

Strona 220

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

Strona 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

Strona 222

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

Strona 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

Strona 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

Strona 225

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

Strona 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

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

Strona 228

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

Strona 229

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

Strona 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

Strona 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

Strona 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

Strona 233

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

Strona 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

Strona 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

Strona 236

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

Strona 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

Strona 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

Strona 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

Strona 240

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

Strona 241

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

Strona 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

Strona 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

Strona 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

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

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

Strona 247 - B SIEMENS Addresses Worldwide

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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 252

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

Strona 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

Strona 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

Strona 255

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

Strona 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

Strona 257

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

Komentarze do niniejszej Instrukcji

Brak uwag