background image

SIMATIC S5

IP 240
Counter/Positioning/
Position Decoder Module

Manual

 

EWA 4NEB 811 6120-02b

Edition 03

Summary of Contents for Simatic S5 IP 240

Page 1: ...SIMATIC S5 IP 240 Counter Positioning Position Decoder Module Manual EWA 4NEB 811 6120 02b Edition 03 ...

Page 2: ...ge will result if proper precautions are not taken Indicates loss of life severe personal injury or substantial property damage can result if proper precautions are not taken Indicates minor personal injury or property damage can result if proper precautions are not taken CAUTION WARNING DANGER Hazardous voltage Can cause death severe personal injury or substantial property damage Restrict use to ...

Page 3: ...the IP 240 MLFB 6ES5 240 1AA12 With this MLFB the module was converted to SMD components as far as possible The changes to the module description required as a result of the changes have been included in Edition 3 of this manual The replacement pages at the end of the manual can be ignored in this case Use with the IP 240 MLFB 6ES5 240 1AA12 Supplements and changes to the revised module IP 240 MLF...

Page 4: ... a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a 9 a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a Module Description and Accessories System Overview Error Messages Appendices ...

Page 5: ...nt reaches zero IP 252 expansion The IP 240 operates as a slave for the IP 252 closed loop control module thus allowing the connection of other incremental encoders to the IP 252 The acquired signals are transferred direct to the IP 252 Positioning The IP 240 enables controlled positioning with cutoff points As many as 254 positions can be stored on the IP for this purpose When a position has been...

Page 6: ... comments will help us to improve the next edition Courses SIEMENS provide SIMATIC S5 users with extensive opportunities for training For more information please contact your SIEMENS representative Reference Literature This manual is a comprehensive description of the IP 240 Topics not specific to the IP 240 however are only briefly dealt with You will find more detailed information in the followi...

Page 7: ...cessor operation Order No ISBN 3 8009 1537 5 Automating with the SIMATIC S5 155U SIMATIC S5 programmable controllers Hans Berger Siemens AG Berlin and Munich 1989 Order No ISBN 3 8009 1538 3 You can find information on the range of units in the following catalogs ST 52 3 S5 115U Programmable Controller ST 57 Standard Function Blocks and Drivers for U Range Programmable Controllers ST 59 S5 Program...

Page 8: ...tnotes are identified by a superscript consisting of a small digit e g 1 or The actual footnote is generally at the bottom of the page or underneath a table Cross references are shown as follows Section 7 3 2 refers to subsection 7 3 2 No references are made to individual pages Actions required from the user are introduced by the symbol All dimensions in drawings etc are given in millimetres mm Th...

Page 9: ...fications or supplements become necessary in the course of time a supplement will be prepared and included in the manual the next time it is revised The relevant version or edition of the manual appears on the cover In the event of a revision the edition number will be incremented by 1 x EWA 4NEB 811 6120 02a ...

Page 10: ...enting an electrical or radio frequency hazard All cautionary statements have one of the following levels of caution A danger indicates that loss of life severe personal injury or substantial property damage will result if proper precautions are not taken A warning indicates that loss of life severe personal injury or substantial property damage can result if proper precautions are not taken A cau...

Page 11: ...a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a ...

Page 12: ... a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a...

Page 13: ...ons with higher frequencies and for connecting incremental encoders The module can be used in four modes Position decoding Counting IP 252 expansion only in the S5 115U programmable controller Positioning It is configured in the desired mode by the user program Fig 1 1 Modes of the IP 240 Module Mint 5 V S5 bus Interrupt circuit Outputs channel 2 Position decoding Counting IP 252 expansion Positio...

Page 14: ... only possible in the S5 1 15U programmable controller The 1P 240 can be operated in the central controllers of the S5 1 15U S5 135U and S5 155U and in expansion units with a central controller bus In the S5 115U programmable controller the compact module can be plugged in by means of an adapter casing Standard function blocks are available as user support for the exchange of data between the 1P 2...

Page 15: ... a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a...

Page 16: ... a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a...

Page 17: ...field test to IEC 801 3 Test field strength 3 V m Fast transient burst test to IEC 801 4 Digital inputs and outputs 1 kV Vibration to IEC 68 2 6 Tested with 10 to 57 Hz constant ampli tude 0 15 mm 57 to 150 Hz constant acceler ation 2 g Shock IEC 68 2 27 Tested with 12 shocks semisinusiodal 15 g 11 ms Free Fall IEC 68 2 32 Tested with Height of fall 1 m Degree of protection to IEC 529 Implementati...

Page 18: ...ls Two pulse trains displaced by 90 Channels A and B one reference signal Channel Z The Z signal is evaluated in zero mark monitoring and reference point approach during signal state A 1 and B 1 For the duration of signal Z states A 1 and B 1 may only occur once Section 13 1 1 Encoder output circuits with symmetrical pulse train to RS 422 A or similar rated encoder voltage 5 V connection to inputs...

Page 19: ... to P potential encoder voltage rating 5 V or 24 V connection to input CLK clock Binary input Encoders e g BERO proximity switches Encoder output circuit Switching to P potential operating voltage 5 V or 24 V connection to input GT gate Input frequencies Pulse input 5 V 1 max 70 kHz 24 V 2 max 25 kHz for 100 m cable max 70 kHz for 25 m cable Binary input max 100 Hz 1 max encoder output resistance ...

Page 20: ...a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a ...

Page 21: ... a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a...

Page 22: ...Residual current at 0 signal 1 mA max Output voltage at 1 signal Vp 3 V min Max length of shielded twisted pair cable 1000 m 3300 ft Rated insulation voltage to VDE 0160 30 V DC Insulation group C tested at 500 V AC Fig 2 3 Block Diagram of the Output Circuit Position decoding counting positio ning 5V a a a a a a a a a a a a a a a a a a a a 24 V a a a a a a a a a a a a a a a D a a a a a a a a a a ...

Page 23: ...ce If the supply voltage is not sufficient to supply 5 V DC for the encoder the encoder must be provided with power from another source The required voltage can for instance be fed in over the 24 V L M terminal on connector X6 Note that when supplying incremental encoders with symmetrical outputs to RS 422A from another source the difference in the earth potential between the encoder and the modul...

Page 24: ...DOS S5 DOS MT operating system 6ES5 848 7JB02 Positioning mode For the S5 DOS operating system 6ES5 848 8JC02 For the MS DOS S5 DOS MT operating systems 6ES5 848 7JC02 Fuse 0 8 A F e g Wickmann No TR5F 19370K 1 6 A T Wickmann No TR5T 19372K 1 0 A T Wickmann No TR5T 19374K Position encoders with symmetrical signals e g Siemens No 6FC9320 Connecting cables for 6FC9320 3 00 position decoders 5 m 6ES5...

Page 25: ...a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a ...

Page 26: ...a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a ...

Page 27: ... a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a S2 Setting the address space a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a ...

Page 28: ...nded I O area Q I O area 128 144 160 176 192 208 224 240 0 16 32 48 64 80 96 112 144 128 160 176 192 208 224 240 Starting address Programmable controller S5 115U P Q area S2 Address S3 on off S5 135U S5 150U S5 155U 4 3 2 1 5 3 2 EWA 4NEB 811 6120 02a ...

Page 29: ...184U expansion units Set the I O area or the extended I O area on the interface module Always put switch 2 5 on the IP in the off position S5 185U and S5 186U expansion units Set I O area or extended I O area on the interface module Set I O area or extended I O area on the IP Note The module address must lie in the P area if the IP 240 is to generate process inter rupts over I O byte PYO The switc...

Page 30: ... a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a...

Page 31: ... a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a...

Page 32: ... a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a CR 700 3 subrack CPU 0 1 1 1 2 1 IM 4 5 PS 6 3 a a a a a a a a a a a a a a a a a a a ...

Page 33: ...a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a ...

Page 34: ... a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a...

Page 35: ...e 0 5 to 1 5 mmz 20 to 15 AWG Solid conductor H07V U 0 5to 2 5 mmz 20 to 13 AWG Subminiature D type connector Flexible cable 15 pin up to 0 5 mmz 20 AWG One two pin and two seven pin socket connectors are supplied A I Warning Do not plug in or unplug the module or the connector while they are under power All inputs of the 1P 240 are non isolated Before a 1 signal can be connected to a 24 V input o...

Page 36: ...volt Encod signal Z asym The 24 V encoder voltage is connected to the 24 V ter minal on connector X6 I D italO utll I Digitaloutputl I Digital output 2 l Preliminary contact 1 Clock signal Gate signal I 1 Not for 1P 252 expansion For external encoder voltage External signal and voltage ground I I Fig 4 2 Connector Pin Assignments Note lnputsA X2 X4 and CLK X3 X5 aswell as B X2 X4 and GT X3 X5 are ...

Page 37: ...a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a Cable with foil shield and sheath wire a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a...

Page 38: ...A L M L Three wire BERO A1 A2 L M L Four wire BERO X3 X5 X6 X3 X5 X6 Note Only inductive proximity switches with outputs switching to L potential can be connected to the 24 V inputs of the module All inputs connected to BEROs must be set to 24 V switches S5 and S6 Section 5 3 2 The encoder ground must be directly connected to the module ground EWA 4NEB 811 6120 02a 4 7 ...

Page 39: ...onics 5 V 5 V M M M Connect shield to frame Cable driver to DIN 66 259 I O Standard RS 422 A 5 V M Note An AM26LS32 line receiver is used in the receiver electronics The maximum per missible cable length is 30 m 100 ft If the encoder electronics are operated with an independent supply 5 V ground potential differences of 5 V between encoder electronics and receiver electronics are permissible To ch...

Page 40: ...ush Pull Encoder Output Circuit 1 A T 9 13 a a a a a a a a a a a a a a a a a a a a a a a a a a a a X6 Receiver electronics M Z B A L Channel set to 24 V and asymmetrical encoder signals Connector X2 X4 Encoder electronics L M L 2 11 4 6 15 8 Note Ground connection M L must have as low a resistance as possible EWA 4NEB 811 6120 02a 4 9 ...

Page 41: ...Receiver electronics M 13 2 11 4 6 15 8 L External pull up resistors R R R Encoder electronics Note All encoders whose output circuitry allows a load with respect to ground and meets the required input level can be connected Encoders with open collector outputs can also be connected with external pull up resistors To change the direction of counting A and B must be interchanged 4 10 EWA 4NEB 811 6...

Page 42: ...10 2 12 Shield on shell Shield on shell 0 5 mm2 bl ye or bl br rd ye gr rd bl A Z 5V B Z M M 5V B a a a a a a a a a a a a a a a 6 a a a a a a a a a a a a 4 a a a a a a a a a a a a a a a 3 a a a a a a a a a a a a 2 a a a a a a a a a a a a a a a 1 15 pin subminiature D plug connector wiring post side metal plated shell with screw clamp 6FC9341 1HC a a a a a a a a a a a a a a a a 10 a a a a a a a a a...

Page 43: ...a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a Vs Supply voltage 1887 3 Note All digital outputs are isolated from each other and from the module ground Warning Because of internal protective diodes if the cables to D and D are connected the wrong way round the outputs are bypassed Any supply voltage is then switched directly to the load In order to avoid noise...

Page 44: ...a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a ...

Page 45: ...a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a Tables 5 1 Allocation of Serviceable Interrupt Circuits 5 2 a a a a a a a a a a a a a a a a a ...

Page 46: ...a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a S2 Setting interrupt generation Chapter 5 1 Setting address range Chapter 3 a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a ...

Page 47: ...a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a ...

Page 48: ...eneration over an IRx interrupt circuit the additional evaluation of I O byte 0 enables the use of one interrupt circuit for several IP 240s Interrupt generation with I O byte 0 Each bit in I O byte 0 can be reserved by one module with interrupt capablity Switches S1 1 to S1 8 on switchbank S1 are available on the IP 240 for this purpose By defining which bit is to be set for an interrupt signal o...

Page 49: ...o input module may be set to address IB 0 when I O byte 0 is enabled with switch S2 8 In the S5 155U process interrupt generation via I O byte 0 must also be enabled in DX 0 Calling the interrupt OBs in the S5 150U and S5 155U 150 mode In the S5 150U and S5 155U 150 mode a change in one of the bits in I O byte 0 invokes the corresponding interrupt OB at the next block boundary When you initialize ...

Page 50: ...a a a a a a a a a a a a a a 4 a a a a a a a a a a a a a a a a a a a a a a a a a a a 7 a a a a a a a a a a a a a a a a a a a a a a a a a a a 6 a a a a a a a a a a a a a a a a a a a a a a a a a a a 5 a a a a a a a a a a a a a a a a a a a a a a a a a a a 0 If slave 1 and slave 2 generate a process interrupt the value 06H is stored in PY 0 Additional evaluation of I O byte 0 for interrupt generation o...

Page 51: ...a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a ...

Page 52: ...a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a ...

Page 53: ...a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a ...

Page 54: ...a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a Tables 6 1 Standard Function Blocks 6 3 6 2 Error Flagging in the PAFE Byte 6 6 6 3 Hardware Fault Codes 6 6 6 4 Communications Error Codes 6 6 6 5 Parameter Error Codes 6 7 a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a ...

Page 55: ...ing In counting mode positve going signal edges at the counting input are counted in a down counter under gate control starting with an initial value Counting can be enabled by an external gate signal or by a control bit Various output reactions can be logically combined when the count reaches zero After zero the pulses are acquired with a negative sign when a gate signal is active IP 252 expansio...

Page 56: ...eset when the spe cified cutoff points are reached 6 1 3 Interrupt generation The IP 240 can relay certain events directly to the S5 CPU by generating an interrupt request Similarly to setting the outputs a process interrupt can be made dependent on the actual value An interrupt request can also be generated by status signals Status signals with interrupt capability In the position decoding and po...

Page 57: ...a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a ...

Page 58: ...e parameters to the blocks when they are called various data areas can be transferred from the data block to the IP 240 or can be written into the DB from it In the control FBs servicing of interrupts is enabled from time to time The scratch flags and system data areas used must therefore be saved in the interrupt service routines Technical Specifications for Function Blocks Before executing each ...

Page 59: ... using an S5 150U or S5 135U with preliminary setting any scratch flags and system data areas used in the FBs Technical Specifications for Function Blocks must be saved in the restart routine OB21 OB22 The standard FBs for the S5 155U are programmed in such a way that this is un necessary Bit 3 in the PAFE byte can be set by the control FB depending on the point at which the program was interrupte...

Page 60: ...a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a ...

Page 61: ... a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a...

Page 62: ...U with which it is to interchange data Fig 6 1 Data Interchange in Programmable Controllers with Multiprocessor Capability IP 240 1 One of the two connections is allowed but not in combination CPU 1 IP 240 2 IP 240 3 IP 240 4 CPU 2 S5 135 U S5 155 U Note A wait time of 100 ms mut be programmed for the IP 240 in the restart OBs OB20 21 and 22 prior to the first function block call Failure to do so ...

Page 63: ...a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a ...

Page 64: ...a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a ...

Page 65: ...nfiguring FB 169 You structure one or both channels of the IP 240 in position decoding mode with configuring FB 169 The configuring FB is normally called in the restart OB Control FB 170 The control FB 170 is called in the cyclic program or the interrupt program By means of the FB parameter FKT you can specify whether data is to be read from or transferred to the IP 240 7 2 1 Actual Value Formatio...

Page 66: ... when the interrupt request bytes are read if the overrange has triggered the interrupt Reading the actual value The actual value is updated in every module firmware cycle operating system for the IP 240 To be able to read the current actual value from the DB you must first call control FB 170 and parameterize function 1 Reading the actual value and the status bits Section 7 3 2 The CPU fetches th...

Page 67: ...does not change between Read actual value step 2 and Write new zero offset step 4 Failure to observe this rule will cause the location of setpoint actual value to vary with the traversing speed and the response time until the new zero offset has been written An additional zero crossing or actual value overflow would then produce a completely falsified new actual value 7 2 2 Resolution Resolution c...

Page 68: ...a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a ...

Page 69: ...a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a ...

Page 70: ...led until the end of the next module firmware cycle in the following cases for all of the channel s tracks following transfer of a zero offset and for the modified tracks following the transfer of new track limits No interrupt is triggered if the actual value enters one of these tracks over a track limit at this point Setting the digital outputs Every REFn bit can set one or both of the channel s ...

