BenJones

MrPLC Member
  • Content count

    108
  • Joined

  • Last visited

Everything posted by BenJones

  1. Georgios, Intelle, case closed ! Thanks, all sorted Cheers guys and may the UK get a gold in the olympics ! Ben
  2. Hello all, I've been trying to program a counter for a while which can count the pulses from a water flow rate meter. The flow meter measures between 2 and 20 litres / minute and gives out a pulse train frequency of between 22.5 hz and 225 hz which correspond subsequently to these flow rates. I haven't programmed a counter before so not sure how best to do it. I've looked at functions for the high speed processing like the speed function (SPD_M) and also the HSCS and HSCR (High speed counter SET and RESET) but not really sure how best to use these. I can wire the meter to input X0 which can use a high speed counter and I think this corresponds to C235. I've been trying to use the SPD counter with "water flow pulses" (X0) on pin s1 and 1000 (ms) on s2 so that it looks at the amount of pulses in 1 second and then output to d (pulses per second). I could then work out the Litres / Min with a linear multiplier. The output of this SPD function takes an ARRAY of word length but not sure what this is. When I monitor it is says "structure" and I cant see any data in the chosen d register for pulses in a second when I look in the registers. Any ideas of the best way to program this ? I think I'm making life hard as this should be very straight forward, Many thanks for any input, Ben
  3. Would it not be easier to use the SPD function like KAARE explained in the earlier post ? If I used this, I'd have X0 on s1 (BOOL input), k1000 (ms) (1 sec) on s2, and "output pulses / sec" to d. Is that not correct ? The thing is I dont understand how the program saves to "d". Is this as an ARRAY ? It doesn't seem to simply save the numbers per second as an integer in a d register. It says "structure" when I monitor it and I don't undertand what this means. Thanks again, Ben
  4. Hi INTELLE, That looks like exactly the kind of thing I'm after ! Is there any way to upload that logic (in the pdf file) into GX IEC Developer and view it as ladder logic in a diagramatic kind of format? I find it hard to read this kind of instruction list program. Thanks, Ben
  5. Thanks INTELLE ! I'll have a good read through Ben
  6. FX3u and FX3u-485ADP-MB and RS485 communication

    Hello, I'm not totally sure what you mean by "two communication procedures". I put up 2 screenshots of the same code, but these 2 lines are only programmed once in the program (I just added them twice to show you that the outputs are the same from the two stations). Sorry to confuse ! Maybe the problem I have is that there is a delay with the modbus communications so maybe it hasnt got enough time to move the data to different registers ? Surely this function block should have been made so that so that the data which has been read from the slaves should be written to different registers in the master so that it doesnt keep over-writing the data ? Ben
  7. FX3u and FX3u-485ADP-MB and RS485 communication

    Hello all, Thanks for all your advice. I called Beijer and got the updated variables list as advised, that wasn't the problem it was just a problem with my program. I've now got communications with the Modbus slaves (even though it says ERROR No. 211). Which I'm not bothered about because I'm reading the correct numbers from the slaves. I've attached a project backup file of the program which works, so feel free to use it if you ever need to read from MODBUS slaves. Just change the .doc to .pcd I do have one final question as follows. The Function Block reads from 2 slaves (kWh meters in this case) using a counter (counting from Station No. 1 then Station No. 2 cyclicly) and writes the answer to a register "ReadData", this is set as D642. The only problem is that it keeps overwriting this register with the answers it reads from the slaves. I'm trying to find a way to program it so that it writes into a different register for each slave station. I've put 2 exrtra lines of code at the end of the program (last 2 lines to try and MOVE "ReadData) to different registers but it doesnt work, it just writes all values to a different register. I've uploaded a 2 pictures to show you what I mean. Any help would be appreciated to let me know how I can write the answers from the "ReadData" register to into 2 seperate registers, Thank you in advance, Ben MODBUS_PROGRAM.doc
  8. Rolling Average / exponential smoothing

    Brilliant Intelle ! Very good work. I have it working and it works perfectly. I am now able to get a much more accurate averaged answer so thank you for the time you've spent developing this function block. I have one question. Which registers are used to hold the data which is to be averaged ? I thought it would be the 512 adjacent registers to the 'Input_Value' register but this doesn't seem too be the case. Works perfectly anyway so thank you very much Ben
  9. Rolling Average / exponential smoothing

    Hi Inntele, thank you very much for the time and effort you've spent making that function block ! It would be perfect to use this function block with 512 words as I'll get much mre accuracy than just 64 words. I tried to load the .SUL file in, and it looks like it has been created with instruction List (IL). Would it be possible for you to upload it again in Ladder (LD) format rather than instruction list (IL) because I'm totally lost with using Instruction List ! I'm just a novice Many thanks again, Ben
  10. Rolling Average / exponential smoothing

    Hi Waynes, yes thats a way to do it, thaks for your advise !
  11. Rolling Average / exponential smoothing

    Thank you for your reply, I programmed that yesterday and went into 'Debug' / Device Edit so that I could see what was happening in the registers and how the program was working. Works a dream ! I can see all the data shifting registers and it averages it nicely. The only thing which is a shame is that 0 < 'n*' < 64 for the MEANP block (it can't be 512) so I can only get an average of 64 pieces of data. Ben Using th WSFRP_M block seems to copy and paste the register contents of D1 into 512 registers to the right.
  12. Rolling Average / exponential smoothing

    Thankyou, that looks like the sort of thing I need. I've had a look at the WSFL_M function block and there is also a WSFLP_M (Pulse) but I can't get the word to shift to the left over time. If I wanted to shift the data register data to the left ever one second do I need to apply a second (time) pulse like using M8013 so that the registers save data and it shifts every second ? Kaare, basically what I'm trying to do is to store data in registers (say one piece of data every second) add these up and average them every second, so that my output is a rolling average which changes every second. Using the WSFL function block I could maybe save 512 seconds of data (512 words), shift the registers to the left every second and each second I would get a changing output (rolling average output)
  13. FX 3u and Edesigner + E1101

    Thanks Gambit. Got it done. Easy when you know how hey Thanks mate, Ben
  14. FX 3u and Edesigner + E1101

    Hello, I wish to send myself an email at 9am every morning (daily) just verifying that the system here is 'ok'. Ie basically setting up a daily check. Is there a way to program using IEC developer and ladder logic to set a bit at a certain time of the day (say 9am) which I can then use for a daily alarm for the status of the system. I have all the email stuff set up and also I know how to send an alarm using the panel and using email I'm just not sure how to set an internal bit at a certain time of day. Can anyone help ? Much appreciated, Ben
  15. FX 3u and Edesigner + E1101

    I have managed to set up the PLC clock to the correct time, so can I maybe use this to send an alarm at a certain time ? Thanks
  16. FTP Transfer / FTP client for E1101

    Ah ok, Yeah I couldn't figure out a way to do that either. Obviously the Trends do it by using the name of the Trend / Object. Its a bit silly that they didn't include this in the program as it's an obvious thing to do you would have thought. Thanks Kaare, Ben
  17. Hello, I'm struggling a little with FTP (File Transfer Protocol) when using E-Designer and an E1101 panel and using HMI tools which was provided. I think I'm 90 % there though as I can transfer to my pc trent files and alarms (txt and skv) but I can't work out how to make a new Recipe. I want to see my analog data from register eg. D100, D101 etc as a list. I've played for a few days but instructions for all programs seem a little confusing ! I am using internal flash memory rather than an external memory card. I have managed to create two connections using both a Com port (FTP server connection) and an ethernet connection (FT client connection), both connection work correctly and I can connect and see the panel no problem. I can copy trend files and alarms from the panel to my pc, but can't see how to make new recipes. I have enabled the recipe folder (called default), but there is no file skv or txt in there. Questions I have are as follows : 1) I'm not sure of the difference between the FTP client and FTP transfer programs (they both seem to do the same ! ) but I can have an IP ethernet connection with 'FTP client' and only a COM port connection with 'FTP transfer'. 2) I do not understand how to make a recipe and edit it so that I can see specific Analogue data in columns. Do I need to somehow edit one with FTP client and send it to the panel ? It says I have to edit a recipe but I cannot see the skv file to edit. Also there is mention that I need to create a 'Recipe Control Block' and 'Current Recipe Register' with the controller, but there is no mention of how to do this ! Masssively confused. 3) There is also a thing in Project Manager called Data Logging. Is this part of the recipe stuff or a different way to log data ? Which should I use ? Any help would be appreciated. Ben
  18. FTP Transfer / FTP client for E1101

    Hi Kaare, Yes thanks, all going well. I was massively overcomplicating things and it was so easy to do with the Data Logging. The only thing I'd like to do now is to put a heading (Title) on each column of the data logs (so that I know which analogue signal is which). Eg 'Pressure, ' Temperature' etc. I cant find a way to do this as you cant input a name for each of the data logs. Have you managed to do this before ? Ben
  19. FTP Transfer / FTP client for E1101

    Its ok, I think I know how to do it now. I just need to set up Data Logging and I can also set up a sample full signal when the max number of samples is reached. I could use this signal to maybe send the data to the panel automatically and then can start saving another set of samples under another name. Ok, I'll think about that next. Thanks Kaare, Ben
  20. FTP Transfer / FTP client for E1101

    Hi Kaare, I see, yes I got confused. I just need to log data (don't need to change any setpoints so obviously don't need recipes in that case). Ok, great so it's FTP client I need to use, that makes sense. I have 16 analogue inputs I need to record data from. I could log them every minute, then it would be good to transfer this data to the pc either manually or automatically every 10 day for example. I can log in to the HMI fine and can see the the E1101 terminal and all the trend data logs and the alarms but don't understand how to manually set up the datapoints I wish to record. Do I have to program anything with IEC developer or can this be easily done simply with some settings with Data Logger in E-Designer and then using FTP Client ? Maybe that makes it clearer. Thanks again, Ben
  21. Accessing E1101 Trend Data Remotely

    Its easy mate : Download from here : http://www.tightvnc.com/download.html It E-Designer / Setup / Network / Services / Remote access, type in the password you wish to use. Run Tight VNC (server) on the pc you wish to connect to the panel. Insert the IP address of the panel (192.168.1.1 is the default-IP on the local network) in the VNC server. Yopu should get connection. Ben
  22. Communication Error between FX3u and E1101

    Haha, yes crossbow, didn't see your original post. You were spot on ! Cheers mate
  23. Hello all, trying to get everything talking via a router and Ethernet using an ENET module attached to the FX3u I'm using. I have a question and wondered if you could help. I had a Mitsubishi guy visit me a few weeks ago to help me set up the PLC platform. He helped a lot but couldn't get the PLC controller (FX3u) to talk to the HMI (E1101) via Ethernet. So, at the moment I am using an RS422 cable to do this. In Edesigner, I have set up (in preriferals in the project manager) the controller 1 as MELSEC/FX-SERIES SERIAL which uses the RS422 and this works ok. When I change the controller driver to MELSEC/FX3u ETHERNET and send the program to the E1101 I get an error message in the top left of the screen saying Comms Err 4. Anyone have any ideas off the top of their head why I can't get communication ? The only thing I can think of maybe is that the port address is wrong when it asks for it in Edesigner / Project Manager / MELSEC/FX3u ETHERNET / Properties : I have entered the IP address of the PLC (192.168.1.4), but what is (or how do I determine) the port address and the terminal port address ? is this maybe 6000 and 6001 (the same as the transfer ports) Thanks, Bens
  24. Communication Error between FX3u and E1101

    No relies after a few days. I thought this post may confuse. Its ok though IU've got the problem resolved. It was a simple driver problem. The driver I was after I just found in E-desiner in the 'update driver' part under 'File'. The driver I needed wasn't listed under MELSEC (which is where I previously looked, but is a driver produced by Beijer which is why Ididn't find it (beFX3u_Ethernet). Downloaded this and followed the instructions to load it into the controller with FX-Configurator-EN with UDP protocol. This uses ports 1251 and 65355. The help file (which gets saved in the folder with the driver) and shows 'How to configurate the ethernet module'. Works fine now anyway
  25. Hi All, Just a quick question. I am programming an FX3u with IEC developer and I need to use some sort of function to calculate the running time of a machine (in hours). This machine will be switched on and off and I need an additive way to read the amount of hours the machine has been running for. Can this be done with a timer or counter ? Any help would be useful Best wishes, Ben