Jump to content

Eyal Koren

Members
  • Posts

    259
  • Joined

  • Last visited

  • Days Won

    11

Posts posted by Eyal Koren

  1. How does the function block actually work? I assume MB2 in this case turns to the on state when it is in fact safe? That being said, does the function block stop recording to the SD card when that bit is on? Please confirm that the function block actually does something more than just being an if then statement.

     

    Thanks,

     

    Dan

    Hi Dan,

    What the function does is as follows:

    1. Wait for the currently SD command to finish.

    2. After all currently activated read/write tasks are done, it does not allow further tasks to initiate. 

    3. A success bit will rise, indicates that You can safely remove the SD card without the risk of corrupting data.

    • Upvote 1
  2. Hi Ronald,

    UniOPC Server is compliant with the OPC Foundation's Data Access Custom Interface Standards through to Version 3.00.

    Unfortunately, is does not support HDA.

    It is also not possible to read data directly from the SD card.

    One possible way to automate this process is as follows.

    1. Create a subroutine on the PLC that will be initiated either periodically or by the SCADA.

    2. In the subroutine, extract the data from a data table to a vector of MI's (using the "read row" or "read column" commands).

    3. send the vector to the SCADA. If the vector is longer than 32 MI's, you will have to send it in chunks.

     

    It is not the most elegant solution, but it should work.

  3. Hi Dan,

    Unfortunately, you cannot read a CSV file from the SD card to the PLC.

    However, you can change your logging system in the following way:

    1. log all your data to data table(s).

    2. Periodically export the data table to a UDT file. You can either create a new file or append to an existing file.

    3. When needed, you can import the UDT file (or part of it) back to a data table and use the data as you will.

     

    Hope that helps

  4. dan_lorentz,

     

    Surely it can be one by numbers of ways. But again I've been asking the same questions as you questioned too on your last line word.  

     

    Alexander,

     

    Could we have a straight answer(Yes or No) to the question " will the PLC or the code crash when SD is full ....?" 

     

    Hello Ozone,

    When the SD card is full, bit 6 in SI66 will turn on. 

    No PLC crashing (or other functionlities) is related to that case.

  5. Hi Tempo,

    There are several ways to measure the interval between two events. One of them is actually what you suggested, hence storing the timer current time into a variable.

    The attached application demonstrates how you can do that (with several other features).

     

    This application was taken from the U90Ladder sample projects folder. There are several other timed based applications, so you can check what method is better for you.

    If something still isn't clear, please let me know.

    Timer values Store and Load.U90

    • Upvote 1
  6. Hi,

    It is possible to receive an SMS with mixed constants and numeric variables. I attached an application i modified for your convenience.

    Please open the application and go to the SMS config function block.

    You will see the MB1 is activated when message successfully received, and the time value is stored to three different MI's.

     

    Please note that to send a variable, the syntax needed to be sent from the phone is as follows (let's assume that the time is 11:11.11):

     

    FIRE at Station 2 Time #11#:#11.#11#

     

    Just to make it clear - for the PLC to recognize a variable, you need to wrap it with pound signs

    V120_SMS_Sub_Stations.vlp

  7. Hi Milen,

    Unilogic has only one type of floating point data type, which is the single precision (32bit). Unfortunately, there is no way to convert 64 bit floating point value to 32bit floating point value, because Unilogic cannot recognize this data type

    (in general, this conversion is possible in environments that work with 64bit values, but you will lose a significant part of the precision or will receive a result of +inf or -inf if the value is too high)

  8. Hello Dorian,

    If you wish to initialize the operands after download, please do the following:

    1. In Visilogic, go to the Connection menu. Select the last option - Communication&OS.

    2. From the opened window, select the second tab from the left. On the bottom of the window you will see "Reset Options". Select "Initialize and Reset".

     

    This is a very useful tool for cleaning up the values remaining in the PLC. Please note that all the values that are not predefined as "Value at startup" will be reset to zero.

  9. Hi Laura,

    For a start, there isn't really a "best" way. Both protocols are doing the same job, on the same physical layers, in (approx.) the same speed.

    Before making a decision, more information is needed:

    What type of communication are you using (serial/Ethernet)?

    what is the distance between the PLC's?

    Are there any other devices connected to this network?

     

    If using Ethernet for communication, it is easier (on my opinion) to define the PLC Datacom function blocks for data transfer.

    If using serial communication, Modbus is the fastest protocol to set up in your system.

    • Upvote 1
  10. Hi Dorian,

    For storing predefined settings for your application or working with recipes, the recommended solution is to work with data tables. Data tables are areas in the PLC memory where you can store and retrieve data during runtime, and also export/import this data to Excel. You can store predefined settings for different machines, and also enable changing these values by the user.

    For more information, please refer to the Data Tables section in Visilogic help file. Also, there are plenty of application examples you can explore in Visilogic

  11. Good morning, I misspoke, I have hardware that is V1210, the modules are expancion EX D16A3-TO16 RC1- IO and others are thermocouple, IO ATC8 number 14. What I need to do is to know if the machine working, having said that queire angular velocity for two reasons, the first is to activate the alarm system pressures (oil-water-air, etc.) and second control not exceeding 800 rpm. This I am thinking of doing with two inductive sensors, one main and one auxiliary.

    I hope I was more clear and I apologize for the English is not very good.

    I await your reply, Regards Francisco

    Your main focus should be in selecting the right sensors for this task. I suppose that by inductive sensors you refer to proximity sensors, and that it is mechanically  feasible to install such sensors in a way that will sense a change in distance for each revolution. After obtaining a suitable sensor (main selection criteria is distance for sensing and frequency) all you need to do is define the sensor in your the Visilogic hardware configuration.

    You have several options for high speed input:

    1. define the input as counter - in that case you will have to build your own logic to calculate the frequency.

    2. define as frequency measurement - in that case the input you will get is the actual frequency. There are 3 window frames to select from: 125ms, 500ms and 1000ms. Select your window frame according to the desired update time.

     

    I hope that answers your question.

    post-20103-0-19710700-1416310456_thumb.jpg

    • Upvote 1
  12. Good afternoon, I am needing to make a tachometer (RPM) of a generator to see if they are working or not by the activation of alarms. I'm currently using a PLC Vision 1210 and a module with a module RC1 EX D16A3 IO to16. This module is because the large number of analog inputs has the generator set. I tried doing a window of 5 sec and count pulses that enter but has failed me. Would need a hand to move forward with programming.

    Best regards from Argentina.

     Troche Francisco

    Hi ftroche,

    Please send the tachometer model, or more preferably the datasheet of the product. Before getting to the solution, we first need to know what is the communication protocol that the tachometer works with.

  13. Hi Nildo,

    There are several application examples in Visilogic that utilize PID functionality, specifically for temperature control.

    To access them go to the Help Menu, select the Examples icon and search for the PID folder.

    That should give you a good practice of how to begin with your project. 

    • Upvote 1
  14. Hi, we will be happy to connect you with relevant people, please send Holly.Dillon@unitronics.com information about your location and needs.

    In addition, we have recently started a program for system integrators, we believe it will increae our ability to recommend people over time.

    A job board is a good idea – we will see what we can do about that.

    On the top of that, you are more than welcome to contact our free technical support service at support@unitronics.com and you also will find our forum quite useful for many of your questions.

     

    Thank you for your valuable feedback!

  15. Thank you Eyal.

     

    It has worked very well for single MI, yet my challenge is passing stings on the data tables.  I didn't think there would be an simple solution, however I have become a little more creative.

     

    Regards

    Good luck with that Mike.

     

    If you need further support you are more than welcome to contact us at support@unitronics.com, or keep posting in the forum

  16. Hello Everybody.

    I am trying to establish a communication using UDP protocol with a third part PLC (ABB AC800F).

    It seems that the content of the heater is not the same into the Unistream PLC that into the ABB

    Can somebody give me the structure of the header used by Unistream PLC’s for UDP communication.

     

    Thanks a lot

    Hi Huin,

     

    According to the ABB catalog, UDP communication is used for display updates and communication between ABB controllers. Basically, you can use the TCP PROTOCOL function block to directly influence these elements, but i cannot see a good reason to do so.

    Instead, use the MODBUS TCP protocol for communication. It is a well established protocol which will prevent messing around with low level communications and will make your life easier.

  17. Here are the details of my system:

    Win7 Professional, Service pack 1, 64bit

    8GB RAM

    Intel Core i7 4510U

     

    You mentioned updating Visilogic, I am not sure that I can because we use Uni350-35-r34 and we have older firmware in ( and we have o lot these PLC so it is not possible to update all of them). And second reason is all my company use version 9.3.1 when I create project in 9.7.9 version will they abble to open it?

     

    To fix this issue in Windows 7, please do the following:

    1. Press the Start button. From the search pane type "display".

    2. From the search results select the first one, titled "Display".

    3. Make sure that the font size is set to "Smaller - 100%", and not 125% or any other custom size.

    4. Log off and back on, start Visilogic and you should get the operand description correctly.

     

    Regarding your other question, unfortunately it will not possible to open newer applications in older Visilogic versions.

    Please let me know if this issue is fixed

    • Upvote 1
  18. Hello Easy700,

    The issue you are describing is probably caused from trying to activate a coil more than once in you application (O0, O1 or both).

    The whole principle of PLC ladder programming will not allow this.

    However, if you are willing to activate a coil from more than one place in your application, you are free to use the Set/Reset coils however you like.

    Please note that this is not a bug nor a phenomenon related to Unitronics products.

    For further information, you can look up "Double Coil Syndrome", or look in this post: http://www.plctalk.net/qanda/showthread.php?t=4365

  19. Hello, i found the manual while looking for more information about this subject. 

    Title is "Unitronics Data Tables DLL" .

     

    Unfortunatly, i am still looking at how to save as .udt. 

    Hi Marco,

     

    The last page of the document refers to the "Save function". Did you try that?

     

     

    "The Save(string filePath, FileType fileType) saves the table or tables into a file.

    Please note that choosing FDT or XML saves the entire DataTables structure and values into a file.

    However, a UDT file can only contain 1 table. In this case dataTables.Tables[0] will be the table that will be saved to the file.

     

    For saving a table into a UDT file other than the first table, please use either one of the following overloads:

    • public void SaveToUDT(string filePath, int tableIndex)
    • public void SaveToUDT(string filePath, string tableName)

     

     

    Another important note is that UDT file cannot contain a table that has PartOfProject columns. This means that trying to save a table that contains PartOfProject columsn will result an exception! "

  20. Hi,

    Thank you

     I understood, I need to write more then 20Net in Ladder (configured  PWM,enable output, linearization acceleration/deceleration ..)

      But it is project for one or two little machines.

     I wanted to know if I can start the project with jazz or should necessarily pass to other PLC.

    (JAZZ is simple and cheap )

     

    Regards,

    BAHO

    Hi Bettim,

     

    As Alex mentioned, you can use the Jazz for controlling a stepper motor driver, but you will have to develop more sophisticated capabilities yourself.

    As an alternative, you can use Unitronics Vision PLC's (V350 or V130 TR models). they offer:

    1. PTO function blocks - enabling easy definition for stepper motors, profiling of acceleration/deceleration, relative/absolute move functions and more.

    2. Visilogic - A modern development environment packed with features. Very easy to master.

    3. Expanding your project - unlike the jazz, Vision PLC's are expandable in terms of I/O.

     

    Obviously, the Vision PLC's are more expensive than Jazz, but you may consider the time saved for developing your application in Visilogic worth much more than the price differences.

  21. Hi Mike,

    With Unican, you can send up to 16 MI's in every message. you can extract a data table row to a vector of MI's and then send it to each of the PLC's in the network (depends on the size of the data table - you may need more than one Send Unican function block to send the whole row.

    I made two applications to demonstrate a way to make this work. The first will send a whole data table row in a sequence that will send the whole table in the same subroutine, while the second will receive the data and distribute it to create a duplicate of the original data table. Please note that this is far from ideal and is only suitable for small data tables (if the table is too long you will get a watchdog error do to scan time length).

    A more sophisticated solution is to create a logic that will send only the values that were changed by the user. This will prevent high traffic over the bus.

    Also keep in mind that you need to send these messages to every unit separately.

    V570_Unican_receive DT.vlp

    V570_Unican_Send DT.vlp

×
×
  • Create New...