scottmurphy

MrPLC Member
  • Content count

    363
  • Joined

  • Last visited

Everything posted by scottmurphy

  1. How to scan Input words bit by bit

    I agree, and would do the same for the logic, sometimes, if it is not commented, it can be hard for the original programmer to follow that code also! Not defending my code, I was bored and thought it would be a good test for a friday afternoon, however, do understand it, you also need a knowledge of the instructions, and where and when to use them! I did not comment it that well either, just enough to give an idea on what was going on. There is a pretty extensive instruction set available, so it makes sense to take use of them when the need arises, some of them can bu re-produced using indirect addressing etc, the benefit of using the available instructions over indirect, is that there is documentation available for the instructions, this is not always the case with someone elses code. At the end of the day, IMO, if a program is well structured and commented, then it should be reasonably easy to follow.....interpreting the process is another story.....
  2. How to scan Input words bit by bit

    Not sure if what you are looking for, but the attached example is a start to doing what you want to do. It does not use true indirect addressing utilising *,IR etc, but works to a certain extent. I just mocked this up, there is no limit checking etc, you will need to adapt to suit your application, as you could advance it to look at words 1, 2, 3 etc if the need be. As I said, just whipped this up, there may be a better way, but it is friday....... wheres the beerchug? testcq.cxp
  3. error when downloading modbusprotocol to SCU41

    Good to hear, how about you post what you found, so that others may also have that as a reference if searching for help on the CX-protocol. Question though, is the CJ1 RTU Master something new that is available, I vaguely remember Bobb highlighting this a while back.
  4. Unable to download program

    I think that you can also compile the FB on its own. This will be start. I would suspect that you are performing a statement, whose result is declared as a real datatype. If you post a copy of the FB code ( if you don't get it sorted ) it will be a race to see who provides the solution first. ..... I suspect anonymous as he has just woken up. Also, maybe something that may be being overlooked, and probably the most important, is what version CPU do you have? Only V3 onwards support FB use. I cannot remember the error code when trying to download FB's to a non FB compatible CPU, anonymous may answer that one...
  5. Need Networking Advice

    Not to hijack this thread, BUT, I just looked at the topology, and was curious, what is everyones preferred 'module' layout? I know in days gone by, there were stipulations that certain units had to be closer to the CPU etc, do people still follow this practice? I noticed that the original poster has the CLK modules at the end of his chassis layout?
  6. Can some one help me please with PMCR(260)

    I haven't gone over your settings with a 'fine tooth' comb, but they look like you may be on the right track. BUT, have you downloaded a file to the SCU with CX-Protocol? You will need to do this also, and it looks like you are calling sequence 3, have you got this sequence available? Also, it pays use the 'logical port ok, & 'port 1 executing' flags as preceeding conditions for the PMCR instruction, logical port as a 'XIC', and port 1 executing as a XIO. Gotta love that AB terminology.....
  7. CITECT not communicating with CJ1M

    Bobb will be your man for this one Eric. He normally pops in late afternoon....
  8. Somthing Odd

    Thanks anonymous, something so simple, I didn't even give that a look, is sort of right there as well!!
  9. Somthing Odd

    The attached example is from a site, where I have a 'Master' CQM1H-CPU51, with a slave CQM1H-CPU51 via controller link. The 'slave' CLK originally had the clock module installed, but I have moved it to the master. The clock registers are active and ok in the 'master', BUT, the 'PLC Clock' appears in the slave, very odd indeed. I tried to be clever, & synchronise the slave with the PC clock, but alas, no response.... Not concerned at all, just a bit perplexed Only thing that I can put it down to, is the clock module being in the 'slave' originally. BTW, is arduos going back and forth between BCD and BIN with this CPU, not quite a sobering experience, but dang close!!! PLC_Clock.doc
  10. download to plc error

    If you post your PLC program, we will be able to tell you what is wrong. You can acutally compile you program before going online, if any errors are present, then they will be displayed in the Output window (Alt+2).
  11. CPM2A Data Retrieval

    I am looking at an application that requires data to be retrieved from several CPM2A's. I am trying to establish the best & most efficient method for this. I know I can use the inbuilt data links for PLC-PLC, but there is more than 2 PLC's in this application. I was thinking about setting up a 'master' node, that would request data from each of the slave nodes. This would be done via the hostlink method ( as this seems to be the only one that can have a unique unit number configured.) Any thoughts on the best method, any alternatives, best hardware to use? I was thinking of possibly using one of the existing CPM2A's as the master.
  12. CPM2A Data Retrieval

    It does look very intensive for what it is, just something that I came across in the downloads section.
  13. CPM2A Data Retrieval

    Thanks Bob, Anyone got any technical information on it?
  14. CPM2A Data Retrieval

    The example didn't look to bad, the biggest issue that I can see is defining the node to communicate with, this is why I looked at the modbus option. What is the SC500, I cannot seem to find any reference to it, is it an early model display unit?
  15. CPM2A Data Retrieval

    I am only investigating options at the moment. I think all they want is to record data, possibly no. of operations / faults etc. Perhaps with timestamps also. There is a download available that gives the option of configuring as a Modbus slave. As anyone used this option? Would be more expensive in hardware costs, but possibly easier to configure ( for me anyway )
  16. CJ Subroutine Question

    There probably is a better way to do it, but the correct way will work for what you are trying to acheive. From the manual, W340.E1 pg 784, it states "Place the subroutines in the main program and just before the END instruction in the program for each task. If part of the main program is placed after the subrouting region, that program section will be ignored." Even though I have never used subroutines, I would go one step further, and have a seperate section, right at the end of any other sections, dedicated to 'subroutines'. I have attached a only slightly modified version of you original code. I am assuming that you are aware, but will warn you anyway, as soon as the sub is called, and 'unconditional instructions will be executed, and will not be un-executed, UNLESS you have a seperate condition for the same instructions in another sub, or in the main program somewhere. In the modified example, I have added an execution condition for the subs that you defined. Subroutines.cxp
  17. CJ1M-CPU11/12/13 -Ethernet

    From my Omron Manual, there is a heading stating the above, but I cannot find this option in my price book. Is there a CJ1 CPU available with ethernet onboard?
  18. UM Memory full?

    sntp? Sounds like you are writing from an external source? The CPU PLC clock is AR351 -> AR354. Manual 393, pg 385 The DATE instruction can be used to change the PLC clock.
  19. UM Memory full?

    Not quite, using function blocks also uses up step memory......bigger CPU needed, Unless of course, the FB's are duplicated code, with the IP/OP parameters only being changed? There could be a smarter way again, using loops etc, I haven't had the need, someone else may of. Just a thought.......
  20. UM Memory full?

    I have also had this error, cannot remember why. BUT, I noticed you are using the CPU11, this is the smallest of the CJ1 range, with only 5k worth of step memory available. Yes, some instructions take up more than others, this will be mentioned in the manual. I think that function blocks are more step memory consuming as well. As anonymous said, have a look at the memory view, this will give you an idea on how much step memory you have left. You always want a % available for future modifications, commisssioning issues etc.
  21. C200HS & CIF01

    http://forums.mrplc.com/index.php?autocom=downloads&showfile=74 Try this. I would use the one on page 11.
  22. CJ1M to C200H

    I would say that it depends on the application as to the best way to acheive this. I have just had a quick look, it looks as though you can configure the CJ1-CPU11 as a PC link master, this will allow for 10 words to be enabled for the datalink. ( I would think that this would be 5 in either direction ), if you need more, then there are ways to acheive this also ( depending on speed requirments etc ). I'm not sure how you would configure the C200 though, manual W174 section 5 may give more information. I'm sure someone else will give another solution.
  23. CJ1M to C200H

    I don't have an example, but this is very easy to do, with little programming required. What CPU model is the C200H. Do you have the Omron Manuals?
  24. CX-Supervisor

    What is the latest version available of CX-supervisor? I currently have V1.2, is there a more recent version? I recall reading somewhere that there was to be a version of CX-designer that would run on a PC, did I understand this correctly, or did I mis-interpret this?
  25. CX-Supervisor

    So it will be a while before it is available. I am looking at using CX-Supervisor as a plan B ( pretty much convinced myself now ) as the original software is not performing as expected.