Jump to content

Flex727

MVP 2023
  • Posts

    3,271
  • Joined

  • Last visited

  • Days Won

    238

Posts posted by Flex727

  1. Never place the contact for a timer in the same rung as the timer coil. Further, in my opinion it is poor form to hang a coil off the left ladder rail.

    Here is how I would do it:

    image.png.911f59092a8772ddba7c27c13121b810.png

    Why use SB2 to activate the timer coil? No important reason, but it indicates that this action is taken at the beginning of the PLC run and not at any other time. You could use SB 1 or any MB that has its Power Up as Set.

    Don't try to do too much in a single ladder rung. As a matter of fact it is best form to do as little as possible in a ladder rung. That makes the logic more bullet-proof (you can be more certain that the logic will compile as you are expecting it to) and it makes it easier to understand when you or someone else must edit it at a later date.

  2. 16 hours ago, Fernando Castro said:

    it seems that v570 does Modbus master properly only on with socket 0.

    I have not found this to be true in my experience. The Vision PLCs do not care which socket is used as long as they are initialized properly and port numbers are not duplicated (which can easily happen if you only initialize the socket you are using and forget about another socket's default configuration).

  3. 2 hours ago, Fernando Castro said:

    I already eliminated all the logic while I trying to troubleshoot. this just reads one MI, and write a single coil (on each press it toggles the value so on each press should be turning on /off the coil) connect, read, write  and close are triggered by on screen buttons. It can not be simplified more than this.

    You're welcome to post a simplified program here for master & slave that you are unable to get to work properly and I'll load them up on my test bench to see what I find. I have several V570s, V1210s, and V700s that I can set up any way needed. You can also PM me if you prefer and I'll give you my email address.

  4. 2 hours ago, Fernando Castro said:

    I was under the impression that on ModbusTCP/IP the ID's are irrelevant

    I am under that same impression.

    2 hours ago, kratmel said:

    Maybe Creators know something about V570 as TCP master and do not place V570 master project to Examples :)

    I have programmed Vision PLCs using MODBUS TCP maybe a couple hundred times. I mostly use V570, V1210, & V700 in various combinations. I have never had an issue with MODBUS TCP not working properly in any scenario.

  5. 7 hours ago, Graham Witkowski said:

    What I am trying to do is to get create a button that writes a fix value into the DW for the required distance in MM (1000, 5000, 10000, etc) for frequently used sizes, to save the user having to use the keyboard.

    I frequently use "List of Texts: By Pointer" with associated ladder code to index through the list. It might look like this:

    image.png.d815e698534d2117f3dcfef2b8af2c8e.png

    image.png.91f8348b0aaab198a9ba34e4e282cb74.png

    • Thanks 1
×
×
  • Create New...