Colin Carpenter

MrPLC Member
  • Content count

    458
  • Joined

  • Last visited

Community Reputation

8 Neutral

About Colin Carpenter

  • Rank
    Sparky

Contact Methods

  • Website URL http://www.dairystandardising.co.uk
  • ICQ 0

Profile Information

  • Gender Male
  • Location Trowbridge, England
  • Country England

Recent Profile Visitors

3373 profile views
  1. Fx3s timer

    Most of us learnt how to programme by reading the manuals ..... and getting confused by the deliberate mistakes that Mitsubishi seem to leave in them at random. Scratching your head and working out how to do things for yourself is the only real way to get experience ..... there's plenty of clues in the post.
  2. Scaling

    By the solution of simultaneous equations. Dead easy and worth learning now. Every straight line has the generic equation      y = mx + C Where m is the gradient of the line and C is a constant (also knows as the gain and offset) Draw a graph with Hz on the y axis and bits on the x axis. You can write down two point that you know  - in your case ( 0,0) and (4000, 50) You can now write down two equations, and as there are two unknowns then you can solve. 1) 0 = m x 0 + C 2) 50 = m x 4000 + C From (1), C = 0 Therefore m = 50/4000 = 0.0125 So your equation becomes Hz = 0.0125 x bits. Check it the answers are OK At 0 bits,           Hz = 0, At 4,000 bits,    Hz = 4,000 x 0.0125 = 50 At 2,000 bits,    Hz = 2,000 x 0.0125 = 25 Yours was a very simple example as the start of the line is at (0,0) meaning that C is 0, but in a lot of cases that's not always true. We always set our analogue inputs up to read 0 - 20 mA, even though all our sensors send 4-20 mA signals, the reason being that you can easily see the mA being sent even though it may be below 4 mA. This means that our ranges are 800-4,000 on older kit, or 2,400 - 12,000 on high res more modern kit. You may find that the GOT has a scaling function built in - certainly the older Beijers HMIs did - which calculates the gain and offset for you as you enter the bit range and engineering units range. If not, make yourself a small spreadsheet now as it will come in useful :)  
  3. Fx3s timer

    Yes, it's possible. They key thing to remember is the magic number of +32,767 which is the highest decimal number that a 16 bit word (D register) can hold. As most timers in the Mitsubishi world count in tenths of a second, the longest a normal timer can count up to is 32,767 / 10 = 3,276.7 seconds which equals 54.6 minutes, so you can use a normal timer for your 50 minute period (50 x 60 x 10 = 30,000 which is in range) However, a normal timer cannnot time to 70 hours for the reasons explained above. In 70 hours, there are 70 x 60 x 60 = 252,000 seconds (therefore too big to count in seconds) However, there are 70 x 60 = 4,200 minutes, so fine to count the minutes. So, the simple answer is to use the "special"  1 minute pulse bit ( address will be detailed in the manual), and use that in conjunction with the INC_P command to incremment a data register by one every time the special bit comes on ( It's on for 30 secs, off for 30 secs). When that data register is equal to 4,200 (70 hours) then turn on the pump and when the normal timer times out, turn the pump off and pulse a value of zero into your "counter data register" so that it starts counting again.
  4. E71 Read Only?

    Yes, we've been using Prodigy since around 2003 and the system has grown to accomodate all the extra plant which has been added since that time. We do pay for the support option each year because it is now so important to the company, and it's one of the few companies I know that when you ring up, you can actually talk to the people who write the code, meaning that you do get results very quickly. Last year we attached some Modbus electrical meters to the system and found that although the values being read looked quite similar to those displayed on the meters, they were never quite right, and a detailed investigation showed that these particular meters used a "not normal Endian" method of encoding the values, and Prodigy then re-wrote their Modbus driver to allow us to select the correct Endian method, all as part of their support package. Really, really good support .... which is rare these days :(
  5. E71 Read Only?

    We're using a UK based SCADA system called Prodigy by a company called Tascomp Ltd., which is excellent, very fast and superb technical support. It has always been a monitoring only system logging data and presenting real time mimics and generating pdf reports etc. The other day I set up some tags wronly in the SCADA system - and foudn that the valves controlled by the PLC were going on and off evrey 5 seconds as SCADA accessed the PLC outputs. Luckily it didn't cause a problem, and we found it very quickly, but it was a bit of a wake up call :) I think you're right about the additional ethernet module to totally safeguard the system as the SCADA system is the only way anybody malicious can currenly access the PLCs via the internet, even though firewalls and passwords etc are fully in place to try and stop that.
  6. E71 Read Only?

    Thanks for that Gambit. If that box is unchecked, does that mean that all of the ports into the E71 will have the write function disabled? The graphic shows Port 1 as the Melsec programming port and 4 HMIs .... if I wanted to connect the SCADA system into the same E71 on Port 6 and have the write function disabled, would it mean that all the other 5 ports would also have to be disabled? Thanks
  7. E71 Read Only?

    The Q02 is programmed with IEC and the Q04 is programmed with GX Works2, but I can't really see a difference between the two programming methods as the E71 doesn't appear as an intelligent module in GX Works2 and the set up screens look remarkably similar between the two packages. The issue came up the other day when we were discussing internet security and the only way for a malicious hacker to remotely get into the control system is through the SCADA PC, and it occurred to me that disabling the ability to write to the E71 would be the most secure way to prevent it. I know it's a long shot, but a simple WRITE DISABLE switch would solve the problem as the SCADA system is used purely a data logger and real time display system, with no control cababilities, though that could be switched on by someone who knew what they were doing.
  8. E71 Read Only?

    I've looked but I can't find it ...... We have a Q02 with an E71 ethernet card fitted and we will soon have a Q04 with a similar E71 fitted. The Q02 is communicating with SCADA via ethernet and the Q04 is just about to be connected. My question is : Can I set up the E71 so that SCADA can only READ from the PLC and not WRITE to it? Many years ago I set up a Q2AS with an RS485 card fitted that allowed SCADA to communicate with it, and disabling the WRITE option was simply a switch on the front of the RS485 card, but I can't seem to find a way of doing it with the Ethernet option. Many thanks, Colin
  9. GX Works 2 and Clock Change

    We've been working on a Q04 project in GX Works 2 for a while now and all has been been going well ..... though I'm still baffled about the loss of functionality when changing the name of a global variable and why it doesn't update automatically throughout the code ( as it does in IEC and GX Works 3) However, last week, I started up the software (structured ladder as in IEC) on the programme that's been in development for a few months only to see a "nag" screen tellling me that the libraries have been updated and did I want to "re-build all" after updating the libraries, with the dire warning that the PLC code would probably not verify with the PLC due to the fact that the global variables would probably now have different addresses. I was more than a bit puzzled by this and phoned tech support to see if libraries somehow updated "in the background" without my knowledge, but found out that the only time that libraries update is when you download an updated version of the software, so I was then very puzzled as this was happening on three PCs. A bit later, in a flash of inspiration, I realised that the clocks had changed since I had last opened the software ( in my case going to British Summer Time) so I set the time clock on the PC back to a date before the clocks changed, and, sure enough, the old project opened without the nag screen, which then came back when I reverted to correct time on the PC. Now I know that you can choose to ignore the nag screen, but, it's guaranteed that one day, you'll click on OK instead of Cancel , and then you'll be left with a project that  doesn't verify after a rebuild, meaning stopping the PLC and the running process and  downloading the software  ...... probably once a year, but maybe twice (though I don't recall an issue back in October when the clocks changed the other way) Tech Support have emailed Mitsubishi to see if there's a workaround or a bug fix or somewhere where you can tick a box to tell it not to update libraries unless requested (as I believe there is GX Works 3), but in the meantime, I thought I'd ask on here and see if anyone else has come across this and found a cure for it. Software version is V1.586L Thanks  
  10. IEC Developer Online Change rules

    Thanks .... we are using GX Works 2 so will have a detailed look. Still puzzled by the Q02 and IEC Developer though ......
  11. IEC Developer Online Change rules

    Thanks, When you say MBOC, is that an checkbox option when you format the CPU memory to completely erase everything and re-format? Have never fully understood the benefits or usage of a memory card in the PLC and have always just relied on the battery backed memory options until now. Would you say that the benefits of a memory card are worth having as we are just installing a Q04 CPU and now would be a good time to add one if there are real benefits for future online changes etc.  
  12. IEC Developer Online Change rules

    Came across an issue yesterday that made me (once again) realise that I have no real idea about the rules regarding online changes when using IEC Developer 7.04. We had to modify some code on a Q02 CPU that could not be stopped without a lot of grief, and it seemed simple enough, but proved a head scratcher. Essentially we had one POU that contained numerous lines that allowed an operator to press an HMI GO button and, whatever he had selected from a drop down menu would set a bit on in the PLC. Essentially, the raw code of that particular "rung" of the POU ended with  LD  " go button"   AND "op1 requested"   PLS  "system bit" and it was quite happy with that. We wanted to use the system bit to SET a bit on, so the online change amounted to installing 2 extra lines, namely: LD "system bit" SET "op1 flag" Strangely, the online change of adding these two lines wasn't allowed as it said that it would need 530 lines to do the change???? I've found in the past that IEC seems to let you do large changes in POUs that are near the bottom of the "compiler table" but can struggle if the POU is high up, which I assume is related to the amount of lines of code beneath the change that have to be shifted down, but this is the first time I've seen such a tiny change cause issues. We have set the "online changes to 2000 lines" in the options and know that his been downloaded in the past to the parameters,  but the CPU still seems to work to a 512 limit? The work around was easy enough to do, but just left me realising that I still have no idea regarding the rules of online changes. Any advice gratefully received ....    
  13. GX Works 2 Global Label Export Detail Setting

    I'm afraid that's a new one on me ..... must admit to never having realised that "structured data types" actually existed.
  14. GX Works 2 Global Variable Update

    Thanks for that, and it is probably the best way to do it, but it does involve a lot of typing or copying and pasting to do fifty or so global variables ....... It's really annoying as GX Works 2 should be an improvement on the "no longer in development" IEC Developer, and it seems obvious that they built in the mechanism to to do it, but a bug seems to stop it happening. The UK distributor says that he has raised it with Mitsubishi and hopefully there might one day be a fix that allows it to work correctly. Cheers
  15. GX Works 2 Global Variable Update

    Got a reply from the UK distributor and it turns out that everybody gets this problem when they try to do this. Short of exporting the variables, changing them in a spreadsheet and re-importing, there doesn't seem to be a work around, though there's a video on Youtube showing that GX Works 3 can do it ....... doh!!!!