MrPLC Member
  • Content count

  • Joined

  • Last visited

Community Reputation

2 Neutral

About Bobodopalus

  • Rank

Profile Information

  • Country United Kingdom
  1. making preset settings in cx programmer

    i got some help from for this and this is the solution that looks the best. on the NB designer number inputs there is a tickbox for use index, this index is directed at d2999, a value will be moved into this which will be 0,200,400..etc the first number input is directed to d3001, so when the index value is changed from 0-200 the first number input will instead look at d3201. a drop down menu will be used on the NB HMI to change the value of word d2998 0-9, this value will be used to change the index amount with a multiplier, 0x200=0, 1x200=200, 2x200=400...etc then using XFER if d2998=0 XFER d3001-d3201 to the actual data location d100
  2. Hi all I was being really clever and suggested i add a list of preset settings to a line which every1 seemed thrilled with. however the amount of tedium has just dawned on me. im hoping theres a better way to go about this. the main idea is that we have a line controlled from a cj2m which has around 150 changeable settings including things like conveyor speeds, pump filling times.. waiting times etc.. i have done this in smaller scale before where we had changeable pumps, when pump 1 was connected i used the MOV function to load pump 1's data into the correct words. and in NB designer i had layered multiple number input boxes each displaying only when its own pump was connected. any ideas would be great
  3. HI all i was wondering if it might be possible to edit the name of a word switches state. I'm creating blank presets for a machine lets say 1-10, i would like to use the drop down word switch which would display preset 1-10. is it then possible to edit preset 1's name to something like "8mm diameter" by using the notepad function on nb designer and directing that to some location on the plc? any idea or different methods would be great, or even if its not possible. thanks
  4. Manual writing software

    yes thats my biggest gripe with word, it is very awkward to add images to
  5. Flip flop in structured text

    i found a work around for timers here posted by roze on this forum, still cant link sadly but that will only work for timers completing i think
  6. Flip flop in structured text

    anyway for this to work on a cp1l? i am very happy with the program though, thank you very much. i work with CJ2M around 80% of the time and CP1L the rest of the time, im fine with doing the CP1L version differently if needed
  7. Flip flop in structured text

    realised my mistake, the error was caused by me putting the FB onto a test plc i have which is cp1l and not cj2m, cp1l does not use timer type in FB. so now its working but it seems to be quite inaccurate, but it does seems to be scaled so this can probable be fixed with maths. im using a TIM block to trigger this now with #40 on the input, the block is activating correctly but for #40 im getting a result of 6 seconds, and for #10 i was getting a result of 1.5 so it seems to be 50% out, im not sure why this is the case.   yes after some testing it does seems to be 50% out, i changed the dividing value to 1500 from 1000 and now its accurate, whats causing this difference though?
  8. Pressure transmitter drift

    im fairly sure the analog input is configured correctly as there is another transmitter working on it correctly. the transmitter should be linear yes,those 2 readings are just a couple i wrote down, we did go up and down the range and raw data would get further and further away as the pressure was increased, using a scaling function block that is proved to work, it would be correct scaling around 9 or so bar and then vary more and more as it raised. when i go back on site i will be testing with an amp meter, unfortunatley i dont have a amp generator or analog output unit i could use to prove the analog unit. i have tested the same transmitter with the same function block just now and the readings were perfect 1 to 1, 1 bar = 100 raw data sadly i didnt install this and couldnt say about the wiring, i believe its only 2 wire so i would doubt thats been done wrong, and the analog unit settings look fine to me
  9. Pressure transmitter drift

    Hello all this isnt strictly omron/programmer but has anyone used much in the way of pressure transmitters? we have a wika s-11 pressure transmitter on one of our machines installed roughly 7 months ago where the scaling does not seem to be linear, i only started working here around that time so i dont know how it was installed etc. but its a 0-40 bar 4-20mA transmitter connected to an ad081 4000 resolution connected to a cj2m. so the conversion should be nice and easy 100 raw data = 1 bar however it seems to be scaling logarithmicly to me as we checked with a 2 different guages and when they were at 2 bar the transmitter was showing 137 raw data and at 8 bar it was showing 737 raw data and this seems to keep scaling in this fashion as we get to higher bar. is this a common fault on transmitters? is there anything else that could be causing this? how often would you normally expect a transmitter to last? i checked my scaling FB on another transmitter connected to a compressor and it worked correctly so its not the maths used   thanks in advance
  10. email is

  11. Flip flop in structured text

    sorry it is timer1 = timer, i typo'd, can you email it to me if you have made it? or i can send you what i've made if you pm me your email.   really missing being able to upload images
  12. Flip flop in structured text

    sorry this is where my knowledge of plc's really falls apart, in the comment above what does M0 and X0 actually refer to? i really only know the basics of plc's finished uni with very little knowledge and have picked up everything i know since starting this job near the start of the year largely from this website. and i assume chelton's example should work? im trying Timer_SP:= 200; (* Timer setpoint *) TIMHX(TRUE,timer1,Timer_SP); pulse:= input AND NOT oneshot;    (*generate pulse on rising edge of input*) oneshot:=input; IF pulse THEN     IF NOT timer1.CF THEN (*Calculate cycle time only if timer has not timed out*)         inst_cycle_time_sec:= UINT_TO_REAL(Timer_SP-timer1.PV)/100.0; (*instantaneous cycle time in seconds*)     ELSE             inst_cycle_time_sec:=0.0;     END_IF;     timer1.PV:= Timer_SP; END_IF;   internals: pulse = bool oneshot = bool timer = timer timer_sp = uint inst cycle time sec = real   but when i compile i get ERROR: Symbol 'timer1' is the invalid data type(TIMER or COUNTER) in the SFC/ST program. ERROR: Invalid Instruction   whats causing these errors?   thanks for all the help both of you   also i see images are still not uploadable :(  
  13. Manual writing software

    yes NB designer does this also, allows to print every screen which is nice. im more interested in the documentation side and how people link their descriptions and such to the image. the way i do it on word is maybe the wrong way to go about it. i give each button on the HMI a number and then write a description for that number, its quite long winded to do on word, creating text boxes arrows etc. i keep trying to upload an image but i cannot, im aware the site has been having issues
  14. Manual writing software

    Hi all ive been writing a few manuals for my HMI screens recently and there has to be a better way that what im doing on word. i take a screenshot from the HMI and label the buttons and put explanations underneath, if the website lets me i will add a screenshot. i would like to know what you guys do in terms of this kinda stuff? there's probably an easier way to do it in word or something or maybe you use specialized software, i would love to know.
  15. Flip flop in structured text

    im having issues with the site today. here are the errors im having timer 1 being timer type is incorrect? invalid instruction i have no idea what this refers to (i cant seem to upload or add a link for the screenshot)