Page 71: ...ce again exited the track and does not lie within any other track allo cated to this output It makes no difference whether the actual value exited the track over a track limit because of a zero offset or due to modification of the track limits when the IP detected a signal acquisition error or range violation when transfer of the REF control bit initiates a new reference point approach when the S5...

Page 72: ... a a a a a a a a a a a a a a a a a a a a a a a a a b DIG1 8 1 a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a and DIG2 8 0 a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a D1 a a a a a a a a a a a a a a a a a a a ...

Page 73: ...ax maximum processing time for a data interchange In Chapter 12 Response Times you will find a list of processing times which will help you com pute the minimum track width for your application In the worst case i e maximum times for channel 1 channel 2 and data interchange tLZ max computes to 7 5 ms 7 2 4 Hysteresis Mechanical disturbances can cause minor changes in the actual value A fluctuation...

Page 74: ...rack value defined for the hysteresis should be smaller than the minimum track width Influence of the hysteresis on interrupt generation Interrupts are always generated when an assigned track is reached Following generation of an interrupt the actual value must have exited the hysteresis range for the relevant track limit before entry into a new track can generate an interrupt If the hysteresis fo...

Page 75: ... an output the hysteresis offsets the switching point by the value of the hysteresis a Resetting of an output Fig 7 8 shows how an output is switched upon entry and upon exiting of the lower track limit The output is set when the lower track limit is exceeded and the specified hysteresis value goes into force for this limit The direction is reversed within the range of the hysteresis The output is...

Page 76: ... a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a Hysteresis in force UT H UT a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a...

Page 77: ... of zero mark monitoring makes it possible to detect spurious or missing pulses Zero mark monitoring is initiated on the IP 240 only when a reference point approach was terminated with synchronization Zero mark monitoring is possible only when the timing of the encoder signals conforms to the specifications discussed in Chapter 13 Encoder Signals In addition when you configure the channel you must...

Page 78: ... request bytes for both channels to data words DW 20 and DW 21 in the specified data block You can react to the cause of the interrupt by evaluating these bytes When these bytes are read the bits in the interrupt request bytes on the IP are reset the IP revokes the interrupt request status bit UEBL or NPUE is reset when one of these errors caused the interrupt and status bit DRBR is reset when the...

Page 79: ...ut the interrupt request bytes You can enable setting of the outputs via the reference bits with control bits DAnF and DAnS Errors following transfer of a zero offset Should a signal acquisition error DRBR signal or overrange error occur following configuring or following transfer of a zero offset the comparison of the updated actual value with the track limits is aborted and the current status of...

Page 80: ...ch mode No track comparison is made in this mode If the channel was configured with DIGn 8 1 the IP is to reset outputs when a track is exited the active outputs are reset When a 1 signal is present at preliminary contact input IN the next Z signal from the encoder synchronizes the actual value The preliminary contact signal must be present for at least t1max 5 ms Fig 7 10 prior to the Z signal us...

Page 81: ...a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a Actual value acquisition with track comparison Acquisition of the preliminary contact signal a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a...

Page 82: ...a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a ...

Page 83: ... a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a...

Page 84: ...s not set with assigned reference bit Bit 0 Assignment of track 1 to output D2 Bit 1 Assignment of track 2 to output D2 Bit 7 Assignment of track 8 to output D2 Bit 8 0 D2 is not reset when track is exited 1 D2 is reset when track is exited Bit 9 0 D2 is set only when track is entered over track limit 1 D2 is set when reference bit is 1 except following channel configuring PRA1 KM 0000 0000 Bit 0 ...

Page 85: ...ea ABIT KY x y x 0 to 255 x 0 Branch to the interrupt OB on every signal transition of the interrupt bit x 0 Branch to the interrupt OB only on a 0 to 1 signal transi tion of the interrupt bit y 0 to 7 Interrupt bit reserved in I O byte 0 as set on switchbank S1 Note Process interrupts are not disabled in the configuring function blocks When using an S5 115U S5 135U when set for interrupt servicin...

Page 86: ... 9169 D 2 13 words 1654 words 922 from A9 928 3UA approx 83 ms approx 56 ms 928 3UB approx 20 ms S5 150U P71200 S 4169 D 1 14 words 1660 words approx 24 ms S5 155U P71200 S 6169 B 1 14 words 164 6words 946 3UA 947 3UA approx 23 ms Nesting depth 0 Subordinate blocks none Assignments in data area data block specified with DBNR parameter up to and including DW 67 Assignments in flag area MB 240 to 25...

Page 87: ... a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a...

Page 88: ...approx 3 8 3 3 3 5 5 0 to 18 2 6 ms 941 7UB 942 7UB 943 7UB 944 7UB approx 10 5 6 7 2 11 to 54 7 8 ms approx 3 8 3 3 3 5 1 9 to 17 2 2 ms S5 135U S5 155U P71200 S 9170 D 2 5 words 1539 words 922 ab A9 928 3UA approx 10 6 6 8 4 19 to 68 9 0 ms approx 5 8 3 5 4 4 11 to 45 4 8 ms 928 3UB approx 3 1 3 3 3 2 1 7 to 4 0 3 9 ms S5 150U P71200 S 4170 D 1 5 words 1508 words approx 1 7 1 2 1 4 3 4 to 18 1 5...

Page 89: ... a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a...

Page 90: ...lue acquisition Status bits DL 18 DR 18 DL 19 DR 19 7 Data byte 6 5 4 3 2 1 0 0 0 REF 6 0 0 0 REF5 0 0 SYNC REF4 0 0 0 REF3 0 0 DRBR REF2 UEBL 0 NPUE REF1 SG Bit DA2 0 REF8 0 DA1 0 REF7 0 a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a ...

Page 91: ...a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a ...

Page 92: ... a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a 104 0 0 0 103 101 102 100 Actual value IST in binary code 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 216 215 214 213 212 211 210 29 28 27 26 25 24 23 22 21 20 DL 32 DR 32 DL 33 DR 33 7 Data byte 6 5 4 3 2 1 0 Bit a a a a a a...

Page 93: ... a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a ANF3 END3 END2 Track 2 a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a ANF2 Track 4 a a a a a a a a a a a a a a a a a a a a a a a a a a a a a...

Page 94: ...a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a ...

Page 95: ... STOPPED indicator shows which option was used to halt the process as shown in the following table Pushbutton EMERGENCY STOP indicator EMERGENCY STOP shows steady light LMTSW FORW flashes LMTSW BACK flashes a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a...

Page 96: ...maximum forward speed KF 1024 maximum backward speed Zone limits BCD code in the range 0 to 99 999 e g DW 15 KH 0003 DW 16 KH 5680 35 680 beginning of the third and end of the second zone The initial and final value of a zone enabled in DR 12 must always be entered The initial value must be smaller than the final value Bits for the zones used DR 12 Bit Zone Track of the IP 240 0 1 Zone 1 always ex...

Page 97: ...YTE2 SCRATCH FLAG WORD DATA WORD POINTER IN DB12 FW 8 AUX BYTE3 SCRATCH FLAG WORD DATA WORD POINTER IN DB12 FY 10 CHECK BYTE IMAGE OF FB11 IN CASE OF ERROR F 11 0 PAFE CONF FOR CONFIGURATION FB20 F 11 1 PAFE ACT1 FOR READING ACTUAL VALUE AND STATUS BITS FB23 F 11 2 PAFE ACT2 FOR READING ACTUAL VALUE AND STATUS BITS FB25 F 11 3 PAFE IR FOR READING INTERRUPT REQUEST BYTE FB27 F 11 4 PAFE TRAC1 FOR W...

Page 98: ... 11 KF 00500 Backward speed to initial point 12 KM 0000000011111111 Bits of the zones used right byte 13 KH 0001 Beginning zone 2 End zone 1 14 KH 0400 Beginning zone 1 0 15 KH 0002 Beginning zone 3 End zone 2 16 KH 2000 17 KH 0002 Beginning zone 4 End zone 3 18 KH 6000 19 KH 0003 Beginning zone 5 End zone 4 20 KH 4000 21 KH 0003 Beginning zone 6 End zone 5 22 KH 5000 23 KH 0004 Beginning zone 7 E...

Page 99: ...00 29 KM 0000000010000000 Bits for tracks to used 30 KH 0000 Actual value in BCD code 31 KH 1942 32 KM 0000000000000000 Actual value in binary code 33 KM 0000011110010110 34 KH 0001 Initial value track 1 35 KH 0400 36 KH 0002 Final value 37 KH 2000 38 KH 0002 Initial value track 2 39 KH 2000 40 KH 0002 Final value 41 KH 6000 42 KH 0002 Initial value track 3 43 KH 6000 44 KH 0003 Final value 45 KH ...

Page 100: ...000 25 KH 0000 26 KH 0000 27 KH 0000 28 KF 00000 DATA WORD POINTER 29 KF 00000 FLAG WORD POINTER 30 DB38 LEN 35 0 KH 0000 1 KH 0000 2 KH 0000 3 KH 0000 4 KH 0000 5 KH 0000 6 KH 0000 7 KH 0000 8 KH 0000 9 KH 0000 10 KH 0000 11 KH 0000 12 KH 0000 13 KH 0000 14 KH 0000 15 KH 0000 16 KH 0000 17 KH 0000 18 KH 0000 19 KH 0000 20 KH 0000 21 KH 0000 22 KH 0000 23 KH 0000 24 KH 0000 25 KH 0000 26 KH 0000 2...

Page 101: ...IP 240 Position Decoding Start routine FB 20 Reset the flag areas used Configure IP 240 channel 1 for position decoding Set output RET INTPNT End EWA 4NEB 811 6120 02a 7 37 ...

Page 102: ...eset Q READY Set Q RUNNING Transfer zone limits from DB 10 to DB 12 Parameterize track 8 to turning point Transfer track limits FB 170 FCT 4 Process operation traverse program I ON INTPNT pressed Read actual value FB 170 FCT 5 Read actual value FB 170 FCT 1 Invert sign and enter as zero offset Enter zero point FB 170 FCT 5 Reset program status flag FY 12 Reset Q RET INTPNT Set Q ENABLED and F DEFI...

Page 103: ...n heating set F FORW ACTIV Feedback from interrupt service routine F FIN POINT set Switch off heating set 8th track to 0 write track limits FB 170 FCT 4 set F BACK ACTIV enter value fom DB 10 in FW 14 for return Feedback from interrupt program F INT POINT set Reset Q RUNNING Set Q READY Reset F BACK ACTIV Reset F FORW ACTIV Reset F FIN POINT Reset F INT POINT Begin End EWA 4NEB 811 6120 02a 7 39 ...

Page 104: ... FY 11 in FY 10 and delete FY 11 Switch on Q STOPPED flashing Switch off heating no no yes Does FW 14 indicate forward direction yes LMTSW FORW pressed yes LMTSW BACK pressed Does FW 14 indicate backward direction Switch off heating Set Q RET INTPNT Reset Q ENABLED Reset Q RUNNING Reset all auxiliary flags Reset FW 14 Match FW 14 to analog output s format and output End Begin 7 40 EWA 4NEB 811 612...

Page 105: ...ive Set bit for wirebreak switch off heating reset FW 14 Set F INT POINT reset FW 14 yes no Interrupt by REF 8 yes Forward traverse program active yes Interrupt enabled by REF 1 and zone 2 FB 28 Enter speed for zone 2 into FW 14 yes Interrupt enabled by REF 7 and zone 8 Enter speed for zone 8 into FW 14 yes Interrupt by REF 8 Set F FIN POINT switch off heating reset FW 14 End a a a a a a a a a a a...

Page 106: ...5U 150U mode or S5 135U when set for interrupts at block boundaries OB 20 in S5 115U OB 21 LEN 9 NETWORK 1 0000 MANUAL RESTART 0000 0001 JU FB 20 CONFIGURE THE IP 240 CHANNEL 1 0002 NAME CONFIG 0003 BE OB 22 LEN 17 NETWORK 1 0000 RESTART AFTER POWER OFF 0000 0001 JU FB 38 SAVE SCRATCH FLAGS FY200 255 0002 NAME FLAG SAV 0003 DBNR DB 20 0004 0005 JU FB 20 CONFIGURE THE IP 240 CHANNEL 0006 NAME CONFI...

Page 107: ...ODER PULSES 001A IMP KF 10 ENCODER PULSE NUMBER DIVISIBLE BY 5 001B DIG1 KM 00000000 00000000 DIG 1 NOT USED 001C DIG2 KM 00000000 00000000 DIG 2 NOT USED 001D PRA1 KM 00000000 11111111 PROCESS INTERRUPTS FOR REF1 REF8 001E PRA2 KM 00000000 00000100 PROCESS INTERRUPT ON WIRE BREAK 001F PAFE FY 2 AUX BYTE1 PARAMTER ASSIGNMENT ERROR BYTE 0020 BER KF 0 0 I O AREA NOT USED FOR 115U 0021 ABIT KY 0 0 RE...

Page 108: ...RAM 000C FOR1 000D JU FB 22 REDEFINE INITIAL POINT 000E NAME SELECT 000F JU FB 23 TRANSFER INITIAL POINT 0010 NAME OFFSET 0011 JU CHECK CHECK SWITCHOFF PROGRAM 0012 FOR2 0013 JU FB 24 ACTIVATE RUN PROGRAM 0014 NAME START 0015 FOR3 0016 JU FB 25 TRAVERSING PROGRAM OF THE FURNACE 0017 NAME OPERATE 0018 CHEK 0019 JU FB 26 EVALUATION OF STOP REQUESTS 001A NAME CHECK 001B BE Q 12 3 RET INTPNT THE INITI...

Page 109: ...ND 0008 A I 4 3 FORWARD 01 0009 A I 4 4 BACK 01 000A 01 000B JC ZERO 000C C DB 10 000D A I 4 3 FORWARD 000E JC DW1 000F A I 4 4 BACK 0010 JC DW2 0011 ZERO L KB 0 RESET SPEED 0012 T FW 14 ANALOG VAL 0013 BEU 0014 DW1 L DW 1 TRANSFER SPEED 0015 T FW 14 ANALOG VAL 0016 JU SIGN 0017 DW2 L DW 2 TRANSFER BACKWARD SPEED 0018 T FW 14 ANALOG VAL 0019 SIGN AN F 0 0 ZERO SIGNAL 001A R Q 12 2 ENABLED 001B S Q...

Page 110: ...TUS BITS 001A PAFE FY 2 AUX BYTE1 001B L KH 0000 001D L FY 2 AUX BYTE1 001E F 001F F 11 1 PAFE ACT1 READ ERROR IN ACTUAL VALUE 0020 0021 C DB 12 0022 L DR 19 STATUS BITS SIGN 0023 L KH 0001 0025 AW 0026 T FY 2 AUX BYTE1 0027 AN F 2 0 INVERT SIGN 0028 F 2 0 0029 L FY 2 AUX BYTE1 002A T DL 66 SG ZERO OFFSET 002B L DR 30 ACTUAL VALUE 4TH DECADE 002C T DR 66 4TH DECADE ZERO OFFSET 002D L DW 31 ACTUAL ...

Page 111: ... OF I ON INTPNT FY 2 AUX BYTE1 SCRATCH FLAG CYCLIC PROGRAM F 11 5 PAFE ZERO FOR WRITING ZERO OFFSET FB23 F 11 1 PAFE ACT1 FOR READING ACTUAL VALUE AND STATUS BITS FB23 F 0 0 ZERO SIGNAL FLAG ALWAYS RETAINS SIGNAL STATE ZERO Q 12 3 RET INTPNT INITIAL POINT MUST BE TRANSFERRED BEFORE RESTARTING Q 12 2 ENABLED NEW RUN POSSIBLE Q 12 5 FAULT ERROR MESSAGE FROM THE CONTROLLER IP EWA 4NEB 811 6120 02a 7 ...

Page 112: ...ACKS 0017 L KH 0080 SET BITS FOR TRACK 8 TO 1 0019 OW 001A C DB 12 001B T DR 29 001C 001D C DB 10 001E L DW 13 INITIAL VALUE ZONE 2 4TH DECADE 001F C DB 12 0020 T DW 34 INT TRACK 1 0021 C DB 10 0022 L DW 14 INT ZONE 2 3RD 2ND AND 1ST DECADE 0023 C DB 12 0024 T DW 35 INT TRACK 1 0025 0026 BACK C DB 10 0027 DO FW 4 AUX WORD1 0028 L DW 0 INT VALUE TRACK X 0029 C DB 12 002A DO FW 6 AUX WORD2 002B T DW...

