Technical Forum

STEP 7 / STEP 7 Lite

Interrupt in 317-2 PN/DP Cpu

Thread Starter: Roby   Started: 5/8/2012 8:41 AM   Replies: 12

« Previous thread Next thread »
12» Page 1 of 2 (13 items)
  5/8/2012, 8:41 AM
Joined 4/10/2006
Last visit: 5/11/2013
Posts: 346
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) 
Hallo friends

I have need of read a value into plc, but this value is very-speed and is difficult capture him!
Is possible to put this part of the program into a subroutine read with interrupt?

I don't know how i can

Is possible help me?

Thank you

Roby
Top
  5/8/2012, 8:55 AM
Joined 2/14/2008
Last visit: 5/21/2013
Posts: 539
Rating:
Rated: Excellent [4.48 out of 5 / rated 60 time(s)]. (60) 
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Hello,
        yes. You can use ob40 hardware interrupt. Pls. explain your requirement in detail?

 
Top
  5/8/2012, 9:00 AM
Joined 9/28/2005
Last visit: 5/21/2013
Posts: 2912
Rating:
Rated: Excellent [4.02 out of 5 / rated 208 time(s)]. (208) 
Users with special expertise supervising conferences
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Eastern wrote:
Hello,
        yes. You can use ob40 hardware interrupt. Pls. explain your requirement in detail?

 


Not all DI modules suports interrupts ! Don't forget that. As long as S7-317-2 PN/DP is not a compact CPU, so it has no integrated DI/DO which usually support interrupts. So be careful choosing DI card.

Regards,
--------------------------------
Darius
Automation engineer/programmer
Top
  5/8/2012, 9:03 AM
Joined 9/28/2005
Last visit: 5/21/2013
Posts: 2912
Rating:
Rated: Excellent [4.02 out of 5 / rated 208 time(s)]. (208) 
Users with special expertise supervising conferences
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Also you can consider using HSC.

Regards,
--------------------------------
Darius
Automation engineer/programmer
Top
  5/8/2012, 9:05 AM
Joined 1/3/2006
Last visit: 5/7/2013
Posts: 545
Rating:
Rated: Outstanding [3.83 out of 5 / rated 29 time(s)]. (29) 
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Hi
Which application?
There are High speed modules available for DI (-1BH10-) as well as AI (-7HF0X-).


Regards,
Manmeet
Top
  5/8/2012, 9:11 AM
Joined 4/10/2006
Last visit: 5/11/2013
Posts: 346
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) 
Hallo Eastern

I have to get a value when I receive an input signal.
When i have this input signal I must to get  quickly because after a short time lose the value of aquisire ... sometimes I read it and sometimes not ... it's a problem scanning the plc ...

Bye
Top
  5/8/2012, 9:18 AM
Joined 9/28/2005
Last visit: 5/21/2013
Posts: 2912
Rating:
Rated: Excellent [4.02 out of 5 / rated 208 time(s)]. (208) 
Users with special expertise supervising conferences
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Roby wrote:
Hallo Eastern

I have to get a value when I receive an input signal.
When i have this input signal I must to get  quickly because after a short time lose the value of aquisire ... sometimes I read it and sometimes not ... it's a problem scanning the plc ...

Bye


Ok, then go for interrupt capable DI modules and use OB40 (see Step-7 help on OB40 everything is described here very clear).

Regards,
--------------------------------
Darius
Automation engineer/programmer
Top
  5/8/2012, 9:19 AM
Joined 4/10/2006
Last visit: 5/11/2013
Posts: 346
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) 
Friends!! astonished

the application is done!

I must only solved one problem of read for one welding-head! I have one-hundred welding-head and in only one welding-head i don't read the final measure because, in this case, is more speed....

Roby
Top
  5/8/2012, 9:20 AM
Joined 2/14/2008
Last visit: 5/21/2013
Posts: 539
Rating:
Rated: Excellent [4.48 out of 5 / rated 60 time(s)]. (60) 
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Hello,
        Take this module.
6ES7 321-7BH00-0AB0
Digital input module DI 16x 24 VDC, with hardware and diagnostic interrupts, grouping 16, reconfigurable online.

Here by using this & OB40 you can do that.

or
you can configure ob 100 set 2 ms & put your program in ob 100 & try out.


Top
  5/8/2012, 9:21 AM
Joined 12/27/2007
Last visit: 5/10/2013
Posts: 251
Rating:
Rated: Very Good [2 out of 5 / rated 4 time(s)]. (4) 
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Hi ,
Do u have to transfer values to different memory areas ???
is there only one DI and multiple Values ?

Regards,
Prats
Top
12» Page 1 of 2 (13 items)
Actions