lostcontrol

MrPLC Member
  • Content count

    521
  • Joined

  • Last visited

Everything posted by lostcontrol

  1. Project Specific Transfer Settings

    I recall asking for this in the improvements thread a good while ago... Just checking updates now to see what it gives....
  2. W coil not working

    You mean as attached? You can see that there is double-coil syndrome... The last one wins
  3. W coil not working

    We hear this all the time, but of what use is the code to us if we do not know what your process is? You can always strip it down so that only relevant parts are posted, or even PM it to someone..
  4. What String address's are you talking about, & what are you actually trying to do? If we know more, then we could maybe assist with a solution that way.
  5. $SB54/58 can be mapped to the PLC, indicating level 1-5 from the NS. This is done in the System Setting/Initial tab. You can add a PLC area that the NS will write to in the $SB/$SW Allocation address fields... These can be really useful for many things.
  6. W coil not working

    Posting the code helps everyone here more to evaluate what is happening.
  7. ModBus and Altivar Invertors

    It can be used for CJ & PMCR as well. Just the implementation is slightly different.. Maybe the 'Easy-Modbus for CP1L/H' could be removed (it may even be disabled), but this code is very easy for setting up single read/writes of items. For Block Read/Writes, it is not the best for as each transaction must be done individually. For Peter, I would recommend the Easy-Modbus code. The problem with FM's (& moreso the pre-written ones, is that they are very bloated & dependent on PLC type, can take up a lot of memory. More 2c
  8. Automatic update NS screen time/date from PLC

    Glad to hear it worked Bob, there are plenty of nifty things you can do with Macros to make some things easier..
  9. ModBus and Altivar Invertors

    It has been a while since I have done a ATV31, we normally use the 61/71 as standard. You will need to understand the basics of the protocol structure to implement this in your system. Simply taking Bobs example will not help you. The Modbus Easy Master would be the best implementation for you as it is all done, you just need to plug in the registers you want to read & it does it for you. How many registers do you want to read from the ATV31's? I'm going to assume that you only want to read & not write, as these are already running & you want to add in more diagnostic information?
  10. New to Omron

    As you want to locate multiple Mis-match locations, the best way would be with a For-Next loop... Example attached, this is for an Int array, but easy enough to change to DINT, LINT etc Equality Check.cxp
  11. ModBus and Altivar Invertors

    What models do you have? The ATV61/71 are very easy to do with Modbus. Some of the other models 31/32 are slightly different so require maybe more instructions to get the same data. The only issue with some of them is that the Modbus port is a RJ45, so you have to buy/make a breakout cable.
  12. Automatic update NS screen time/date from PLC

    That is very similar to what I have done Bob, except have done it in a project scoped macro. I have the NS writing it's data to the PLC as part of the notify area, then compare the NS seconds with the PLC seconds, if the drift is greater than 30sec, then set a flag that calls a macro that does executes te same code as above. No need to do it on all screens as is project scoped. Will post an example if anyone wants it?
  13. Clock Timing Problem

    +SL has avoided your issue & not assisted with your understanding of the PLC instruction set. 'S' is still making it a Signed compare, whilst the L is making it compare 2x words (a double). Have you changed the Add/Increment instruction to act on double words as well? You said that your value could be ~33000, that is will within the realms of a UnSigned 16-bit number. Why are you focusing on using Signed, when you have no need for it, the number will always be positive.
  14. Clock Timing Problem

    You are incrementing D30151, but resetting it if the value exceeds the max value for a signed 16-bit number (32767). I assume that W205.00 enables the counting to happen & that W300.00 comes from elsewhere (SCADA?). Where does W3.00 go to, should this be W300.00? My thoughts are that your value is reaching +32767 & is being reset. Change the comparison to be non-signed & 65000 & see what happens.
  15. Clock Timing Problem

    What is the value before it is reset? Are you sure it is not 'rolling over' from 65535? I cannot view your code just now as am mobile, but will try & have a look later.
  16. Sending Mail With ETN21 Card

    Not wanting to hijack this thread, but I jumped onto the Forum this morning with the aim of searching for send email (Which I have not done yet ), but is it possible to send emails from the CP1 range of PLC's? I am doing some investigation into this, the PLC will be connected directly to a Cell Modem that can host VPN's etc..
  17. NSH5 Hand Terminal

    Hi, We are comparing hand-held terminals for a current project. There are a couple of points that I dont like, but perhaps there are other options.. 1. The Function keys, F1, F2, F6 & F7 are hard-wired outputs only, they cannot be read by the Terminal.. Is there anyway to not have to wire these & use them via the NS? 2. Serial only, no Ethernet We are comparing with the Schneider Magelis, this has Ethernet & all the function keys are available, but the graphics are not as good IMO.. As well as the video option. Have many had experience with this terminal, pros/cons?
  18. Help needed programming a ZEN10CAR-A-V2 plc

    Try this, it is a real .zip file. CycleExample.zip
  19. Help needed programming a ZEN10CAR-A-V2 plc

    Since I'm slightly bored & waiting for some files to copy... Example attached, not prettiest but that is what ZEN allows... Remove the .zip from the file name will leave you with a .zen file. CycleExample.zen.zip
  20. Modbus RTU Omron CJ1

    I am not sure if I understand your question exactly sorry, can you post more information? Do you have the Modbus protocol working from a slave? if all you want to do is set the destination area of the Modbus read, then you can copy from where the Modbus PMv5 sends the results to wherever you want with a simple move..
  21. Scaling Problem, help!

    Or use Floating Point
  22. NS8 comm's

    This is interesting, I have never had to set the IP table before, but will keep that in mind. I have an application where the NS should talk to multiple PLC's over Ethernet, but am having a few issues getting it to work. 2x PLC's are E/IP, the other is ETN. Perhaps I need the FINS Node conversion in the table for it to work... I will try this when next back on site.. Location...?
  23. Timer percent complete

    Try this, copy this into the mneumonics view of CX-P.
  24. CP1E Modbus RTU Help!

    andreik, Does the Oriental Motor utilise RS232 or RS485? This is the 1st most important step to get this working. My advice would be to use RS485. You cannot put RS232C & RS485 onto the same 2-wire Bus, they are just not comaptible. Do you have a list of the functions you need to read/write from the drive? This will help in determining what you need to do & how easy it will be to implement.. Are you using the Servo for positioning or speed control?
  25. CP1E Modbus RTU Help!

    So you only have a single device, then there is no problem with update rates.. What code are you using to do the Modbus function? Have you created your own, or using a template from here?