MrPLC Member
  • Content count

  • Joined

  • Last visited

Everything posted by b_carlton

  1. Thermocouple

    It may have an implied decimal point - 1750 = 175.0 degrees.
  2. DL205 PLC program question

    I think the 00000000 can be used to clear the password but only if you are already logged in. You may have tried this but how about '12345678' as the suggested example shows?
  3. DL205 PLC program question

    As far as I know there is no back door. All Automation Direct can do is totally clear the CPU. Hopefully you have a back up file. Order a new CPU then dump your backed up program into it. Verify that it works then send the password protected CPU to Automation Direct. If you have no backed up program then you are in a bad state. Try to find how who the 'some guys' were.
  4. Logix 5000, Array filling

    I'm not clear why you are using multiple arrays. Only one is needed for the FIFO. I suggest the following modifications: In the first rung remove the MOV command. In the FFL change 'source' to just 'Distance' In the second rung remove the ONS contact. Remove the EQU and insert an XIC of 'control.DN'. In the AVE change the 'Dest' to a single tag. In parallel with the AVE command add a FFU. Use the same control tag as in the FFL. Provide a dummy tag as the destination for the oldest array member, assuming you don't need it. Analysis - the FIFO Unload will remove the oldest reading and bump the rest. 'control.DN' will turn off and will stay that way until the next reading is added in your first rung. Thus your second rung will only fire after the first 5 readings are accumulated then will fire after each new reading comes in.
  5. String clearing

    A string is a defined type composed of a length then an array of SINTs. I believe the CLR only works on atomic types (sint, int, dint etc). Copying an empty tag is my go-to method for more complex types. You may get some effect by just setting the length to zero but when I tried that I would occasionally see problems with new characters followed by the previous characters. I feel it's best to just clear the whole thing by copying an empty string as you are doing. Edit - actually I think CLR can be used successfully with timers and counters so my blanket statement is probably false. It would be good to have a CLR with respect to strings.
  6. Micrologix 1200 clearing controller memory

    Ganpat, pleas start a new thread. Don't start a new topic on a very old thread.   But note that your image doesn't show any problem. It is just a verification of the download action you requested.
  7. Simple Click For Loop

    It seems the only indirect/pointer function is in the Single Copy command.
  8. RSLogix500 Ladder Problem

    You have logically thown out the need for the parallel NEQ and EQU tests on N7:0 and N7:1. Just leave the tests for EQU N7:0 N7:2 and EQU N7:1 N7:3
  9. RSLogix500 Ladder Problem

    Since you mentioned RSLogix 500 I'll stick with N registers. Gather the bits in to two N registers (lets say N7:0 and N7:1) in the manner suggested by Joe E. In RSLogix500 this would look like XIC Bit0 N7:0/0 etc    (After N7:0/15 you would need to switch to N7:1/0  etc) Make sure to start out somewhere with a CLR of these two N registers. The movement of the bits into tthe N registers would have to happen every scan. For this you will also need two other N registers. Lets say N7:2 and N7:3   You can CLR these also if you wish but the only possible problem would be on the very first scan. It sounds like you want the timer to be on if any of these 22 are on. You want it to reset if any bit changes state. So the rung to the timer enable would look like: NEQ N7:0 0      EQU N7:0 N7:2   EQU N7:1 N7:3 ------------ Timer NEQ N7:1 0 (Note - two NEQs are in parallel) and another rung to store the bits to make the transition check possible: ------------  MOV N7:0 N7:2   and on a branch in parallel with this  MOV N7:1 N7:3
  10. Round Robin Code

    Make your lane ratios variable. On any lane whose 50% indication is true (remember to add a timer for each to ignore minor gaps between items) begin to increase its ratio. Once the 50%% indication is clear for an amount of time begin lowering the ratio back down toward 1. You'll have to experiment with times and amounts to avoid going way overboard by locking a lane out or giving one exclusive priority. An 'almost empty' indicator for each might help also.   On second reading I think you were describing a single feeder filling three lanes. I was thinking three lanes merging into a common conveyor. But the general idea applies with variable ratios except that you would increase the ratio slightly on the lanes whose 50% indicator is not true.
  11. V Memory

    The CTRIO module has its own manual. Download and read it. It has a lot of examples. When Directsoft is installed it has the option for loading example programs also. I believe there arre some CTRIO examples in there.
  12. Help: Basic Program Question

    Is a compare instruction considered a math instruction?
  13. V Memory

    I provide a bit of information for those working with Directsoft who have Allen Bradley experience. It starts here - http://theplcguy.com/ABtoAD/Introduction.htm As part of this I provide a table of AB to DL memory usage here - http://theplcguy.com/ABtoAD/DL06%20Memory%20Types.html Let me know if I can help in other ways.
  14. V Memory

    That's a very open question. Do you have experience with any other PLCs? The 'V' memory is generally not assigned by type except for counter and timer accumulators and various system locations. The manual for the specific CPU details these.  
  15. MR

    Highlighting a table I made for my site (thePLCguy)
  16. Does the unit documentation specifically mention that it supports Ethernet IP? I saw something about TCP/IP but that's not the same thing.
  17. Problem adding a box under a rung

    Which programming package are you using?
  18. TT pulse bit

    Search for the base timer name without the '.TT'
  19. SLC500 - resetting the time

    Disconnect the Panelview fromthe PLC. Reset the time to that currently in  the PC as described in the first post. Return the PLC to RUN. Wait a while See if the time in the PLC registers change. This should isolate if the Panelview is causing a problem or  is simply displaying the result of a change caused by something else.

    The file (#3) you have set in HSC:0.PFN is typically called when an interrupt condition (hitting High Preset, Low Preset for example) occurs. Try moving this code into ladder 2 and see if it executes as you wish.
  21. RSLOGIX 500 String

    Type the following including spaces Line 1\0aLine 2 After pressing ENTER you should see Line 1^JLine2 So the backslash is the lead in to the hex value of the character.
  22. The copy of multiple items only works if the items are adjacent to each other in both the source and destination. Check the card documentation as RSLogix 5000 table doesn't always follow the actual sequence from memory. You probably will have to transfer them separately.
  23. Generally any change to the Configuration at runtime requires: Write the new value to the Configuration area Suspend counting (.CTRxEN =0) Send a 'Module Reconfig' message to the module Wait for the message to complete Re-enable counting (.CTRxEN = 1) (I don't have the code available to me so I can't send it to you)
  24. Rslogix 5000 school project help

    Just a guess but naming a routine "Main Routine" doesn't necessarily make it the primary routine called. Check the settings for the section above (I believe 'task' - I don't have Rslogix 5000 available).  
  25. # and [ ] with COPY commands?

    If it is like the SLC then it is the actual index value used by the system during the execution of the 'file type' instruction. With a length of 10 I would expect it to be left at '9' (assuming no other instructions which have the '#' character were executed between this instruction and the end of the scan.)