SIMATIC S5CP 523Serial I/O ModuleManualOrder No. 6ES5 998-0DD21EWA 4NEB 811 6044-02a
Figures1-1. S5-115U Programmable Controller with CP 523 and Printer . . . . . . . . . . . . . 1 - 11-2. S5-115U Programmable Controller with CP 523 a
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
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
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
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
8 Using the ”SEND” and ”RECEIVE” Function Blocks7 Communications Mode7.1 General . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Figures7-1. Example of an 11-Bit Character Frame . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7- 27-2. Error-Free Data Interchang
Tables7-14. Transfer Memory Assignments for ”Transfer Initialization Datafor Parameter Block 7” . . . . . . . . . . . . . . . . . . . . . . . . . . .
CP 523 Communications Mode7 Communications ModeIn Communications mode, the CP 523 permits transfer of a frame of up to 256 bytes between theCPU and
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
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
CP 523System Overview1System OverviewIntelligent inputioutput modules (1/0s) expand the application area of 51 MATIC 55 programmablecontrollers. They
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
CP 523 Communications ModeIf transmission errors occur during reception (characters are lost, framing error, parity error), theCP continues receivin
Communications Mode CP 523Initiation conflictIf one partner in the link replies to a line bid (STX character) from the other link partner with STXin
CP 523 Communications ModeProtocol ErrorsThe protocol can detect errors caused by incorrect behaviour on the part of the link partner anderrors caus
Communications Mode CP 5233. Establishing connectionsThe programmable controller must be switched off to carry out the following measures:• Install
CP 523 Communications Mode7.3 Setting the CP 523 Parameters in Communications ModeThe CP 523 is supplied with default values for all parameters.• Pa
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
CP 523 Communications ModeTable 7-2. Parameter Block Assignments on the Memory Submodule2Signifi-cantonly inInter-pretivemodeFFFFH(No XON/XOFFprot
Communications Mode CP 523Table 7-2. Parameter Block Assignments on the Memory Submodule (Continued)70DHModePrint modeTransparent modeInterpretive
CP 523 Communications ModeTable 7-2. Parameter Block Assignments on the Memory Submodule (Continued)7LowPriorityHigh011No. of send attempts 001D t
System OverviewCP 523Communications ModeIn “Communications mode”, the CP 523 can communicate over the 1/0 interface with an 1/0 unit(terminal, CP 523
Communications Mode CP 523Explanation of data transmission parametersBaud rateYou have a choice of eight baud rates. The default is 600 baud. If you
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
Communications Mode CP 523Setting ”TRANSPARENT MODE” parameters via the MEMORY SUBMODULEWhen you want to use Transparent mode to tranfer your datas
CP 523 Communications ModeExample: Setting parameters on the MEMORY SUBMODULE for ”TRANSPARENT MODE” withthe PG 685Start address 128 is set on the C
Communications Mode CP 523Setting parameters for ”INTERPRETIVE MODE” via the MEMORY SUBMODULEWhen you have decided to transmit your data in Interpre
CP 523 Communications ModeTable 7-5. Parameter Block Assignments for Interpretive Mode (Continued)70DH0000001H to 00FFH0101H to FFFFHEnd-of-text c
Communications Mode CP 523The following procedure is recommended:1. Enter the parameter setting data on the programmer in DB 1 and include sufficien
CP 523 Communications ModeSetting Parameters for ”3964(R) MODE” via the MEMORY SUBMODULEWhen you have decided upon 3964(R) mode, you enter your data
Communications Mode CP 523Table 7-7. Parameter Block Assignments for 3964(R) Mode (Continued)0 (for memorysubmodule con-figured withmessage texts)1
CP 523 Communications ModeThe following procedure is recommended:1. Enter the initialization data in DB 1 using the programmer, and include sufficie
3 Hardware Installation4 Notes on Operation5 Address Assignment6 Print Mode7 Communications Mode8 Using the ”SEND” and ”RECEIVE” Function Blocks1 Syst
Communications Mode CP 523Table 7-9. Transfer Memory Assignments for ”Transfer Initialization Data for Parameter Block 0”Default Values on the CP
CP523Communications ModeCP523Communications ModeTable 7-10. Transfer Memory Assignments for “Transfer Parameter Setting Data for Parameter Block 7“—39
CP 523 Communications ModeTransferring parameter setting data for parameter block 2(relevant in Interpretive mode only)Table 7-11. Transfer Memory
Communications Mode CP 523Setting parameters for ”TRANSPARENT MODE” in the USER PROGRAMTransferring the parameter setting data for parameter block 0
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
Communications Mode CP 523Transferring parameter setting data for parameter block 7Table 7-14. Transfer Memory Assignments for ”Transfer Initializ
CP 523 Communications ModeExample: Transferring the parameter setting data for parameter block 7Start address 128 is set on the CP 523. The module i
Communications Mode CP 523Setting parameters for INTERPRETIVE MODE in the USER PROGRAMTransferring the parameter setting data for parameter block 0T
CP 523 Communications ModeExample: Transferring parameter setting data for parameter block 0Start address 128 is set on the CP 523.Set CP parameters
Communications Mode CP 523Transferring parameter setting data for parameter block 2Table 7-16. Transfer Memory Assignments for ”Transfer Parameter
Figures2-1. Schematic Representation of the CP 523 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2- 12-2. Using the Transfer Memory .
CP 523 Communications ModeExample: Transferring parameter setting data for parameter block 2* 5.2** FB 99 waits until the CP 523 can accept jo
Communications Mode CP 523Transferring parameter setting data for parameter block 7Table 7-17. Transfer Memory Assignments for ”Transfer Parameter
CP 523 Communications ModeExample: Transferring parameter setting data for parameter block 7Start address 128 is set on the CP 523. The module is to
Communications Mode CP 523Setting parameters for the 3964(R) MODE in the USER PROGRAMTransferring the parameter setting data for parameter block 0Ta
CP 523 Communications ModeExample: Transferring parameter setting data for parameter block 0Start address 128 is set on the CP 523.Set CP parameters
Communications Mode CP 523Transfer parameter setting data for parameter block 7Table 7-19. Transfer Memory Assignments for Job Number ”9073H”Possi
CP 523 Communications ModeExample: Transferring parameter setting data for parameter block 7Start address 128 is set on the CP 523. Set the paramete
Communications Mode CP 523Transfer parameter setting data for parameter block 9Possible ValuesDescriptionByte0 Job number ”Transfer parameter settin
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
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
CP 523 Technical Description2 Technical Description2.1 Principle of the CP 523The CP 523 handles data transfer with a peripheral device autonomously
CP 523 Communications ModeTable 7-23. Status Byte (Byte 0) in Communications Mode Following ”Coordinate Data Transfer”Status Byte 0Bits 4 to 7 Bit
Communications Mode CP 523Example: Evaluating the status of the peripheral deviceStart address 128 is set on the module.If the peripheral device is
CP 523 Communications Mode7.4.2 Reading Coordination Information after "Coordinate Data Transfer"As soon as the "Coordinate data tran
Communications Mode CP 523Table 7-25. Status Byte (Byte 0) in Communications Mode after ”Coordinate Data Transfer”* Signal state irrelevant for t
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
Communications Mode CP 523Example: Reading coordination information after "Send message frame"Start address 128 is set on the CP 523. A fo
CP 523 Communications ModeExample: Reading coordination information after "Receive message frame"Start address 128 is set on the CP 523. I
Communications Mode CP 523Special features of ”3964(R) mode”In ”3964 R” mode, you receive different return info after submitting a ”Coordinate data
CP 523 Communications ModeTable 7-27. Status Information for Send Request ”A001H”Possible ValuesByte Description0 Status byte 50H1 Send request ac
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
Technical Description CP 523Communications modeIn Communications mode, message frames of up to 256 bytes in length can be transferred bet-ween the C
CP 523 Communications ModeTable 7-29. Return Info and Error Flags in the Coordination Byte 'Send' (CBS) in ”3964(R)” Mode (Continued)Error
Communications Mode CP 523Table 7-30. Return Info and Error Flags in the Coordination Byte 'Receive' (CBR)in ”3964(R) Mode”* See error me
CP 523 Communications ModeWhen several errors occur simultaneously, the error codes are output in the priority shown below:Table 7-31. Error Prior
Communications Mode CP 5237.5 Overview of Permissible Job Requests in Communications ModeData exchange between the CPU and the CP 523 is always init
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
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
CP 523 Communications ModeFigure 7-8. Schematic for "Send Message Frame"START* 5.2NoYesYesNoCPU reads the transfer memory and evaluat
Communications Mode CP 523Figure 7-9. Contents of the Transfer Memory for "Send Message Frame"Word 6DataCPU transfers last message block
CP 523 Communications ModeMessage frame structureA message frame consists of all the data transferred in response to a Send or Receive request. Inth
Communications Mode CP 5237.6.1 Sending Message Frames with the Message Frame Length SpecificationYou specify the message frame length in bytes with
CP 523 Technical DescriptionEPROM/EEPROMYou can use EPROM and EEPROM memory submodules of up to 32K bytes. The EPROM/EEPROM isconfigured with the pr
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
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
CP 523 Communications ModeFigure 7-11. Flowchart for FB 123 "SEND 3"STARTNoNoNoYesYesYesYesNoPrepare to transfer message blockTransfer w
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
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
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
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
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
CP 523 Communications ModeFigure 7-13. Schematic for "Receive Message"STARTYesNo* 5.2CPU reads transfer memory and evaluatescoordinat
Communications Mode CP 523Figure 7-14. Transfer Memory Assignments for "Receive Message Frame"CPU writes word 0CPU writes word 0 Word 0Dat
ITechnical DescriptionCP 5232.2Technical SpecificationsFor environmental, mechanical and electromagnetic conditions see the relevant programmablecontr
CP 523 Communications ModeMessage frame structureA message frame is defined as all data transferred after a Send or Receive request. A messageframe
Communications Mode CP 5237.7.1 Receiving Message Frames with Evaluation of the Specified MessageFrame LengthYou can receive a fixed-length message
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
Communications Mode CP 5237.7.2 Receiving Message Frames with Evaluation of the Specified End-of-TextCharactersAfter a Receive request, you can rece
CP 523 Communications ModeFigure 7-16. Flowchart for FB 126 "RECEIVE 3"NoNoYesLast word of themessage block?Store word in DBWord=end-of
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
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 =
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
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
8 Using the ”SEND” and ”RECEIVE” Function Blocks8.1 Using "SEND" FB 200 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
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.
Figures8-1. Structure of the "STAT" Status Byte . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8- 48-2. Schematic for
CP 523 Using the ”SEND” and ”Receive” Function Blocks8 Using the "SEND" and "RECEIVE" FunctionBlocksThe "SEND" and &qu
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
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
Using the ”SEND” and ”Receive” Function Blocks CP 5238.1.3 Structure of the Status ByteThe status bytes of "SEND" FB 200 and "RECEIVE
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
Using the ”SEND” and ”Receive” Function Blocks CP 5238.1.5 Flowchart of "SEND" FB 200Yes1NoEvaluate RLO and read statusSEGMENT 2STARTNote
CP 523 Using the ”SEND” and ”Receive” Function BlocksNoYesYesYesNoNo1SEGMENT 3 Checking the ”SEND” FB parametersNoQ-DB available?Calculate Q-DB leng
Using the ”SEND” and ”Receive” Function Blocks CP 523Calculating the "Number of Send frames"SEGMENT 4NoEvaluate job acknowledgement from C
CP 523 Using the ”SEND” and ”Receive” Function BlocksYesYesNoNoNoLast message block?NoNoYesTransferring Send data to the CP 523SEGMENT 7Decrement me
Only qualified personnel should install or maintain this equipment after becoming thoroughly familiarwith all warnings, safety notices, and maintenanc
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
Using the ”SEND” and ”Receive” Function Blocks CP 5238.1.6 Flags in "SEND" FB 200Explanation of the flags used by "SEND" FB:Flag
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
Using the ”SEND” and ”Receive” Function Blocks CP 523 STL FB 200 Explanation003F :AN =RKPL no computer link0040 :JC =NORK0041 :L
CP 523 Using the ”SEND” and ”Receive” Function BlocksSTL FB 200 ExplanationSegment 3 006F006F :Check whether Q DB available0070 :LW =
Using the ”SEND” and ”Receive” Function Blocks CP 523 STL FB 200 Explanation009F :L KB 12800A0 :>F00A1 :JC =FE03" E R R O
CP 523 Using the ”SEND” and ”Receive” Function Blocks STL FB 200 Explanation00CA :00CB :L FW 242Set pointer to base address00CC :D
Using the ”SEND” and ”Receive” Function Blocks CP 523 STL FB 200 Explanation00F7 :T FW 24200F8 :00F9 :L KB 0Error in status byte0
CP 523 Using the ”SEND” and ”Receive” Function Blocks STL FB 200 Explanation 0126 :L =QLAE0127 :L KH 00000129 :>F012A :JC
Using the ”SEND” and ”Receive” Function Blocks CP 523 STL FB 200 Explanation 0156 :L FW 242 transferred?0157 :><F0158 :JC =V
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
CP 523 Technical Description2.3.2 Communications ModeThe possible methods of transmission depend on the following:• Type of interface (TTY or RS-232
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
CP 523 Using the ”SEND” and ”Receive” Function Blocks8.2 Using "RECEIVE" FB 201"RECEIVE" FB 201 transfers message frames from th
Using the ”SEND” and ”RECEIVE” Function Blocks CP 5238.2.2 Structure of the Status ByteThe status bytes for "SEND" FB 200 and "RECEI
CP 523 Using the ”SEND” and ”RECEIVE” Function BlocksThe FB 201 services the Receive request according to the following schematic:Figure 8-4. Sch
Using the ”SEND” and ”RECEIVE” Function Blocks CP 5238.2.4 Flowchart of "RECEIVE" FB 201Yes1Evaluate RLO and read statusSegment 2STARTBuf
CP 523 Using the ”SEND” and ”RECEIVE” Function BlocksNoNoNoYesYesYes2Q-DB length >= QANF + QLAECheck the "RECEIVE" FB parametersSegment
Using the ”SEND” and ”RECEIVE” Function Blocks CP 523Evaluate job acknowledgement from CP 523NoSegment 5Segment 4YesAcknowledge with error?Establis
CP 523 Using the ”SEND” and ”RECEIVE” Function BlocksYesYesNoNoNoYesFetch Receive data from CP 523Segment 6Buffer number of message blocks given ina
Using the ”SEND” and ”RECEIVE” Function Blocks CP 5238.2.5 Flags in "RECEIVE" FB 201Explanation of the flags used by "RECEIVE"
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
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
Using the ”SEND” and ”RECEIVE” Function Blocks CP 523 STL FB 201 Explanations 0039 :JC =NEIN003A :Load STAT bit ”Data available” and003B
CP 523 Using the ”SEND” and ”RECEIVE” Function Blocks STL FB 201 Explanations 0069 :006A :TAKZANF greater than 255?006B :L KB 25500
Using the ”SEND” and ”RECEIVE” Function Blocks CP 523 STL FB 201 Explanations 0092 :DO FW 242 Read byte 1 (acknowledgement or0093 :L P
CP 523 Using the ”SEND” and ”RECEIVE” Function Blocks STL FB 201 Explanations 00C0 :00C1 :L FW 242Set pointer to base00C2 :I
Using the ”SEND” and ”RECEIVE” Function Blocks CP 523 STL FB 201 Explanations 00EE :DO =Z-DB Open destination DB00EF :00F0 NBLO :JU OB
CP 523 Using the ”SEND” and ”RECEIVE” Function Blocks STL FB 201 Explanations 011E :011F :JU =END0120 :0121 KEND :0122 :L FW
Using the ”SEND” and ”RECEIVE” Function Blocks CP 523 STL FB 201 Explanations 0150 JUM1 :0151 :L FW 242Last word of the message block0152
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)
A SummaryA.1 Parameter Setting in Print Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A- 1A.2 Job Requests in Print Mode . . . . .
TablesA-1. Parameter Setting Data for Print Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A- 1A-2. Permissible Job Requests to t
CP 523 Technical DescriptionData transfer between the CP and peripheral device takes place as follows:The CP 523 sets the "DTR" output aft
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
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
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
Summary CP 523"Print message text" ( 6.7.1)Table A-3. Transferring Additional Information for "Print Message Text" (CPU to CP)
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
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
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
SummaryCP 5230r.r l“’1—,>.. . .3;0 && ,0,,t,=n—-------4—g=0..,EWA4NEB8116044-02a
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
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
Technical Description CP 5232.4 Memory SubmoduleIn Print mode, you require a user submodule, which you must configure with the following data inoff-
CP 523 SummaryA.6 Feedback Information in Communications Modes 1 and 2Table A-12. Coordination Information for "Coordinate Data Transfer"
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
CP 523 SummaryA.7 Feedback Information in Communications Mode 3Table A-15. Status Info from the CP 523 for Job Number ”A000H” PossibleValuesByte
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
CP 523 SummaryTable A-19. Return Info and Error Flags in the Coordination Byte 'Receive' (CBR) in 3964(R) Mode* see error messageDescrip
A.8 Combinations of the Most Important ParametersCharacterDelay TimeDataFormatTTYPrinterMode Interpre-tive ModeTranspa-rent Mode3964(R)ModeV.24(RS2
1 System Overview2 Technical Description3 Hardware Installation4 Notes on Operation5 Address Assignment6 Print Mode7 Communications Mode8 Using the ”S
CP 523 SIEMENS Addresses WorldwideAustriaSiemens AG ÖsterreichViennaBregenzGrazInnsbruckKlagenfurtLinzSalzburgBelgiumSiemens S.A.BrusselsLiègeSiemen
SIEMENS Addresses Worldwide CP 523AfricaAlgeriaSiemens BureauAlgerAlgierAngolaTecnidataLuandaBurundiSOGECOMBujumbaraEgyptSiemens ResidentEngineersCa
CP 523 SIEMENS Addresses WorldwideSudanNational Electrical &Commercial Company(NECC)KhartoumSwazilandSiemens (Pty.) Ltd.MbabaneTanzaniaTanzania
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
SIEMENS Addresses Worldwide CP 523AsiaBahrainTransitec GulfManamaorSiemens Resident EngineerAbu DhabiBangladeshSiemens Bangladesh Ltd.DhakaHong Kong
CP 523 SIEMENS Addresses WorldwideAsia (continued)Yemen (Arab Republic)Tihama Tractors &Engineering Co.o., Ltd.SanaaorSiemens Resident EngineerS
Index1 System Overview2 Technical Description3 Hardware Installation4 Notes on Operation5 Address Assignment6 Print Mode7 Communications Mode8 Using
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
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
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
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
Company/DepartmentAddressTelephoneSuggestions: Corrections:CP 523 Manual Release 3 (6ES5 998-0DD21)Siemens AGAUT E1114BPostfach 1963Werner-von-Sie
Technical Description CP 5232.6 Accessories List and Ordering DataMemory submodulesMemory submodule (EPROM) 8 Kbytes 6ES5 375-0LA15” ” 16 Kbytes 6E
4 Notes on Operation5 Address Assignment6 Print Mode7 Communications Mode8 Using the ”SEND” and ”RECEIVE” Function Blocks3 Hardware Installation3.1 Me
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
CP 523 Hardware Installation3 Hardware Installation3.1 Mechanical Assembly3.1.1 Compatible Programmable Controllers and Expansion UnitsThe CP 523 ca
12345678 A/BPrefaceIntroductionSystem OverviewHardware InstallationNotes on OperationAddress AssignmentPrint ModeCommunications ModeUsing the Functi
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
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
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
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
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
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
Hardware Installation CP 523 3.4 Terminal DiagramsThis section contains typical terminal diagrams for connecting the following:• A printer (PT 88)•
CP 523 Hardware InstallationRS-232-C (V.24) interfacePrinter setting: Printer not ready to receive = no currentFigure 3-8. Pin Assignment of the R
Hardware Installation CP 523 3.4.2 Terminal Diagrams Communications ModeThe CP 523 assumes the following as peripheral device:• Data terminal equip
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
CP 523 PrefacePrefaceThis manual is a revised, updated edition of the original CP 523 manual. The revision was necessarybecause the CP 523 has been
Hardware Installation CP 523 Zero modem operation: Connecting two DTEs taking the CP 523 to CP 523 exampleFigure 3-12. Zero Modem Operation Takin
5 Address Assignment6 Print Mode7 Communication Mode8 Using the ”SEND” and ”RECEIVE” Function Blocks4 Notes on Operation4.1 Restart Characteristics .
Tables4-1. Module Errors/Faults . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4- 14-2. Memory Submod
CP 523 Notes on Operation4 Notes on Operation4.1 Restart CharacteristicsThe CP 523 executes a restart routine when the power supply is restored (POW
Notes on Operation CP 523During the restart procedure, the CP signals "Module busy" (XFH) in the status byte. The CP cannotaccept any jobs
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
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
CP 523 Notes on Operation4.2.2 Communications ModeOperation may be interrupted for various reasons in Communications mode. The following tablelists
6 Print Mode7 Communications Mode8 Using the ”SEND” and ”RECEIVE” Function Blocks1 System Overview2 Technical Description3 Hardware Installation4 Note
Figures5-1. Address Switch Locations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5- 15-2. Using the Transf
CP 523 IntroductionIntroductionIt is important to study the introduction carefully before reading the rest of the manual. This willhelp you to use t
CP 523 Address Assignment5 Address AssignmentThis section describes• how to set the module address ( 5.1)• when the CP accepts data from the CPU (
Address Assignment CP 523Table 5-1. Switch Settings on Switch Bank S1 for Defining the Start AddressSwitch setting Switch bank S112345081624324048
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
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
7 Communications Mode8 Using the ”SEND” and ”RECEIVE” Function Block6 Print Mode6.1 General . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Figures6-1. Schematic for Entering Parameter Blocks in DB 1 . . . . . . . . . . . . . . . . . . . . . . . 6 - 46-2. Schematic for Entering Headers and
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
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
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
Print Mode CP 523Dividing the parameters into ten parameter blocks enables you to initialize only the parameterblock you want to modify. However, th
Introduction CP 523ConventionsIn order to improve the readability of the manual, a menu-style breakdown has been used, i.e.:• The individual chapter
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
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
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
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
CP 523 Print ModePage formatThe page format is defined by the information given in parameter blocks 5 and 6.Table 6-5. Page Format1...
Print Mode CP 523Configuring headers and footersYou can configure up to two headers and two footers.The headers and footers may contain spaceholders
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
Print Mode CP 523Example: Configuring the character conversion table for the PT 88/89The printer is initialized for the international character set.
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
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
CP 523 IntroductionCoursesSiemens provide SIMATIC S5 users with extensive opportunities for training.For more information, please contact your Sieme
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
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,
CP 523 Print ModeExample: Configuring message texts without spaceholdersYou want to store the following message texts in DB2:Message text 4: Excess
Print Mode CP 523Table 6-7. Overview of Spaceholders Configurable in Message TextsSpace-holderConfigurable inHeader and FooterMax. Number inOne Me
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
Print Mode CP 5236.4.4 Spaceholders for Control ParametersYou can configure printer control parameters in three ways in the message text:• Entry wit
CP 523 Print ModeEntry with the spaceholders "Sa, b, ..."If you use the spaceholders "Sa, b", you must enter the control charact
Print Mode CP 523Direct entry with the "KH" formatThe control parameters are entered direct with the "KH" format during configur
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
Print Mode CP 523Message text number as "KV" variableIf you have configured the "KV" variable in a message text, you must specif
CP 523 IntroductionConventionsThe following conventions are used in this book and are listed for your reference:Convention Definition ExampleA box t
CP 523 Print ModeMaximum length of message textsMessages may not exceed 136 characters in length. If you use space- holders, the printout may belong
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
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
Print Mode CP 523Errors occurring when setting the "KFa,b" or "KFa.b" format parameters have the followingeffects:• If you speci
CP 523 Print Mode"KG", "KG." and "KG,", data formatIf you configure the "KG" or "KG." data format,
Print Mode CP 5236.5 Processing Job Requests in Print ModeThe CP 523 handles data transfer with the printer autonomously. Data transfer between the
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
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
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.
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,
2 Technical Description3 Hardware Installation4 Notes on Operation5 Address Assignment6 Print Mode7 Communications Mode8 Using the ”SEND” and ”RECEIVE
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
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
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
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
CP 523 Print ModeAdditional information for "Print message text" (job numbers 0, 3 and 4)The following can be additionally transferred to
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
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
Print Mode CP 523Permissible insertions when printing the message textYou can enter spaceholders in the message text when configuring message texts
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
Print Mode CP 523Example: Simultaneous use of the "KV" spaceholder, the "KH" spaceholder for variables andthe spaceholder for th
Comments to this Manuals