You are not registered yet. Please click here to register!


 
 
plc storereviewsdownloads
This board is for PLC Related Q&A ONLY. Please DON'T use it for advertising, etc.
 
Try our online PLC Simulator- FREE.  Click here now to try it.

---------->>>>>Get FREE PLC Programming Tips

New Here? Please read this important info!!!


Go Back   PLCS.net - Interactive Q & A > PLCS.net - Interactive Q & A > LIVE PLC Questions And Answers

PLC training tools sale

Reply
 
Thread Tools Display Modes
Old May 30th, 2018, 04:39 PM   #31
L D[AR2,P#0.0]
Lifetime Supporting Member
United Kingdom

L D[AR2,P#0.0] is offline
 
Join Date: Nov 2006
Location: UK
Posts: 5,558
The diagram shows every possibility. For example when the ball starts in the middle it may somehow end up in the goal without going through the field sensor - this would still be a goal but you can't show speed.


Specifically:


You can only arrive in state 3 if the ball has gone from F1 to G1 and stays there for a time. From here you can calculate the speed as you store the times when F1 and G2 are activated. You also increment the goal count.



You can only arrive in state 5 if the ball is in the centre of the pitch but then arrives in the goal. You increment the goal count but you cannot show a speed.




etc. etc.
  Reply With Quote
Old May 30th, 2018, 05:33 PM   #32
Jozir
Member
Belgium

Jozir is offline
 
Join Date: May 2018
Location: Vlaams-Brabant
Posts: 55
Quote:
Originally Posted by L D[AR2,P#0.0] View Post
The diagram shows every possibility. For example when the ball starts in the middle it may somehow end up in the goal without going through the field sensor - this would still be a goal but you can't show speed.


Specifically:


You can only arrive in state 3 if the ball has gone from F1 to G1 and stays there for a time. From here you can calculate the speed as you store the times when F1 and G2 are activated. You also increment the goal count.



You can only arrive in state 5 if the ball is in the centre of the pitch but then arrives in the goal. You increment the goal count but you cannot show a speed.




etc. etc.
That is very cleaver thinking but need a speed measurement EVERY goal + The ball can't end up in the goal without crossing any fieldsensors, that's impossible :s
  Reply With Quote
Old May 31st, 2018, 11:05 AM   #33
L D[AR2,P#0.0]
Lifetime Supporting Member
United Kingdom

L D[AR2,P#0.0] is offline
 
Join Date: Nov 2006
Location: UK
Posts: 5,558
Reading time of day:
Attached Images
File Type: jpg dtl.jpg (60.8 KB, 47 views)
  Reply With Quote
Old May 31st, 2018, 11:07 AM   #34
L D[AR2,P#0.0]
Lifetime Supporting Member
United Kingdom

L D[AR2,P#0.0] is offline
 
Join Date: Nov 2006
Location: UK
Posts: 5,558
Extended instructions here:
Attached Images
File Type: jpg ex.jpg (72.2 KB, 47 views)
  Reply With Quote
Old May 31st, 2018, 01:08 PM   #35
Jozir
Member
Belgium

Jozir is offline
 
Join Date: May 2018
Location: Vlaams-Brabant
Posts: 55
https://ibb.co/czy6Qy

I currently have this.

1. Field sensor receives signal = move local time ( nanseconds is to small but seconds is to big so I took nanoseconds)

2.Goal sensor receives signal = move local time again

3. Main Subtract nanoseconds and calculate speed

Any thoughts, I don't really know whether it's correct or not
  Reply With Quote
Old May 31st, 2018, 02:35 PM   #36
L D[AR2,P#0.0]
Lifetime Supporting Member
United Kingdom

L D[AR2,P#0.0] is offline
 
Join Date: Nov 2006
Location: UK
Posts: 5,558
Use T_DIFF to calculate the time between events:


NB LTIME not available in S7-1200 so you will have to use a time variable.
Attached Images
File Type: jpg tdiff.jpg (44.2 KB, 33 views)

Last edited by L D[AR2,P#0.0]; May 31st, 2018 at 02:37 PM.
  Reply With Quote
Old May 31st, 2018, 02:38 PM   #37
nagami
Member
United States

nagami is offline
 
Join Date: Apr 2018
Location: dallas
Posts: 7
nice thread,i had the same problem[IMG]http://*************/isna/7/o.png[/IMG]
  Reply With Quote
Old May 31st, 2018, 03:01 PM   #38
Jozir
Member
Belgium

Jozir is offline
 
Join Date: May 2018
Location: Vlaams-Brabant
Posts: 55
Quote:
Originally Posted by nagami View Post
nice thread,i had the same problem[IMG]http://*************/isna/7/o.png[/IMG]
How did you fix it?
  Reply With Quote
Old May 31st, 2018, 03:43 PM   #39
Jozir
Member
Belgium

Jozir is offline
 
Join Date: May 2018
Location: Vlaams-Brabant
Posts: 55
Quote:
Originally Posted by L D[AR2,P#0.0] View Post
Use T_DIFF to calculate the time between events:


NB LTIME not available in S7-1200 so you will have to use a time variable.
I think I have the end result, just gotta test it at school
https://ibb.co/dEjxhd
  Reply With Quote
Reply
Jump to Live PLC Question and Answer Forum

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Topics
Thread Thread Starter Forum Replies Last Post
About PLC program Uploading arun kumar dakshna LIVE PLC Questions And Answers 1 January 12th, 2014 01:30 PM
Fanuc 90/30 HMI programming CalG LIVE PLC Questions And Answers 128 February 27th, 2013 12:11 AM
Mitsubishi GX Developer - uploading/downloading program from PLC mkac LIVE PLC Questions And Answers 7 June 17th, 2010 04:31 AM
S7 - using Arrays with Multiplex Addressing in ProTool RMA LIVE PLC Questions And Answers 4 August 12th, 2005 07:39 AM
Simulator, Simulation, Shadow Code Terry Woods LIVE PLC Questions And Answers 1 January 2nd, 2005 01:40 PM


All times are GMT -5. The time now is 09:49 PM.


.