Jump to content

Joe Tauser

MVP 2023
  • Posts

    2,869
  • Joined

  • Last visited

  • Days Won

    308

Posts posted by Joe Tauser

  1. I'm assuming you're working with a UniStream.  This PLC does not have a native RTC to ASCII function.   Read up on UDFBs (User Defined Function Blocks) in the Help - these are loadable functions written in ladder code.  Flex has posted a UDFB file above that you can load into your PLC to get the functionality you're looking for.

    Joe T.

  2. Your logic is turning Cleaning.Complete off immediately when it's on.  You'll never see it in the on state.  The computer screen updates much more slowly than the actual PLC logic.

    I'd add a Reset to the Cleaning.Complete rung to also reset the State.Abort bit to prove that it's working.

    While you're browsing around on the forum, search up my posts on the State Machine programming style in the Visilogic forum.  It applies equally to UniStream.  It will do what you're trying to do in a much cleaner fashion.

    Joe T.

  3. It looks like this is a UniStream program.  True?

    You can only use a regular coil once in a program.  In ladder logic all rungs are scanned and solved and the last one wins.  In your program example above use different bits for each rung, and then OR them all together below your logic for the actual controlled bit.

    Joe T.

  4. That depends.  There is a "Modular" unit where you add all the I/O modules and then there's a unit with some onboard I/O called a "Built-In".

    https://www.unitronicsplc.com/programmable-controllers-unistream-series/

    The Modular unit is a front panel with a separate CPU module.  It's the original UniStream type and has all the features.  The Built-In has varying levels of bells and whistles to get the price down to appeal to the OEM market.  If you go with the Built-In, get the -B10 option which has all the stuff.

    Reach out to Unitronics to figure out who sells their product in your part of the world.  Here in SeppoLand,  a 7" unit goes for $1,500 - $2,000 US.

     

    Joe T.

    • Like 1
  5. You can't increase the size of the internal retained memory.  As Saragani says, it's 256K.  I would calculate the actual data size needed - you need to specify the number of columns in each table as well as the data type to determine how big they'll be.

    You can creatively use an SD card to get more storage.  Look at the Help on "Store DTI to File" and "Load DTI from File".

    Joe T.

  6. You've got low voltage and high voltage wires in the same wireway (3rd one from the top).  You need to separate out all those wires - not just the field grounds.  

    Wiring connect to VFDs is super high in harmonics and the current present makes the wiring into a very effective AM transmitter.  Any wiring within a few inches will pick up a high frequency signal and transmit it into the backplane of the I/O modules via capacitive coupling.  This will in turn combine with the data signals on the backplane, resulting in errors on the controlling CPU.

    Joe T.

  7. I did some experimenting in UniLogic with this question and reached the following conclusions:

    1.  You can't change the size of the HMI screen.  Therefore there is no "pop-up" window functionality at this time.  You can't drop a Custom Control onto a new display that is only the size of the Custom Control.

    2.  When you press a button one of the options available is "Message Box".  This is like a Visual Basic dialog box asking a basic Yes/No question.  You can't really change it.

    3.  You can add a Custom Control to it's own Layer, and then play with the Visibility property to make it appear and disappear.

    Those are my observations.  If anyone has concrete experience on this feel free to chime in.

    Joe T.

  8. What you've posted looks like a good start to me.  I'm guessing you've verified that your "Message" tag is the same length as your "Vklop10" tag.

    If it doesn't work I'd add both tags to a Watch when you're online with the PLC so you can actually see what's going on.

    Joe T.

  9. Contact Official Unitronics Support at support@unitronics.com. 

    Since the Great Hack of 2023 all previous versions of UniLogic that did not have mandatory security measures have been removed from the Unitronics website and are only available by special request.  They should be able to get you the interim versions you need.

    Joe T.

  10. 3 minutes ago, kvlada said:

    There must be something  similar in Unilogic.

    There is not.  There are quite a few functions in Vision that don't exist in UniStream.   PWM and Linearize Array immediately come to mind.

    The thing about a function in Vision is you don't know what the assembly code looks like under the hood to get that function to work.  We got spoiled by some of that stuff.

    Here's the RTC to ASCII udfb I lifted from the example programs.  Looking through it gives us an indicator of what kind of somersaults the Vision programmers performed for that function.  You can call it overkill if you wish.  But it does work.

    Joe T.

    RTC to ASCII V2.ulle

  11. 10 minutes ago, Merle said:

    I was trying to communicate with an actual slave device, which works for single commands only.  If I try to send multiple commands within a relatively short period of time is when the issues appeared.

    Have you tried setting up an Aperiodic Batch Operation?

    Joe T.

  12. The three second recovery probably has something to do with your Retry count setting.

    My experience has been that the specific modbus error codes you describe above don't always get set they way you think they should.  I spent a huge amount of time trying to simulate errors between the PLC and another device and then trying to figure out the timing and value of the error codes, just as you have.

    Are you experiencing errors when trying to communicate with a device or are you just trying to interpret what the PLC response is when firing commands to a dumb terminal?

    If you're just trying to observe PLC behavior with a PC, I'd Google "free Modbus simulator" and put that on your PC.

    If you're just trying to get a more real-time monitor of the communication status between your PLC and the actual device, I'd abandon the Status column in the Modbus Table and go straight to the source - the Modbus Remote Slave Status word.  It changes its value to 2 or 3 pretty quickly when communication is lost and will reset itself back to 1 when communication restores itself.

    Joe T.

    • Upvote 1
  13. Um...  the PC is not a PLC.  How would you connect the wiring of your equipment to it?  All Remote Operator does is mirror the graphics in the PLC to another graphic display device; your monitor in this instance.  Remote Operator does not turn your PC or your phone into a machine controller.

    Based on the PLC information screenshot above your PLC has had it's memory corrupted.  You need to replace it, and you will need to somehow get the program to load into a new one.

    Joe T.

×
×
  • Create New...