lostcontrol

MrPLC Member
  • Content count

    521
  • Joined

  • Last visited

Everything posted by lostcontrol

  1. Protocol Macro

    Attached is a basic example for CX-Protocol & CX-Programmer. Are you familiar with the Modbus protocol? In the CX-Protocol file there are 2x commands configured, 1 for the VLT, the other for the FC302. In reality though, they are using the same parameter sets so could be the same. This method requires less ladder to get it working & is therefore easier to maintain, all you need to do is call the sequence from the ladder program. Sorry for the quick description, in a hurry to get something else done. I should be able to answer questions/provide more assistance later today/tonight if required. Feel free to PM me as well. Danfoss Modbus Examples.zip
  2. Protocol Macro

    I have done the MCD's before, but VLT & FC302 I have. I can send through some example code later today if you want?
  3. Protocol Macro

    What protocol are you using? If Modbus RTU, then PMCR's Easy Modbus also works well for this.. All depends on what you are doing & what information you require though, sometimes is easier to create the protocol yourself, especially for large data reads.. We can provide mode information if you need.
  4. ModBus and Altivar Invertors

    Not really, the Modbus function that PMCR has linked to has the file already created, all you need to do is download to your CPU...
  5. ModBus and Altivar Invertors

    You will need a SCU module, I would suggest a SCU31, as this has 2 RS485 ports. Depending on what sort of response you require, I would consider splitting this over 2x networks.
  6. NS5 ethernet connection with PC annoying problem

    Left field, I assume you also tried replacing the CF? I know that they say the CF has a certain no of writes, but I thought that was due to the CF itself, I wonder if it is also the writer...?
  7. NS5 ethernet connection with PC annoying problem

    Was it literally crashing, or performance slowing down? I have never seen a NS crash.. Were you also logging to a CF?
  8. NS5 ethernet connection with PC annoying problem

    Ahh, so you are always resetting locally at terminal at moment, no other method?
  9. NS5 ethernet connection with PC annoying problem

    Sorry, I did not mean the test connection method within CX-Designer, rather yourself testing the webserver connection.. Are you only resetting the NS?
  10. NS5 ethernet connection with PC annoying problem

    How do you know webserver interface has lost function, only by test of connection? Then if you cannot connect, you initiate reset via SMS function? That is something that I may do as well, instead of from PLC. Does reset solve problem every time? What settings do you have in webserver interface, & maybe NS system version?
  11. NS5 ethernet connection with PC annoying problem

    When you say www, do you mean the webserver interface? we have recently set one up, that is in its infancy, via a GSM modem. I set this up & got working all fine, then left site & now it is not working. I have checked port no's etc in the modem & all is as left, but NS is not responding. I am suspecting that it has also 'hung' to the Web-server connection & waiting for a response, but I dont know for sure. I do know that the PLC still see's the NS as the system bit is pulsing, so using the failure detection method we have suggested may not work. I am going to install a relay to reboot the NS from the PLC, as I can still see this. I am also going to try & think of another way to monitor this for auto-reboot, but not too sure at present...
  12. NS5 ethernet connection with PC annoying problem

    It needs to be established if the PLC or NS is hanging. When the NS5 'hangs', can you connect to the PLC via ethernet still? I have had occasions where the NS appears to hang, but it is actually the PLC E/IP unit. I monitor comms in the PLC as mendon suggests & if the system bit is not pulsing for more than 1x minute, I reset the E/IP module. I have not got to the bottom of this, but suspicion is that it is due to the regular interrupts that are running & the speed that they are running at. Please check your PLC comms next time it hangs. Re-booting automatically like that is not a good solution..
  13. Problem with Array of Array

    No problem, once you get the hang or IR/DR can do almost anything...
  14. Percentage Loss Function

    You really need to post more information. What is S302? Comparing 2x areas for the lowest is easy, as is turning on an output. Sounds like you need to be calculating the production loss always, then comparing with your 3% to set the output...
  15. Problem with Array of Array

    Example attached. I have used D1001-D1003 as 'Prova', with bits D100x.00/09 as Dogs & D100x.15 as Presente. If you need Presente to not be part of the same word let me know & I can change it. This way was nice & easy.. Arraytest.cxp
  16. Problem with Array of Array

    There are members who work for Omron, they are more application specific, not the actual code writers, but can provide information sometimes that the rest of us cannot get...
  17. Problem with Array of Array

    Hmm, yep is looking like it, or perhaps even structures...?? Looks like you cannot indirectly access a sub-element of an array within a structure. A constant index does work into the sub-element though, but I suspect that will defeat the purpose. Without suggesting how to re-work your structures, not sure what you can do. I wonder if this can be clarified by Omron? My suspicion is that it is because it is a structure... Looks like it cannot even be done in ladder I have a way of doing this in ladder using IR/DR if you want an example?
  18. Problem with Array of Array

    You may need to declare the pointers (i,j) as integers. From memory, you cannot use un-declared variables in ST in Omron
  19. Alternating Screens

  20. Alternating Screens

    You would be better trying to stick with CX-Supervisor scripting & master that before trying to understand VB script in CX-S. Bertie, am I correct in recalling that the VB script is limited, perhaps more to that of VBA? I remember trying to do something in CX-S VB script similar to VB in another application & it did not work the same as expected, may of even posted here about it..
  21. omron comparison is yellow status

    Can you post a screen shot of what you mean?
  22. Synchronize Clock

    Attached is a very basic application that utilises PMCR's ActiveX. You will have to install that first, then modify the 'CSCJActiveX.Ini' file to suit your IP Address & maybe FINS Settings. Once you have done this, then run the ClockSyncSetup.exe file. You may need dotnet client depending on what you PC has. This has been testing only on a CP1L with CIF41, nothing else. It does not require any modifications to the PLC structure. At the moment, the sync must be done manually via the button. This could possibly be changed in future to sync at a certain time, but lets see if you can get that working first. This is not an Omron product, so do not consult them for support as they will be completely unaware. I should of asked earlier, but why the need to be always syncing the PLC clock? OmronCSCJCP ClockSync.zip
  23. Synchronize Clock

    I wonder if you could run CX-Designer in simulator mode & sync the clocks that way Would have to test to be sure. CX-Supervsor would work, but you would need a license to run it. Advanced HMI may be able to do it as well, but you will need to install SQL express etc, maybe a bit too much for something so simple. I am surprised Omron does not have one, I may see if I can tinker with a dotnet application to do it. Would require some simple code in the PLC as well though, are DM800-DM899 free?
  24. Synchronize Clock

    Do you have any other software on the shop PC? I am sure we could do something with a simple custom application using PMCR's ActiveX if not.. Bob, do you not just sync with the master Citect PC?
  25. You could configure your Micro to read the information you require via serial or ethernet. I am sure the serial implementation would be easy enough. Or you could make the ML1400 send the data either serial/ethernet to the micro, then decode it at the micro end, probably the easier option. Im assuming that your web server is jazzy looking, so the interface would be nicer than what the ML1400 has.