Technical Forum

SIMATIC S5 / STEP 5

S5-135 OB2 call

Thread Starter: Milos Petrovic   Started: 7/24/2013 2:46 PM   Replies: 3

« Previous thread Next thread »
Page 1 of 1 (4 items)
  7/24/2013, 2:46 PM
Joined 11/8/2010
Last visit: 10/30/2014
Posts: 47
Rating:
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Hi people!

I have a task to convert S5 program to S7 program. In S5 program there are many OBs but one of them is OB2. In manual it says that it is used for hardware interrupts and for that it uses input byte IB0. In S5 configuration there is no interrupt card installed. On byte IB0 some error signals are connected (NOT-AUS, phase presence, PLC error, itd.) but I believe that they can not make interrupt because this is not interrupt card!!!

Is it possible that OB2 block is called on some other way in S5 program?

Thanks in advance,
Miloš
Top
  7/25/2013, 6:19 AM
Joined 11/21/2007
Last visit: 10/31/2014
Posts: 1573
Rating:
Rated: Excellent [4.05 out of 5 / rated 128 time(s)]. (128) 
Rated: Excellent [5 out of 5 / rated 1 time(s)]. (1) 
Hi Milos Petrovic

The Process interrupt can be Triggered by Interrupt capable DI Modules like 6ES5 432-4UAxx
or certain IP Modules.

These modules are addressed in P Areas with address > 127 ( i.e. PW 128 onwards ) and not with 0 as commonly misunderstood. Additionally you need to do suitable settings in DX0 and Set the jumpers on the module.
( Pl see attachment ). There should be no DI module with address '0' installed.

Can you post the exact configuration here ( CPU Type, Rack Type and Module Layout with addresses ),
for better understanding ?

Hope this helps

Cheers

Navnag


Attachment: Process_Interrupt_DI_432.pdf  (17 Downloads)

There is no such thing as the last bug in a program
There are no stubborn bugs, There are only stubborn Debuggers.

Top
Thank you for this post from:
  7/25/2013, 6:32 AM
Joined 3/15/2008
Last visit: 10/26/2014
Posts: 6358
Rating:
Rated: Excellent [4 out of 5 / rated 635 time(s)]. (635) 
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Milos Petrovic wrote:
...Is it possible that OB2 block is called on some other way in S5 program?

Thanks in advance,
Miloš


Also may be that this OB was not called at all but just a back-up copy of OB1?

What is the code inside that OB2?

Industrieautomation: Softwareerstellung und Inbetriebnahme weltweit.
http://www.ibn-service.com
Top
Thank you for this post from:
  7/25/2013, 12:58 PM
Joined 11/8/2010
Last visit: 10/30/2014
Posts: 47
Rating:
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
IBN-Service wrote:


Also may be that this OB was not called at all but just a back-up copy of OB1?

What is the code inside that OB2?


I found part of code where PY212, 213, 214 and 215 are read following IA instruction so I figured out that this is used for interrupt input. But, this block is not used in S5 program and in our configuration there are no IP modules and no digital input cards with interrupt.

Than you both for your replies and your time.

Best regards!
Top
Thank you for this post from:
Page 1 of 1 (4 items)
Actions