Page 113: ... NAME STEU WEG 0054 DBNR KF 12 0055 FKT KF 4 WRITE TRACK LIMITS 0056 PAFE FY 2 AUX BYTE1 0057 L FY 2 AUX BYTE1 0058 L KB 0 0059 F 005A F 11 4 PAFE TRAC1 PAFE FOR WRITING TRACK LIMITS 005B BE F 0 0 ZERO SIGNAL FLAG ALWAYS RETAINS SIGNAL STATE 0 Q 12 2 ENABLED NEW RUN POSSIBLE Q 12 1 RUNNING RUN STARTED FW 4 AUX WORD1 SCRATCH FLAG WORD DATA WORD POINTER IN DB10 FW 6 AUX WORD2 SCRATCH FLAG WORD DATA ...

Page 114: ...013 BEU 0014 FOR2 0015 C DB 12 0016 L KB 0 0017 T DW 64 SET FINAL VALUE TRACK 8 0018 T DW 65 TO ZERO 0019 L KH 0109 001B T DW 62 SET INITIAL VALUE 001C L KH 9999 TO 99999 001E T DW 63 001F L KH 0080 BITS FOR TRACKS USED 0021 T DR 29 ONLY TRACK 8 RELEVANT 0022 JU FB 170 0023 NAME STEU WEG 0024 DBNR KF 12 0025 FKT KF 4 WRITE TRACK LIMITS 0026 PAFE FY 2 AUX BYTE1 0027 L FY 2 AUX BYTE1 0028 L KB 0 002...

Page 115: ...ACTOR INDICATOR F 12 6 FIN POINT FINAL POINT OF THE FORWARD TRAVERSE PROGRAM REACHED F 12 3 BACK START BACKWARD TRAVERSE PROGRAM STARTED FY 2 AUX BYTE1 SCRATCH FLAG BYTE CYCLIC PROGRAM F 11 6 PAFE TRAC8 FOR WRITING TRACK LIMITS FB25 F 12 7 INT POINT INITIAL POINT ORIGINAL POSITION REACHED F 0 0 ZERO SIGNAL FLAG ALWAYS RETAINS SIGNAL STATE ZERO Q 12 1 RUNNING RUN STARTED Q 12 2 ENABLED NEW RUN POSS...

Page 116: ...ON ONLY NAME CHECK 0005 A I 4 0 EMERG STOP 0006 JC FOR1 0007 S Q 12 0 STOPPED INDICATOR 0008 JU CHEK 0009 FOR1 000A R Q 12 0 STOPPED 000B L FY 11 PAFE BITS 000C L KH 0000 000E OW 000F JZ FOR2 BRANCH IF ZERO 0010 T FY 10 CHEK BYTE SAVE PAFE BITS 0011 L KB 0 RESET PAFE BITS 0012 T FY 11 0013 S Q 12 5 FAULT 0014 JU CHEK 0015 FOR2 0016 A I 4 6 LMTSW FORW IF NO LIMIT SWITCH IS DEPRESSED 0017 A I 4 7 LM...

Page 117: ...5 FAULT FAULT FLAG FROM CONTROLLER IP I 4 6 LMTSW FORW LIMIT SWITCH FURNACE FORWARD I 4 7 LMTSW BACK LIMIT SWITCH FURNACE BACKWARD FY 2 AUX BYTE1 SCRATCH FLAG BYTE CYCLIC PROGRAM Q 12 4 HEATING HEATING ON CONTACTOR INDICATOR FW 14 ANALOG VAL ANALOG VALUE TO BE OUTPUT IN UNITS MAX 1024 Q 12 1 RUNNING RUN STARTED Q 12 2 ENABLED NEW RUN POSSIBLE Q 12 3 RET INTPNT INITIAL POINT MUST BE TRANSFERRED BEF...

Page 118: ... FB 170 0006 NAME STEU WEG 0007 DBNR KF 12 0008 FKT KF 3 READ INTERRUPT REQUEST BYTES 0009 PAFE FY 3 AUX BYTE2 000A L FY 3 AUX BYTE2 000B L KB 0 000C F 000D F 11 3 PAFE IR 000E A DB 12 000F L DW 20 QUERY IF INTERRUPT WAS 0010 L KB 0 GENERATED BY CHANNEL 1 0011 F 0012 JC FB 28 INTERRUPT SERVICE ROUT CHANNEL 1 0013 NAME INTRT K1 0014 BE FY 3 AUX BYTE2 SCRATCH FLAG BYTE INTERRUPT SERVICE ROUT F 11 3 ...

Page 119: ...1 A F 12 4 BACK ACTIV 0012 JC FOR2 BACKWARD INTERRUPT SERVICE ROUTINE 0013 A F 12 2 FORW ACTIV 0014 JC FOR1 FORWARD INTERRUPT SERVICE ROUTINE 0015 BEU 0016 FOR1 0017 AN F 16 0 REF1 INITIAL ZONE 2 0018 ON F 3 0 BIT ZONE 2 0019 JC REF2 001A L DW 4 SPEED IN ZONE 2 001B REF2 001C AN F 16 1 REF2 INT ZONE 3 001D ON F 3 1 BIT ZONE 3 001E JC REF3 001F L DW 5 SPEED IN ZONE 3 0020 REF3 0021 AN F 16 2 REF3 I...

Page 120: ...LOG VAL 004B BE FY 3 AUX BYTE2 SCRATCH FLAG BYTE INTERRUPT SERVICE ROUTINE FW 16 AUX WORD4 AUXILIARY FLAG WORD INTERRUPT SERVICE ROUT STATUS BITS F 12 4 BACK ACTIV BACKWARD TRAVERSE PROGRAM ACTIVE F 12 2 FORW ACTIV FORWARD TRAVERSE PROGRAM ACTIVE F 12 6 FIN POINT FINAL POINT OF THE FORWARD TRAVERSE PROGRAM REACHED F 12 7 INT POINT INITIAL POINT ORIGINAL POSITION REACHED F 11 7 WIREBREAK WIREBREAK ...

Page 121: ... DBNR 0009 NETWORK 2 000A 000A L KF 200 PRESET THE POINTERS 000C T DW 29 DW28 AND DW29 000D L KF 0 000F T DW 28 0010 M001 DO DW 29 0011 L MW 0 0012 DO DW 28 0013 T DW 0 0014 L DW 29 INCREMENT THE POINTERS 0015 ADD KF 2 FLAG WORD POINTER 0017 T DW 29 0018 L DW 28 0019 ADD KF 1 DATA WORD POINTER 001B T DW 28 001C L KF 254 FLAG WORDS 200 TO 254 SAVED 001E L DW 29 IN THE DATA BLOCK 001F F 0020 JC M001...

Page 122: ... Q D B T C B 0008 B DBNR 0009 NETWORK 2 000A 000A L KF 0 PRESET THE POINTERS 000C T DW 28 DATA WORD POINTER 000D L KF 200 000F T DW 29 FLAG WORD POINTER 0010 M001 DO DW 28 0011 L DW 0 0012 DO DW 29 0013 T FW 0 0014 L DW 28 INCREMENT POINTERS 0015 ADD BF 1 0016 T DW 28 0017 L DW 29 0018 ADD BF 2 0019 T DW 29 001A L KF 254 FLAG WORDS UP TO 001C L DW 29 AND INCLUDING FW254 001D F LOADED 001E JC M001 ...

Page 123: ...T C D KM KH KY KS KF KT KC KG KH ID DIG2 I Q D B T C D KM KH KY KS KF KT KC KG KH ID PRA1 I Q D B T C D KM KH KY KS KF KT KC KG KH ID PRA2 I Q D B T C D KM KH KY KS KF KT KC KG KH ID PAFE I Q D B T C A BI BY W D BY ID BER I Q D B T C D KM KH KY KS KF KT KC KG KF ID ABIT I Q D B T C D KM KH KY KS KF KT KC KG KY 0029 BE FB 170 LEN 20 NETWORK 1 0000 NAME STEU WEG ID DBNR I Q D B T C D KM KH KY KS KF ...

Page 124: ... a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a...

Page 125: ... a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a Tables 8 1 Parameters for Configuring FB 171 8 8 8 2 Parameters for Control FB 172 8 11 a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a...

Page 126: ...activated with a positive going edge of the gate signal You can preset the gate signal with control bit STRT or via an external signal at input GT On configuration you must specify in parameter EXT configuring FB 171 whether you are using STRT or GT as a gate signal If you use control bit STRT you must first transfer the control bits with STRT 1 to the IP to form a positive going gate edge Set STR...

Page 127: ...72 and initialize it for function 4 Write initial count The CPU then transfers the new initial value to the IP Reading the actual value The actual value is updated on the IP in every module firmware cycle the firmware is the IP 240 s operating system For you to be able to read the current actual value from the DB you must first call control FB 172 and initialize function 1 Reading the actual value...

Page 128: ...sfers the current data from the IP to the data block The data for the final value is entered as follows DW 28 Absolute final value in binary D 27 0 Sign of the final value SGF Overrange If the actual value is already in the overrange at the instant of the negative GATE signal edge status bit UEBE is set UEBE is the overrange bit for the final value Overwriting an old final value Every negative GAT...

Page 129: ...a a a a a a a a a a a a a a 2 a a a a a a a a a a a a 3 a a a a a a a a a a a a 2 a a a a a a a a a a a a 1 a a a a a a a a a a a a 0 a a a a a a a a a a a a a a a a 1 a a a a a a a a a a a a a a a a 1 a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a GATE signal a a a a a a a a a a a a a a a a a a a a a a a a a IRx a a ...

Page 130: ... actual value stored in data words DW 31 and 33 is positive SG 0 or negative SG 1 A 1 value in statusbit UEBL D 19 1 indicates that the actual value is out of range actual value 9 999 UEBL can trigger an interrupt It is reset when the status area is read the interrupt request bytes are read if the overflow triggered the interrupt Status bits for the final value Status bit REF2 D 19 9 1 indicates t...

Page 131: ...from the IP and only the DB parameterized in the control FB can be directly updated Masking the interrupts You can mask all bits with interrupt capability in the relevant channel by setting control bit AMSK D 17 15 Masked interrupts do not result in an interrupt request and are not stored in the interrupt request bytes i e they are lost Calling the interrupt service OBs in the S5 150U and S5 155U ...

Page 132: ... a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a...

Page 133: ...a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a ...

Page 134: ...interrupt bit goes from 0 to 1 y 0 to 7 the interrupt bit assigned in I O byte 0 as set on switchbank S1 Note Interrupt servicing is not disabled in the configuring FBs You must therefore ensure the noninterruptibility of the configuring FBs in the S5 115U and S5 135U when interrupt servicing after each statement has been specified and in the S5 155U 155U mode by writing the STEP 5 program accordi...

Page 135: ...1 D 2 10 words 1248 words 922 from A9 928 3UA approx 25 ms approx 18 ms 928 3UB approx 11 ms S5 150U P71200 S 4171 D 1 11 words 1256 words approx 12 ms S5 155U P71200 S 6171 B 1 11 words 1302 words 946 3UA 947 3UA approx 11 ms Nesting depth 0 Subordinate blocks none Assignments in data area data block specified with DBNR parameter up to and including DW 35 Assignments in flag area MB 240 to 255 Sy...

Page 136: ...a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a ...

Page 137: ...10 5 13 13 ms approx 12 5 6 2 8 2 7 0ms approx 2 8 2 5 2 6 2 7ms 941 7UB 942 7UB 943 7UB 944 7UB approx 11 6 0 7 4 6 0ms approx 2 1 1 6 1 9 2 2ms S5 135U S5 155U P71200 S 9172 D 2 5 words 1110 Worte 922 from A9 928 3UA approx 10 6 0 7 6 7 0ms approx 6 0 3 5 4 2 4 2ms 928 3UB approx 2 2 1 8 1 9 2 0ms S5 150U P71200 S 4172 D 1 5 words 1054 words approx 1 9 1 2 1 4 1 6ms S5 155U P71200 S 6172 B 1 5 w...

Page 138: ... a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a...

Page 139: ...L 19 DR 19 7 Data byte 6 5 4 3 2 1 0 0 AKTV 0 0 0 TRIG 0 0 0 0 0 0 0 0 0 0 0 0 REF2 UEBL 0 0 REF1 SG Bit 0 0 0 0 DA1 0 0 0 a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a...

Page 140: ...a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a ...

Page 141: ...a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a ...

Page 142: ...ad after a delay 5 s so that the valve has time to close properly before the final count is read by the IP The value is then kept in DD 30 or DD 32 of DB 14 until a new proportioning procedure is activated 5 When the FILLING indicator goes out filling can be reactivated by pressing START FILL A proportioning procedure can only be interrupted by pressing EMERG STOP If filling is to be resumed where...

Page 143: ...Q 4 0 OPEN VALVE OUTPUT TO OPEN THE VALVE Q 4 1 FILLING INDICATOR LIT DURING PROPORTIONING FY 8 AUX BYTE SCRATCH FLAG BYTE IN IP240 PROGRAM F 10 0 FILL ACTIV AUX FLAG PROPORTIONING PROCEDURE STARTED F 11 0 GROUPPAFE GROUP SIGNAL FROM ALL FB171 172 T 1 BLINKER TO GENERATE FLASHING FREQUENCY C 1 CONVERT T 2 DELAY DELAY UNTIL VALVE IS CLOSED 8 18 EWA 4NEB 811 6120 02a ...

Page 144: ...S 18 KM 0000000000100000 STATUS BITS 19 KM 0000000000000000 STATUS BITS 20 KM 0000000000000000 INTERRUPT REQUEST BYTES CHANNEL1 21 KM 0000000000000000 INTERRUPT REQUEST BYTES CHANNEL2 22 KH 0000 23 KY 002 014 MODE AND DB NUMBER 24 KH 0000 25 KH 0000 26 KH 0000 27 KH 0000 28 KH 0000 29 KH 0000 30 KH 0000 ACTUAL VALUE IN BCD CODE 31 KH 0030 32 KM 0000000000000000 ACTUAL VALUE IN BINARY CODE 33 KM 00...

Page 145: ... 8 KH 0000 9 KH 0000 10 KH 0000 11 KH 0000 12 KH 0000 13 KH 0000 14 KH 0000 15 KH 0000 16 KH 0000 17 KH 0000 18 KH 0000 19 KH 0000 20 KH 0000 21 KH 0000 22 KH 0000 23 KH 0000 24 KH 0000 25 KH 0000 26 KH 0000 27 KH 0000 28 KF 00000 DATA WORD POINTER 29 KF 00000 FLAG WORD POINTER 30 8 20 EWA 4NEB 811 6120 02a ...

Page 146: ...gin FB41 cyclic program F FILL ACTIV set I START FILL pressed Transfer initial count value FB 172 FKT 4 Set and transfer DIG1S and STRT FB 172 FKT 2 Set Q OPEN VALVE Q FILLING and F FILL ACTIV REF 1 set FB 172 FKT 1 Reset Q OPEN VALVE Activate T2 T 2 time out 5 s Read final count value FB 172 FKT 1 Reset control bit STRT FB 172 FKT 2 Reset Q FILLING if F FILL ACTIV 1 Reset F FILL ACTIV no End EWA ...

Page 147: ...TWORK 1 0000 WARM RESTART AFTER POWER OFF 0000 0001 JU FB 38 SAVE SCRATCHPAD FLAGS FB200 255 0002 NAME FLAG SAV 0003 DBNR DB 20 0004 0005 JU FB 40 CONFIGURING THE IP 240 0006 NAME CONFIG 0007 0008 JU FB 39 RELOAD SCRATCH FLAGS 0009 NAME LOAD FLG 000A DBNR DB 20 000B BE FB 38 and FB 39 are not required in the S5 115U or S5 155U or in the S5 135U when automatic cold restart after power on is set in ...

Page 148: ... 0009 NETWORK 2 000A 000A L KF 200 INITIALIZE THE POINTERS 000C T DW 29 DW28 AND DW29 000D L KF 0 000F T DW 28 0010 M001 B DW 29 0011 L MW 0 0012 B DW 28 0013 T DW 0 0014 L DW 29 INCREMENT THE POINTERS 0015 ADD KF 2 FLAG WORD POINTER 0017 T DW 29 0018 L DW 28 0019 ADD KF 1 DATA WORD POINTER 001B T DW 28 001C L KF 254 FLAG WORDS 200 TO 254 001E L DW 29 SAVED IN DATA BLOCK 001F F 0020 JC M001 0021 B...

