Jump to content

DanT

Mobile App Beta
  • Posts

    293
  • Joined

  • Last visited

  • Days Won

    20

Posts posted by DanT

  1. Hi;

    In UniLogic there is no pre-defined  memory bit  structure.

            All  individual  Variables are defined as  tags.

    When you  create and define the tag, you select  what is is - Boolean( a Bit)  Byute, Integer, etc.

         So you create the Memory Bits.

    You can create arrays of Bits, or use Bits in Structs, and more.

    Under  System Tags you will see system "tags"( variables) defined as Boolean(Bits)

    In VisiLogic   and U90 Ladder   -The memory structure is rigid and there are specificly defined  Memory Bits  - MB0- MBxx.

    UniLogic  is much more flexible in how tags ar defined.

    DanT

     

  2. Hi;

    There are limits to the number of     -|P|-    and   -|N|-   that can be used in a program - They also take up more processing time than a  -| |-  contact.

      Aslo Review the Help Topics       Contacts        Postive Transition Contact(Rise)    for further information.

    If you have several    -|P|-  assigned to a single MB  say MB11   - say you use it 6 times.

      then do this       -|P|-  -(  )-      MB11 turns on MB12     do this at the start of the ladder

      Now use     -|   |-   MB12      in place of the MB11   -- does the same thing   the leading edge pulse.( also saves scan processing time)

      Also Examine your program as to why you are using so many of the     -|P|-    and   -|N|-    in your program.

     You can also upload your program and some one can do a review and provide some  suggestions to reduce them 

     

    DanT

  3. Hi Marko;

     

    Are you using the   Unitronics USB Cable      USB2-CAB200?  This has a Ferrite on it to reduce noise in the line.

    If not, use a cable with a Ferrite.

    Normal COM settings are   115 k Baud, 8,n,1

    Check your PC  Comprt settings -   Control Panel - Device Manager

    Check Comport settings on the PLC  -- you can get this infor using     Info Mode

          Hold  non active touch are on screen for about 8-10 seconds

            follow prompts, - Enter Info Mode,  password ( default) is 1111

                     Serial Communications  - USB uses COM 1

        Try  communicating - there is a TX-RX   that will index with communications, also, you can monitor the com line

     

    Keep cables away from VFD lines and power lines

    DanT

  4. Hi Tejasvini;

     

    The differences between   SI and MI

    SI  - System integers  -- used by the PLC Operating system  to provide feedback on system process

              Also Date and time are here.

             Gives status of  Communications ( Modbus and Ethernet and so much more )

            Basically most are read only for programmer to monitor and use in the ladder ( Date and Time can be edited)

    Anything starting with   S    SI, SB, SL,SDW   are system   variables.

     

    MI  -- These are for you, the programmer to use in your progam as needed. 

    Aslo   MB, ML, DW           --  These are backed up by the Battery, so on power loss, data is retained   ( There is an SB  for Battery Status )

    XB,XI,XL  etc  are scratch pad variables for the programmer to use - you don't care if these get wiped on power fail.

     

    DanT

     

     

       

    • Like 1
  5. Hi;

    Under Help, There are example programs to review.

    Basically :      Place  a   Number box on the Screen

                                       Assign the MI  for the Data  to be entered

                                       Set up the keyboard entry - add the limits for the data entry.

                                       In the ladder, use the MI into a Linearization block to convert to the analog scaled output.

     

    DanT

  6. Hi;

    Memory  Values can be backed up 

    Do this Before   working with the OS

     

    From VisiLogic:

    Connection  -- lower section  - Just above communication and US

            Export  PLC Operands to  Text file

      or  Export PLC Operands to Binary file.

     

    Then  do the reverse -- Import  the values back in

     

    DanT

     

      

         

       

  7. Hi;

     

    Chances are the program was downl;oaded into the PLC without  the Upload Option, or the Upload option requires a password.

    There is no way you are going to get to upload the program from the PLC.

    You will have to contact the HVAC manufacturer   and see if they will release a copy of the program to you - chances are - NOT.

    Are you able to go thru the menus  provided to be able to change parameters?   Are these sufficient?

    What is the model of the PLC ?   ( White tag on side of the PLC )

         There is also Info Mode to get into some basic PLC( Not Program) Parameters.

     

    DanT

  8. Hi;

     Modbus    TCP

    Review the Modbus   functions   and Help( Index- Modbus and Modbus Slave Addresses)  and Examples(   Help, Examples, Projects, Communications, Modbus)

    The SCADA  programs are the Masters - asking for the data from the Unitronics  as the Slave - responding to the request and sending the data

    Set up the Weintek and Siemens  for MODBUS    TCP ( Ethernet)  communications

    Read thru the forum topics about SCADA and Modbus - the expiences  and the wisdom provided.

     

    DanT

  9. Hi;

     

       0-10V Analog Input   -  the PLC takes the raw analog data   and stores it in an integer ( MI) in the PLC memory.

       If you are planning to do math with the number, then work in integers   - a lot faster and easier for the PLC to process, you just have to keep track of the decimal position.

       MI's   are     16 Bit  nimbers  -32000  to +32000  roughly,  or use an  ML  32 bit numbers

       Scientific notation ( Floats ) requires a lot more PLC processing time because everything has to be converted  into interger  math anyways  by the processor during the process.

       Displaying  Integers with decimal point is easy as you know where it is  and can tell the Number display how to display the number with the decimal.

         ( displaying floats is a bit more tricky  as you have to display it as a string, not a number -  more plc processing time.)

    Floats eat up PLC Scan time -- cause it to be longer,    Integer Math is faster and natural to the PLC Processor.

     

    DanT

     

      

  10. HI;

    Last Image diplays an important point  -- Battery is LOW   -- Change the Battery    

          Battery   CR2450

    Remove the connectors, then the back then the I/O Board.

    Install fresh battery, reverese process.

    Power up, check communications - COM 1   57,600.

    Cannot communicate?   screen  works - use Info Mode to check COM settings.

    Does your program modify COM Settings for a device?    Have you changed them?

     

    Battery Life -- typical 5-7 years - keeps RAM Alive when powered off !!

    SI 7      Controls Screen Contrast on the V120

    SI 9    LCD Backlight  Intensity

     

    DanT

     

     

     

     

     

  11. Hi

    Contact    support@unitronics.com     for assistance

    Some questons:

        Did you set up any passowrds in the program?

        Did you set up any communications parameters in the program?

              What were these?

    If possible, you can upload your program for someone on the forum to review..

    Forum Moderators  and contributors are not Unitronics Support Staff.

    We are volunteers    -- programmers helping programmers.

    DanT

     

     

       

  12. Hi;

    To Expand a bit on Joe's comments.

    JAZZ  - U90 Ladder does not have the type of tables you are looking for. 

                          You can saythat  all MI  or all MB  are a table, but you are only in some tiny portion .

    You can read   MI's and MB's individually ,    but many Modbus calls will be required to grab the data  individually

    When there are several to be read or written to at one time,  then Group them into a specific range of MI or MB

           so 1 Modbus call will read the range or write the range ( so consider this range as the table)

     

    If your program has  the data all over the place, you can use   the Store   commands  to put  or read  the data in the range for Modbus  Read  / Writes.

     ( do   reads  at the beginning      and   writes at the bottom of the ladder)

     

    DanT

     

  13. Hi;

    If you can communicate with the PLC ( Etherent   or USB)

       The create a BLANK  or Minimum Program  ( Ladder  and HMI)

                  On HMI I just do a Text Message  and a Clock

                  In Ladder I do nothing

        Set up the Model info, and the Com's 

                     PLC Communications   

                                Physical  -  IP Address Information    Panel IP  is important

      Compile and Save the program  then Download

    This will overwrite everything  - erase the old program  and its setupand  install the new program with new program settings.

     

    If you cannot communicate with the PLC, then you need an ACTION file to "kick" it.

      Create a dummy program as per above and save it.

       UniLogic,    Tools - Icon Ribbon-   USB ActionFiles Creator             ( you will need a USB Key

             Follow the steps     Data - uncheck All

                                                       Logs  - uncheck  All

                                                       Updates  -- You decide

                                                        Communication  --  Write  new parpameters  into the   Panel IP  date            CPU  and DNScan be blank at the moment

                                                         VNC Passwords    -- You decide

                                                         PLC Password  -- Use Unitronics factroy default  password

       Save

    Follow steps to load onto the USB, then plug into the PLC and power down the PLC and power back up   Action file will do its thing.

    Then ping the IP Address and go online  -- UniLogic  and  VNC

     

     DanT

     

     

  14. Hi;

     

    Are you actually using a Quadrature  Encoder?   If so, then the Input  is on IN0  and 1  and set for a High speed Counter.

    IF the sensor is the only thing sensing the target, then    you have to know that you are going  CW or CCW - you need these signals 

        To  Count up  --              CW Signal + Target Signal   = Increment Pulses

        To  Count Down  --  CCW Signal + Target Signal   =  Decrement Pulses 

      The   Home prosition sensor can be center   and reset the counter to keep it in synch  as the antenna rotates thru this position.

    I  have an Amatuer Radio License, but not a tower, but this is kinda the approach I would take :

            Sensors -   Sense the gear or position of the Rotor shaft.

                               -   Center position

                                - Possible   sensor at each end of the rotor travel  as limit sensing with Auto  Stop of motion  when reached - regardless of the Count.

                               - Linearization to convert  Pulse count to Degrees,   

                              -- Have  0  degrees at the center home position and go   + 180 and  -180  from Home 

               I would shy away from using an encoder - expense, coupling the encoder and weatherproofing since it will be outdoors.

    Post your program.

    I did a CAT program using a Unitronics PLC  to control a transceiver.

    DanT

     

     

  15. Hi;

     

    A Note from Experience.

    A SAMBA PLC has Limited Memory !!

    When Adding  Unitronics VFD   Functon blocks  to a SAMBA, it takes up a lot of that available memory and leaves only a small amount for actual application programming.

    User program will have to be very small.

    ( In our case, customer ended up using Small UniStream PLC   to handle the program and the VFD)

     

    DanT

     

     

×
×
  • Create New...