Bobodopalus

MrPLC Member
  • Content count

    88
  • Joined

  • Last visited

Everything posted by Bobodopalus

  1. GX Works2 installation problem

    i am having this same problem if any1 managed to fix it, installing IQ works on a win10 pc, disc 1 worked fine and installed gx works and gx developer no problem, but then i get the error on other discs saying something hasnt been installed correctly and to restart
  2. Timers in structured text

    after alot more fiddling and this probably isnt the best way of doing it i got it to output what i wanted. for whatever reason dividing on the cans per min line gave an incorrect final answer but moving it to Cycle_time_real seemed to make it work :/   heres the final working code if anyones interested IF Cycle_start=TRUE THEN     Timer_start:= TRUE; END_IF; IF Cycle_end=TRUE THEN     Timer_snap:= Cycle_timer.PV;     Cycle_end_bit:= TRUE; END_IF; IF Timer_10.CF THEN     Timer_start:= FALSE;     Cycle_end_bit:= FALSE; END_IF; TIMHX(Cycle_end_bit, Timer_10,1); TIMHX(Timer_start, Cycle_timer,500); Cycle_time_bin:= (500-Timer_snap); Cycle_time_real:= UINT_TO_REAL(Cycle_time_bin)/100.0; Cans_per_min:= 60.0/Cycle_time_real;  
  3. Timers in structured text

    HI everyone ive decided to try and use a structured text function block for an machine output calculation, to put it simply i want the machine to say how many units its outputting per minute so i thought it would be much nicer to have a basic maths Structured text block rather than a long bit of ladder for some simple instructions. i have 2 inputs, one is the start of the machine cycle, the other is the end of the machine cycle. every cycle is one unit output. i want to time the gap between input 1 and 2 then just a bit of simple maths 60/(cycle_time) for uniters per minute. i want this to be to 2 decimal places for a reasonable resolution. the main problem im having is the timers in structured text, im a little confused how they work i would do this in ladder by having input 1 set a bit and then input 2 resetting this bit(i assume i can set a bit by using an if statement [if input 1 true, timer{bool}true]) this timer bool would then activate the timer, again how i would do it in ladder would be to have a timer1 count down from &500 then use a maths block for 500-timer1 and this would give time elapsed this is the bit i really dont know how to do in structured text and would appreciate any help in the matter. otherwise i can just do it in ladder   added my idea of what it would look like IF Cycle_start=TRUE THEN     Timer_start:= TRUE; ELSIF Cycle_end=TRUE THEN     Timer_start:= FALSE; END_IF; TIMHX(Timer_start, Cycle_timer,Timer_time); Cycle_time_bin:= 500-Timer_time; Cycle_time_real:= UINT_TO_REAL(Cycle_time_bin); Cans_per_min:= 60.0/Cycle_time_real;
  4. Timers in structured text

    after a bit more fiddling i got the timer to stop and start , the IF statement wasnt working as expected IF Cycle_start=TRUE THEN     Timer_start:= TRUE; END_IF; IF Cycle_end=TRUE THEN     Timer_start:= FALSE; END_IF; TIMHX(Timer_start, Cycle_timer,Timer_time); Cycle_time_bin:= (500-Timer_time); Cycle_time_real:= UINT_TO_REAL(Cycle_time_bin); Cans_per_min:= 60.0/Cycle_time_real/100;   the thing that needs adjusting now is i need to record the time the timer ended on as it resets on cycle end, i need to snapshot it before it resets and the cycle_time_bin isnt working do i need some symbol attached to the 500? i tried & but that gave an error
  5. Taking Screen shots

    I love the snipping tool on windows 10, win+shift+s drag over the are you want then paste it wherever you need it, i find it very useful to be able to email people snippets from manuals and such
  6. NB screen freezing

    Ok im not sure exactly what was causing it but i think it was due to the majority of bits being used for switches and lamps were all copied in and using the same CIO bit, once i assigned them all to their correct bits it worked no problem
  7. NB screen freezing

    Hi all has anyone ever come across a NB series screen freezing when a screen change is attempted? i have a NB7W which when told to change to screen 58 or 59 via a function button or via a PLC instruction it freezes the HMI and it needs to be restarted. have i hit some screen limit or something? they only thing i can really think of it has too many graphics, it contains 6 bitmap images and about 12 graphic buttons/lamps
  8. NB designer "layering" screens

    yeah that ok, i guess i'll have to wait till i can upload to see if i can get it to work exactly how i want
  9. is there a way of stacking screens in NB designer? ive asked question similar in the cx programmer forum but it might be better asked here. for instance if i have a program that displays an error screen when lets say the motor is overloaded but then the air pressure is also  cut off so that screen then pops up, we currently have a system that states when there are no errors to display the main screen with a DIFU command. however this system doesnt work very well if multiple problems occur it will only display the most recent one and when that is fixed the screen will not change. is there a way to make screens "overlap" and be able to close them individually or just any methods you have used that might be better at controlling the screen for this sort of application? thanks anyone who can help
  10. NB designer "layering" screens

    am i right in thinking to get this to work better i should use multiple indirect screens? one for each error pop up which will cause them to overlap, or will this cause a problem? im unable to test it at the moment due to working from home and unfortunately my Ewon connected test rig has been turned off so i can do a direct simulation
  11. NB designer "layering" screens

    ok great i'll have a go with this
  12. NB designer "layering" screens

    thats almost perfect, unfortunatly i need this pop up to be able to cover every screen, i guess it would be possible to put this on every screen in the program and that would work?  
  13. mx2 control with modbus

    omron support got it to work by changing the area id to W instead of D as well as changing the MOV to the new W address, for whatever reason that fixed it, he wasn't too sure why
  14. Hi all, after my complaing about my lack of network access in the workshop ive been tasked with fixing this so ive have some general questions about networking and concerning Ewons so this network will be used for connecting ewons to test products as well as general computer access the plan is to have 7 computer access points as well as 2 points to connect to product lines for testing my intial thoughts were to run 2 cables from our network to 2 routers, 4 computer access points and one line testing connection on 1 and 3 computer access points and one line testing connection on the other so first question is what type of ethernet cable should i use? i assume cat5 is fine, is it worth going for cat6 or is it just a waste of money? and should i be running crossover cable or straight through? do i need any specific routers or will anything do? will i be able to add splitters later down the line and be fine? or should i future proof a bit with more robust routers? my years of avoiding networking at uni has come back to haunt me i know the basics but thats all really thanks to anyone who can offer some usefull information i mention the Ewon units because ive been told that they need to be the only one on their connection to the network, although i dont know how true this is  
  15. Hi all ive been given a small test cabinet to play around with and test on, it has a cp1l-el plc and a mx2 inverter, ive been looking at how to control the inverter and cant seem to find a way to program it how i want. the plc has no modbus connector so it cannot be done that way i want to be able to set the frequency and be able to start and stop the inverter through the control pins. let me know if this is possible, thanks
  16. Warehouse ethernet cable

    thank you both i got round to installing it at the end of last week, used standard 5e and a couple of switches on either side of the workshop, its working great
  17. Controlling mx2 inverter without modbus

    just to update this i didnt give up completly but on dsicovering that i would need to buy another part i thought i might as well go with modbus, the only reason i wanted to do it without was because i didnt have the part vailable at the time
  18. mx2 control with modbus

    for anyone who finds this in the future, it eventually worked, i think it was clearing the settings which got it working in the end
  19. Scu41 pin layout

    good news, thanks
  20. Scu41 pin layout

    Can someone tell me if I'm being an idiot please, I can't tell from the pictures in manuals whether the pinout is for male or female connector. Is the picture right? For an scu41 this is for rs422 modbus, its connected to port 1, just need to know which way round the wires should be
  21. NB designer "layering" screens

    i did notice the function key for this purpose but i want it to also auto close itself when the error is no longer present, i couldnt find a way of plc controlling the function key  
  22. Hi all ive been trying to figure out if theres a way to close pop up screens from the plc when the machine i have get an error of some kind a pop up screen appears on the HMI(NB3Q-TW01B), i currently have it so that if all errors on the machine are resolved it returns to the main menu which was fine until i added a couple of new errors where them being resolved might take someone out of a screen they are working on. so a close screen function for each individual error would work alot better but im not too sure how to go about it. thanks to anyone who can help
  23. mx2 control with modbus

    just to add to this, ive been on the phone with omron for a long time changed the scanlist to #2 but still no luck, the person at omron had a go with my code with no luck until he changed the data area to W however when i applied this still no luck
  24. mx2 control with modbus

    getting back on it this morning, i just set the error FB locations up and im constantly getting a busy flag
  25. Warehouse ethernet cable

    just to add another thought, do i need routers to do this job or will switches be ok? from what im reading i think so but im not that sure