Page 149: ... D B T C B 0008 B DBNR 0009 NETWORK 2 000A 000A L KF 0 INITIALIZE THE POINTERS 000C T DW 28 DATA WORD POINTER 000D L KF 200 000F T DW 29 FLAG WORD POINTER 0010 M001 DO DW 28 0011 L DW 0 0012 DO DW 29 0013 T FW 0 0014 L DW 28 INCREMENT THE POINTERS 0015 ADD BF 1 0016 T DW 28 0017 L DW 29 0018 ADD BF 2 0019 T DW 29 001A L KF 254 ALL FLAG WORDS UP TO 001C L DW 29 AND INCLUDING FW254 001D F RELOADED 0...

Page 150: ...TAL OUTPUT 000B PRA KH 0000 NO PROCESS INTERRUPTS 000C EXT KH 0000 INTERNAL GATE CONTROL 000D PAFE FY 8 AUX BYTE ERROR BYTE 000E BER KF 0 I O AND E I O AREA NOT FOR 115U 000F ABIT KY 1 0 SYSTEM DATA RS0 IS NOT 0010 AFFECTED WHEN 0011 FB172 FCT3 IS INVOKED ONLY FOR 150U 0012 L KB 0 0013 L FY 8 AUX BYTE SCAN FOR ERROR FLAG 0014 F 0015 S F 11 0 GROUPPAFE GROUP SIGNAL FOR PAFE 0016 0017 A F 10 0 FILL ...

Page 151: ...YCL A F 10 0 FILL ACTIV 001A JC SCAN 001B AN I 5 3 START FILL 001C R Q 4 1 FILLING 001D JC END 001E JU FB 172 START OF FILLING PROCEDURE 001F NAME STEU DOS 0020 DBNR KF 14 0021 FKT KF 4 TRANSFER INITIAL COUNT 0022 PAFE FY 8 AUX BYTE 0023 L KB 0 0024 L FY 8 AUX BYTE 0025 F 0026 S F 11 0 GROUPPAFE 0027 A DB 14 0028 L KH 0110 SET DIG1S AND STRT 002A T DW 17 002B JU FB 172 002C NAME STEU DOS 002D DBNR...

Page 152: ... 0059 C DB 14 005A L KH 0100 RESET CONTROL BIT STRT 005C T DW 17 DIG1S REMAINS 1 005D JU FB 172 005E NAME STEU DOS 005F DBNR KF 14 0060 FKT KF 2 TRANSFER CONTROL STATEMENTS 0061 PAFE FB 8 AUX BYTE 0062 L KB 0 0063 L FY 8 AUX BYTE 0064 F 0065 S F 11 0 GROUPPAFE 0066 A F 10 0 FILL ACTIV 0067 R Q 4 1 FILLING 0068 R F 10 0 FILL ACTIV 0069 END BE F 11 0 GROUPPAFE GROUP SIGNAL FROM ALL FB171 172 I 5 2 E...

Page 153: ...KH BEZ PRA I Q D B T C D KM KH KY KC KF KT KS KG KH BEZ EXT I Q D B T C D KM KH KY KC KF KT KS KG KH BEZ PAFE I Q D B T C A BI BY W D BY BEZ BER I Q D B T C D KM KH KY KC KF KT KS KG KF BEZ ABIT I Q D B T C D KM KH KY KC KF KT KS KG KY 0020 BE FB 172 LEN 20 NETWORK 1 0000 NAME STEU DOS BEZ DBNR I Q D B T C D KM KH KY KC KF KT KS KG KF BEZ FKT I Q D B T C D KM KH KY KC KF KT KS KG KF BEZ PAFE I Q D...

Page 154: ...a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a ...

Page 155: ...a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a 9 1 Parameters of Configuring FB 173 9 5 a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a...

Page 156: ... a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a TVZ KON 10 1 S10 2 ADR K a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a In...

Page 157: ... a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a Actual speed Branch 8 Branch 10 Actual speed Setpoint speed Setpoint speed Branch 1 Current setpoint Fig 9 2 Actual Speed Measurement via the IP 240 Module Note If two or ...

Page 158: ...a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a Configuring in the restart OBs Data requests CPU IP 252 AA AE IP 240 Initialization setpoints and actual values status data Configuring Initialization a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a...

Page 159: ... organization blocks OB21 and OB22 In this mode both channels are configured simultaneously a second mode on the 1P 240 is therefore not possible S5 I 15U Branch 10 ADR K e g 160 1 Address 160 Channel 1 s 10 4 1 s 10 1 1 1P 252 1P 240 Function block FB 173 STRU 252 BGAD e g 160 Address 160 S1O 4 DBNR Slo 1 PAFE Fig 9 5 Configuring the Modules Note In 1P 252 expansion mode the input signals are pro...

Page 160: ... a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a...

Page 161: ...ength CPU Processing time1 S5 115U P71200 S 5173 D 2 5 words 562 words 941 7UA 942 7UA 943 7UA 944 7UA approx 64 ms approx 45 ms approx 30 ms approx 17 ms 941 7UB 942 7UB 943 7UB 944 7UB approx 29 ms approx 16 ms Nesting depth 0 Subordinate blocks none Assignment in data area at data block specified with DBNR parameter up to and including DW 24 Assignment in flag area MB 240 to 255 System statemen...

Page 162: ... a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a...

Page 163: ...lation 5 Operation 6 Functional Description 7 Position Decoding 8 Counting 9 IP 252 Expansion a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a ...

Page 164: ...ith a Data Word Number Exceeding 255 10 94 10 25 Example Removing Parts from a Die Casting Machine 10 98 a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a...

Page 165: ...0 48 10 31 Positioning with the IP 240 Controlling the Speed without Backlash Compensation Axis with Two Speeds and Two Directions of Travel 10 72 10 32 Positioning with the IP 240 Controlling the Direction of Travel without Rotary Axis Axis with One Speed and Two Directions of Travel 10 73 10 33 Positioning a Workpiece to a Specified Position 10 98 Figures a a a a a a a a a a a a a a a a a a a a ...

Page 166: ...he Transfer Buffer for Changing the Zero Offset 10 69 10 25 IP Responses at the Start of Positioning 10 71 10 26 Contents of the Data Block and the Transfer Buffer on Reading Error Flags 10 74 10 27 Contents of the Data Block DW 0 to DW 821 10 76 10 28 Parameters for Configuring FB 167 10 86 10 29 Parameters for Control FB 168 10 91 Tables a a a a a a a a a a a a a a a a a a a a a a a a a a a a a ...

Page 167: ...puts D1 and D2 Rotary axis IP 240 configuring options Controlling the traverse speed over the IP outputs With external signal With internal control bit IP 240 synchronization options With reference point approach a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a...

Page 168: ...a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a ...

Page 169: ...a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a ...

Page 170: ...a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a ...

Page 171: ...a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a v a a a a a a a a a a a a a a a a a a a a a a a a a a a a ...

Page 172: ... a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a Position Is selected by Note 0 Transferring the position value This postion can also be selected when the IP outputs are se...

Page 173: ...a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a ...

Page 174: ...a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a ...

Page 175: ...a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a ...

Page 176: ...find the various configuring parameters easily and quickly the relevant parameter is shown in parentheses in the section headers Standard function block FB 167 must be used to configure the IP 240 for positioning mode As this function block FB handles data interchange with the IP via a data block DB you must create this data block and enter the data to be transferred before invoking the FB You wil...

Page 177: ... a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a...

Page 178: ...a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a ...

Page 179: ...a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a 27 to 20 1 byte data One byte is available for the following data items Position number for selecting the next position forwarded to IP Number of the active position read out from IP Table 10 8 Layout of a 1 Byte Data Item...

Page 180: ... a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a...

Page 181: ... a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a 0 a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a...

Page 182: ... 48 DR 48 DL 49 DR 49 0 220 212 24 106 104 102 100 0 105 103 101 Bit 7 6 5 4 3 2 1 0 Bit 7 6 5 4 3 2 1 0 Data byte a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a...

Page 183: ...iagrams in this section The outputs are controlled by the IP 240 dependent on the actual value The IP 240 enables the outputs so that they can be set 10 5 1 Selecting the Switching Performance of the IP Outputs DAV You have three configuring options for matching the IP 240 to your application JU FB 167 NAME STRU POS DAV KF x x 0 IP outputs control the traversing speed outputs are switched separa t...

Page 184: ... a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a Selection of the target position Switching points for the target po...

Page 185: ...of the IP Outputs One direction of travel Two directions of travel One traversing speed The IP outputs control the traversing speed The IP outputs control the direction of travel Two traversing speeds The IP outputs control the traversing speed The IP outputs control the traversing speed a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a...

Page 186: ...a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a ...

Page 187: ...P 240 over a module firmware cycle If the IP identifies a positive direction of travel positioning proceeds normally If the IP identifies a negative direction of travel the IP output is not reset interrupts BE2 range BEE2 entered and BE3 range BEE3 entered are not generated status bit ZBEV is not set and the associated interrupt ZBV is not generated when the target range range BEE3 is exited When ...

Page 188: ... a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a...

Page 189: ...l for the reference point approach may not be changed following the negative edge at the IN input until the zero mark has been reached synchronization 10 7 Actual Value Generation The IP 240 computes an internal signed count by counting the encoder pulses and evaluating the phase displacement between encoder pulse trains A and B You can influence the conversion of this count into the actual value ...

Page 190: ...you initialized the PRA2 parameter accordingly when you configured the channel Section 10 10 The associated interrupt bit UEB is reset in the interrupt request bytes Status bit UEBL is reset on the IP when the status area was read once with UEBL 1 or when the interrupt request bytes were read and it was the overrange that triggered the interrupt 10 7 1 Resolution AFL During configuring you can spe...

Page 191: ...a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a Max number of increments Specified resolution Travel per increment a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a...

Page 192: ...ing that the zero offset last transferred always mirrors the distance value between the zero point of the actual value range and the reference point If a zero offset of 0 is spe cified the position at which the actual value 0 is the reference point Fig 10 19 Relative Zero Offset Traverse range Current position Reference point Traverse range 0 3 000 1 000 4 000 500 3 500 9 500 9 000 10 000 10 500 1...

Page 193: ...range Explanation The values NVER 0 NVER 1000 NVER 500 and NVER 0 were transferred in succession as additive zero offset Specifying the zero offset When you structure the channel the zero offset NVER is transferred to the IP 240 in data words 46 to 47 You can change the zero offset after configuring Note the following when specifying the zero offset If the channel is configured for a linear axis N...

Page 194: ...a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a ...

Page 195: ...nsferred to the IP 240 when you configure the channel After configuring you can change the position values again The inclusion of new position numbers or the modification of old position numbers is not possible Before invoking FB 167 you must enter the position values the position numbers and the number of positions to be transferred in the data block The number of positions to be transferred must...

Page 196: ...6 28 20 Binary representation BCD representation DL n 1 DR n 1 DL n 2 DR n 2 SE 220 212 24 106 104 102 100 SG 105 103 101 Bit 7 6 5 4 3 2 1 0 Bit 7 6 5 4 3 2 1 0 Data byte a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a ...

Page 197: ...a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a ...

Page 198: ...a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a ...

Page 199: ... a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a...

Page 200: ...gure the channel you must indicate whether or not you want zero mark monito ring and which encoder you are using by initializing FB 167 s IMP parameter accordingly JU FB 167 NAME STRU POS IMP KF x x 0 No zero mark monitoring x 10 The number of encoder pulses between two zero marks is divisible by 5 without a remainder x 16 The number of encoder pulses between two zero marks is divisible by 4 witho...

Page 201: ...a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a ...

Page 202: ...sferring it to the IP 240 Masked interrupts do not trigger an interrupt request and are not stored in the interrupt request bytes i e they are lost Refer to Section 10 13 4 for information on how to transfer the control bits to the IP 240 10 11 Error Processing after Configuring If an error occurs during configuring configuring of the channel is aborted and the error is flagged in the PAFE byte Se...

Page 203: ...a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a ...

Page 204: ...the first zero mark signal Z signal from the incremental encoder that follows a preliminary contact signal To generate the preliminary contact signal you must insert a bounce free switching element in the traversing range and connect it to the channel s IN input Because the IN signal may already be active at the start of the reference point approach it is possible to use an existing limit switch a...

Page 205: ...in 6 5 ms t4 min 6 5 ms t4 a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a Reference point 0 1 100 20 21 120 As the preliminary contact signal is evaluated over the IP 240 module firmware care must be taken that acquisition of the signal edges is delayed by t1 and t2 Moreover time value t3 must be carefully obs...

Page 206: ...re to be controlled via the S5 CPU HAND 1 the HASY bit must first be transferred to the IP 240 without enabling the outputs AMSK ZYSY SOSY HASY DA2S DA1S HAND FREI 0 1 0 0 1 x x 1 0 a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a ...

Page 207: ...a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a Following transfer of the HASY control bit the SYNC bit is set to 0 and range bits BEE1 to 3 and direction bit RICH are set to 1 as th...

Page 208: ...put D1 Positive direction of travel Control bit HASY Control bit FREI Z pulses Status bit SYNC a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a...

Page 209: ...a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a Output D1 a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a Status bit SYNC a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a ...

Page 210: ... a a a a a a a a a a a a a a a a a a a a a Interrupt bit BE1 a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a Status bit BEE2 1 Is set to 1 following reading of the status area 2 Is reset following reading of the interrupt request bytes a a a a a a a a a a a a a a a a a a a a a a a a a a a a a ...

Page 211: ...red together with FREI 0 Fig 10 27 Interrupting a Reference Point Approach with FREI 0 a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a IP output a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a...

Page 212: ... a a a a a 2000 5000 3000 4000 a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a...

Page 213: ...electing a position number To exit cyclic synchronization you must transfer ZYSY 0 to the IP 240 This does not affect any synchronization currently in progress Evaluating the IN signal When you select cyclic synchronization a positive going edge at the IN input initiates the following on the IP 240 The actual value is set to the value of the zero offset Synchronization bit SYNC is set The position...

Page 214: ... a a a a a a a a Prior to transfer of ZYSY 1 a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a Explanation A zero offset NVER of 1000 has been set prior to transfer of ZYSY 1 The positive going edge of the synchronization signal at the IN input sets the actu...

Page 215: ...a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a ...

Page 216: ...a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a 3 0 0 0 0 DR 36 Transferring the control bits and the position number for positions 1 to 254 with control FB 168 in direct data interchange You must enter the new control bits in DL 36 in the data block Specify the new position number as y value in the FKT parameter when you call FB 168 The FB enters this value in the data b...

Page 217: ... a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a...

Page 218: ...a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a ...

Page 219: ...3 102 101 100 SG 106 DR 37 DL 38 DR 38 1 2 3 a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a...

Page 220: ... a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a...

Page 221: ... a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a...

Page 222: ... a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a...

Page 223: ...a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a ...

Page 224: ...a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a Evaluating the status information Feedback position number When a position is called the positio...

Page 225: ...a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a BEE1 BEE2 BEE3 Positioning BEE1 BEE2 BEE3 Reference point BEE1 approach HASY 1 BEE2 Preliminary contact reached Preliminary contact not yet reached The preliminary contact was exited and BEE1 0 was read out from the IP 240 at least once Actual value not yet synchronized or no p...

Page 226: ... a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a...

Page 227: ...umber the IP 240 makes the interrupt request bytes available in the transfer buffer a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a ...

Page 228: ...a a a a a a a a a a a a a a a a a a BEE1 a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a BEE1 a a a a a a a a a a a a a a a a a a a a a a a a a BEE2 a a a a a a a a a a a a a a a a a a a a a a a a a BEE3 a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a BEE2 RIUM a a a a a a a a a a a a a a a a a a a a a a a a a BEE1 a a a a a a a a a a a a a a a a a a...

Page 229: ...a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a ...

Page 230: ...a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a 10 18 Modifying the Position Data and the Zero Offset The position values the distan...

Page 231: ...a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a ...

Page 232: ... a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a...

