Veganic

MrPLC Member
  • Content count

    471
  • Joined

  • Last visited

Posts posted by Veganic


  1. When implementing a recipe function recently I ended up doing it the old way: completely in the program. This allowed the user to scroll through the recipe numbers and this scrolls through the names. This only had 25 recipes of 1 x 10 word name + 3 x Words + 1 x bit. The advanced recipe example from Mitsubishi uses a script to copy to the recipe to the plc anyway so it hardly the "finished article". I try to avoid scripts where possible as I prefer to keep all the logic in one place. I'm sure what you want can be done It's just never going to be as simple and elegant as the E series. Ideally you'd want a pop-up list of names - possibly sorted alphabetically- and scroll to select buttons. I.E. something user-friendly. The biggest issue would be memory allocation - if you can't use a large chunk of the plc memory then you have to find a suitable "front end" to the recipe function. It's hard to tell how this would work without a GOT to play with as the documentation is equivocal to put it politely. Sorry if this is off the point but this has been a big issue for me moving from the E series to GOTs and it would be good to find out if anyone has created recipe handling which is "state of the art" on a GOT.

  2. I think the inputs autorefresh - can you see the state change? The outputs don't- you need to set Y0 or whatever the appropriate address is (Y0, Y10, Y20 etc)

  3. I've not used the ASI unit with GXworks2 yet. I'd just do a -----BMOV U0\G0 K4M200 K10 or whatever your parameters are. I assume that's all the "Intelligent function module" does.

  4. Which software are you using? Are you using a configurator (eg GX Works 2?)? The BFM are not copied anywhere unless you have programmed the plc to copy them. This goes for M0 and M200 etc. If you can see the BFM changing you have have done the hard part.

  5. I'd look at using structured text. The following example is similar to your request but not identical. I'm just using an array of signed word rather than DUT. Make moved equal to the moved "pack" and then all packs below that one will be moved up one and pack[0] will be zero'd. This was done in GX Works2. ----------------------------------------------------------------- (*fill array with some data on first scan*) IF M8002 THEN pack[0] := 10; pack[1] := 20; pack[2] := 30; pack[3] := 40; pack[4] := 50; pack[5] := 60; pack[6] := 70; pack[7] := 80; pack[8] := 90; pack[9] := 100; moved := -1; (* -1 means do nothing*) END_IF; FOR index := moved TO 1 BY -1 DO; lower := index -1; upper := index; pack[upper] := pack[lower]; END_FOR; IF moved > -1 THEN pack[0] := 0; moved := -1; END_IF;

  6. Log into myMitsubishi and look under downloads -> screensaver / wallpaper. There is one screensaver and lots of wallpaper. Let me know if you can't find them and I'll try to zip them all in one and send them to you.

  7. Hi Mike, I'm new to GT designer 3 and didn't even know there was a preview! I've repeated you steps and I get the following results: Preview doesn't link the lamp and switch together, I can toggle display states but this doesn't "force" the underlying bits. The simulator works as expected, I just had to start a GX simulator 2 with a dummy project.

  8. Phew, that took some finding. I can get it to work with overlap windows but not superimpose. No a problem as I just make the superimpose window full size and place my objects accordingly. The end results are so much better than the E1000 series it just seems to take a while to get there on the GOTs! Thanks.

  9. Is there any way to control the position of a windowed screen with GT designer 3? Also, is there a way to set a default window to be shown on the base screen? Ie, a superimposed window which is visible when moving the the screen. This window can then be changed by pressing a "switch." I've checked the documentation and searched here... (I haven't checked the sample projects - so maybe I should!)

  10. Depending on how "realistic" you need the demo to be I can think of 2 options: 1. Ensure that the setpoint calculations are in increments of six. Setpoint = INT(Setpoint /6) * 6 ----in spreadsheet language. 2. Post-process the result.... If (flow-rate <= setpoint + 3) or (flow-rate >= setpoint -3) then flow-rate = setpoint.

  11. Can the got ip address be changed via the screen? I can view via a utility special function button but cannot edit the address. This is the address for Ethernet coms to a pc, not a channel to a plc.

  12. Do you mean: PC Sets D1000 to 1 : I Want M100 on PC Sets D1000 to 2 : I Want M101 on PC Set D1000 to 3 : I Want M100 and M101 on ? If so someone will be along with an answer very soon. If you mean: PC Sets D1000 to 1 : I Want M100 on PC Sets D1000 to 2 : I Want M101 on PC Set D1000 to 3 : I Want M101 and M102 on etc. You may be stuck with compares.

  13. The syntax will be the same as calling the function blocke from a Program POU. I've just tested this: Create a FB in ladder. Crate a FB is FBD. Call the first FB from the second. Call the seconde FB from a Program POU. Outputs are used by right-click and "assign"... Compiles ok. Seems pretty straight forward so I'm guessing I've misunderstood the question?

  14. I tried just using the sample program alone. I'll have to go back to the start and record all stages. Thanks for you help so far. The general question still remains, why will the software compile and download cdoe that leads straight to a ladder error.