Jump to content

DanT

Mobile App Beta
  • Posts

    298
  • Joined

  • Last visited

  • Days Won

    20

Posts posted by DanT

  1. Hi Jalal;

    Sending and receiving text over serial :

          Under   FB's       Protocol Send and Protocol Receive  - Text and variables

          Under Help  - V9_0_0_   Project Examples - Communications -  FBProtocol          some examples

    VisiLogic does have some string processing functions.

    Strings and ASCII   Characters  are stored in MI's    -  Best read  as   HEX  -  have an  ASCII chart handy

    Search   HELP   -  Contents-Communications-Communications FBs  - FB Protocol

    DanT

     

  2. Hi Igor;

    ( expansion of Flex's Post)

    V230 is an older  Unitroncis PLC  product.

    Simple Answer :      Stop - Download - Run  -  best option,  take machine off line first, then   do the stop-download-run   then put machine online to test and run.

                                             Stop-Download-reset   -  Stops the PLC program, Takes the download, and restarts the PLC as if is is being powered up.

                                             Download       --    downloads in the background  and if necessary will stop and then run.

                                            Depending on the modifications,  VisiLogic may decide to do the reset.

     

    Upload   -- V230 being an older product,   Program Upload is only restricted by a Program Password.     

                                   No Password - Program is uploadable

                                  Password protected - upload will ask for the password.   Do not know the password ?   - not uploadable

     

    Some consideratons :

           How old is the PLC?   What is the condition of the internal Battery?   ( info Mode   SB8  ( System Bit 8 )    Battery  1= LOW  - needs changing.

           Since Battery is inside the PLC,  Best to Back Up Memory  before doing  -

                                        - Changing Battery with Power OFF will clear memory and changed  from default settings  - like timers and MI's  (counters)

                                          - VisiLogic   - Connection -   Export Operands to Text File    ( or Binary File),   Import back after battery is changed.

       VisiLogic - What version are you using ?   an older version from when the PLC was installed ?   You will probably be OK.

                  A Newer Version  used to edit the program will force you to upgrade the OS in the PLC to be compatible with the newer version of VisiLogic.

     

    DanT

    • Upvote 1
  3. Hi;

    Methane detectors and Unitronics PLC.

    Unitronics   PLC's  support Modbus Protocol by default - it is built in.

    Most smart devives will also have Modbus Protocol support built in.

    Let  Modbus be your friend - Look for a Methane device that supports Modbus Protocol, and have either a RS485  or Ethernet Ports -  and let them communcatethe data between them.

    The Device  manual should contanl all the relavent information about the Modbus registers to use  to exchange the data.

    The Unitronics PLC - Vision  or better  Unistream   can be set up to poll the Methane device  regularly for the data.

    Download the software and example program files and look at the sample programs - Communications - Modbus   as a guide.

     

    DanT

     

     

  4. Hi;

    As a note :

    Take all Grounds to 1 Point( localized area)  as Kratmel   illustrates.

    Do not Daisy Chain them. The noise just gets amplified as each ground is added  ( more resistance) to the daisy chain, and can find a new less resistive route route( maybe thru the device)   along its way.

    A single point ground  will greatly reduce the chances of these electrons going back thru devices. They want to get "home " the easy way, less resistance the better.

    Milli Ohms do add up -- to trouble.

    DanT

  5. 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

     

  6. 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

  7. 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

  8. 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
  9. 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

  10. 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

     

      

         

       

  11. 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

  12. 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

  13. 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

     

      

  14. 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

     

     

     

     

     

  15. 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

     

     

       

  16. 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

     

×
×
  • Create New...