Page 233: ...a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a Distance value for range BEE1 Binary 0 DL 50 0 0 219 218 217 216 215 214 213 212 211 210 29 28 27 26 25 24 23 22 21 20 0 0 0 0 DR 50 DL 51 DR 51 1...

Page 234: ... a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a...

Page 235: ...a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a 1 0 0 0 0 0 0 0 ADD DR 45 0 0 0 0 0 DL 45 a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a Transferring a zero offset with control FB 168 in direct data interchange The new zero offset value must be entered in DW 46 to 47...

Page 236: ...n a BEE range when a position is selected the associated interrupts are generated immediately Actual value is in range BEE3 target range If you structured the IP 240 for backlash compensation note the following In order to ensure that each position is always approached from the same direction the target range must first be exited To do this you can either specify another position with a lower posi...

Page 237: ... a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a 1 1 1 0 X X X X Without backlash compensation X Output is set or an interrupt generated and the corresponding interrupt bits are set States of ...

Page 238: ... a a a a a a a a a a a a a a a a a a a a END no START Set control bit FREI to 0 Write control bits and position number Read actual value and status bits BEE2 0 no RICH 0 yes Preselect positive direction yes Preselect negative direction yes BEE3 0 no reselect positive direction S5 output RICH 0 yes no Preselect negative direction S5 output Set control bit FREI to 1 Write control bits Set control bi...

Page 239: ...s bits BEE2 0 no yes RICH 0 no Set control bit FREI to 1 Write control bits Set control bits FREI HAND and DA2S to 1 Write control bits start negative direction of travel no yes Read status bits RICH 0 and RIUM 1 Set control bits FREI HAND and DA2S to 0 Write control bits and position number Set control bit FREI to 1 Write control bits Read status bits BEE2 0 yes no Wait for motor standstill start...

Page 240: ... a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a Table 10 26 Contents of the Data Block and the Transfer Buffer on Reading Error Flags Bit 7 6 5 4 3 2 1 0 Description...

Page 241: ...5 135U and S5 155U a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a...

Page 242: ... a a a a a a a a a a a DW 23 ID for the configured mode and DB no DW 24 to 25 DW 29 Status bits DW 26 to 27 Absolute address of the configured module DW 28 Feedback position number a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a...

Page 243: ... a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a...

Page 244: ...a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a ...

Page 245: ... BEE3 entered BEE 2 1 The actual value is outside range BEE2 0 Range BEE2 entered BEE 1 1 The actual value is outside range BEE1 0 Range BEE1 entered RICH 1 The actual value must be modified in negative direction descending value in order to reach the target position 0 The actual value must be modified in positive direction ascending value in order to reach the target position SYNC 1 The actual va...

Page 246: ...a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a ...

Page 247: ... a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a...

Page 248: ... a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a Control bit for the distance values GAUE 1 Use specified distance values 0 Use distance values stored on the IP Zero offset Control bit for the zero offset DR 45 7 Data byte 6 5 4 3 2 1 0 0 0 0 0 0 ADD Bit 0 0 a a a a a a...

Page 249: ... a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a...

Page 250: ...a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a Binary representation Permissible values 1 to 254 Position value SE 219 211 23 SE 218 210 22 SE 217 29 21 SE 216 28 20 Binary representation BCD representation DL n 1 DR n 1 DL n 2 DR n 2 SE 220 212 24 106 104 102 100 SG 105 103 101 Bit 7 6 5 4 3 2 1 0 Bit...

Page 251: ... a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a...

Page 252: ... a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a Not required for FB 167 for the S5 ...

Page 253: ...it 3 with positive going edge of MESE actual pos stored PRA2 KM 0000 0000 Allocation of interrupts 0000 0000 Bit n 1 An interrupt is triggered over the assigned status bit 0000 0000 0011 1111 Bit n 0 No interrupt is triggered over the assigned status bit Bit 0 with positive going edge of UEBL counter in overrange Bit 1 with positive going edge of NPUE zero mark error Bit 2 with positive going edge...

Page 254: ...bank S1 Note Interrupts are not disabled in the configuring FBs It must be ensured that these FBs cannot be interrupted in the S5 115U S5 135U by setting for interrupt servicing after every statement and S5 155U 155U mode by writing the STEP 5 program accordingly Interrupts are disabled in the restart OBs Cycle on load caused by configuring Because configuring of a channel increases the module fir...

Page 255: ...UB approx 13 to 161 ms S5 150U P71200 S 4167 D 1 16 words 1186 words approx 11 5 to 176 ms S5 155U P71200 S 6167 B 1 16 words 1197 words 946 3UA 947 3UA approx 10 5 to 130 ms Nesting depth 0 Subordinate blocks keine Reservations in data area The data block specified in the DBNR parameter The number of data words depends on the number of positions stored Flags used MB 240 to 255 Reservations in sys...

Page 256: ... a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a...

Page 257: ... a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a...

Page 258: ... a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a...

Page 259: ... 3 0 2 2 3 0 ms S5 150U P71200 S 4168 D 1 5 words 805 words approx 1 0 0 8 1 0 1 7 1 0 1 7 1 0 1 8 ms S5 155U P71200 S 6168 B 1 5 words 947 words 946 3UA 947 3UA approx 1 0 0 9 1 8 2 5 1 0 1 6 1 4 1 7 ms Nesting depth 0 Subordinate blocks S5 115U OB160 only CPUs to 7UB S5 135U OB122 S5 155U OB91 OB122 Reservations in data area Data block specified in the DBNR parameter The number of data words dep...

Page 260: ... STEP 5 operations L DW x and T DW x Note The following sample programs do not check to see whether the specified data block has been created or is of sufficient length Should this be the case the S5CPUmaygotoSTOP Descriptions of the identifiers DBNR D KF DATA BLOCK NUMBER DWNR I W 1st DATA WORD TO BE READ OR WRITTEN L T I BI ON A 0 SIGNAL THE CONTENTS OF THE THREE DWs ARE OUTPUT TO DWN DWN2 ON A ...

Page 261: ...20 A L T LOAD TRANSFER VALUES 0021 JC TIR 0022 LIR 2 LOAD ACCUM2 WITH VALUE FROM DW N 0023 TAK FETCH VALUE IN ACCUM1 0024 T DWN OUTPUT VALUE 0025 TAK LOAD ACCUM1 WITH DW ADDRESS 0026 ADD BN 2 OFFSET OF 2 TO DW ADDRESS 0027 LIR 2 LOAD ACCUM2 WITH VALUE FROM DW N 1 0028 TAK FETCH VALUE IN ACCUM1 0029 T DWN1 AND OUTPUT 002A TAK 002B ADD BN 2 002C LIR 2 002D TAK 002E T DWN2 002F BEU 0030 TIR L DWN LOA...

Page 262: ...ET DATA WORD NUMBER 001D F COMPUTE 1ST DW ADDRESS 001E A L T LOAD TRANSFER VALUES 001F JC TIR 0020 LIR 3 LOAD ACCUM2 WITH VAL FROM DW N 0021 TAK FETCH VALUE IN ACCUM1 0022 T DWN OUTPUT VALUE 0023 TAK LOAD ACCUM1 WITH DW ADDRESS 0024 ADD BN 1 OFFSET OF 2 TO DW ADDRESS 0025 LIR 3 LOAD ACCUM2 W VAL FRO DW N 1 0026 TAK FETCH VALUE IN ACCUM1 0027 T DWN1 AND OUTPUT 0028 TAK 0029 ADD BN 1 002A LIR 3 002B...

Page 263: ... BLOCKS 001B D 001C LIR 1 LOAD ADDRESS OF 1ST DW DW0 001D SLD 16 001E RRD 12 001F L DWNR SOURCE TARGET DATA WORD NUMBER 0020 D COMPUTE 1ST DW ADDRESS 0021 MAB 0022 A L T LOAD TRANSFER VALUES 0023 JC TIR 0024 LRW 0 LOAD ACCUM1 WITH VAL FROM DW N 0026 T DWN AND OUTPUT 0027 LRW 1 LOAD ACCUM1 W VAL FROM DW N 1 0029 T DWN1 AND OUTPUT 002A LRW 2 LOAD ACCUM1 W VAL FROM DW N 2 002C T DWN2 AND OUTPUT 002D ...

Page 264: ...a a a a a a a a a Workpiece a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a Die casting machine Functional description Channel 1 on the IP 240 is configured and the auxiliary f...

Page 265: ...ASY CONTROL BIT F 62 5 SOSY CONTROL BIT F 62 6 ZYSY CONTROL BIT F 62 7 AMSK CONTROL BIT FY 63 STATBITS STATUS BITS DR29 F 63 0 SYNC STATUS BIT F 63 1 RICH STATUS BIT F 63 2 BEE1 STATUS BIT F 63 3 BEE2 STATUS BIT F 63 4 BEE3 STATUS BIT F 63 5 MESE STATUS BIT F 63 6 DA1 STATUS BIT F 63 7 DA2 STATUS BIT FY 64 STATUS STATUS FROM POSITIONING PROG FB10 F 64 0 POSACTIV POSITIONING IN PROGRESS F 64 1 POSR...

Page 266: ...ERR07 PAFE GROUP ERROR FY200 FY 66 FBPOS FEEDBACK POS NUMBER DR28 FY 67 EJECTPOS NEXT EJECT POS TO BE APPROACHED FW 68 INTCH1 INTERR REQUEST BYTES F CHANNEL 1 F 68 0 UEB IR COUNTER IN OVERRANGE F 68 1 NPU IR ZERO MARK ERROR F 68 2 DRB IR WIREBREAK SHORT CIRCUIT F 68 3 UBS IR FINAL VALUE OVERWRITTEN F 68 4 ZBV IR TARGET RANGE BEE3 EXITED F 68 5 RIU IR CUT OFF RANGE BEE2 EXITED F 68 6 F 68 6 F 68 7 ...

Page 267: ...TPUT FOR CLOSE GRIPPER Q 6 0 INSIGNAL PRELIM CONTACT SIGNAL FOR CHANNEL 1 INVERSE OF I 33 1 I 32 0 MAINSW MAIN SWITCH DRIVE ENABLE I 32 1 START START OF POSITIONING PROGRAM I 33 0 ENDPOS LIMIT SWITCH FOR POSITIVE DIRECTION I 33 1 ENDNEG LIMIT SWITCH FOR NEGATIVE DIRECTION I 33 2 GRUP GRIPPER IN HOME POS UP I 33 3 GRDOWN GRIPPER IN PICKUP EJECT POS DOWN DB 100 DATA1 TRAVERSING DATA ERROR MESSAGES D...

Page 268: ...lose gripper Approach first eject position open gripper Approach pickup position close gripper Approach second eject position open gripper Approach last eject position open gripper a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a...

Page 269: ... a a a yes Machining cycle in progress a a a a a a a a a a a a a a a a a a a a a a a a a yes Start input set Transfer data for home position Error fault monitoring Generate group error signal Acoustic fault signal Switch drive if necessary Evaluate limit switches Transfer data for machining cycle traversing program Select next position and specify response FB 32 Execute positioning program FB 33 R...

Page 270: ... a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a yes a a a a a a a a a a a a a a a a no Negative limit switch reached Stop negative direction of travel Start timer for motor deceleration Start positive direction of travel Start watchdog or delay timer for encoder s zero mark signal a a a a a a a a a a a a a a a a a a a a yes a a a a a a a a a a a a a a a a no Delay elapsed EN...

Page 271: ... a a a a a a a a a a a a a a a a a a a a a a a a a a a a no START a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a yes a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a no Prepare for close gripper Write position number of pickup position to transfer flag Increment pointer for next eject position by 1 END Last response op...

Page 272: ... a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a Target range entered a a a a a a a a a a a a a a a a yes Flag fault Initiate responses Set program status POSREADY Positioning in progress POSACTIV START New pos no feedback pos no a a a a a a a a a a a a a a a a no Start watchdog timer for positioning procedure Reset fault flags from last positioning procedure Set progra...

Page 273: ... a a a a a a a a a a a a a a no Target range exited a a a a a a a a a a a a a a a a a a a a yes a a a a a a a a a a a a a a a a yes a a a a a a a a a a a a a a a a a a a a no a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a...

Page 274: ...0000 11 KY 008 002 PICKUP HOME POSITION 12 KY 006 004 LAST FIRST EJECT POSITION 13 KH 0000 14 KH 0000 15 KH 0000 16 KH 0000 17 KH 0000 18 KH 0000 19 KH 0000 20 KH 0000 SCRATCH FLAGS INTERRUPT SERVICE 21 KH 0000 ROUTINE 115 135 155U 22 KH 0000 23 KH 0000 24 KH 0000 25 KH 0000 26 KH 0000 27 KH 0000 28 KH 0000 29 KH 0000 30 KH 0000 SCRATCH FLAGS RESTART ROUTINE 31 KH 0000 135 150U 32 KH 0000 33 KH 00...

Page 275: ...L VALUE 31 KH 0000 32 KH 0000 FINAL COUNT ZYSY 33 KH 0000 34 KH 0000 35 KH 0000 NEW POS NO 36 KM 00000000 00000000 CONTROL BITS 37 KH 0000 POS VALUE FOR POS 0 38 KH 0000 39 KH 0000 BEE1 40 KH 0000 41 KH 0000 BEE2 42 KH 0000 43 KH 0000 BEE3 44 KH 0000 CONTROL BIT GAUE 45 KH 0000 CONTROL BIT ADD 46 KH 0000 ZERO OFFSET VALUE 47 KH 0000 48 KH 0000 MODULO VALUE FOR 49 KH 0000 ROTARY AXIS 50 KH 0004 BEE...

Page 276: ... KH 0000 81 KH 0008 8TH POSITION 82 KH 0050 83 KH 0000 84 KH 0009 9TH POSITION 85 KH 0030 86 KH 5000 87 KH 000A 10TH POSITION 88 KH 0002 89 KH 0000 90 KH 000B 11TH POSITION 91 KH 0051 92 KH 0000 93 KH 000C 12TH POSITION 94 KH 0000 95 KH 0000 96 KH 000D 13TH POSITION 97 KH F020 98 KH 0000 99 KH 000E 14TH POSITION 100 KH F040 101 KH 0500 102 KH 000F 15TH POSITION 103 KH F250 104 KH 0000 105 10 110 E...

Page 277: ...ESTART ON 0011 L FW 246 POWER UP 0012 T DW 33 0013 L FW 248 0014 T DW 34 0015 L FW 250 0016 T DW 35 0017 L FW 252 0018 T DW 36 0019 L FW 254 001A T DW 37 001B 001C L RS 60 SAVE RS DATA 001D T DW 45 001E L RS 61 REQUIRED ONLY FOR 150U AND 001F T DW 46 135U WITH PRESET OF RESTART 0020 L RS 62 MODE IN DX0 0021 T DW 47 AUTO WARM RESTART ON 0022 L RS 63 POWER UP 0023 T DW 48 SYSTEM DATA RS150 RS153 002...

Page 278: ... KF 1 0038 IMP KF 10 0039 BCD KY 1 1 003A PRA1 KM 00000000 00000001 003B PRA2 KM 00000000 00011111 003C RUND KF 0 003D LOSE KF 0 003E DAV KF 1 003F PAFE FY 200 PAFE 0040 BER KF 0 NOT FOR 115U AND 135U 0041 ABIT KY 0 0 II II II II II 0042 0043 L FY 200 PAFE 0044 L KH 0000 0046 F 0047 S F 65 7 ERR07 0048 C DB 128 DBCH1 0049 L DW 10 004A C DB 100 DATA1 004B T DW 0 DW0 004C C DB 128 DBCH1 004D L DW 13...

Page 279: ...GS RS DATA 0057 T FW 244 0058 L DW 33 0059 T FW 246 005A L DW 34 005B T FW 248 005C L DW 35 005D T FW 250 005E L DW 36 005F T FW 252 0060 L DW 37 0061 T FW 254 0062 0063 L DW 45 RELOAD RS DATA 0064 T RS 60 0065 L DW 46 REQUIRED ONLY AS PER 0066 T RS 61 NETWORK 2 SAVE SCRATCH FLAGS 0067 L DW 47 RS DATA 0068 T RS 62 FOR 150U RS150 RS153 0069 L DW 48 006A T RS 63 006B 006C BE EWA 4NEB 811 6120 02a 10...

