benbrad

MrPLC Member
  • Content count

    66
  • Joined

  • Last visited

Everything posted by benbrad

  1. Omron PLC integral calculation

    On every cycle execute something like this; ErrorValue = CurrentValue - SetPoint IntegralSum = IntegralSum + ErrorValue * CycleTimeValue (A264 for CJ1) Then use IntegralSum as a scalar as it will get pretty big
  2. Reset high speed counter in CP1L

    I reset a CJ1M HSC using INI, I just preset the count to 0. This is done in an interrupt and works fine.
  3. 8750-1 does NOT send voltage. RTFM! Have a look at drawing, you need to add power supply
  4. Is the model a Signet 8750-1? If it is, then it has only an open collector output. The reason there is no voltage at A/D is Signet does not produce any! See the following Sensors page 8750-1 manual.PDF
  5. omron plc through ethernet and company vpn

    IP doesn't have to be set in the ETN setup It can be set in DM30000 + (unit number * 100), (the unit setup area), +98 and +99 Each byte of the words contains an octet of the IP address Not that helps with the immediate problem but it is useful to know, especially when your customer doesn't know where on their network they want to put it.
  6. High-speed counter Interrupts ON CP1H

    Does the high speed counter value change? If not Have you enabled the counter in the settings? Do you have the correct type of count for you input device (diff. phase, Up/down, etc)? Have the settings been sent to the PLC? Does the interrupt run when called manually using "TKON &8010"? Use "TKOF &8010" to stop it. I verify that interrupts are running by using "P_On" and "++(wordX)". WordX will increment each time the interrupt is cycled through.
  7. CPM2A - Counter RESET

    Aye, you're right anonymous........ what can I say, it was early and I was decrementing a word in my own code. Confusion reigned
  8. CPM2A - Counter RESET

    You could try differentiating your limit switch and encoder inputs this would stop the counters counting every cycle that the switch is made See example CCM__2_.cxp
  9. CPM2A - Problem with BCD math calculations

    In the first 2 lines you move decimal (&) numbers but they should be BCD (#) to work with MUL and DIV. Try writing them as MOVL #10000 and MOV #3142 Watch the size of the result of the MULL though because depending on LengthNeeded you could end up going into too many words and miss the vital data when dividing to find NOREVSNEEDED.
  10. Question about DM.

    Indirect addressing is possible. By using @ or * infront of Dxxxxx in a command the PLC looks at value in Dxxxxx and uses it as the address @ is for decimal numbers (range 0- 32k) * is for BCD (range 0- 9999) For your example D100 = 1 If you use @D100 in a command the command will use the data in D1
  11. cj1m io addressing

    The ID211s (inputs) from CIO7.00 to 14.15 these are simple on/offs The OC211s (outputs) from CIO15.00 to 21.15 these are simple on/offs The MAD42 (analogue) CIO2045/6/7/8 are inputs while CIO2041/2 are outputs For a better idea of MAD42 look at the pdf page 317 because there are also setup words to consider in DM area The pdf can be found HERE Oops, too slow to answer, beaten to it by Sleepy
  12. FBs & CPU versions

    Thanks ParaffinPower
  13. FBs & CPU versions

    Does anyone know what revisions of CJ1M CPU can use FBs? Is it after ver3 only? Thanks in advance, Ben
  14. High Speed A/D Sampling

    Cheers guys, I've re-written it now to shut down all processes except for 3 lines of cyclic code that does the record. I'm hoping this should cut the 5ms cycle down to under 1ms and if I can get near 8 samples I'd be happy. As yet it's not tested but fingers crossed it should get me somewhere close. Ben
  15. High Speed A/D Sampling

    I don't know whether a PLC can do this but.... I'm using a CJ1M cpu23 with an AD081 v1 and I want to record the operation of a high speed valve with a 0-10v return. The valve travels from closed to open in 4ms. Currently I have a little IRQ doing the work and the recording at high speed isn't a problem but the sampling of the A/D is. At present the command to open the valve is issued and immediately followed by a record loop but the figures recorded are those of closed valve even though the valve is opening as the recording is happening. What am I missing? Do I have to allow the PLC to do a full cycle before it refreshes the A/D? Does the A/D have a flag to say it's just sampled? I've included my little routine in the hope that someone on here can see my mistake and put me straight. Many thanks in advance, Ben Valve_response.cxp
  16. High Speed A/D Sampling

    Cheers gtsuport, I'd overlooked note10 in the pdf, guess I need to have a bit of a rethink on this one.
  17. CX-One V2 updates available

    Yeah I did do an install, as all our machines have net access. I'll try the download option next time.
  18. CX-One V2 updates available

    Yipee, the update manager now allows for more than one item to be downloaded and installed at once. What an improvement, saves no end of time!!! Keep it up Omron!!
  19. download to NS through PLC again

    I've currently got 2 machines that I'm working on and both are on ethernet using ETN21. Inside the CJ1M - cpu23s (ver3) are set routing tables and both are connected to NS12s. My settings are as follows for one of the PLCs. Inside the routing table is Unit0 (ETN21) assigned to network 0 And also Unit252 (PORT) assigned to network 1.....................Or could be Unit253(PRPHL) depending on your connection between PLC and NS On the ETN21 module front dials the node is set to 1 For CX-Designer comms prog Select Pass through PLC Select PC--PLC--NS (1)Comms. Method Select Ethernet, settings = FINS source-Network 0 ______________________ FINS destination- Network 0, Node 1 ______________________ Driver- 172.26.67.xx (2)Comms. Method Select NT Link, settings = Network Address- 1 _____________________ Unit No- 0 Try this it works for me, I've just downloaded more screen data not 5 mins ago and all works well. Hope this helps.
  20. Really not for this forum

    Don't put your contact email on your website in text form or hidden in a bit of HTML behind a button. Put it on there in a graphic form. Simplest way is to write your contact info into MS Paint, save as a *.jpg then include the picture on your website. This will stop "spiders" from finding it and sending it to spammers, but people that truely wish to contact you will be able to read it and type it into their email. This method has cut out a large amount of spam from my simple "family" website.
  21. CX-Programmer improvement requests

    Now that's a good idea Bob, that could make life so much easier for commissioning and fault finding, saves poking contactors with screwdrivers
  22. What is the rewinding diameter formula ?

    Area is always length x width regardless of geometric shape therefore Length x thickness + core area = total area total area / pi = radius squared square root of radius squared = radius radius x 2 = diameter
  23. Using Excel To Get Data From Omron Cj1m Plc

    This, I believe, sounds like the *.cdm file may be missing or wrongly named/specified
  24. PLC Reporter Problem

    Could try formatting the cell as text, that way excel doesn't do anything with the number entered.