All Activity

This stream auto-updates   

  1. Past Hour
  2. NA HMI Listbox

    Fritz:              There is a variable property for the Listbox, what do you specify? I think I compiled but with an error stated the setitems  is not an element  something. I will give it a try ,.
  3. Yesterday
  4. NA HMI Listbox

    No, actually not. You can use VB.NET code in editor (Compact Framework 3.5) but visual components provided by Omron are not original .NET components. Those are Omron's own extremely limited versions. You can examine them with ILSpy from Omron libraries or use System.Reflection on runtime.
  5. CQM1H-51 with touch screan NT20s-ST121

    Yes, that is a problem.  They need to be different.  The control area controls the screen.  You can make it change screens and other functions using the control area.  The notify area is status returning from the screen.  
  6. NA HMI Listbox

    I have used following code to update listbox contents: Dim logs As System.Collections.Generic.List(Of Object) = Nothing logs = New System.Collections.Generic.List(Of Object) logs.Add("one") logs.Add("two") logs.Add("three") lstLogViewer.SetItems(logs.ToArray()) But also your code should work if you modify it as following: Sub ListBox_Update Dim array(100) As Object Dim x As Integer For x = 0 To 99 array(x) = ListItems(x) Next x listbox0.SetItems(array) End Sub NB! Your "ListItems" must be array of strings ! Basically: parameter passed to SetItems method must be array of objects, but those "objects" must be strings.
  7. faulted processor

    I ran a block consistency check and it found references to DB49, DB10640, FB49, and FB640 that don't exist in the project. I didn't try to track those down since they are probably unrelated to this issue but you might want to look for them. I also generated a cross-reference and found one place, in FB600, where the x-ref found a reference to "DB?". It looks like it's using pointers, but that's something I've never done in the Siemens world, so I can't decipher that easily. FB600 is called 4 times, once each with instance DBs 1002, 1000, 1006, and 1004. This could get difficult to track down, especially not being online with the machine. For the calls to FB600, the DB numbers are passed in as constants, but either the source or destination word for each CALL is a variable that comes from the calculations preceding each CALL instructions. It's possible that there could be an issue with that calculation causing the block moves inside FB600 to reach out to non-existent locations. Is it ok to stop the PLC during its operation? If so, you could delete OB121 from the PLC and let it fault. You should be able to go right to the problem from there, with the PLC in STOP mode so nothing is changing. I would be careful, though, to make sure the machine won't do bad things if the PLC faults mid-cycle. As an alternative, you can try to add some diagnostic code to OB121 such that it copies its interface area to a global DB that you create and can then monitor. I remember trying that once with mixed results. I also remember the variable names inside OB121 being far more useful than the ones I see in your program. The project has two Simatic stations in it, each with what looks like the same PLC and IM stations but one also has a G120 drive and a DP/DP coupler. Are there 2 PLCs in the machine, or is one of the stations in the project a backup of the other with some edits done?
  8. faulted processor

    Hmmm....I had a few minutes, so I opened up your archive. You don't have a DB260 or DB262 at all. Does your online/offline compare show any discrepancies? Like blocks that are online only?
  9. faulted processor

    I'm not a super-expert on Siemens, but I have worked with them. It looks like you have 2 errors that have shown up in your buffer, twice each, that would involve OB121. Both are talking about access to a global DB, address 260 for one and 262 for the other. The others look like communications faults to various stations may not be related to this. Does your project include a DB260 or DB262? If so, find all of the places where they, or their sub-elements, are called or referenced and verify that the addresses are all valid. If any of the references to a DB use pointers or indirection, trace the calculations of the indirection to verify they're right and limit check them to appropriate values. In the cross-reference, look also at any entries that show as "DB?". That indicates some ambiguity in the individual calls. I've seen a couple of examples of that being done that I can go into in more detail at another time.
  10. faulted processor

    Yes I've seen OB121 on the processor when I'm online, the machine still doesn't run.  I'm just wondering if the processor or any modules were damaged in shipping.  Seimen's help isn't very helpful since the only two causes that are listed are a defective module or no signal module is assigned to address I really want to know what " Global DB, word access, Access address:    262 " is referring to, what does access address 262 even mean?  I was having some communication issues before, but that was resolved every module is showing ok when I'm online except the processor.   
  11. faulted processor

    While connected and online with the PLC, open the online blocks folder (select the Blocks folder of the project and click on the "online" button in the toolbar). Make sure OB121 is present in the processor, not just in the project. You can also select the blocks folder in the project tree and do an online/offline compare. It will tell you if OB121 is missing online. Note: OB121 does not fix the actual root problem. You need to find the actual issue and correct it. All the presence of OB121 will do is allow the PLC to keep running, which may NOT be the best and safest outcome in your situation.
  12. faulted processor

    Ok, but OB121 is already in the program.
  13. Is that a problem if I make both of it control and notify word are D0000
  14. how to set up timer in st

    Good point.... @BITS N BYTES
  15. how to set up timer in st

    What is the model number of the PLC you are using? CJ2M, CP1L, CP1E............................ Structured Text timers or Counters can ONLY be used with CS/CJ series CPU units version 4.0 or later, or with CJ2-Series CPU units.
  16. NA HMI Listbox

    This part is easy. I thought since Omron advertised about VB.Net,  Then surely first thing come to my mind...listbox and Dropbox or even Textbox should behave as such in Visual Studio? if you read the link that I post, some one posted and said he/she had been able to load it from code. Or am i read wrongly?
  17. Sercos not connecting to Ultra3000

    Thanks for the welcome Daniel! Today I decided to start from scratch again and make a new project and re-add all the modules. I did everything you suggested, went through each step and menu slowly and everything checked out. But, amazingly I got it working! I'm not 100% sure what I did to make it work but I THINK I know.  Mind I'm dealing with version 11 with this Controllogix so a lot of the lay outs of menus and property windows aren't quite 100% the same. So when I follow tutorials I find online, things don't always match up as they would with a version 20+. With this version, under the axis properties, Drive and Motor are two separate tabs. I set the motor catalog number but I think my problem was I wasn't setting the drive catalog number on the Drive tab. I must have done it  quickly the first time around but didn't remember doing it the next day.  Fickle parameters! It always amazes me how you can spend an entire day and not figure something else, come in the next and boom, get it working.  Now that I have it up and going, time to teach myself some motion programming! Thanks for the reply and help!
  18. Need Manual for CS1W-CTS21 SSI Interface

    He has the CS1 version.... I think.
  19. how to set up timer in st

    I am not having any issues.  If you post your code here(.cxp file), I can look at it to see if I can tell what is wrong.
  20. NA HMI Listbox

    Used a listbox many times, but never tried loading the list anything other than manually.  My applications have not required me to get into the script code.
  21. Hello - I am currently setting up a program to control a downlane conveyor motor and ran into the issue of operators leaving the conveyor on through their breaks/at the end of the shift.... I know, shocking . Anyways, the essentials of the program are the following - ladder logic, start/stop PB station, a sensor that says when I've seen a box for x-amount of time I will turn off, when the eye is clear for x-amount of time I will turn back on. When trying to 'solve the problem' of the operators leaving them on, I figured this would give me a chance to use a RTC (real time counter) and program it so that at various times of the day I will send a single shot to verify the relay is CT is open. I've enabled the RTC on the Micro810, dropped a TOW but do not really understand how to set the TOW block up. Hopefully that all makes sense. Thanks,  grubb
  22. how to set up timer in st

    Hi Michael Walsh, I had a question about using timers or counters in structured text. I did declare the timer in the external section. I did try it declaring it in internal. I always end up getting the same error. I suppose you will be able to help me with my question. Please see the attached screenshot of my program and errors. code :TIMX(A, TimerNumber, 500); Declaration:TimerNumber    TIMER                            INTERNAL     0    0       ERROR: Symbol 'TimerNumber' is the invalid data type(TIMER or COUNTER) in the SFC/ST program.   Thanks JOEL

    This is the memory D10. Actually the output from 4329A is ST,GS,+00001.3 kg (example).

    @riandanualdy I have seen D10 have data value entry and complete flag A382.14 is on. You should monitor value at Memory on the left menu then check at D10 on text mode to monitor data.

    I use 4 cable, CP1W   4329A RDA      SDB RDB      SDA SDA      RDA SDB      RDB and i attach the screenshot of cx programmer but still i cant get the data from weighing scale if i push print (Manual Print Mode).

    @riandanualdy I think you use stream mode If you have USB to RS-485 converter you should connect with weigh scale then press print button and check that data are out to hyperterminal (or similar software) or not. If not maybe you should use commnication command mode (F41 = 3).
  27. Load more activity