Page 280: ...BACK POSITION NUMBER DR28 FY 63 STATBITS STATUS BITS DR29 DB 128 DBCH1 DATA BLOCK CHANNEL 1 NETWORK 2 0018 ENABLE MAIN SWITCH 0018 A I 32 0 MAINSW 0019 JC NTW3 001A A F 0 0 RLO0 RESET PROGRAM 001B Q 4 0 POSDIR 001C Q 4 1 NEGDIR 001D Q 4 2 HOOTER 001E Q 5 0 OPENGR 001F Q 5 1 CLOSGR 0020 L KH 0000 0022 SD T 1 POSTIMER 0023 SD T 2 STOPTIMER 0024 SD T 3 REFTIMER 0025 T FY 60 NPOS 0026 T FY 61 RESPONSE...

Page 281: ... 200 PAFE SEE MANUAL SECTION 6 4 NETWORK 3 0035 REFERENCE POINT APPROACH 0035 0036 AN F 64 3 REFEND 0037 JC FB 31 0038 NAME REFFAHRT 0039 003A F 64 3 REFEND END OF REFERENCE POINT APPROACH NETWORK 4 003B SET UP POSITIONS 003B O F 64 2 REFACTIV 003C O F 64 0 POSACTIV 003D O Q 5 0 OPENGR RESPONSES COMPLETED 003E O Q 5 1 CLOSGR 003F JC NTW5 0040 0041 C DB 100 DATA1 0042 0043 A F 64 5 MACHCYC 0044 JC ...

Page 282: ...OPENGR 005F AN Q 5 1 CLOSGR 0060 JC FB 33 0061 NAME POS ANW 0062 0063 F 64 2 REFACTIV REF POINT APPROACH IN PROGRESS Q 5 0 OPENGR OPEN GRIPPER OUTPUT Q 5 1 CLOSGR CLOSE GRIPPER OUTPUT NETWORK 6 0064 ERROR LIMIT SWITCH MONITORING 0064 0065 A F 64 3 REFEND 0066 AN F 63 0 SYNC SYNCHRONIZATION MONITORING 0067 S F 65 6 ERR06 0068 0069 O F 65 0 ERR00 GENERATE GROUP ERROR FLAG 006A O F 65 6 ERR06 006B O ...

Page 283: ...GER SYNCHRONIZED F 65 0 ERR00 REF POINT APPR TERM WITHOUT SYNC F 65 7 ERR07 PAFE GROUP FLAG FY200 F 64 7 FAULT GROUP FAULT FLAG FLAG BYTE 65 F 65 4 ERR04 PERM POSITIONING TIME EXCEEDED F 65 5 ERR05 INTERRUPT BITS DRB NPU OVF Q 4 0 POSDIR OUTPUT FOR DIRECTION CONTROL Q 4 1 NEGDIR OUTPUT FOR DIRECTION CONTROL I 33 1 ENDNEG LIMIT SWITCH FOR NEG DIRECTION F 64 6 AUXF01 AUXILIARY SCRATCH FLAG I 33 0 EN...

Page 284: ... 168 001E NAME STEU POS 001F DBNR KF 0 0020 FKT KY 20 0 TRANSFER CONTROL BITS 0021 PAFE FY 200 PAFE 0022 L FY 200 PAFE 0023 L KH 0000 0025 F 0026 S F 65 7 ERR07 0027 VOR1 0028 AN I 33 1 ENDNEG 0029 Q 6 0 INSIGNAL GENERATE PRELIM CONTACT 002A R Q 4 1 NEGDIR 002B L KT 020 1 2 SEC DELAY 002D SS T 2 STOPTIMER LATCHING ON DELAY TIMER 002E A T 2 STOPTIMER 002F S Q 4 1 POSDIR 0030 0031 0032 A Q 4 0 POSDI...

Page 285: ...NT APPROACH 006C ON F 63 3 BEE2 006D ON F 63 4 BEE3 006E S F 65 0 ERR00 006F 007O A F 0 1 VKE1 TERMINATE REF POINT APPROACH 0071 S F 64 3 REFEND 0072 R F 64 2 REFACTIV 0073 R Q 4 0 POSDIR 0074 R Q 4 1 NEGDIR 0075 ENDE BE F 64 2 REFACTIV REF POINT APPROACH IN PROGRESS FY 200 PAFE SEE MANUAL SECTION 6 4 F 65 7 ERR07 PAFE GROUP FLAG FY200 F 0 1 RLO1 FLAG FOR 1 SIGNAL Q 4 0 POSDIR OUTPUT FOR DIRECTION...

Page 286: ...POSITION 000F F 0010 R F 64 5 MACHCYC 0011 BEU 0012 VOR2 R F 61 0 RESP01 0013 S F 61 1 RESP02 0014 L DL 11 MACHPOS PICKUP POINT 0015 T FY 60 NPOS 0016 L FY 67 EJECTPOS 0017 I 1 0018 T FY 67 EJECTPOS 0019 BE F 61 0 RESP01 OPEN GRIPPER F 61 1 RESP02 CLOSE GRIPPER FY 67 EJECTPOS NEXT EJECT POS TO BE APPROACHED FY 60 NPOS NO OF NEXT POS TO BE APPROACHED DL 12 DL12 LAST EJECT POSITION F 64 5 MACHCYC MA...

Page 287: ...001C 001D L KY 21 0 INDIRECT INITIALIZATION 001F L FY 60 NPOS OF FUNCTION WRITE 0020 OW CONTROL BITS AND POS NO 0021 T DW 19 0022 JU FB 168 0023 NAME STEU POS 0024 DBNR KF 0 0025 FKT KY 0 0 INDIRECT INITIALIZATION 0026 PAFE FY 200 PAFE OVER DATA WORD 19 0027 L FY 200 PAFE 0028 L KH 0000 002A F 002B S F 65 7 ERR07 002C 002D JU FB 168 002E NAME STEU POS 002F DBNR KF 0 0030 FKT KY 1 0 READ ACT VAL ST...

Page 288: ...EXT POS TO BE APPROACHED FY 66 FBPOS FEEDBACK POS NO DR28 F 0 1 RLO1 FLAG FOR 1 SIGNAL T 1 POSTIMER WATCHDOG TIMER F POSITIONING F 64 1 POSREADY POS REACHED RESPONSES INITIATED F 65 1 ERR01 DIST ACT POS TO SETP POS TOO SMALL F 65 2 ERR02 TARGET RANGE NOT REACHED F 65 3 ERR03 TARGET RANGE EXITED ZBV F 65 4 ERR04 PERM TIME F POSITIONING EXCEEDED F 64 7 FAULT GROUP FAULT FLAG BYTE 65 FY 62 CNTL CONTR...

Page 289: ...OPTIMER WHEN TIMER RAN DOWN 0066 S F 65 2 ERR02 BEF INT BIT BE3 WAS SET 0067 S F 64 7 FAULT 0068 0069 BE T 1 POSTIMER WATCHDOG TIMER FOR POSITIONING F 65 4 ERR04 PERM TIME FOR POSITIONING EXCEEDED F 64 7 FAULT GROUP FAULT FLAG FLAG BYTE 65 T 2 STOPTIMER TIMER FOR MOTOR DECELERATION F 65 2 ERR02 TARGET RANGE NOT REACHED EWA 4NEB 811 6120 02a 10 123 ...

Page 290: ...L RS 60 SAVE SYSTEM DATA 0018 T DW 40 0019 L RS 61 REQUIRED ONLY FOR 155U 001A T DW 41 IN 155 MODE AND 135U 001B L RS 62 WHEN SET IN DX0 FOR 001C T DW 42 INTERRUPT SERVICING 001D L RS 63 AFTER EVERY STATEMENT 001E T DW 43 001F 0020 DB 100 DATA1 TRAVERSING DATA ERROR CODES NETWORK 2 0021 READ INTERRUPT REQUEST BYTES 0021 0022 JU FB 168 0023 NAME STEU POS 0024 DBNR KF 128 0025 FKT KY 3 0 0026 PAFE F...

Page 291: ...45 S Q 5 1 CLOSGR 0046 0047 AN F 64 1 POSREADY 0048 S F 64 1 POSREADY 0049 NTW4 F 69 4 BE3 IR BEE3 ENTERED F 0 0 RLO0 FLAG FOR 0 SIGNAL T 1 POSTIMER WATCHDOG TIMER FOR POSITIONING T 2 STOPTIMER TIMER FOR MOTOR DECELERATION F 61 0 RESP01 OPEN GRIPPER F 61 1 RESP02 CLOSE GRIPPER Q 5 0 OPENGR OPEN GRIPPER OUTPUT Q 5 1 CLOSGR CLOSE GRIPPER OUTPUT F 64 1 POSREADY POSITION REACHED RESPONSES INITIATED NE...

Page 292: ...FOR DIRECTION NETWORK 7 005A OUTPUTS 005A L QB 4 UPDATE OUTPUTS 005B T PY 4 005C L QB 5 005D T PY 5 005E NETWORK 8 005F RELOAD SCRATCH FLAG SYSTEM DATA 005F C DB 100 DATA1 0060 L DW 20 RELOAD SCRATCH FLAGS 0061 T FW 240 0062 L DW 21 0063 T FW 242 0064 L DW 22 0065 T FW 244 0066 L DW 23 0067 T FW 246 0068 L DW 24 0069 T FW 248 006A L DW 25 006B T FW 250 006C L DW 26 006D T FW 252 006E L DW 27 006F ...

Page 293: ... KS KF KT KC KG KM ID RUND I Q D B T C D KM KH KY KS KF KT KC KG KF ID LOSE I Q D B T C D KM KH KY KS KF KT KC KG KF ID DAV I Q D B T C D KM KH KY KS KF KT KC KG KF ID PAFE I Q D B T C Q BI BY W D BY ID BER I Q D B T C D KM KH KY KS KF KT KC KG KF ID ABIT I Q D B T C D KM KH KY KS KF KT KC KG KY 002F BE FB 168 NETWORK 1 0000 NAME STEU POS ID DBNR I Q D B T C D KM KH KY KS KF KT KC KG KF ID FKT I Q...

Page 294: ...ALARM K1 0004 0005 BE OB 20 NETWORK 1 0000 ORGANIZATION BLOCK FOR MANUAL COLD RESTART FOR THE 115U O B 2 1 0000 0001 JU FB 20 CONFIGURING THE IP 240 0002 NAME ANLAUF 0003 0004 BE OB 22 NETWORK 1 0000 ORGANIZATION BLOCK FOR AUTOMATIC COLD WARM RESTART 0000 0001 JU FB 20 CONFIGURING THE IP 240 0002 NAME ANLAUF 0003 0004 BE 10 128 EWA 4NEB 811 6120 02a ...

Page 295: ...a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a ...

Page 296: ... a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a...

Page 297: ...uest you must specify a job number indicating which data are to be read The IP 240 then makes this data available in the transfer buffer and you can read it out from there S5 CPU IP 240 Write new modified data to the IP 240 To issue a Write request you must first enter the new data in the transfer buffer then specify a job number which tells the IP 240 to fetch the data a a a a a a a a a a a a a a...

Page 298: ... a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a...

Page 299: ... a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a...

Page 300: ... a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a Job number Chan 1 Chan 2 a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a ...

Page 301: ...a interchange is in progress The block diagram below shows the communications procedure for Read data from the IP 240 Fig 11 1 Flowchart for Read Data from the IP 240 yes no no Disable interrupts and start 200 µs delay timer a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a Start Reset communication no yes AFRT 0 Read status register no...

Page 302: ... transfer buffer ERR 1 yes Read out data DFRT 0 1 Write new job number Enable interrupts Write job number 40H yes no DFRT 0 Reset communication Write job number 40H Job number for reading error codes Read out data Read out error codes Read status register Read status register yes no AFRT 0 2 Read status register Write job number 01H 11 6 EWA 4NEB 811 6120 02a ...

Page 303: ... 40H for channel 1 and for channel 2 Warning When using direct data interchange in position decoding or counting mode you must make sure that only valid data are forwarded to the IP 240 as the firmware does not verify this data During data transfer data verification is normally taken care of by standard FBs 170 and 172 Simultaneous transfer of modified track data in position decoding mode If you w...

Page 304: ...error message been genera ted Read error message from IP 240 ERR 1 yes IDLE 1 Channel not yet configured If not generate error message in STEP 5 program Load new job number load KH 80 combine with OW write resulting job number to the IP 240 Load new job number set high order bit to 1 and write to IP 240 s job request register Write data Write job number Write data to the IP 240 Reload job number a...

Page 305: ...a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a ...

Page 306: ... a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a...

Page 307: ...a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a ...

Page 308: ...a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a Initial track value 3 0 0 0 0 0 0 0 SG Sign for initial value SG 1 The initial value is negative SG 0 The initial value is positive 8 to 14 7 Final track value 4 5 6 0 104 103 102 101 100 0 0 0 0 Sign for the final value SG 1 The final value is negative SG 0 The final value is positive Write zero offset To specify a zero offse...

Page 309: ... a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a...

Page 310: ... a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a...

Page 311: ...a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a ...

Page 312: ...of the initial count SG 1 The initial count value is negative SG 0 The initial count value is positive 4 to 14 0 0 0 0 Write control bits To reinitialize control bits you must enter the new control bits in the transfer buffer and write job number 1AH or 2AH in the job request register Table 11 11 Contents of the Transfer Buffer on Writing Control Bits Counting Mode 0 0 0 0 2 to 14 Bit 7 6 5 4 3 2 ...

Page 313: ... a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a...

Page 314: ...OUNTER DEFINE XY SO THAT THE TIME L KF 1 DELAY IN THE WAIT LOOP IS AT LEAST 200 µS F L KF 0 F TAK JC TIME WAITING TIME NOT YET ELAPSED STA1 L PY239 READ STATUS REGISTER T FY239 A F 239 0 AFRT HAS OLD JOB TERMINATED JC FER1 AN F 239 2 DFRT IS DATA READY BIT RESET JC STA1 L KH0040 LOAD JOB NUMBER FOR RESET COMMUNICATION T PY239 AND TRANSFER JOB NUMBER STA2 L PY239 READ STATUS REGISTER T FY239 AN F 2...

Page 315: ...LAG BIT RA ENABLE INTERRUPTS BEU READ ERROR BYTES ERR2 L KH0040 LOAD JOB NUMBER FOR RESET COMMUNICATION T PY239 AND WRITE JOB NUMBER STA4 L PY239 READ STATUS REGISTER T FY239 AN F 239 0 AFRT COMMUNICATION NOT YET RESET JC STA4 ERR3 L KH0001 LOAD JOB NUMBER FOR LOAD ERROR MESSAGES T PY239 AND WRITE JOB NUMBER STA5 L PY239 READ STATUS REGISTER T FY239 AN F 239 2 DFRT DATA NOT YET AVAILABLE JC STA5 L...

Page 316: ... 0 F TAK JC TIME WAITING TIME NOT YET ELAPSED STA1 L PY175 READ STATUS REGISTER T FY239 A F 239 0 AFRT OLD JOB TERMINATED JC FER1 AN F 239 2 DFRT DATA READY BIT RESET JC STA1 L KH0040 LOAD JOB NUMBER FOR RESET COM T PY175 MUNICATION AND TRANSFER JOB NO STA2 L PY 175 READ STATUS REGISTER T FY239 AN F 239 0 AFRT JOB TERMINATED BIT NOT YET SET JC STA2 FER1 A F 239 6 IDLE CHANNEL 2 NOT CONFIGURED JC E...

Page 317: ...OF THE FINAL T PY 167 VAL FOR THE 3RD TRACK L KH 0023 LOAD JOB NO FOR WRITE TRACK T PY 175 LIMITS FOR 3RD TRACK CHANNEL 2 AND TRANSFER THE JOB NUMBER STA3 L PY 175 READ STATUS REGISTER T FY 239 AN F 239 2 DFRT DATA NOT YET FETCHED JC STA3 A M 239 4 ERR ERROR JC ERR2 JUMP TO READ ERROR MESSAGES L KH 002D LOAD JOB NUMBER FOR TERMINATE DATA T PY 175 INTERCHANGE WITH CHANNEL 2 AND TRANSFER JOB NUMBER ...

