Jump to content

Flex727

MVP 2023
  • Posts

    3,259
  • Joined

  • Last visited

  • Days Won

    236

Posts posted by Flex727

  1. 19 hours ago, xXJEQTXx said:

    when seeing the CPU consumption and operating The HMI, in the iteration between screens is slow

    To my understanding (which admittedly may be totally wrong), the HMI updating is independent from the PLC CPU. One would think that would be an advantage, but I have found that the UniStream HMI processing to be very poor compared to, for example, the Vision PLC which runs everything off a single, slower CPU. I would love for one of the creators to explain this.

  2. On 9/7/2023 at 3:13 PM, xXJEQTXx said:

    Hi guys.Tips to reduce cpu usage by HMIs and ladder functions in Unilogic (USP-104-B10)?

    May I ask what your concern is? PLC applications rarely need that to be of consideration, especially with the UniStream line, which is extremely fast for a PLC.

  3. 2 hours ago, Milos said:

    I see in System Mode option "Init", should I try to initialize PLC?

    Initialize merely clears out all operands (assigns the value zero to numeric operands and resets bit operands to off). Normally, this will not affect communications, but will not hurt anything. If the running program has power-ups, then that power-up value will be assigned immediately when the PLC returns to run mode.

  4. Perhaps not strictly a Unitronics thing, and likely there's something I don't understand about the PING function, but often when I try to Ping a Unitronics PLC (connected directly to it from my laptop) I'll get this strange response (see screen cap).

    Notice the laptop IP address is 192.168.62.251 and the PLC IP address is 192.168.62.208. However it tries to Ping 192.168.50.208. What is it trying to do here?

    image.png

  5. 1 hour ago, Nikola Gramatikov said:

    When and how i should connect and disconnect the socket

    It would depend on the slave device. Normally there is no need to disconnect the socket ever when you are engaged in continuous transfer of data.

    1 hour ago, Nikola Gramatikov said:

    How to make a synchronised process of communication that everything can go continously with reading and writing on same time.
    I try with cycle timers but when read process is running, write is stuck.... with cycle timers is not OK ????

    That's because the logic you are using won't work (assuming the disabled rung 3 in the ModBus subroutine). You are Setting MB 4024 again immediately after it is Reset in rung4 which then attempts to perform the R.I.R function which will exclude the P.H.R. function later in Rung 6.

    Also:

    - Please do not have multiple logic threads in a single ladder rung.
    - Instead of dozens of Sets & Resets, use vector operations when addressing is sequential.

  6. No, when you release I Button, power flow to O Outstate is discontinued immediately. Break your logic up into two ladder rungs and it will work.

    Understanding power flow is essential to ladder logic.

    Edit: I see you may be fooled by ButtonState.Out being red. Don't be - that's only showing you that if there was power flow to the bit then it would continue on to the coil, but since there is no power flow to the bit, there is nothing to transfer to the coil.

  7. I have to dash off or I would look at this in detail. For now, I'll say review the example projects that came with your VisiLogic installation and follow the programming form laid out there.

    1 hour ago, Nikola Gramatikov said:

    1.  Does it metter where is the communication net in main or in subroutine

    No.

    1 hour ago, Nikola Gramatikov said:

    When I use R.I.R function it works normaly and if i put 0 for Slave: Start of vector in RIR function it reads 30001 from Slave. There is offset from 1 between addresses....

    This is common. Unitronics starts their addressing at zero, many other devices choose to start at one.

×
×
  • Create New...