CanaanP

MrPLC Member
  • Content count

    111
  • Joined

  • Last visited

Everything posted by CanaanP

  1. SIN/COS Encoder issue - HELP!

    The machine is here at my shop now, so I will have all the chances I need to mess with this thing. I will try a trend on the encoder velocity to see how that looks... I'd say the speed was about 30 feet per second in that video, which is low speed for this machine, high speed is at 60 fpm.
  2. SIN/COS Encoder issue - HELP!

    You have it right sir... but here's the problem - this PLC and actuator, etc is a retro fit job. Originally we had quoted this hardware when the machine was in design phase, but I think the numbers scared the customer. They built the machine using an alternate method, a physical cam system to push the cutter head arm into place. Here is a quick video I took of the machine in action: http://dl.dropbox.com/u/483701/video-2011-06-24-08-27-15.mp4 I don't know why I didn't think to post that sooner, but there it is. Ahh, I started talking about a problem... the customer built the machine as it is shown in the video, they were happy with it except there was a problem in the shape of the arc, I guess a problem that was inherent with the cam system. That is why they came back to us to do this PLC install. Now, the heart of the problem: while outfitted with the cam system, all boards that came off this machine were slightly wrong - i.e. the shape of the arcs, however they were all the same. The only thing that has changed between then and now is the cam being replaced with an actuator, and encoder added to the roller. Now this is a customer claim, and I was there to take a video but had not gotten into this encoder mess yet so I didn't take careful note of the accuracy of the pieces coming out of the machine. So apparently, there was no slippage involved at all, or if there was, it was identical each time a board ran through the machine. The good news is that the machine is on it's way to my shop now. This means I don't have to drive another 13 hours to get onsite and try to resolve the issues :) I think what you were saying about the cuts being too short may not be entirely true, it's not that they are short or long... it's that they are not the same from one board to another. But now that the machine will be here on my turf, I can run some more material through and take careful measurements and try to spot a pattern. We have also recommended the option to have a roller in direct contact with the board, but the problem there is that the positioning of the roller. If it is before the cutter head, the board will leave the roller and still be in a cutting process, therefore encoder value becomes useless - impossible to PCAM. If the roller is after the cutter head then the board will not reach the encoder until after at least the first one or two cuts should have been made. It can not go on the side of the board because some boards will be run through twice to put arcs in both sides (for in between layers of stacked pipe). Therefore the only solution I can think of is to put the roller directly in front of the cutter head, trying to catch a little bit of the board from the top. This is tricky though, since boards will be different size, and cuts will be of different depths. We surely don't want the cutter head to eat into the roller. When the machine is here, I will analyze that scenario a bit more.
  3. SIN/COS Encoder issue - HELP!

    The cutter head approaches from the left side, here's the pic of that: The encoder is on the first feed roller, which is the sprocket roller on the bottom, that was in the pic on the other post. The tension roller on top is spring loaded, and can be adjusted with a jack crank of some type. There is a tension roller above every sprocket roller, and there are about 6 I think, 3 in front of the cutter head and three after with only a few inches in between. The issue with the boards is this, the starting point doesn't really matter too much because I know how to adjust that - putting a different negative value into the MRP instruction. But the distance between the arcs is not consistent, nor is the length of the arcs. Both the length and distance between is obviously related to the encoder because it's all coming from an MAPC instruction. I was told the the actuator can more than handle the force that's being applied and do it with more than enough speed, but now I'm not so sure... I mean our best results are at very low speed - is that because slippage is less or because the actuator has more time to do it's PCAM correctly... I'm unsure. It's very frustrating.
  4. SIN/COS Encoder issue - HELP!

    Well that definitely sounds like a good plan, as far as calibrating at very low speed, then top speed, etc. I know that our full speed was 60 feet per minute, and low speed will be at 30 fpm. I slowed it down to 15 fpm during a test and ran two boards back to back and got this result: This is what the roller looks like that moves the board through the machine: Anyway, I'm attaching the program zipped up as well. I don't remember if I explained this in the OP or not, but I'm using a limit that is located a couple of inches back from the cutter head to issue an MRP to the encoder. I'm putting a -2.125 in there as I recall. This is what we came up with after several tries to get the beginning of the first arc to line up with what we put into the cam profile. Anyone looking at this program, keep two things in mind... 1. I intended to refine this quite a bit after I verified the core components working properly, which never happened. 2. This is my first motion project and I'm kinda feeling around in the dark. RaggleTest.zip I'm currently back home in MO, the job is in OH - 13 hour drive from here. I think we are going to see what can be done about adding a roller that rolls directly off the board for using the encoder. But it may be a little bit before I'm back at the machine again. So I definitely appreciate all of the advice I've been given, I just won't be able to implement any of it until I'm back in OH. Thanks again.
  5. SIN/COS Encoder issue - HELP!

    I completely agree... it sure doesn't seem like the boards are slipping because the design seems very solid. However, the results are pointing to that... as you said, it should be repeatable regardless of whether it's wrong or right on the encoder.
  6. SIN/COS Encoder issue - HELP!

    Ok, I can try that. I have never used tasks before, so I will have to wing it. There aren't that many rungs of logic though, 31 total in three routines. I have not checked the scan time, but what perhaps you are right. One thing I'm curious about though - if I execute a MAPC instruction, doesn't that instruction carry out it's cam profile entirely once it's been commanded? I mean, the PLC isn't checking back with it every scan cycle to tell it to do the next cam point is it? I thought it was like a fire and forget type thing.
  7. Edit Cam Profiles on panelview plus?

    I took your advice, this is what I came up with... I setup a timer that starts when the load profile button is pushed, turns out it's more like 4.5 seconds until the trend is complete... I tried to speed that up, but the faster I made it, the more "anomalies" I saw in the trend. Anyway, while the timer is timing, visibility on the trend itself is turned off. I think I may also put something in there that writes the display number to a tag, and also activate that timer whenever the display is loaded, because the weird heart rate monitor effect is also happening anytime you return to that screen.
  8. Hello, I am working with a motion project, and will need to allow the operator to choose between several different cam profiles. I have this working fine, but I would also like to add the ability to add a new profile to the array I have of profiles. Is there a nice friendly way to present this to the operator on the screen? Something that looks similar to the actual cam editor window? If not, then how would you guys recommend handling this? Thanks in advance for any help offered. EDIT: Ok, I realize this was very vague... let me clarify and simply what I am needing help on - maybe then at least 1 out of 50 people that view this post will reply. All I want to do is be able to show a graph on a PV display. On this graph I want to plot values from an array. For each element in this array I have three values, only the first two of which I'm worried about showing. They are both data type REAL. These are values for a CAM profile. Does anyone know if it's possible to chart values from an array?
  9. Edit Cam Profiles on panelview plus?

    Thanks, I appreciate your feedback :) It is impossible to show in a screenshot, but when changing profiles there is about a 2 second period where you see part of one profile and part of another on the trend. It's like a heart rate monitor... That is my only peeve about this setup. However, it is accurate data, and the only reason it's there at all is to give the operator a warm and fuzzy feeling about the chosen profile, instead of just looking at a table of numbers.
  10. Edit Cam Profiles on panelview plus?

    Ok, so I worded that wrong... my bad :) Here is the logic I used to create trend values... Here is the main PV screen that shows the profile that is selected, and a [cough] visual representation of the cam editor... This screen shows my best efforts to allow the user to create or edit existing profiles by entering values in for x and y then the movement type.
  11. Edit Cam Profiles on panelview plus?

    Yes the PV can display jpg easily... but the problem is that this program allows for editing of the profiles via a table entry method, so once the profile is altered the screenshot is no longer accurate. That's why I need to plot the points on a graph and have it refreshed each time the profile is changed. I have been playing with the trending today, and I think I have something close enough to what will work. I created a self repeating infinite timer in my PLC program and on the .dn bit I move the next array points to a tag and trend that. It resets when the selected profile is switched from one to another and the refresh is pretty fast... not a perfect solution - but it appears to be the best that FTVS can do with this stuff.
  12. Edit Cam Profiles on panelview plus?

    That's actually the best answer I've heard, IMO. I will try something like that today. Peter, something that I have been trying to make clear this whole time is that I do not need to do any cam editing on the PV. I only want to show the points on a graph... I already have all of the math and code finished to allow switching from one profile to another, or customizing an existing profile, or adding a new profile. This has nothing to do with what I'm asking for... as I said, it's merely to show the points on a graph - nothing else.
  13. Edit Cam Profiles on panelview plus?

    That looks pretty cool, but I'm afraid Red Lion is out of the question. It's AB or Magelis for touch screens here...
  14. Edit Cam Profiles on panelview plus?

    No worries... I will keep searching though. I already have the system setup where all of the profiles can be edited in FTV, but it is only in a grid view type display... the only element missing was a nice graph that had the values plotted. I'm still refining that screen... if I can't find a way to plot the stuff on a graph by the time the whole project is done, then that's the way it is I guess :)
  15. Edit Cam Profiles on panelview plus?

    I understand all that you are saying, and I appreciate the suggestions. However, I think I'm still not getting across here... I do not want to be able to edit the profile from the screen. I already have a setup where they can choose a profile from the list and manually edit the values one at a time. All I want is to plot the points that are in there onto a graph so they can visually see what is setup. Taking a screenshot won't do me any good because after the profile has been modified then the screen shot is no longer accurate. I have an array of 30 elements, a master value and a slave value for each element. This is like XY plot. All I want is to load those values onto a graph on the screen... if the values have been changed, the graph would still be accurate once the changes were saved. EDIT: I should also mention that at this point in the program, the values are not a CAM Profile, this is an array of a UDT I created to mimic a profile, because I have 20 different "recipes" that can be selected, each with an editable profile. Since 5000 doesn't allow editing of profiles, they have to be calculated before it can be used as a motion instruction, I had to make this to allow editing on the array elements. Then, the user selects which profile to use, then that profile is copied to the actual CAM Profile, then calculated, etc. So as far as plotting these points on a graph, it has nothing to do with the cam editor, I only showed that image as an example... what I am asking for is a simple graph that plots XY values, those values need to loaded from an array that I specify. That's all.
  16. Edit Cam Profiles on panelview plus?

    This is the cam editor window inside RSLogix 5000. All I want is to provide something that looks remotely close to this... I tried trending but I don't want the graph to move or trend anything, I just want to read the points from my array and show them all at once.... I can't believe this doesn't seem to be possible.
  17. Panelview plus security

    I have a simple project with a panelview plus 1000. I am working with FTVS ME and have three displays. The main display is for the operator to do daily tasks, however the settings display and calibrate display are for supervisor only. I was wondering if there is a way to popup login fields when a user attempts to go to a restricted display? I have never worked with security on these before, and I know very little about it. At this point, I cannot even seem to get a regular login working. I have created an "admin" user, and gave it all security codes. I removed all codes from ananymous except for A. I changed main display to A, and restricted displays to B. I then put a login button on the main display. When attempting to login with admin credentials, a message is shown that says "login of user 'admin' failed, insufficient access rights". Can someone please tell me what I'm missing here? As for the initial thought of automatically popping up a login window when user attempts to go to a restricted display - I would love to be able to do that, but if its required that a user login first, then try to access a display, then so be it... Thanks in advance for any help.
  18. Panelview plus security

    Thank you, I'm not sure what I did... other than go home and get some sleep - but I this morning I removed the admin user from runtime security and in the user groups. I recreated it, exactly the same as I remember doing it yesterday, tested and it worked. That's disturbing to me, but I'm going to just run with it for now :)
  19. Not sure why I haven't been able to find anything on this, unless its impossible...but it seems like it should be possible. I would like have a row of "buttons" on the bottom of my screen for navigation between displays. I have an up image and a down image. Shouldn't I be able to have a goto display button, then the up image, then the down image all in a group, then set the visibility of the up and down images based on an expression evaluating the active display?
  20. If anyone can recommend a way to solve this I would be very appreciative: I am working on a project for an automated double band saw machine. We will use an ultrasonic scanner to measure the height of a board before it comes to the blades. There are two blades, each one is on a ball screw motor that can adjust the height of the blade. The operator console will have the ability to program three preset measurements. The operator chooses a preferred preset. When each piece is scanned, the plc must "decide" which is the most efficient way to position the blades to get any combination of the preset measurements. The first blade must make the lowest cut, the second makes the other. The customer expects the PLC to contain truth tables that control the blade settings based on the incoming measurement. There is a tolerance of +/- 1mm. The operator can also specify the saw kerf, which is the material lost with each cut due to the thickness of the blade. All measurements are in mm. I have never done this before, but I was pretty certain this can all be done "on the fly" instead of having to make tables for this. Here is an example of a scenario: Presets are 58, 70, and 83 Incoming board is 142.4, preferred preset is 83. First blade should move to make a 58 mm cut, second blade moves out of the way, the remainder should be 83mm. In this example, which was provided by the customer, I am able to get my program to work fine. After taking into account a 2.4 mm kerf, I get an 83mm piece and 57, which is within tolerance. However, I cannot get this example to perform correctly in my program: Incoming board is 202.8, preferred preset is 83. This should yield two 58mm pieces and one 83mm piece. My program says that there will be two 83mm pieces with 32mm of waste. Obviously they would rather have only 1 83mm piece and two 58mm pieces so that those pieces could be used on another job or something, instead of throwing away 32mm of material. But I cannot seem to figure out how to make this work. I am attaching my 5000 file for anyone to look at. Any advice would be greatly appreciated, thanks! EDIT: I forgot to mention, this is of course a very rough test program that I made so I can test things out. I have this project running on the 5000 emulator program, and a test HMI screen in FT VS. I do not have the scanner hooked up obviously, so I am just directly inputting a measurement into the measured_height tag, then hitting a button on the screen that toggles the scan_process.start tag to get my results. I also wanted to mention that the problem in the second example I provided, where my program fails to come up with the desired results, is occurring on rung 5 of the test routine. This is because I'm looking to match up the remaining material with the largest of the presets to create a second piece. But I'm not sure how else I could handle this to have as little waste as possible. Thailand_Test.ACD
  21. Need some advice on logic please....

    I can see using a minimum waste figure to help this program, but I really didn't want to do recipes... there is actually a 4th preset that I have yet to put in. They wanted it to be there, but not yet activated, then they also wanted the ability to go in later and add new tables... as I said - I would rather not use tables and would like to just do it with math on the fly if possible... I'm very close, just not quite there.
  22. REAL datatype math problem

    Hello, I am working on a project where I measure material with accuracy to the tenth of a mm. I also store a value of blade thickness that will cut that material that is input as mm.m If I have a piece of material that is 119.2, my blade thickness is 3.2, then I should wind up with 2 58mm pieces. However, after subtracting one value from another I wind up with 57.999996 as the value of my second piece. I had asked for advice from another source on how to handle this and they said to use an implied decimal. Meaning, use DINT as datatype and just add a zero to the end of each value, then have HMI put the decimal there. Is this really the best solution? Or is there another route I can take where my datatypes are the proper type and I can limit accuracy to a tenth?
  23. I was just wondering what the forum's thoughts were on using the toolkit with virtual computers... for those of you out there that are doing it, how to do work out licensing, if at all...
  24. RA Toolkit and virtualization

    Well lets say, hypothetically, that we have a 5 license toolkit. I create and configure a VM and install the toolkit components I need - rslinx classic, ft activation, rslogix 500&5000 and ft view studio. I run the activation on the VM which uses 1 of 5 licenses. Now I take that VM and distribute to 5 computers. Is this violating licensing terms from RA?
  25. USB Programming cables

    I have thought about VMWare but I was attracted to virtualbox because it's open source. I was just at the logic conference in KC the other day, and a lot of people were talking about vmware, and we may end up going with that... but so far in my little company I have just been experimenting with vm's on my own on the side. This is not yet an official policy or anything in my company.