Page 318: ...S REGISTER T FY239 AN F 239 2 DFRT DATA NOT YET AVAILABLE JC STA5 L PW160 TRANSFER ERROR MESSAGES T FW228 FW228 CONTAINS ERROR MESSAGE 3 L PW162 T FW230 FW230 CONTAINS ERROR MESSAGE 2 L PW164 T FW232 FW232 CONTAINS ERROR MESSAGE 1 L KH0040 LOAD JOB NUMBER FOR JOB T PY175 TERMINATED AND TRANSFER JOB NO RA ENABLE INTERRUPTS BE 11 22 EWA 4NEB 811 6120 02a ...

Page 319: ... a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a...

Page 320: ...a a a a a a a a a a a a a a a a a a a a a a a a 12 1 Structure of a Firmware Cycle Example 12 1 12 2 Computing the Response Time 12 2 12 3 Response Time for Evaluation of the Actual Value and of Wirebreak and Zero Mark Errors 12 3 12 4 Response Time for Evaluation of Inputs IN and GT 12 3 Figures a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a ...

Page 321: ... a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a...

Page 322: ...a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a ...

Page 323: ... Fig 12 4 Response Time for Evaluation of Inputs IN and GT a a a a a a a a a a a a t1 a a a a a a a a a a a a a a a a a a a a t1 a a a a a a a a a a a a a a a a a a a a treak a a a a a a a a a a a a a a a a a a a a treak t1 max 50 µs when ohmic load and Ioutput 50 mA 1 Is reset following reading of the interrupt request bytes a a a a a a a a a a a a a a a a a a a a t1 a a a a a a a a a a a a 1 a a...

Page 324: ... a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a...

Page 325: ... a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a...

Page 326: ... a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a...

Page 327: ...a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a ...

Page 328: ...a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a ...

Page 329: ...a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a ...

Page 330: ... a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a...

Page 331: ... a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a...

Page 332: ...a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a t6 t5 a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a t4 a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a t1 min 2 5 µs t2 ...

Page 333: ... acquisition is synchronized 2 Actual value acquisition is not synchronized No Z signal permitted t1 min 5 ms t2 min 5 ms a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a Fig 13 5 Timing Diagram for Reference Point Approach Positioning Mode 2 1 t1 t2 IN signal Z signal Counting pulses Direction of travel a a a a a a a a a a a a a a a a a a a a a a a a a a a...

Page 334: ...ter the value before or after the negative IN edge positive IN edge t1 min 7 5 ms t2 min 500 µs t3 min 7 0 ms a a a a a a a a a a a a a a a a a a a a a a a a t2 t2 a a a a a a a a a a a a a a a a a a a a a a a a 13 3 Timing at Counting Input CLK and at Binary Input GT Signal inputs CLK clock and GT gate are used in counting mode Only bounce free 24 V encoders may be used Coding switches S5 and S6 ...

Page 335: ...a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a ...

Page 336: ... a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a...

Page 337: ... a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a 01H 02H 04H 08H 80H If you program data interchange between S5 CPU and IP 240 yourself you must scan the ERR bit after read...

Page 338: ... a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a...

Page 339: ...a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a ...

Page 340: ...a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a ...

Page 341: ...a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a ...

Page 342: ...99 nn 00 Zero offset out of range 01 Zero offset exceeds final value of rotary axis 02 Illegal final value for rotary axis 03 BEE1 illegal 04 BEE2 illegal 05 BEE3 illegal 06 BEE1 illegal for position 0 07 BEE2 illegal for position 0 08 BEE3 illegal for position 0 14 4 3 Communications Errors Communications errors can occur on direct data interchange with the IP 240 You must read out the error code...

Page 343: ...les in the adapter casing and what you must observe when using the various S5 modules Section Contents Page A 1 Prerequisites A 2 A 2 Installing an Adapter Casing in the S7 400 A 3 A 3 Inserting S5 Modules in an Adapter Casing A 4 A 4 Interrupt Processing A 5 A 5 Technical Specifications A 6 In this Chapter A ...

Page 344: ...on you must order new standard function blocks for those modules SIMATIC S5 and SIMATIC S7 differ from one another in their general technical specifications most particularly those relating to ambient condi tions When installing an S5 module in an S7 400 the most stringent am bient conditions for either the S5 and S7 apply for the system as a whole The adapter casing may be installed only in the S...

Page 345: ...ng are closed factory setting These jumpers are for testing purposes only and must always remain closed Figure A 1 shows the location of the jumpers Bild A 1 Location of the Jumpers on the Adapter Casing 2 Set the CPU mode switch to the STOP position 3 Set the standby switch on the power supply module to the position 0 V output voltages 4 Follow the directions in the S7 400 and M7 400 Installation...

Page 346: ...CPU 4 2 Unscrew and remove the interlocking plate on the adapter casing 3 Insert the module in the adapter casing s guide tracks and push The rear plug connectors snap into the adapter casing s socket connectors 4 Screw the interlocking plate back into place 5 On S5 modules with locking knob push the knob in and turn it so that the knob slot is vertical Figure A 2 shows how to insert an S5 module ...

Page 347: ...interrupt functions are reset with the falling edge of the OD signal depends on the S5 module please refer to the relevant manuals In the case of S5 modules in which the falling edge of the OD sig nal does not reset an interrupt a new interrupt is subsequently generated When an S5 module in the adapter casing generates an interrupt the logical address of that module in entered in the interrupt OB ...

Page 348: ...5 1 V DC 4 75 V to 5 25 V DC Auxiliary voltage 1 Rated voltage Range 24 V DC 18 V to 32 V DC Battery voltage 1 Rated voltage Range 3 4 V DC 2 75 V to 4 4 V DC Maximum Current Carrying Capacity The maximum power which may be drawn from the adapter casing is as follows From the system voltage From the auxiliary voltage From the battery voltage 3 A 0 5 A 0 5 mA 1 Is looped through from the S7 400 pow...

Page 349: ...S5 Modules Adapter Casing and IM 463 2 This chapter describes how to address S5 modules inserted in the adapter casing and how to address S5 modules connected via the IM 463 2 Section Contents Page B 1 Addressing S5 Modules B 2 In this Chapter B ...

Page 350: ...he address set on the module must be entered in STEP 7 The address of the S5 module in a permissible S5 address space address switch on the module The address under which the module is to be referenced in the S7 400 must be set under STEP 7 It is not possible to use default addresses Proceed as follows for an S5 module in the S7 400 S7 address Logical address The value range depends on the CPU S5 ...

Page 351: ...be made under STEP 7 for each area In order to operate an S5 module with page addressing you need the revised standard function blocks S7 functions These standard function blocks call special system functions which emulate the S5 page commands These stan dard function blocks can be linked into your application program Even in the case of page addressing you must assign a logical address This logic...

Page 352: ...rameters Only the start address of the module need be set The next 31 addresses are reserved by an internal decoding procedure and are then no longer available for other modules The addresses can be set in increments of 32 A module s input and output addresses S5 and S7 must be identical This is a prerequisite which must be observed to ensure proper use of the standard function blocks When you con...

Page 353: ...ired data blocks and provides programming examples to show you how to use the functions Section Contents Page C 1 Overview C 2 C 2 Counting Functions C 4 C 7 Position Decoding Functions C 20 C 4 Positioning Functions C 10 C 5 Differences Between SIMATIC S7 and SIMATIC S5 C 13 C 6 Programming Example for Counting Mode C 14 C 7 Programming Example for Position decoding Mode C 20 C 8 Programming Exam...

Page 354: ...mming example An on line Help facility is provided for the standard functions Before initializing the IP 240 you should make sure that the following pre requisite has been fulfilled Be sure that Version 2 0 or a newer version of STEP 7 has been correctly installed on your programming device or PC All the software standard functions and examples can be found on the two 3 5 inch diskettes Counting a...

Page 355: ...onfigure your system you must have created a project in which you can store the parameters You can find additional information on module configuring in your Standard Software for S7 and M7 STEP 7 User Manual Only the most important steps are described below 1 Start the SIMATIC Manager and call the configuration table in your project 2 Select a rack and place it at the desired position 3 Open the r...

Page 356: ...GAD INPUT INT Module address KANR INPUT INT Channel number DBNR INPUT INT Data block number DIG INPUT WORD Assign digital output PRA INPUT WORD Assign interrupts EXTE INPUT WORD Control counter enable PAFE OUTPUT BYTE Error flag byte DBNR INT x x Dependent on the CPU used number 0 is not permitted EXTE WORD corresponds to the EXT parameter in S5 had to be renamed because EXT is a compiler code wor...

Page 357: ... parameters required by the FC 172 function Name Parameter Type Data Type Description DBNR INPUT INT Data block number FKT INPUT INT Function number PAFE OUTPUT BYTE Error flag byte DBNR INT x x Dependent on the CPU used number 0 is not permitted For the values of the remaining parameters please refer to the Manual Section 8 3 2 Control Function Block Introductory Remarks Calling the Function Para...

Page 358: ...lock specified in DBNR parameter Space reserved in lo cal data area 24 bytes 10 bytes System functions called SFC 24 TEST_DB SFC 36 MSK_FLT SFC 37 DMSK_FLT SFC 38 READ_ERR SFC 47 WAIT SFC 41 DIS_AIRT SFC 42 EN_AIRT SFC 47 WAIT The processing times shown below apply for the CPU 416 1 Module Function Processing Time FC 171 12 2 ms FC 172 Function 1 2 2 ms Function 2 2 0 ms Function 3 2 2 ms Function...

Page 359: ...ption BGAD INPUT INT Module address KANR INPUT INT Channel number DBNR INPUT INT Data block number AFL INPUT INT Resolution for sensor pulses IMP INPUT INT Set zero mark monitoring DIG1 INPUT WORD Assign digital output D1 DIG2 INPUT WORD Assign digital output D2 PRA1 INPUT WORD Assign interrupts PRA2 INPUT WORD Assign interrupts PAFE OUTPUT BYTE Error flag byte DBNR INT x x Dependent on the CPU us...

Page 360: ...f the parameters required by the FC 170 function Name Parameter Type Data Type Description DBNR INPUT INT Data block number FKT INPUT INT Function number PAFE OUTPUT BYTE Error flag byte DBNR INT x x Dependent on the CPU used 0 is not permitted For the values of all other parameters please refer to the Manual Section 7 3 2 Control Function Block Introductory Remarks Calling the Function Parameters...

Page 361: ... in lo cal data area 26 bytes 12 bytes System functions cal led SFC 24 TEST_DB SFC 36 MSK_FLT SFC 37 DMSK_FLT SFC 38 READ_ERR SFC 47 WAIT SFC 41 DIS_AIRT SFC 42 EN_AIRT SFC 47 WAIT The specified processing times apply for the CPU 416 1 Block Function Processing Time FC 169 No track transferred 9 7 ms All tracks transferred 10 0 ms FC 170 Function 1 2 5 ms Function 2 2 1 ms Function 3 2 1 ms Functi...

Page 362: ...FC 165 function Name Parameter Type Data Type Description BGAD INPUT INT Module address KANR INPUT INT Channel number DBNR INPUT INT Data block number AFL INPUT INT Resolution for sensor pulses IMP INPUT INT Set zero mark monitoring BCD INPUT WORD Select number formats PRA1 INPUT WORD Assign interrupts PRA2 INPUT WORD Assign interrupts RUND INPUT INT Select axis type LOSE INPUT INT Compensation of...

Page 363: ...FE CALL FC 168 DBNR FKT PAFE The table below provides an overview of the parameters required by the FC 168 function Name Parameter Type Data Type Description DBNR INPUT INT Data block number FKT INPUT WORD Function number PAFE OUTPUT BYTE Error flag byte DBNR INT x x Dependent on the CPU used number 0 is not permitted For the values of the remaining parameters please refer to the Manual Section 10...

Page 364: ...area 24 bytes 12 bytes System functions called SFC 24 TEST_DB SFC 36 MSK_FLT SFC 37 DMSK_FLT SFC 38 READ_ERR SFC 47 WAIT SFC 41 DIS_AIRT SFC 42 EN_AIRT SFC 47 WAIT The processing times shown below apply for the CPU 416 1 Module Function Processing Time FC 167 14 8 to 130 2 ms The processing time depends on the number of positions to be transferred 0 to 254 FC 168 Function 1 2 2 ms Function 20 2 1 ...

Page 365: ... has been largely retained The following points distinguish S7 from S5 for all modes With S7 the returned data block number is located in the data word DBW 48 the number can be greater than one byte The data byte DBB 47 oc cupied by the data word number in S5 is occupied by the standard func tions and is therefore no longer available The basic address of the module is returned in the data word DBW...

Page 366: ...lly it uses the functions Monitor Modify variable The devices listed below are only some of those which can be used to try out the sample program An S7 400 programmable controller system rack power supply unit CPU An adapter casing An IP 240 module with suitable sensor One digital input and one digital output module A programming device such as a PG 740 It is possible to do without both the digita...

Page 367: ...trical S5 Sensor signals 24 V channel 1 S6 Sensor signals 24 V channel 2 For the programming example the data block DB 172 C_data is used It has the same format as the corresponding standard data block The data nec essary for the example has also been entered The following blocks are used Block Name Purpose OB 1 Cycle Cyclic program processing OB 40 Interrupt Interrupt processing OB 100 Start up S...

Page 368: ...y I 3 4 Unassigned I 3 5 Unassigned I 3 6 Unassigned I 3 7 Unassigned Signal Memory Bit Description Q 3 0 M 171 0 Counting has been enabled Q 3 1 M 171 1 Q 3 2 M 171 2 Interrupts have been enabled Q 3 3 M 171 3 Interrupt marker Q 3 4 Unassigned Q 3 5 Unassigned Q 3 6 Unassigned Q 3 7 M 171 7 Error has occurred The following memory areas are also occupied Bit Memory Address Area Description MB 172 ...

Page 369: ...arted up If all inputs show the signal state 0 no output may be activated If an error or fault occurs during execution of the start up program the cyclic block calls are no longer processed the error memory bit After every block call in the cyclic program an error memory bit is set when an error occurs BR 0 which in turn causes the group error message to be signalled at output Q3 7 M 171 7 In the ...

Page 370: ...set and written to the module Now the counting is completed the actual value reached is stored as the end value When the count process is started again the counting begins again at the count starting value The count process was previously influenced by the software through the control bit STRT You can also influence the count process with the gate con tact by specifying the value W 16 0001 as the ...

Page 371: ...terrupt enable is canceled through transfer of the control bit AMSK to the module with negative edge at input I 3 2 M 170 2 In the interrupt program the FC 172 function is called by means of function 3 read interrupt request bytes The interrupt request bytes are transferred from the module to the data block These contain the cause of the interrupt for example interrupt generation at zero crossing ...

Page 372: ...um hardware complement 1 byte for inputs 1 byte for outputs Essentially it uses Monitor Modify vari able The devices listed below are only some of those which can be used to try out the sample program An S7 400 programmable controller system rack power supply unit CPU An adapter casing An IP 240 module with suitable sensor One digital input and one digital output module A programming device such a...

Page 373: ... symmetrical S5 Sensor signals 5 V channel 1 S6 Sensor signals 5 V channel 2 For the programming example the data block DB 170 PD_data is used It has the same format as the corresponding standard data block The data nec essary for the example has also been entered The following blocks are used Block Name Purpose OB 1 Cycle Cyclic program scanning OB 40 Interrupt Interrupt processing OB 100 Start u...

Page 374: ...ay I 2 4 Unassigned I 2 5 Unassigned I 2 6 Unassigned I 2 7 Unassigned Signal Memory Bit Description Q 2 0 M 181 0 Write track limits Q 2 1 M 181 1 Q 2 2 M 181 2 Interrupts have been enabled Q 2 3 M 181 3 Interrupt display Q 2 4 Unassigned Q 2 5 Unassigned Q 2 6 Unassigned Q 2 7 M 181 7 Error has occurred The following memory areas are also occupied Bit Memory Address Area Description MB 182 Edge ...

Page 375: ...state 0 no output may be activated If an error or fault occurs during execution of the start up program the cyclic block calls are no longer processed the error memory bit is set After every block call in the cyclic program an error is flagged when an error occurs BR 0 which in turn causes a group error message to be output at Q 2 7 M 181 7 In the case of a group error message the associated error...

Page 376: ...DBX 38 0 REF1 DB 170 DBX 38 2 REF3 The hysteresis is not taken into account when the reference bits are set You can define new limit values for the tracks that were configured at start up Change the track limits in the data block DB 170 DBD 68 Start value track 1 DB 170 DBD 72 End value track 1 DB 170 DBD 84 Start value track 3 DB 170 DBD 88 End value track 3 and transfer the values with the input...

