Home

DEZ 161 Interrupt Processing, Discrete Input

image

Contents

1. 23 17 24 34 36 43 N lu a i i PAB PSB Figure 12 Schematic symbols of the DEZ 161 21 DEZ 161 29 30 DEZ 161 4 1 4 2 4 3 4 4 4 5 4 6 4 7 Specifications Assignment Devices at present only A250 Process Interface Discretes in Sensor supply U nominal value U operational value Reference potential M Number of discretes in Isolation Nominal signal value Signal level 1 signal 0 signal Input current Data Interface Parallel system bus PAB Supply internal Ident code Displays 4 green LEDs 1 yellow LED 1 green LED 32 red LEDs Physical Structure Format Weight Type of Connection Process Parallel system bus PAB internal Environmental Conditions System data permissable environmental operating temperature Un 24 60 VDC for 8 discretes in each Up 18 75 VDC M1 for 8 discretes in each 4 x 8 in groups 4 groups mutually and isolated against parallel system bus PAB via optical coupler 24 60 VDC Up Upg 20 VDC lt 5 VDC when Ug 18 VDC 5 0 mA at 24 V 7 5 mA at 60 V simultaneity factor 50 refer to respective user manual Ch 4 5 VDC 100 mA H B3 for sensor supply DCF clock DEZ 161 in operation for process discretes in European double format dimension 6HE height units 8T width units 450 grams 4 insertable 11 pole screw plug in terminals for cross sectional areas 0 25 2 5 mm one 4 p
2. Configuration Design Configurating the module requires a Slot reference o Parameterization and equipping with firmware o Assignment signal references to peripheral signals Oo Connection lay out peripheral signals Slot Reference The module has no adjusting elements for the addressing because addressing is slot dependent The respective slot reference has to be entered in the equipment list via Dolog AKF according to information for the system configuration With universal ap plication Ch 3 3 2 this is done taken over by PRO U250 Parameterization The DEZ 161 can process binary input count values real time events and process in terrupts asynchronously In general all functions are to be configured homogenously per byte For interrupt operation the DEZ 161 must be installed in the primary subrack only one DEZ module can be used for interrupt operation DEZ Firmware Defined application for IR processing For Modicon A250 applications that generally concentrate on interrupt processing a programmed DEZ F01 firmware EPROM as well as a DEZ F02 fixed parameter EPROM is available These ERPROMs are not included in the scope of the DEZ product delivery and have to be ordered separately Module specific interrupt processing is car ried out in a firmware subroutine compare with DEZ F01 Standard function blocks SFB provide the capability of level allocation and targeted evaluation of interrupts with the user program that
3. M36 21 lt WAF gt after MW1141 Content of input point 1 from DEP 112 on SP2 is transported in signal memory to output point 1 from DAP112 to SP3 direct output per OUT call will occur only if value is positive The SFB OUT issues word by word to the peripherals e g to DAP 112 on slot SP3 The first 16 bits that are addressed on DAP 112 by KA and KE and also contain the newly defined bit 1 are set by OUT based on the internal signal memory i e issued to the peripherals AF error marker for output failure Standard function block direct binary input SFB 442 Condition IN SA TN AF L BIT K KA WAF c WORD K KE Standard function blockdirect binary output SFB 443 Condition OUT SA TN AF L BIT K KA WAF c WORD K KE 20 20 3 3 4 3 3 5 3 3 5 1 Direct binary output is only possible for a whole word i e for KA first bit of the bit field beginning of channel only the values 1 and 17 are permitted for KE last bit of the bitfield end of channel only the values 16 and 32 Other values for KA and or KE will prompt an error message with no output The slot number to be entered is a num ber referring to the equipment list that may correspond to the physical slot address in the subrack For direct binary input the valid bit field address is KE gt KA Example of binary input In general the 32 signal disc
4. of an expected interrupt IR within the assigned IR group the SFB 392 triggers a user OBxxx which in a network identifies the respec tively occurring IR and then activates the assigned program block PB xxx of the user through a conditional jump refer to Figure 1 The user can utilize an interrupt for internal logic operations and to prepare future pro cessing steps However in most cases an IR should very quickly trigger an action in the peripherals even before returning to the primary user program that was interrupted by the IR Note The most immediate reaction in the peripherals will then require an SFB OUT If there is no remaining reserve for the capture of a secondary condition in the discretes in 17 32 on the same DEZ module as shown in IDATXn 33 it is also possible to use the SFB IN for the selection of another module In such a case the IN and OUT blocks are additional structural elements of the IR user program IDATXn 33 element of the O_INTR data structure IDATX 20 Figure 1 20 1 2 2 OB1 NW1 BC SFB 392 NWe2 BA SFB 392 z NW4 BC SFB 392 NW End kkk from DPM of the DEZ gt OB from the expert driver Important SFBs and their impact on user program runtime If time sensitive processes require an immediate external response which prohibits a linking into the next PLC scan cycle the user also works with the SFB 443 standard function block OUT direct binary output The runtime
5. of the O_INTR incl OUT for direct processing with no additional logic operations will then be 4 ms OUT is always going to be part of each interrupt program block IR PB when the IR has to be in conjunction with peripheral output that is immediately following the event OUT will produce a complete word e g the first 16 bits of the DAP 112 which for instance has one bit combination intended to shut off a valve and another one to open a valve refer to Ch 3 runtime of the OUT 0 5 ms OB471 IDATX1 y NW 1 L PB48i 12 BAB PB481 i j PB 481 9 mn N Pe PB484 NW1 BC SFB 442 O_INTR OB472 bat BC SFB 443 NWt ppags NWE he OUT TN CTR oer OB473 NW1 ____ _ page Qai DAT OB474 NW1 L PB487 1 8 The OBxxx and PBxxx PB489 numbers in this diagram have been arbitr MELD are to explain the example in Ch 3 AF WAF Program structure in block format If quasi simultaneously with the occurrence of the IR it is necessary to know the condi tion of an input point but there is no remaining reserve in the discretes in 17 32 of the DEZ the user program can issue an additional call for the SFB 442 standard function block IN direct binary input in order to skip the waiting period otherwise required before going to the next PLC scan cycle IN will read in a bit group e g the last 3 bits o
6. of the output signal as opposed to the transmitter keying Pulse length Output Output load Indicator Mechanical Structure Dimensions LxBxD Chassis Colour Weight Connection Cable Socket connector on the cable Environmental Conditions Safety type permitted ambient tempe rature during operation 20 24 V DC 18 30 VDC max 25 mA in addition 6 mA per DEZ KOS ALU 77 5 kHz 0 5 UVeff 80 mVeff lt 60 ms tao gt 50 ms tai gt 110 ms gt 280 Ohms for 24 V yellow light emitting diode inside the device 160 x 75 x 55 mm polyester UV resistent grey 0 7 kg approx 4 m long introduced via a PG7 screwed blend solded wires inside 4 pole fitting DEZ remove it if connected to KOS ALU IP 65 20 50 C DCF 77E 37 38 DCF 77E Ordering Information DCF 77E receiver Accessories DCF K01 console LiYrdF Cgv Y cable in meters YDL DC1 special cable 50 m ready for the connection Technical rights reserved 424 246 687 424 246 688 424 002 691 424 246 697 20 Appendix B Block Description Block Description 39 40 Block Description 20 22 1 2 1 2 2 O_INTR Interrupt Processing A250 Function The standard function block O_INTR organizes the priority controlled processing of the interrupts coming from the DEZ 161 module If there is a spontaneous change of signal at the DEZ 161 the block supports event controlled processing of
7. value and when it should continue to process it default setting is 5 This helps to avoid an unnecessary slow down of the program cycle with too many processing actions Phase indicates the phase displacement of cyclical processing relative to the start cycle Parameterization of the job elements is supported by EQ help texts Preparations for the parameterization of the DEZ 161 software Procedure for the A250 install ordered firmware EPROM DEZ F01 already programmed in FW slot Install ordered parameter EPROM DEZ F02 already programmed in EP slot The module is now ready for initial startup or for the continuing operation Configuration Design 19 20 3 3 5 2 3 3 6 Step 1 Step 2 Step 3 Step 4 Step 5 Step 6 Step 7 Step 8 Step 9 Step 10 Configuration Design Requirements for the U250 The program PRO U250 is a prerequisite The parameters are to be adjusted in accor dance with the assignment of the DEZ 161 discretes in and to be filed on a parameter EPROM if fixed point writing is planned or transferred to the DEZ 161 through down loading PRO U250 is in preparation Procedure for initial start up The settings required for initial start up are listed in Ch 3 3 1 3 The AKF user program must already be created and linked on the PADT refer to Ch 3 3 2 3 Connect PADT lt PLC with YDL 052 cable Turn on PLC Prepare ALU for networking and bootloading B3 of the ALU to ON LED run of the ALU is b
8. 0 programmable controller in Dolog AKF gt A120 A250 AKF125 Chapter 1 Chapter 2 Chapter 3 Appendix A Appendix B Content Arrangement of this Publication General Information This chapter describes structural elements of interrupt user programs and their effect on the runtime of the primary user program it also contains instructions for the creation of IR user programs The reader will learn about the cooperation betweenthe DEZ 161 hardware module incl firmware and the DEZ related standard function blocks data structures Operation This chapter provides an overview of the indicator and operating elements on the DEZ 161 module Configuration Design This chapter lists o all required hardware and software that has to be in place to make the DEZ 161 op erational o all special conditions that must be observed when designing the programmable con troller o all steps necessary for configuration parameterization and start up of the module Following the list of configuration steps is a detailed example of an IR application with actual task definition and hardware configuration as well as a description of the solu tion At the end of this example is an FBD representation of the IN and OUT blocks In presenting the software solution an abbreviated method of writing was chosen to give the reader an opportunity for exact reconstruction of the parameter processing without the inconvenience of having to look at other pag
9. 61 it is neces sary to have a P510 or P610 programming panel as well as the EPS 2000 programming station for a universal application job Figure 9 Overview of configuration design elements 21 21 1 1 1 2 1 3 General Information Application The DEZ 161 is an expert module with 4 x 8 discretes in for 24 60 VDC which are isolated in groups as well as against the internal logic Besides operating events count values and interrupts it can also record realtime events whenever a DCF receiver is at tached In interrupt operation the DEZ 161 is working in the same module as the ALU Physical Structure The module has a European double format with rear PAB contactand peripheral con nection in front via screw plug in terminals for process signals and supply as well as a 4 pole screw plug in terminal for DCF reception The discretes in for the process sig nals are divided into 4 isolated groups with 8 signals each and a separate supply for each group One of the enclosed card labels is inserted at the snap open front cover of the subrack next to the display panel for the LEDs Next to the already entered ter minal identifications address potential is space for system related entries e g signal names Mode of Functioning The DEZ 161 module is controlled by its own micro controller which accesses one pro gram EPROM parameter EPROM data RAM and dual port RAM each The DEZ 161 records count impulses up to 100 Hz with a pau
10. 9 KE K 16 K 20 AF M36 25 M 36 26 WAF MW 1145 MW 1146 NOP A 12 16 12 20 Q 3 16 Q 3 20 NOP BCC SFB 443 NAME OUT TN A SA 3 KA K1 K17 KE K 16 K 32 AF M37 3 M37 4 WAF MW 1155 MW 1156 1 1 0 1 1 0 Priority 2 PB482 BC IN NOP NOP BCC OUT 2 1 0 NAME TN KA KE AF WAF NAME TN KA KE AF WAF 483 484 SFB 442 SA 2 K 10 w K19 K 28 K 10 K 19 K 28 M 36 22 M 36 23 M 36 24 MW 1142 MW 1143 MW 1144 12 10 12 19 2 28 Q 3 10 Q 3 19 Q 3 28 SFB 443 SA 3 K 1 K17 K 16 K 32 M 36 32 M 37 1 M 37 2 MW 1152 MW 1153 MW 1154 3 1 0 4 1 0 PB487 488 489 BC SFB 442 IN SA2 K8 K25 K8 K 25 M 36 27 M36 28 M 36 29 gt MW1147 MW 1148 MW 1149 NOP A 12 8 2 25 Q3 8 Q 3 25 NOP BCC SFB443 OUT SA3 K1 K17 K 16 K 32 M 37 5 M 37 6 M 37 7 MW 1157 MW 1158 MW 1159 1 1 0 2 1 0 3 1 0 Priority 1 Configuration Design 17 18 3 3 3 3 OUT Configuration Design Explanation of the PB481 from previous page NETWORK 1 1 IR priority 4 BC SFB 442 NAME IN TN SA 2 KA K 1 KE K1 AF M 36 21 WAF MW 1141 NOP A 12 1 i Q 3 1 NOP BCC SFB 443 NAME OUT TN i SA 3 KA K1 KE K 16 AF M 36 31 WAF MW 1151 1 1 0 Additional blocks The SFB IN targets and reads in a single input point with KA KE K1 slot No 2 AF error marker Various errors such as internal error module error are identified in WAF as a number lt AF gt after
11. C SFB 392 NAME O_INTR TN SA 1 CRT 129 2 PARA IPAR 2 OB PROC 2 DAT IDATX 2 MELD MELD 2 AF Q28 2 WAF WORD1122 kK IL Presentation OB474 A IDATX 4 2 BCC PB 487 A IDATX 4 5 BCC PB 488 A IDATX 4 6 BCC PB 489 4 IR group Configuration Design 15 SFB 392 SFB 392 Condition O_INTR Condition O_INTR SA 1 TN MELD MELD 1 SA 1 TN MELD MELD 3 T2971 CRT AF Q28 1 297353 CRT AF Q28 3 IPAR 1 jPARA WAF W 1121 IPAR 3 JPARA WAF MW 112 PROC 1 0B PROC 3 OB IDATX 1 DAT IDATX 3 DAT SFB 392 SFB 392 Condition O_INTR Condition O INTR SA 1 TN MELD MELD 2 SA 1 TN MELD MELD 4 I29 2 CRT AF Q28 2 129 4 CRT AF Q28 4 IPAR 2 PARA WAF MW 1122 IPAR 4 PARA WAF Mw 112 PROC 2 OB PROC 4 OB IDATX 2 DAT IDATX 4 DAT FBD representation of networks 1 4 Figure 7 Listing of the IR organizational blocks sorted in descending priority Description 16 Configuration Design of solution If at receipt of every IR a specific precondition is being met at a discrete in of the DEP slot 2 this status is then issued to the appropriate output point of the adjacent DAP slot 3 with every successful IR processing compare associated LEDs of the modules If two secondary conditions are met at receipt of an IR refer to IDATX1 4 it will acti vate two disc
12. CRT whether or not the O_INTR is executed The CRT value can also be connected to an input of a peripheral module or be read in with an input of this module The system markers important for interrupt management e g SM7 10 SM45 48 and SM83 86 also with regard to switch on behavior and network state are de scribed in the user manual for AKF125 The SM39 NORM is also described there Formal operand PARA This contains the number of data structure IPARn especially data element IPARn 3 for allocating the task number _TASK Some system markers for user program processing under clock pulse control or event control are monitored in the A250 The system marker addresses are assigned to the OBs by _TASK The task numbers can be assigned any priority 4 1 Priority 4 is of greater urgency than priority 1 Example A NORM NORM after a cold restart for 12 scans log 1 JF LABEL L K1 IPAR 3 1 Priority L KH FFFF IPAR 3 2 Mask E K9 IPAR 3 3 IL_TASK 9 NOP LABEL BC SFB 392 NAME O_INTR TN SA 1 CRT SM 161 PARA IPAR 3 OB PROC 3 DAT IDATX 3 MELD MELD 3 AF M 1 3 WAF MW 3 Note Bit LSB of mask IPARn 2 corresponds to input 1 of DEZ 161 bit MSB of mask IPARn 2 corresponds to input 32 of DEZ 161 see label marking 22 3 2 Formal Operand OB This contains the number of the organization block which calls contains the allocated interrupt processing program e g OB10 PROC Dummy
13. DCF receiver refer to Appendix A Ch 1 This user manual is only treating the application relative to interrupts and binary lt Sa gt lt R gt input with special consideration of interrupt processing interrupts are simply described as binary input with a high priority All module relative IR processing is carried out in a DEZ F01 firmware program the parameterization of 16 interrupts and 16 discretes in refer to Figure 2 is defined in a DEZ F02 parameter EPROM Indi vidual user programs can assemble and evaluate interrupt groups according to priority by utilizing the standard function block O_INTR of the basic ALU software By suppressing unused IR discretes in with masks optimum IR evaluation can already be achieved during initialization The programmed DEZ F01 and DEZ F02 EPROMs are available and can be shipped when ordered The outlined application sample case does not requirea DCF receiver Path to Solutions with IR Processing Structural elements of IR user programs The standard function block O_INTR SFB 392 that is part of the AKF125 provides us ers with a tool which enables them to program their own interrupt evaluation pro gramsfor the DEZ 161 The path runs via the OB1 organization block and with net works for one SFB call each of the O_INTR for group assembly of interrupts a max of 4 networks if assigning a max of 4 interrupt groups to additional networks and pro gram blocks During spontaneous occurrence
14. DEZ 161 Interrupt Processing Discrete Input Module for A250 User Manual A91M 12 703500 20 0294 Translation of the German Description A91M 12 700224 Notes Application Note Caution The relevant regulations must be observed for control applications in volving safety requirements For reasons of safety and to ensure compliance with documented system data repairs to components should be performed only by the manufacturer Training AEG offers suitable training that provides further information concerning the system see addresses Data Illustrations Alterations Data and illustrations are not binding We reserve the right to alter our products in line with our policy of continuous product development If you have any suggestions for im provements or amendments or have found errors in this publication please notify us by using the form on the last page of this publication Addresses The addresses of our Regional Sales Offices Training Centers Service and Engineer ing Sales Offices in Europe are given at the end of this publication Copyright All rights reserved No part of this document may be reproduced or transmitted in any form or by any means electronic or mechanical including copying processing or any information storage without permission in writing by the AEG Aktiengesellschaft You are not authorized to translate this document into any other language Trademarks All terms used in this user manual to denote AE
15. F125 Requirements for the A250 o A programming panel PADT where the software package Dolog AKF gt A120 A250 2 as of Version 2 0 has been loaded o YDL 052 connection cable Requirements for the U250 o A programming panel PADT that provides access to the software package Dolog AKF A120 A250 and to the PRO U250 software 3 for configuration program ming and parameterization o YDL 052 connection cabel Procedure for the A250 Define the assembly of your system in the equipment list o Place symbols for the data structure elements in the SYM KOM block of Dolog AKF as long as initial values to be assigned to the symbols o Use the standard function block O_INTR for your user program This block checks in terrupts recorded by the DEZ 161 within the basic ALU software of the PLC and al lows their evaluation in the special user programs Interrupts with the highest priority are to be given the value 4 A detailed description of this block and its pa rameters can be found in the block description Appendix B of this manual Exam ples are in Ch 3 3 3 o Use the standard function block OUT if necessary also IN for your user program o Link your AKF user program o Connect the programming panel and the programmablecontroller with YDL 052 and transfer the AKF user program to the ALU o Do not start your AKF program until the DEZ 161 has been equipped and parameter ized according to Ch 3 3 5 Otherwise the erro
16. G products are trademarks of the AEG Aktiengesellschatft 1994 AEG Aktiengesellschaft 20 20 gt q Q DPM IR Terminology Note This symbol emphasizes very important facts Caution This symbol refers to frequently appearing error sources Warning This symbol points to sources of danger that may cause financial and health damages or may have other aggravating consequences Expert This symbol is used when a more detailed information is given which is in tended exclusively for experts special training required Skipping this information does not interfere with understanding the publication and does not restrict standard applica tion of the product Path This symbol identifies the use of paths in software menus Dual Port Memory Interrupt Figures are given in the spelling corresponding to international practice and approved by SI Syst me International d Unit s l e a space between the thousands and the usage of a decimal point e g 12 345 67 Informational Objectives This manual describes the capability of interrupt processing and binary input of the digi tal input expert DEZ 161 as well as the linking of these activities to the A250 program mable controller Our goal is that you should be able to realize interrupt processingwith the DEZ 161 Prerequisites are o Basic knowledge in configuration design of the A250 programmable controller o Basic knowledge in the programming of the A25
17. ch and task 10 is as signed 3 IRs also refer to picture 6 and O_INTR module description Task program that is instructed by the operating system refer to footnote in O_INTR Table 1 IR assignment to mask and IN OUT signal DEZ 161 SI 4 DEP 112 SI 2 DAP 112 SI 3 IR discretes in HEX mask 4 IR group on DEZ for IN4 for OUT 4 89 4 40 32 14 E2 A3 1 x 1 1 2 x 8 8 3 x 16 16 4 x 10 19 10 19 5 Xx 25 25 6 x 25 25 7 x 20 20 8 x 28 28 AIDATXn y IR enable 129 1 129 2 129 3 129 4 on DEP 112 SI 29 defined for Priority 4 3 2 1 1 IR group each mask 4 IPARn 2 Task 7 8 9 10 SI slot refer to Figure 4 Error output Q28 1 Q28 2 Q28 3 Q28 4 on DAP 112 SI 28 Configuration Design 13 14 Configuration Design Slot 2 1l 8 2 107 2 5 Eai 8 E 16 s 8 19 a 20 a Lu Q 25 28 DAP Slot 3 Allocation of discretes in with secondary conditions for one IR group each Allocation of the corresponding discretes out to the peripherals task 7 task 8 task 9 task 10 Figure 4 HW configuration and IR assignment Primary Subrack DTA 112 Slot Addresses 1 2 3 4 x 1000 1001 H89 3 o o gt IR 6 o 0000 0100 H04 5 E ole lis D Q a amp V 0100 0000 H40 al TEIE als lo E 0011 0010 H32 s I Bin o i Inp
18. code for another block written by the user himself e g OB 10 or OB 471 as IR OB Error Handling If an error is detected when the block is executed error marker AF is set AF 1 and the corresponding error number is entered in the WAF AF might possibly only be pres ent for a short time and return for each SFB call as long as the cause of the error is not corrected WAF is not reset automatically The meaning of the INTR error numbers is shown in the following table lt WAF gt Meaning 45 value lt zero 47 value lt minimum 48 value gt maximum 1302 error task generation Example SFB 392 Condition O_INTR 1 SA 1 IN MELD MEID 1 xx Bit I1 2 torr AFL 6 2 Bit xx IPAR 1 PARA WAF MW 40 Word xx PROC 10 OB xx IDATX 1 DAT Note Please refer to Example of IR Application DEZ 161 User Manual Interrupt Processing Binary Input for A250 for more information O_INTR 45 46 O_INTR 22 Index A actual value field 19 Block Library v branch distributor for IR programs 4 C cabling of the modules 11 D Data structure IDATX 42 IPAR 42 MELD 42 DCF 77E 33 DEBZ data structure 19 direct binary input IN 19 direct binary output OUT 19 E EQ editor 19 event flag 43 expert driver 4 expert memory 12 F FBD for IN 18 FBD for OUT 18 FBD representation of networks 16 filter time as paramet
19. e actual state of the process interrupts and process image IDATXn 33 of all 32 inputs of the DEZ module Note The bit dependent images of the individual DEZ inputs e g IDATXn 1 2 3 to IDATXn 31 32 do not have faster reactions than the double width image IDATXn 33 of all inputs of the whole DEZ161 module Expert When determining the priority the selected priority parameter e g 4 as high est priority 124 is subtracted internally from the number 128 Internally the lowest number has the highest priority i e 120 has a greater urgency than 124 Expert The service subroutine assigned to the O_INTR only calls an initialization pro cedure which creates the common data segment and the event flag group for the inter rupt tasks if this is necessary This prevents unnecessary extensions in the scan times An attempt to generate more than 4 interrupt tasks will be rejected and causes an error message Correct initialization is acknowledged by setting the event flag in the compo nent event flag group O_INTR 43 44 O_INTR 3 1 3 1 1 Configuration Explanation of individual formal operands Formal operand CRT Create Task Depending on the edge 0 1 bit status interrogated for 1 the task is enabled Depending on the edge 1 0 bit status interrogated for 0 the task is inhibited Note After the 1 O_INTR call the corresponding system markers are handled and a task is created However it depends on
20. e 8 Front view and DEZ 161 card label 24 DEZ161 DEZ 161 U comm DCF card AEG OS No 2993 274 937 He O C n mmn a 2 si r group 1 A z a 5 O st r group 2 e J BAT f z W A RS gt group3 RAM q E ST r group 4 SS Ki EP Parameter EPROM FW Firmware EPROM MP Micro controller RAM Slot for RAM SR Screws for the earthing of metallic shield components ST 11 pole screw plug terminals process connection sensor supply The module has no operating elements but it does have a BAT jumper to connect the data RAM to the backup voltage of the PAB parrallel sy stem bus In order to configure parameterize and program the DEZ 1
21. e DEEM data structure shown in the EQ menu is reserved for real time mes sage processing There the expert driver can maintain an additional image of the real time messages EZM EZM real time event is in preparation References to examples in IL and FBD format The examples in Ch 3 Configuration Design show interrupt evaluationin IL program ming with IL and FBD format OB1 OB1 SFB392 OB471 PB481 SFB442 NW 1 L SFB443 i PB482 pB4gg3 PBa84 k CA AKF125 DEZ161 0B1 NW 2 Network 2 SFB392 OB472 PB485 BC SFB 392 L NAME O_INTR ae fer ee TN 2 SA1 0B473 PB486 SRT o 1293 NW 4 SFB392 i sal PB487 l i PER 8 B DAT IDATX2 PB488 MELD MELD2 L WAF MW 1122 pE kkk Figure 3 Program structure in networks In Ch 3 with the exception of NW2 the networks NW1 to NW4 of the organization block OB1 also refer to Figure 1 are not presented in IL format but only as a se quence of parameterized blocks SFB392 O_INTR Figure 7 Each parameterized SFB392 block contains the assigned OB47x call e g OB471 as task7 The reader will get the IL format of the parameterized O_INTR when transfer ring the actual parameters that are specified in the respective FBD representation into the given network 2 example also refer to Figure 3 at right NW2 then becomes NW1 or NW3 or NW4 General Information 5 6 General Information C AKF125 DEZ161 OB1 Net
22. e eee eae 2 Important SFBs and their impact on user program runtime 0 000000e 3 References to examples in IL and FBD format 00 00 eee eee eee 5 Operation ice tad hearer tan wean 7 Indicator Elements oeer ve hacen te each EEE E eae aE a E Ria ds 8 Operating Elements 00 ccc eee cence eee eens 8 Configuration DeSign 02 cee cece 9 Prerequisite Knowledge 0 cece eee eee teens 10 Hardware and Software Requirements 60 ccc cece eee eee eens 10 Steps for configuration design 0c cece eet nents 11 Preparations to build the programmable controller hardware 11 Requirements for the A250 oyec oaran aR ARACEAE ER ARE 11 Requirements for the U250 0 tenets 11 PROCCQUIC eaaa E E tern ER ET ENE wet bea Lea ate Ok ahha a eek acess 11 Preparations for the programming of the programmable controller in AKF125 12 Requirements for the A250 a E IRRI eens 12 Requirements for the U250 0 cece eee eens 12 Procedure for the A250 0 c cece eens 12 Procedure for the U250 nr r eens 12 Example of IR Application with Block Linking 0 0 eee eens 13 Configuration with task definition 0000 cee eee eee 13 Solution presented in IL and or FBD format 0 00 0 cece cece ee eens 15 Additional DIOCKS ss ccoss nn comnts Phvndcnnte ware deh ONO sana ee bene ey 18 Example of bina
23. e user Figure 5 is already displaying the result of the 20 3 3 3 2 Branch distributor initial value input If the user does not want to predetermine the initial values for IPAR per SYM KOM editor a declarationpart can instead be created per IL prior to every O_INTR call Note IR enable via a module in a secondary subrack is almost never time sensitive since interrupts in general remain enabled for longer periods of time and their enable bits have already been stored in the process image Solution presented in IL and or FBD format Please compare the IL presentation with the FBD presentation of Figure 7 also refer to Ch 1 2 3 OB1 SFB392 OB471 PB481 SFB442 L SFB443 PB482 SFB442 SFB443 PB483 SFB442 L SFB443 PB484 SFB442 SFB443 SFB392 OB472 PB485 SFB442 SFB443 m SFB392 OB473 PB486 SFB442 L SFB443 SFB392 OB474 PB487 SFB442 SFB443 PB488 SFB442 SFB443 PB489 SFB442 SFB443 Figure 6 Program structure in IR program blocks CA AKF125 DEZ161 OB471 NETWORK 1 1 IR gr prio4 OB472 A IDATX 1 1 A IDATX 2 3 BCC PB 481 BCC PB 485 A IDATX 1 4 eee BCC PB 482 2 IR group A IDATX 1 4 BCC PB 483 OB473 A IDATX 1 8 A IDATX 3 7 BCC PB 484 BCC PB 486 identifies the IR in the group 3 IR group original OB471 format for PB calls C A AKF125 DEZ161 OB1 Networks 2 B
24. ements The configuration design should be carried out in three steps o Preparations for the design of the programmable controller hardware incl the DEZ 161 refer to Ch 3 3 1 o Preparations for the programming of the programmable controller in Dolog AKF soft ware refer to Ch 3 3 2 o Preparations for the parameterization of the DEZ 161 software refer to Ch 3 3 5 Specific hardware and or software requirements must be given consideration at each step They are therefore listed first for every given configuration step Please make sure that these requirements have been met 20 20 3 3 3 3 1 3 3 1 1 3 3 1 2 3 3 1 3 Steps for configuration design Following are the steps involved in the configuration design Whenever additional in formation is needed the appropriate documentation is clearly referenced Preparations to build the programmable controller hardware Requirements for the A250 o For operation in the primary subrack BIK 116 DNP 106 or DNP 116 prescribed location for DEZ 161 in IR operation o In secondary subrack for input without IR DEA 116 o DEZ 161 with DEZ F01 and DEZ F02 EPROM for IR operation only 1 DEZ 161 employable oa A250 forms pad documentation aids optional o SFB EXP forms pad documentation aids optional Requirements for the U250 o Same as A250 o If working with other parameters than those for the A250 create parameter EPROM with PRO U250 or download the paramete
25. er 19 H hardware requirements 10 hex mask IPARn 2 13 l Identifying of IR 6 IL representation abbreviated 16 implementing SFBs 12 IN runtime 3 individual user programs 2 initial start up steps 20 Initial values for IPAR 14 Interrupt processing A250 O_INTR DEZ161 41 IR program blocks branch distributor 15 20 IR sequence 4 J job elements for DEBZ 19 L linking of user program 12 M Mode of functioning A250 10 module settings 11 Module related module block DEZ161 O_INTR 41 N networks 2 number of cycles standard 5 19 O O_INTR runtime 3 Organization block Interrupt O_INTR 41 organization block 2 OUT runtime 3 P parameter EPROM for U250 11 PB listing 17 prerequisite knowledge 10 priorities 19 priority levels 4 13 priority task combinations 13 PRO U250 12 process image 4 program structure networks 5 Programming of the A250 in AKF 10 R Receiver DCF 77E 33 S scanning of secondary conditions 4 SFB392 O_INTR 41 slot address physical 19 slot No 19 slot reference 11 software requirements 10 Index 47 T Task 42 task 5 task definition 13 terminal assignment 11 terminal assignment forms 11 time sensitive processes 3 two secondary conditions per IR 16 48 Index 20
26. er with a parallel capacitor this induc tivity forms an oscillating circuit the resonance of which is adjusted finally by moving the coil on the ferrite rod The output signal is present as a pulse length modulated message according to the transmitter keying The second pulses are amplified so that the information is available serially for downstream modules The downstream impedance may not exceed 280 ohms This corresponds to a load of 16 modules of the DEZ 160 type for example A PTC thermistor is present as a protection against the short circuit A LED which is visible with the chassis open and which can serve to check the func tions andd set up is located at the output of the switching amplifier Intelligent modules which are connected to the DCF 77E must have an isolation input at their disposal The start of each new minute serves the synchronization of the very accurate clock which must be formed inside the processor 20 3 1 3 2 3 3 3 3 1 3 3 2 20 Operating and Display Elements A yellow light emitting diode is integrated as a pulse indicator inside the device Howev er it only serves as a set up aid and a simple functional check Configuration The following is to be planned for the module Oo The location o The installation and alignment Location The location is to be selected so that the receiver is not subjected to any direct sunlight during the operation It is also to be noted that the de
27. erating element Therefore the operator should never attempt to modify it 20 Chapter 3 Configuration Design This chapter lists the a hardware and software that must be in place for the DEZ 161 to be come operational o specific requirements for the installation of theprogrammable controller o steps for configuration parameterization and start up of the module Following the configuration steps is an example of a detailed IR applica tion with actual task definition and hardware configuration as well as a description of the solution After the example is the FBD presentation of the IN and OUT blocks The software solution is presented and written in an abbreviated method that will give the reader an opportunity to re construct the parameter processing without having to go to other pages The exact procedure of above stated points is described in the respec tive user manual of the A250 or U250 programmable controller and or in the appropriate software package Configuration Design 9 10 3 1 3 2 Configuration Design Prerequisite Knowledge o In order to accomplish the configuration design of the module as part of a program mable controller it is expected that you are familiar with the mode of functioning of the programmable controller and that you can design its hardware components o Another prerequisite is your programming knowledge of the programmable controller in Dolog AKF Hardware and Software Requir
28. es The detailed execution of above mentioned configuration steps is described in the re spectiveuser manual of the A250 or U250 programmable controllers or in the respec tive software package DEZ 161 Module Descriptions O_INTR Block Description 20 20 Related Documentation Modicon A250 Compact Controller User Manual A91M 12 271 953 Dolog AKF gt A120 A250 Typ AKF125 Version 2 0 Diskettes 3 1 2 and 5 1 4 User Instructions E No 424 275 181 A250 Dolog AKF Standard Function Blocks AKF125 Version 2 x Volume 1 A to P Block Library A91M 12 279384 A250 Dolog AKF Standard Function Blocks AKF125 Version 2 x Volume 2 Q to Z Block Library A91M 12 279385 User Manual U250 in preparation Operating instructions for software package PRO U250 in preparation vi Applicability The performance described in this manual represents performance level 1 of the DEZ 161 module digital input expert the EPROMs DEZ F01 and F02 are at revision status Rev 0 Statements made for the SFBs refer to AKF125 Version 2 0 20 Chapter 1 h ok ok hhi UN a N e Chapter 2 2 1 2 2 Chapter 3 20 Table of Contents General Information 00 cee eee eee eee eee eee 1 Performance Capability of the DEZ 161 cece ees 2 Path to Solutions with IR Processing 00 cece eee e eee teen eens 2 Structural elements of IR user programs 020 cece eee e
29. f the DEP 112 This allows individual input points to be checked runtime of the IN 1 1 ms When using the IN the call of this block has to precede the OUT in the user program IL With both SFBs the respective bit field is addressed through the first and last bit as well as the slot number of the associated module The bit to be chosen must al ready be specified for the routing to an output module e g E29 1 to A28 1 The IR PB interrupts the primary user program After executing the IR PBs the primary user program continues at the interrupted point Each IR prolongs the runtime of the General Information 3 4 General Information primary user program If several IRs with the same levelof priority are occurring at the same time no bouncing of an IR the processing sequence is determined by the se quence of the notation in the user program branch distributor e g OB471 Every user can independently choose to link additional tasks functions with an IR e g scanning of one or more conditions such as existence of a contact status or filler sta tus message or prefix of a temperature gradient Note For optimum runtimes it is recommended to program interrupt user programs in IL Note If the discretes in 17 32 on the DEZ 161 are still free and available next to the IR discretes in 1 16 the secondary conditions that are to be scanned should be placed there in order to save time since the user can read the secondary condit
30. interrupt tasks Each user defines the allocation of the bit change to the activity himself 4 priority lev els for selection are provided to activate different OBs for the interrupt inputs in max 4 bit groups definition with masks Warning Online exchange of the formal operands i e also of the organisation module connected to the OB as well as the data structure is not allowed Display Function Block Symbol SFB 392 Condition O_INTR SA TN MELD ELD BIT CRT AF BIT IPAR PARA WAF WORD PROC OB IDATX DAT Block Structure Formal Identi Number Meaning operand fier O_INTR Operation call TN SA addr Logical node number of the DEZ 161 in the equipment list preset value 1 The number of different node numbers of the DEZ modules is equal to the number of DEZ in the ALU subrack CRT Bit addr Enable edge detection PARA IPAR Data structure interrupt parameter OB PROC Number of the organization block in which the interrupt program resides e g OB7 DAT IDATX Data structure interrupt data MELD MELD Data structure signals AF Bit addr Error marker AF 1 error WAF Word addr Error codeword lt WAF gt error number see chap 3 2 1 Task job to which a sequence of commands usually an execution object is assigned in the operating system O_INTR 41 IPAR Element Element type Symbol suggestio
31. ions in the highword of the IDATXn 33 directly no waiting for information to arrive in the DEBZ The process image of the DEZ discretes in is recorded in IDATXn 33 and in DEBZn 3 to 6 after a number of cycles refer to Ch 3 3 4 DEZ 161 IDATXn O INTR IR trigger 1 __ L event flag f group IR trigger 16 32 33 Image rocess image HT D DPM 4 me ann at DEBZn 5 byte 17 24 cyclical 6 byte 25 32 per OB Bin yer Inpt Signal memory we DEEM a cyclical in preparation event flag event flag refer to Note Appendix B Ch 2 3 standard all 5 cycles Figure 2 Data Transmission structure Through the DEZ firmware a data image of all 32 DEZ discretes in is being created in expert memory DPM of the DEZ 161 Based on this image and interrupt controlling via the O_INTR the expert driver of the PLC creates the IDATXn 33 process image The bits IDATXn 1 to IDATXn 32 contain the interrupt triggering conditions of those discretes in selected by the IPARn 2 mask 20 1 2 3 that are assigned to the corresponding IR group i e also to a task In addition for an application case the expert driver creates parameter EPROM DEZ F02 cyclically refer to Ch 3 3 4 in DEBZ1 5 to 1 6 an image of the discretes in 17 32 after the 5th cycle the transmission is parameterized Note Th
32. is to be implemented in the ALU Universal application Geadat U250 applications and universal tasks of the DEZ with the A250 are self para meterized by the user This requires the PRO U250 parameterization program on AKF125 basis The firmware program to operate the DEZ 161 is available in diskette format Both programs will be deliverable together on diskette in the same slipcase incl reserve EPROM The user will be programming the firmware EPROM as well as the parameter EPROM using a programming station along with programming panel incl the appropriate diskette As an alternative the application specific parameters can be loaded directly into dual port memory DPM Note The DEZ 161 cannot run without firmware DEZ161 27 3 4 Connection and Assignment of Signal References UB 24 60 VDC M1 0 5A U1 24 VDC DEKH N M 0 5A n DIBO 111 1 Q STER 3 D AAAA UU 18 i to DCF 77E i N g D 116 od gt 117 m D 124 A A 125 wr r 3 D 132 a Up 24 60 VDC 1 Omly at Ug 24 VDC an alternative connection Ug U1 and M1 M is allowed DCF 77E Figure 10 Example of connection for process discretes in and DCF 77E receiver The self adjusting protective input circuit eliminates configuration measures in case of different external
33. lic of Germany It is constantly transmitted from the DCF 77 long wave transmitter in Mainhausen near Frankfurt a M with a frequency of 77 5 kHz Physical Characteristics The DCF 77E is integrated in a plastic chassis It consists of grey polyester and is pro tected against splashes A connection cable with a length of approx 4 m is part of the device The cable is guided out of the chassis via a PG7 screwed slant Mode of Functioning Coding the Time Signal The time information is coded in the signal of the transmitter in the following way The carrier amplitude is lower to approx 25 for a period of 100 ms or 200 ms at the start of each second A reduction for 100 ms corresponds to coding a logical 0 a re duction for 200 ms a logical 1 The start of a minute is indicated by the fact that the 59th second pulse is missing The transmission of the BCD coded time information starts after the start bit transmitted in the 20th second one bit per second The com plete time information is therefore transmitted once a minute It consists of various identifier bits summer winter time switching second start bit check bits the minute hour day week day month and year information Circuit Description The heart of the DCF 77E is a narrow band non reversing receiver with a quartz filter and automatic amplification control A ferrite rod with a single layer coil made from an RF litz wire serves as the receiving aerial Togeth
34. linking Initiate networking PADT lt PLC with SeTup gt Networking gt Local V 24 Load basic SW into the ALU with Loading gt Bootloading Finish bootloading B3 of the ALU to OFF Transfer of program to PLC with Loading Program to the PLC Start program with Online gt Starting PLC LED run of the ALU is on Testing and if necessary diagnostics of program with Online gt Dyn status display or Online gt Online list Stopping of program with Online gt Stopping PLC The steps listed above are excerpts from the A250 user manual Under no circum stances does this listing replace the study of the manuals by the user 20 Appendix A Module Descriptions Module Descriptions 21 22 Module Descriptions 20 DEZ 161 Binary Input Discretes In Module Description The DEZ 161 is an expert module for Modicon A250 or Geadat U250 with 32 isolated discretes in 24 60 VDC respectively In cases where a DCF 77E module is attached the DEZ 161 can also record real time events DEZ161 23 code O b HZA ERER gt O O O O J O 4O 352 O 36 37 KEA 323 40 J 1 42 83 LA DEZ 161 274 935 Figur
35. n Meaning IPARn Data structure interrupt parameter n 1 4 IPARn 1 Byte addr PRIO Priority 1 4 of the IR task to be created 4 has highest priority IPARn 2 Double word adadr MASKE 32 bit mask of the bit to be processed by the IR task at the DEZ module IPARn 3 Byte addr TASK _ Task no of the IR task to be created value 7 10 IPARn 4 IPARn 7 Reserve Note Priority mask and task no can be preset in tabular form as initial value by the SYM COM editor see user manual DEZ 161 Only inputs 1 16 can be assigned IR at the moment Exchange of the mask IPARn 2 is invalid online IDATX Element Element type Symbol suggestion Meaning IDATXn Data structure interrupt data n 1 9 max 4 can be assigned IDATXn 1 Bit addr BITO1 Input 1 of the DEZ 161 IDATXn 2 Bit addr BITO2 Input 2 of the DEZ 161 IDATXn 16 Bit addr BIT16 Input 16 of the DEZ 161 IDATXn 17 IDATXn 30 Inputs 17 32 cannot be used at the moment IDATXn 31 Bit addr BIT31 Input 31 of the DEZ 161 IDATXn 32 Bit addr BIT32 Input 32 IDATXn 33 Double word addr HW_BITS Image of the 4 x 8 DEZ 161 inputs faster in reaction than IDATXn 1 2 32 IDATXn 34 IDATXn 63 Reserve G Note Data structure IDATXn is only read in within the framework of the OB1 if a spe cial IR input of the DEZ 161 addressed and interrogated in the corresponding OB with IDATXn y was actually set i e the expected IR really arrived Note IDATXn 1 32 provides
36. ole screw plug in terminal for optional DCF recep tion plug connector C34M refer to respective user manual Ch 4 0 50 C 5 If the operational voltage exceeds 24 VDC the Up 24 VDC voltage is passed on to continue externally voltage offset can mistakenly light up the LED of an attached output module 21 21 4 8 Ordering Information Module DEZ 161 without firmware 424 274 935 Replacement card labels 424 274 937 Firmware DEZ F01 EPROM for A250 424 275 198 DEZ F02 parameter EPROM for interrupt processing 424 277 794 Accessories for DEZ 161 SIM 011 simulator 424 244 721 DCF 77E receiver 424 246 687 Accessories for DCF 77E DCF K01 console 424 246 688 LiYrdF Cgv Y cable YDL DC1 cable We reserve the right to make technical changes 6 interrupt discretes in 11 116 with 0 5 ms input delay discretes in 117 182 with 4 ms input delay 424 002 691 by the meter 424 246 697 50 m ready for service DEZ 161 31 32 DEZ 161 21 DCF 77E Receiver Module Description The DCF 77E receiver is a module to receive the official time of the Fed eral Republic of Germany DCF 77E 33 34 DCF 77E 1 1 1 2 1 2 1 1 2 2 General Information The DCF 77E receives the BCD coded time information transmitted from the Physikal isch Technische Bundesanstalt Physial Technical Federal Office in Braunschweig This information is the time scale valid in the Federal Repub
37. r key words of the DEZ related stan dard function blocks are going to send error messages Note There is no need to establish expert memory because this is an automatic func tion of the AKF125 Procedure for the U250 2 there are more requirements made of the programming panel than only IBM AT compatible Details are in the user instructions enclosed in the respective software package in preparation in preparation BO 20 3 3 3 3 3 3 1 Example of IR Application with Block Linking Configuration with task definition The DEZ 161 has 16 interrupt discretes in and of these every discrete in from 1 to 8 should be occupied without any gaps The 8 interrupts to be processed are assigned 4 levels of priority refer to Table 1 Each IR is to be enabled with its own input bit on a DEP module slot address SP 29 Each IR has at least one secondary condition which is entered via another DEP module SP 2 Successful processing of each IR should trigger an action that is dependent on the predetermined secondary condition i e plac ing an output bit of its own on a DAP module SP 3 Each level of priority should be assigned an output bit on another DAP module SP 28 whenever the IR processing is faulty refer to Table 1 The following priority task combinations 4 7 3 8 2 9 1 10 or hex masks of IR IPARn 2 H89 H4 H40 H32 respectively have been selected i e task 7 is assigned 3 IRs task 8 and task 9 is assigned 1 IR ea
38. retes in of a DEZ 161 can be filled with data types in 4 in put groups each i e mixed or uniformly with only one data type Interruptsare a special form of binary input with differently configured priorities Contrary to DEP modules the DEZ 161 allows restriction of signal processingto exactly defined signals Each discrete in can be configured with polarity and filter time 1 255 ms debounce time of the sig nals A signal is valid if the modified polarity remains for a predetermined period of time Note However the default setting from the parameter EPROM DEZ F02 has 16 IRs and 16 discretes in The filter time periods predetermined there are 8 ms for binary in put and 1 ms for interrupts Binary input is recorded per ms and if valid it is stored byte by byte in the header of the actual value field of the expert DPM as well as in the actual value field DEBZ1 3 to DEBZ1 6 of the DEBZ data structure i e for instance in DEBZ1 5 3 discretes in block 4 discretes in 17 24 DEBZ1 6 4 discretes in block 4 discretes in 25 32 The transfer to DEBZ in the area of the PLC occurs cyclical That is where they are then available for continued processing DEBZ is made available to the user by the SYM KOM editor The EQ editor can be used in the predefining of job elements for DEZ 161 regarding cycle and phase The entry for number of cycles determines after how many cycles the expert driver goes to the DPM of the DEZ to get the appropriate
39. retes out discrete out 10 and 19 on DAP refer to PB482 and PB483 In case of failure the assigned WAF contents are stored in the marker words MW 1141 1149 for the IN or in MW 1151 1159 for the OUT block respectively The interrupt defaults and other input were made with the SIM 011 simulator 8 direct discretes in each The distribution of the I O modules to 2 subracks is arbitrary Using only one DTA ef fects address changes in the selected example and results in faster triggering of the in put output modules because there are no bitbus runtimes Note In listing the program blocks created in the IL an abbreviated column by col umn method of writing was chosen not usually done in actual work situations only those parameters are listed that have changed compared to thoseof the pre vious column O input output group Grey shaded fields original representation of the program blocks left PB481 and PB485 incl station path middle PB482 and PB487 without heading station path 20 20 Listing of the program blocks PB481 to PB489 C AKF125 DEZ161 PB481 NETWORK 1 1 IR priority 4 BC SFB 442 NAME IN NAME TN i SA 2 TN KA K1 KA KE K1 KE AF M 36 21 AF WAF MW 1141 WAF NOP A 12 1 Q3 1 NOP BCC SFB 443 NAME OUT NAME TN 3 SA3 TN KA K1 KA KE K 16 KE AF M 36 31 AF WAF MW 1151 WAF 1 1 0 CA AKF125 DEZ161 PB485 NETWORK 1 1 IR priority 3 PB486 BC SFB 442 NAME IN TN SA 2 KA K 16 K1
40. rs o For details refer to the U250 user manual Procedure o Design and configure the programmable controller according to the specific require ments applicable to you incl the DEZ 161 as described in the A250 or U250 user manual Information regarding the connection of sensors and actuators to the DEZ can be found in the module description of this manual Appendix A o Define the slot references of the I O modules and the intelligent function modules refer to the A250 or U250 user manual o Assemble the subrack I O modules for time sensitive I O that do not permit any delay to be installed in the primary subrack with instruction type dir direct not cy clical in the EQ menu o In accordance with the A250 user manual Ch Settings on Modules the settings to be performed all details should be looked up in the respective module descriptions are in reference to o earthing of the DTA o switch on mode of the ALU a transmission rate of the BIK o Cabling of the module as defined by you and according to information contained in the module descriptions cabling system shield o Document the terminal assignment you defined DIN A3 form pads and card labels refer to Module Description DEZ 161 1 When using the DNP 106 perform total current Configuration Design 11 12 3 3 2 3 3 2 1 3 3 2 2 3 3 2 3 3 3 2 4 Configuration Design Preparations for the programming of the programmable controller in AK
41. ry input saseta neeaaea cee teenies 19 Preparations for the parameterization of the DEZ 161 software 19 Procedure for the A250 rresten isa E N eee eee eens 19 Requirements for the U250 0 cee eens 20 Procedure for initial start up 2 A EER eee 20 Table of Contents vii Appendix A Module Descriptions 0 2 cece eee eee eee eee 21 DEZ 161 Binary Input Discretes In 2 0 cece eee ee eee 23 DCF 77E Receiver sais ccc iew ete wee ie ewes eee ee ee eae 33 Appendix B Block Description 00 cece eee eee eee eee eee 39 O_INTR Interrupt Processing A250 41 Index 47 viii Table of Contents Chapter 1 General Information This chapter describes structural elements of interrupt user programs and their effect on the runtime of a primary user program It also contains information on how to create IR user programs The purpose of this chapter is to provide the reader with an understanding of the coopera tion between the DEZ 161 hardware module incl firmware and the DEZ related standard function blocks data structures General Information 1 2 1 1 1 2 1 2 1 General Information Performance Capability of the DEZ 161 Depending on firmware and parameter EPROMs and the cooperation with the required AKF user program of the ALU the DEZ 161 is capable to process interrupts and binary input as well as count values and real time events provided it is connected to a
42. se and or pulse duration that is gt 2 ms adds them up in 16 bit registers and puts the count value sumsinto the DPM to be routed to the ALU In order to process events and count values different debounce times can be preselected for the 4 groups of a module through parameterization i e the same time is valid for 8 discretes in of a group For the collection of realtime events the module must have a DCF 77E receiver with built in Ferrit antenna so that it can process the BCD coded time information trans mitted by the PTB Braunschweig The DCF transmitter station Mainhausen sends this time and date informationen in pulse length modulated messages and updates the time minute by minute The message information is decoded by the DEZ firmware it is compared and after synchronization of its own software clock max synchronization time 3 min the real time is recorded event dependent in the appropriate real time field The internal time base has a resolution of 1 ms The real time events are reaching the ring buffer of the DEZ in the sequence of their occurrence and are also made available to the DEEM data structure accessible to the user in the PLC The data string 8 by tes per real time event deposited in the ring buffer delivers a correct time sequence image made up of event information with exact time notation and rough time markers The DEZ 161 can accomplish the processing of process interrups in approx 4 ms through interrupt specific subrou
43. statuses which trigger the IR A differently indexed data structure IDATX should be used for each user task to be created IDATXn 33 is the process image of the inputs DEZ 161 MELD Element Element type Symbol suggestion Meaning MELDn Data structure signals n 1 4 diagnostic aid MELDn 1 Byte addr N_UEBER not used for O_INTR MELDn 2 Word adadr T_MAX Max runtime in milliseconds MELDn 3 Word adadr T_AKT Current runtime in milliseconds MELDn 4 Double word adadr ZEITM_SEK Moment of the last task start in seconds since 1 1 1980 MELDn 5 Word addr ZEITM_MS _ Time in milliseconds with regard to last full second see double word MELDn 6 Double word adadr ZEITD_SEK Time difference to last task start in seconds MELDn 7 Word adadr ZEITD_MS _ Time difference in milliseconds with regard to last full second 42 O_INTR 22 22 2 3 Mode of Operation of the Block The SFB O_INTR sets up the link from a group of interrupt inputs to the corresponding interrupt user program OB The link is activated by a signal change 0 gt 1 current definition in DEZ 161 at an input of the selected group of DEZ inputs Any combination is possible in a group and any selection of allocated task numbers 7 10 is allowed Basic data from expert dual port memory 4 Byte change state of the process interrupts IDATXn 1 to IDATXn 32 i e the activating bits are valid for this task and this interrupt depends on the masking in IPARn 2 4 Byt
44. t IR mask IPARn 2 for inter ZES ki rupts of equal priority m DEP DAP DEZ161 Slot Addresses Slot 20 21 22 23 24 25 26 27 28 29 3 lt OET 4 a TE DAP112 DEP112 Secondary Subrack DTA 113 SWH KOM Editor Sional Sunbol Konnentar Initialwert lt gt IPAR1 1 IRi1_8 PRIOR 1 DEZ161 Prioritats Vorgabe 4 1 4 IPAR1 2 IR1_8_HASKE 1 DEZ161 Interrupt Haske 89 IPAR1 3 IR1_8_TASK 1 DEZ161 Interrupt Task Nr 7 10 7 IPAR2 IPAR2 1 IR2_8_PRIOR 2 DEZ161 Prioritats Vorgabe 4 1 J IPAR2 2 IR2_8_HASKE 2 DEZ161 Interrupt Haske 4 IPAR2 3 IR2_8_TAS 2 DEZ161 Interrupt Task Nr 7 10 8 IPARI IPARJ 1 IR3_8_PRIOR 3 DEZ161 Prioritats Vorgabe 4 1 2 IPARD 2 IR3_8_HASKE 3 DEZ161 Interrupt Haske 40 IPARD 3 IR3_8_TAS 3 DEZ161 Interrupt Task Nr 7 10 g IPAR4 IPAR4 1 IR4_8 PRIOR 4 DEZ161 Prioritats Vorgabe 4 1 1 IPAR4 2 IR4_8_HASKE 4 DEZ161 Interrupt Haske 32 IPAR4 3 IR4_8_TASK 4 DEZ161 Interrupt Task Nr 7 10 18 Darstellungs Art MIAS Elementtup lit reine Lesedaten EM gt Uberschreiben 4 Pere EATERS ose os 2 DEZ161 lt OFFLINE gt PUTE Figure 5 List of symbols and comments with initial values Type of presentation hex type of element DW are referring to the individual ele ments e g IPARn 2 the attribute overwrite applies to the complete list These attrib utes are fix programmed to aid th
45. tines giving highest priority to the undervoltage warn ing The DEZ 161 has dynamic restart characteristics i e if the respective identity data such as ident code or station number correspond it attempts a self restart of the program in case of permanent failure DEZ161 25 26 DEZ 161 The system related parameters of every DEZ 161 are stored against failure per pro gramming panel with the parameterization program PRO U250 and a programming station in the corresponding parameter EPROM or they are loaded directly into the DPM without a programming station and without additional memory on EPROM The in ternal voltage supply is handled by the power supply module e g DNP 116 BIK 116 The isolated descretes in are supplied in groups with external 24 60 VDC Operating and Display Elements The front of the module has 38 displays o 4x green U LEDs for sensor supply one each per group on power supply available off power supply not available o 32 x red LEDs 1 32 for the signal condition of the discretes in on signal available off signal not available o 1 x yellow LED comm DCF for DCF communication blinking DCF communication o k o 1x green LED ready for DEZ operation on DEZ firmware is running The SIM 011 simulator 8 toggle switches can be plugged on in order to simulate 8 discretes in each of the 11 pole screw plug in terminal 21 21 3 1 3 2 3 3 3 3 1 3 3 2
46. vice must still be turned for the alignment Installation and Alignment It is recommended to install the DCF 77E receiver by means of the DCF K01 console which can be supplied as an option see ordering information chapter 4 The installation and the alignment are to be carried out according to the user informa tion enclosed with the receiver Accessories DCF K01 Console The DCF KO1 console serves the installation and alignment of the DCF 77E to the long wave transmitter It consists of a bracket and a mounting plate The device can be turned on the console aligned to the DCF 77 transmitter in Mainhausen and fixed in this position Cables If the fixed cable is not sufficient it can be replaced by one of the following cables o LiYrdF Cgv Y cable This service cable is to be ordered in meters However it must still be assembled o YDL DC1 special cable This service cable with a length of 50 m is supplied pre assembled with a 4 pole connector The special cable must be solded again for the replacement DCF 77E 35 3 4 Dimension Sheet 2 6 5 INNS 105 an a 60 max 240 36 DCF 77E 4 Specifications Supply Supply voltage Nominal value Operating value Current input Receiver Data Receiving frequency Sensitivity minimum decodable input signal max permitted input level Delay
47. voltages 28 DEZ 161 1 DEZ 161 2 DEZ 161 n DEZ 161 2 code O 2 code O 2 code Up for DCF 77E 7 4 4 eee TA S000 4 O 4 4 O O O O from DCF 77E o The connection Ug with U1 is only allowed when Up 24 VDC U1 is not dragged along For DEZ modules that are served by acommon DCF 77E in spite of greater distances special operating procedures should possibly be considered n lt 16 Figure 11 Example of connection for several DEZ 161 on one DCF 77E receiver Note A commercial cable by the meter with screw plug in terminal socket connec tor is attached to each 4 pole connector For the quick replacement of a DEZ this socket connector is removed without having to take off the threaded joints of the at tached I M and PE cores to the next DEZ 161 3 5 Schematic Symbols DCF 77E 1 l2 j1 IS lio 112 13 22 114 7 U1 MPE U UM i 18 UUM 19 Q Q DCF 1 3 10 12 14 2 comm 35 ready y y PAB PSB y y 23124 33 25 32 ____ 134 35 44 36 2 43 UUM 117 124 UUM 125 132 Q Q Q
48. work NAME TN CRT PARA OB DAT MELD AF WAF 2 BC 0_ kK SFB 392 NTR SA 1 129 2 IPAR 2 PROC 2 IDATX 2 MELD 2 Q28 2 MW 1122 Name of SFB 392 Node No 1 Enable bit on DEP 112 in expansion DTA scan SP29 Presetting through masking via data structure IPARn n 2 If IR recorded by mask identify IR with OB472 and evaluate Puts IR data into declared data structure IDATXn of IR group n Update this data structure for diagnostic purposes Error flag Error ID For lt CRT gt 0 task is created but the O_INTR is not called Note Additional explanations of the standard function block that is shown here in IL programming can be found in the block description O_INTR in Appendix B 20 Chapter 2 Operation This chapter provides an overview of indicator and operating elements in the DEZ 161 module 20 Operation 7 8 Operation 2 1 2 2 Indicator Elements The front of the module has 38 indicators o 4x green LEDs U for sensor supply one each per group on supply available off supply not available o 32 x red LEDs 1 32 for signal condition of discretes in on signal available off signal not available o 1 x yellow LED comm DCF for DCF communication blinking communication DCF o k o 1x green LED ready for DEZ operation on DEZ firmware is running Operating Elements The module has no operating elements Caution The BAT jumper on the module is not an op

Download Pdf Manuals

image

Related Search

Related Contents

Samsung 94B Käyttöopas  Hitachi Koki USA DDC 35n Network Card User Manual    Manual de usuario online  DIRECT OPHTHALMOSCOPE USER`S MANUAL    Toronto FAQ V 1.6  音声エラー検出装置・『音声』チェッカー AED-800    

Copyright © All rights reserved.
Failed to retrieve file