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 September 7th, 2018, 09:50 AM   #1
Baker in Virginia
Member
United States

Baker in Virginia is offline
 
Join Date: Aug 2016
Location: Virginia
Posts: 193
Using a HMI PB and ONS to allow FPM to increase by .1 but numbers wants to run away.

Good Morning ,

I have an application that I need to increase and decrease the FPM on conveyors . I have a HMI PB for increase and decrease. I have a total of about 12 belts , and about 30 recipes so I made the One Shots BOOL with an array of 30. Like M46_One_Shot_Increase_FPM_Recipe_(1) to M46_One_Shot_Increase_FPM_Recipe_(30).

The problem that I'm having is when the increase or decrease PB is pressed my FPM runs away from 50 to 600 + . I really don't see any obvious issue with it. I did a similar method on another machine I did last year and the method works great. I'm using a CompactLogix L33ER. Attached is a screenshot and some comments I have . I'm really shocked this is not working like I planned.

Any thoughts and advice would be great .

Thanks so much,
  Reply With Quote
Old September 7th, 2018, 09:53 AM   #2
sigmadelta
Member
Canada

sigmadelta is online now
 
Join Date: Apr 2016
Location: From Canada - Living in Bulgaria
Posts: 765
Try the OSR instruction.
__________________
Freelance Automation Programmer
  Reply With Quote
Old September 7th, 2018, 10:05 AM   #3
Baker in Virginia
Member
United States

Baker in Virginia is offline
 
Join Date: Aug 2016
Location: Virginia
Posts: 193
So I can can still use the " M46_One_Shot_Increase_FPM_Recipe(1) thru (30) , but create a Output Bit ( Tag ) that would trigger the ADD.

That would add just .1 each time ? What is the OSR doing different that ONS is doing ?

Thanks,
  Reply With Quote
Old September 7th, 2018, 10:08 AM   #4
Baker in Virginia
Member
United States

Baker in Virginia is offline
 
Join Date: Aug 2016
Location: Virginia
Posts: 193
I just tried the OSR , and it still ran away.
  Reply With Quote
Old September 7th, 2018, 10:13 AM   #5
mobsoft
Member
United States

mobsoft is offline
 
Join Date: Jun 2013
Location: Bowling Green, KY USA
Posts: 31
When you cross-reference M46_One_Shot_Increase_FPM_Recipe[1] and M46_Main_HMI_Increase_FPM_Cutter_Conv, anything come up destructive?
  Reply With Quote
Old September 7th, 2018, 10:13 AM   #6
sigmadelta
Member
Canada

sigmadelta is online now
 
Join Date: Apr 2016
Location: From Canada - Living in Bulgaria
Posts: 765
Is it a real PB or an HMI PB? A real PB might be "bouncing" because of the contacts...
__________________
Freelance Automation Programmer
  Reply With Quote
Old September 7th, 2018, 10:13 AM   #7
Nova5
Member
United States

Nova5 is offline
 
Join Date: May 2013
Location: Western SC
Posts: 108
what event is your HMI triggering on? Could it be the HMI is pulsing the hell out of it? if you can, have the HMI set the value to one On Press, and set it to zero On Release. that would eliminate the HMI pulsing it rapid fire.
  Reply With Quote
Old September 7th, 2018, 10:14 AM   #8
mobsoft
Member
United States

mobsoft is offline
 
Join Date: Jun 2013
Location: Bowling Green, KY USA
Posts: 31
Also is the HMI pb setup as a momentary button with default timings from a panelview? 250ms hold time?
  Reply With Quote
Old September 7th, 2018, 10:14 AM   #9
sigmadelta
Member
Canada

sigmadelta is online now
 
Join Date: Apr 2016
Location: From Canada - Living in Bulgaria
Posts: 765
Sorry, I just saw HMI in your description. Make sure it's a momentary PB.
__________________
Freelance Automation Programmer
  Reply With Quote
Old September 7th, 2018, 10:20 AM   #10
Baker in Virginia
Member
United States

Baker in Virginia is offline
 
Join Date: Aug 2016
Location: Virginia
Posts: 193
Just the One Shot - M46_One_Shot_Increase_FPM_Recipe[1] . What do you mean "Destructive" . Shame on me , that I never understood that term .
  Reply With Quote
Old September 7th, 2018, 10:23 AM   #11
Nova5
Member
United States

Nova5 is offline
 
Join Date: May 2013
Location: Western SC
Posts: 108
Quote:
Originally Posted by Baker in Virginia View Post
Just the One Shot - M46_One_Shot_Increase_FPM_Recipe[1] . What do you mean "Destructive" . Shame on me , that I never understood that term .
Destructive... in Allen Bradley/Rockwell parlance it means something that writes a value be it a MOV, OTE/OTL/OUT, Math function, etc.
  Reply With Quote
Old September 7th, 2018, 10:29 AM   #12
saultgeorge
Lifetime Supporting Member
United States

saultgeorge is offline
 
Join Date: Jul 2015
Location: Detroit
Posts: 109
My only guess would be if something else is writing to that cutter conveyor fpm tag (R. 27). Otherwise, I agree with you--no reason why it won't work like the last machine. Maybe a small change somewhere else in the program you forgot about.
__________________
Detroit City Limit: An Automation Alley Community
  Reply With Quote
Old September 7th, 2018, 10:31 AM   #13
Baker in Virginia
Member
United States

Baker in Virginia is offline
 
Join Date: Aug 2016
Location: Virginia
Posts: 193
All good questions.

- The strange thing is , some rungs work great . Let's say in my group of 1-30 One Shots in that array about 25% are working like they should. This project
is in the workbench stage at the moment , so the program is not that "busy"
at the moment.

- Yes it is a HMI Momentary PB , but the ONS I've used before , I can toggle iin
the program and it would just add the .1 everytime. Even when I had to
right click and toggle again to turn it off.
  Reply With Quote
Old September 7th, 2018, 10:34 AM   #14
mobsoft
Member
United States

mobsoft is offline
 
Join Date: Jun 2013
Location: Bowling Green, KY USA
Posts: 31
Quote:
Originally Posted by Baker in Virginia View Post
Just the One Shot - M46_One_Shot_Increase_FPM_Recipe[1] . What do you mean "Destructive" . Shame on me , that I never understood that term .
So if the only destructive bit for that ONS is on rung 28 of that program then that would not be it. I know it should show up in the cross reference but I have seen it before where if you were moving a null word into the bool array that the cross reference won't show it but I think that only happened to me when dealing with indirect addressing. Can you send me the ACD file? I will look at it for you if you can PM it to me.
  Reply With Quote
Old September 7th, 2018, 10:37 AM   #15
mobsoft
Member
United States

mobsoft is offline
 
Join Date: Jun 2013
Location: Bowling Green, KY USA
Posts: 31
Quote:
Originally Posted by Baker in Virginia View Post
All good questions.

- The strange thing is , some rungs work great . Let's say in my group of 1-30 One Shots in that array about 25% are working like they should. This project
is in the workbench stage at the moment , so the program is not that "busy"
at the moment.

- Yes it is a HMI Momentary PB , but the ONS I've used before , I can toggle iin
the program and it would just add the .1 everytime. Even when I had to
right click and toggle again to turn it off.
Do not reuse BOOL bits on ONS, just general rule. Make you a DINT[10] array and you will have lots of BOOLs to choose from when making one shots. Very common in programs I have written is we make a tag called ONS and it is a DINT[10]. 320 BOOLs to use now for one shots throughout your program as long as you leave it controller scoped.
  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


All times are GMT -5. The time now is 04:37 AM.


.