Page 377: ...0 3 to transfer the control bits this input actually enables the interrupts but if you deactivate it again immediately the control bits will be transferred with the interrupts still disabled If the actual value now runs into a configured track the digital outputs will be set D1 with track 1 and D2 with track 3 When the value leaves the track via the same limit as when it entered it change of direc...

Page 378: ...nterrupt enable is canceled through transfer of the control bit AMSK to the module with negative edge at input I 2 2 M 180 2 In the interrupt program the FC 170 function is called by means of function 3 read interrupt request bytes The interrupt request bytes are transferred from the module to the data block These contain the cause of the interrupt for example interrupt generation when track 1 is ...

Page 379: ... a minimum hardware complement 1 byte for inputs 1 byte for outputs Essentially it uses Monitor Modify vari able The devices listed below are only some of those which can be used to try out the sample program An S7 400 programmable controller system rack power supply unit CPU An adapter casing An IP 240 module with suitable sensor One digital input and one digital output module A programming devic...

Page 380: ...l 2 For the programming example the data block DB 168 P_data is used It has the same format as the corresponding standard data block The data nec essary for the example has also been entered The following blocks are used Block Name Purpose OB 1 Cycle Cyclic program scanning OB 40 Interrupt Interrupt processing OB 100 Start up Cold restart processing DB 170 P_data Data block for positioning FC 169 ...

Page 381: ...ay I 2 4 Unassigned I 2 5 Unassigned I 2 6 Unassigned I 2 7 Unassigned Signal Memory Bit Description Q 2 0 M 181 0 Execute function Q 2 1 M 181 1 Q 2 2 M 181 2 Interrupts have been enabled Q 2 3 M 181 3 Interrupt display Q 2 4 Unassigned Q 2 5 Unassigned Q 2 6 Unassigned Q 2 7 M 181 7 Error has occurred The following memory areas are also occupied Bit Memory Address Area Description MB 182 Edge me...

Page 382: ...ion to be approached is the value W 16 00FF no position selected If all inputs show the signal state 0 no output may be activated If an error or fault occurs during execution of the start up program the cyclic block calls are no longer processed the error memory bit is set After every block call in the cyclic program an error is flagged when an error occurs BR 0 which in turn causes a group error ...

Page 383: ...ired function in the data word DBW 38 3 Transfer the function by briefly activating the input I 1 0 In the event of an error the group error message Q 1 7 is set If for example values with an invalid range are transferred the module returns a correspond ing error in the data word DBW 20 MB 196 then shows B 16 01 Before any positioning can occur the recording of the actual value must be synchronize...

Page 384: ... 2 is specified for approaching The positioning process for position 2 is as described above With the input I 1 1 M 190 1 you can transfer a new zero displacement to the module You must write the desired value to the data block beforehand DB 168 DBD 92 Zero displacement The zero displacement is added to the current actual value The clearance values around a position can be modified during cyclic o...

Page 385: ... the release of the digital outputs with the con trol bits DB 168 DBX 72 0 FREE TRUE DB 168 DBX 72 1 MANUAL FALSE DB 168 DBW 38 FUNCTION B 20 0 With brief activation of the input I 1 0 M 190 0 the control bits are trans ferred to the module and become effective immediately The digital outputs are set for the duration of the positioning process With the control word DB 168 DBW 38 FUNCTION B 20 1 an...

Page 386: ...errupt enable is canceled through transfer of the control bit AMSK to the module with negative edge at input I 1 2 M 190 2 In the interrupt program the FC 168 function is called by means of function 3 0 read interrupt request bytes The interrupt request bytes are transferred from the module to the data block These contain the cause of the interrupt for example interrupt generation when the clearan...

Page 387: ...a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a ...

Page 388: ... 10 86 Base connector 4 4 4 6 Base time 12 4 12 6 BASP Command output inhibit Battery check 6 5 BCD 10 85 10 86 numbers 10 10 representation 10 11 BE1 10 77 BE2 10 77 BE3 10 77 BER 7 18 7 21 8 7 8 9 10 85 10 86 10 88 BERO proximity switch 2 2 2 3 4 7 3 wire 4 7 13 5 13 7 4 wire 4 7 13 5 13 7 BGAD 7 18 7 19 10 85 10 86 Binary input 2 2 2 3 GT 13 1 13 7 IN 13 1 13 5 Binary number 10 10 10 11 Binary ...

Page 389: ...4 PLC output 10 56 options 10 37 statement 6 4 7 13 7 23 8 1 8 3 8 11 Control bit 4 11 6 1 7 16 7 23 7 25 7 26 8 1 8 13 Control bit 8 14 10 55 10 76 10 80 11 4 11 16 14 2 ADD 10 69 AMSK 10 36 10 40 10 80 DA1S 10 39 10 40 10 54 10 55 10 80 DA2S 10 39 10 40 10 54 10 55 10 80 distance values 10 82 FREI 10 39 10 40 10 45 10 54 10 55 10 80 HAND 10 39 10 40 10 54 10 80 HASY 10 39 10 40 10 45 10 80 SOSY ...

Page 390: ... 11 8 13 9 4 9 7 10 85 10 86 10 91 Delay 2 5 DFRT 11 2 11 3 11 6 DIG 1 DIG 2 7 6 7 18 7 20 Digital output 7 6 7 7 10 17 10 56 11 10 control 10 54 D1 10 17 D2 10 17 Direction 10 17 10 18 negative 10 18 positive 10 18 of rotation 13 2 Direction bit 10 47 10 56 RICH 10 71 10 77 change 7 10 7 12 10 63 control 10 73 evaluation 10 43 reversal 10 8 10 60 10 62 of travel 7 17 10 3 10 8 10 18 10 40 10 41 1...

Page 391: ...6 10 16 10 32 10 89 10 93 12 1 12 2 12 4 Expansion unit 4 1 4 3 External control signal 10 38 F Fan 4 1 FB Function block Final value 7 4 7 5 7 25 7 29 8 3 8 13 8 15 10 15 10 16 10 31 10 35 10 47 10 57 10 61 10 76 10 80 14 2 overwrite 10 60 read 11 14 register 10 47 rotary axis 10 15 10 76 10 83 Firmware cycle 10 32 12 1 12 4 execution time 12 4 12 6 version 10 85 FKT 10 77 10 91 Flag area 7 22 7 ...

Page 392: ... 7 8 8 8 14 8 15 10 9 10 35 10 44 10 61 10 70 10 71 10 86 BE2 10 21 BE3 10 21 Interrupt cause 10 62 masking 10 36 organization block OB 5 6 10 36 10 61 10 91 read request bytes 10 92 11 15 request 5 3 5 6 6 2 6 5 7 14 8 6 10 61 request bits 11 11 11 15 request bytes 5 3 6 2 6 5 7 2 7 14 7 23 7 25 7 27 8 4 8 6 8 11 8 13 8 15 10 9 10 35 10 36 10 61 10 62 10 76 10 77 10 92 11 4 RIU 10 21 service rout...

Page 393: ... 8 13 9 7 10 32 10 76 hardware 7 25 8 13 9 7 10 76 mounting rack 4 1 slot 4 1 start address 7 19 8 8 9 5 10 12 10 37 10 86 11 1 Module fault 14 1 Mounting position 3 1 5 1 Multiprocessor operation 6 8 N Nibble 10 11 NPU 7 27 10 77 11 11 NPUE 7 13 7 15 7 26 10 34 11 10 11 11 zero mark monitoring 7 13 10 34 Number format 10 52 select 10 86 Number representation 10 10 10 12 10 14 BCD 10 11 Numerical ...

Page 394: ...10 66 10 76 10 84 change 10 65 10 52 Positioning 10 70 10 72 10 73 accuracy 10 21 interrupting 10 70 procedure 10 50 10 52 PRA 7 21 8 7 8 8 PRA1 7 6 7 20 PRA1 PRA2 7 18 7 19 10 85 10 87 Preliminary contact 2 2 2 4 4 5 7 16 7 17 10 41 10 44 edge 7 17 input 7 16 signal 7 16 7 17 10 38 10 39 10 41 13 5 Process interrupt 6 2 7 20 Process state 6 2 Processing channel 1 12 1 channel 2 12 1 cycle 7 2 Pro...

Page 395: ...2 separately 10 17 10 42 SETUP time 13 7 SG 7 2 7 4 7 26 7 28 7 29 8 2 8 5 8 14 8 16 11 11 11 15 SGF 8 5 11 15 Shielding 4 6 bus 4 6 Short circuit 10 33 in encoder line 10 70 Sign bit 10 10 Signal acquisition 7 5 7 13 7 15 10 70 asymmetrical 13 1 edge 6 1 13 2 13 7 form 13 1 13 5 13 7 level 13 1 length 13 3 sensor 2 4 skew 13 2 symmetrical 13 1 Signalling range 7 22 10 29 10 31 10 64 Sign extensio...

Page 396: ...Synchronization bit SYNC 10 45 Synchronization mode 10 9 10 38 selection 10 49 System data 11 15 area 10 92 System operation 10 93 T Target 10 70 position 10 31 10 71 Target range 10 4 10 35 exiting 10 59 10 62 Test voltage 2 1 Tetrad 10 11 Thermistor 2 7 Three wire BERO 4 7 Time base 12 1 critical 11 1 Time out 5 6 Timing 13 1 13 2 13 5 13 7 diagrams 13 2 13 7 Z signal 13 3 Timing requirements 13...

Page 397: ...r 7 21 10 35 monitoring 6 2 7 13 7 27 10 34 10 60 10 64 10 86 13 2 position 7 17 13 6 pulse 7 15 signal 7 26 10 38 13 1 Z signal 7 13 Zero offset 6 1 7 1 7 3 7 5 7 6 7 15 7 16 7 23 7 29 10 26 10 27 10 64 10 69 10 76 10 82 11 4 14 2 additive 10 68 relative 10 68 write 11 12 Zero point 7 16 10 2 10 26 additive 10 27 monitoring 10 34 negative 10 15 10 28 relative 10 26 specification 10 28 Z signal 7 ...

Page 398: ...field test to IEC 801 3 Test field strength 3 V m Fast transient burst test to IEC 801 4 Digital inputs and outputs 1 kV Vibration to IEC 68 2 6 Tested with 10 to 57 Hz constant ampli tude 0 15 mm 57 to 150 Hz constant acceler ation 2 g Shock IEC 68 2 27 Tested with 12 shocks semisinusiodal 15 g 11 ms Free Fall IEC 68 2 32 Tested with Height of fall 1 m Degree of protection to IEC 529 Implementati...

Page 399: ...er signals Two pulse trains displaced by 90 Channels A and B one reference signal Channel Z The Z signal is evaluated in zero mark monitoring and reference point approach during signal state A 1 and B 1 For the duration of signal Z states A 1 and B 1 may only occur once Section 13 1 1 Encoder output circuits with symmetrical pulse train to RS 422 A or similar rated encoder voltage 5 V connection t...

Page 400: ... input Encoders e g incremental encoders Encoder output circuit Switching to P potential encoder voltage rating 24 V connection to input CLK clock Binary input Encoders e g BERO proximity switches Encoder output circuit Switching to P potential operating voltage 24 V connection to input GT gate Input frequencies Pulse input max 25 kHz for 100 m cable 1 max 100 kHz for 25 m cable 1 Binary input max...

Page 401: ... a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a...

Page 402: ...e train a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a ...

Page 403: ...lamp load max 5 W 8 Hz max Simultaneity factor at 55 C 100 Number of outputs simultaneously energized Residual current at 0 signal 1 mA max Output voltage at 1 signal Vp 3 V min Max length of shielded twisted pair cable 1000 m 3300 ft Rated insulation voltage to VDE 0160 30 V DC Insulation group C tested at 500 V AC Fig 2 3 Block Diagram of the Output Circuit Position decoding counting positio nin...

Page 404: ...ted tolerance If the supply voltage is not sufficient to supply 5 V DC for the encoder the encoder must be provided with power from another source The required voltage can be fed in over the 24 V L M terminal on connector X6 Note that when supplying incremental encoders with symmetrical outputs to RS 422A from another source the difference in the earth potential between the encoder and the module ...

Page 405: ...8 8JB02 For the MS DOS S5 DOS MT operating system 6ES5 848 7JB02 Positioning mode For the S5 DOS operating system 6ES5 848 8JC02 For the MS DOS S5 DOS MT operating systems 6ES5 848 7JC02 Fuse 0 8A F e g Wickmann No TR5F 19370K 1 6A T Wickmann No TR5T 19372K Position encoders with symmetrical signals e g Siemens No 6FC9320 Connecting cables for 6FC9320 3 00 position decoders 5m 6ES5 705 3BF01 10m 6...

Page 406: ...S5 bus addresses A 0 to A 11 Fig 3 1 Locations of the Address Switches S2 S1 S5 S4 S6 Switch banks S2 and S3 for address setting a a a a a a a a a a a a a a a a a a a a a a a a a a a a S2 5 a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a off on a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a off on a a a a a a a a a a a a a a a a a a a a a a a a S3 1 a a a a a a a...

Page 407: ...nded I O area Q I O area 128 144 160 176 192 208 224 240 0 16 32 48 64 80 96 112 144 128 160 176 192 208 224 240 Starting address Programmable controller S5 115U P Q area S2 Address S3 on off S5 135U S5 150U S5 155U 4 3 2 1 5 3 2 EWA 4NEB 811 6120 02 ...

Page 408: ...a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a ...

Page 409: ...Section 5 2 encoder signal matching with switchbanks S5 and S6 Section 5 3 The locations of the switchbanks and the fuses are shown in Fig 5 1 The switch settings in the figure are factory setttings Fig 5 1 Locations of Switchbanks and Fuses on off on off on off off on off on off on Fuse for 5 V encoder supply S2 S1 S3 S5 S4 S6 F1 D1 F2 D2 F3 D1 F4 D2 Channel 2 Channel 1 F5 Fuses for digital outpu...

Page 410: ...a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a ...

Page 411: ...tional evaluation of I O byte 0 enables the use of one interrupt circuit for several IP 240s Interrupt generation with I O byte 0 Each bit in I O byte 0 can be reserved by one module with interrupt capablity Switches S1 1 to S1 8 on switchbank S1 are available on the IP 240 for this purpose By defining which bit is to be set for an interrupt signal on the module the priority can be determined with...

Page 412: ... when I O byte 0 is enabled with switch S2 8 In additon to switch S1 1 only one other switch S1 2 to S1 8 may be closed on switchbank S1 In the S5 155U process interrupt generation via I O byte 0 must also be enabled in DX 0 Calling the interrupt OBs in the S5 150U and S5 155U 150 mode In the S5 150U and S5 155U 150 mode a change in one of the bits in I O byte 0 invokes the corresponding interrupt...

Page 413: ... a a a a a a a a a a a a a a a a a a a a a a 7 a a a a a a a a a a a a a a a a a a a a a a a a a a a 6 a a a a a a a a a a a a a a a a a a a a a a a a a a a 5 a a a a a a a a a a a a a a a a a a a a a a a a a a a 0 If slave 1 and slave 2 generate a process interrupt the value 06H is stored in PY 0 Additional evaluation of I O byte 0 for interrupt generation over the IRx interrupt circuit S5 115U S...

Page 414: ... a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a b So that the CPU does not go to the stop state with a time out the following sequence of statements must be inserted into OB21 and OB22 STL OB 21 and OB 22 STL FBn Explanation JU FBn NAME XYZ BE L RS 16 L KH FEFF AW T RS16 BE This sequence of instructions prevents upda ting of word 0 in the process input image a ...

Page 415: ... a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a...

Page 416: ...r Title Company Name Street City Zip Code Country Please check any industry that applies to you Automotive Electrical Machinery Chemical Food Instrument and Control Nonelectrical Machinery Pharmaceutical Plastic Pulp and Paper Textiles Transportation Other Petrochemical Phone EWA 4NEB 811 6120 02b ...

Page 417: ...of Your Manual Order No of Your Manual Edition Please give each of the following questions your own personal mark within the range from 1 very good to 5 poor 1 Do the contents meet your requirements 2 Is the information you need easy to find 3 Is the text easy to understand 4 Does the level of technical detail meet your requirements 5 Please rate the quality of the graphics tables Additional comme...

Reviews: