Jump to content

Dave

Members
  • Posts

    113
  • Joined

  • Last visited

  • Days Won

    10

Posts posted by Dave

  1. Hi.

    I have a project that includes a Unistream controller and 9 EX-RC1's. I have followed the recommended procedure to set-up each EX-RC1, and  Unilogic. The Canbus baud rate is set to 500Kbits/s

    I currently have the controller and one remote station at my desk for testing. I can toggle the remote inputs on/off and see the immediate status change while online monitoring.

    When I switch an output on, I see the PLC status immediately change, but the actual output is delayed by anywhere from 1 to 30 seconds. The same applies to switching the output off....immediate status change in the PLC, but huge delay to actually switch off the output.

    I have monitored the in the EX-RC1 "UniCan M. Arrived" and it seems to be receiving this signal approx. every 40-50ms

    Could the delay be because I don't have the other EX-RC1's connected?

    Is there a quick and easy way to temporarily disable the other EX-RC1's in Unilogic? I don't want to delete them all and have go through re-configuration again.

    I have attached the exported file from Unilogic and also the file that is in the EX-RC1

    any help is much appreciated

    dave

    JB900-HW Export.ulri

    JB900.vlp

  2. Hopefully you've already figured this out, but just in case you haven't....

    If you want to prevent other programmers from seeing a particular screen configuration, you can right click on the screen name(in the Solution Explorer), then select "Password Protect"

    If you want to prevent unauthorized access to the screen during operation, you can assign a button on another screen("Main Menu", for example).

    Then, in the Properties Dialog box for the button, add a new "Load Screen" Action, then set the User Access property.

    In the Solution Explore, use the "User Access Control" to configure the different levels of access, as your application requires.

    I apologize for not being more detailed, but I am also a new to the UniLogic platform and just started looking into the whole password protection/user access system.

    The more I learn, the more I like!

    • Upvote 3
  3. Thanks Henny.

    That's pretty much what I ended up doing. Except I used the same offset(0), and used the insert option instead of overwrite, for the "copy tag to buffer" instructions. I was hoping for a single "convert"instruction where I could specify the source tag, offset & length. The bar code reader(which is what is sending me the HEX data) has a nice feature that allows you to select byte swapping via a simple checkbox, so I didn't need to concern myself with that task.

  4. I have 6 consecutive INT16 type tags that contain 2 characters each of ASCII characters in HEX format. I would like to convert/concactenate them all to a single ASCII type tag.

    Is there a simple way to do this? I couldn't find any conversion instructions and the sample project  I looked at (UniStream_070_Num_To_ASCII) seems to be an incredible amount of code to do a simple conversion.

  5. I configured a VNC Client using Connection 0 and  configured a password "PLC".  I am able to connect, using a VNC viewer application,  from both an I-phone and a desktop, but in both cases, no password is requested or required.

    Is this a bug, or am I doing something wrong?

  6. Does anyone have any experience using a Unistream to communicate with the SR-1000 bar code reader?

    I set up the scanner node on my Unistream. 

    I set the bar code reader's "Data Transmission" parameter to "Send After Read"

    When I monitor the input assembly status on the Unistream, I can see the I/O status, along with various other status bits dynamically changing, however the actual read data does not get transmitted.

    I wrote some code (10 lines of ladder logic) to send a Reading Start Request ( by manipulating the value of the output assembly registers) and can now get the read data transmitted with every successful read. (I still haven't figured out to convert multiple words of HEX data into a single String type tag)

    This is my first time using Unilogic and Ethernet/IP. It seems to me that I shouldn't have to use any ladder logic to accomplish a simple read data update.

    Should I keep trying to figure out how to do this without using ladder logic, or am I chasing a non-existent solution?

    ( I tried to upload my test project, but the file size exceeds the limit)

     

     

  7. Well....... it didn't take too long at all before I came across a need desire to transfer data tables to DataXport, more than once per minute!

     

    Client has DataXport set up to listen for calls from V570. These calls happen approx. twice every 8hrs and transfer one data table for each of two machines.

     

    The client cannot ensure that DataXport will always be open and the configured application running, so I added PLC logic to monitor the data transfer and if the transfer fails for any reason, the data table is saved to SD card.

     

    After a weekend with the DataXport being down, the SD card can accumulates up to 12 or more files. The client can later access the SD card using a "Variable: Browser SD Contents" screen object, and using the "Send file"  feature and some additional code, initiate a call to to transfer each file to DataXport.

     

    Transfer time per file is about 2 seconds.....however, I must force the client to wait for 1 minute between each file transfer to avoid DataXport overwriting a previous excel file.

    Time standing at the machine, 12 minutes, instead of 24 seconds.

     

    My only solution right now (although I'm certainly open for suggestions), is to write some code that allows the user to press a "Send ALL" button, then automatically send each file, one at a time, every minute.

     

    It would be SO much nicer if I could customize the filename structure that DataXport uses when creating Excel files........but if that's too much to ask,

    maybe DataXport could add a "_1", "_2", "_3", etc. at the end of the filename structure it already uses?

  8. Yes, I tried many times with no luck .....until just now.

    I found that when the dialog box opens after selecting "Project > Excel/.csv File Properties", the folder(s) that I created are displayed. I had them created on my C drive, but..... I found that none of the other folders on my C drive were displayed, nor could I browse to any other location(s) without first selecting one of the other drives listed in the dialog box.( I never did this before because the other drives displayed were CD & DVD drives that I knew were empty) Then, when I select the C drive again, I am able to see and browse through all the folders on that drive, and select a new location.

    Don't know if its a glitch or an oversight, but at least I now know how to work around it.

     

    Another discovery I made was regarding file names of the Excel files created by DataXport. The file names are created based on the following format:

     

    "Site Name\ structure name.table name_DD_MM_YY_HH_MM.xls(x)"

     

    When I transfer a data table from the PLC to DataXport more than once in any given minute, DataXport will overwrite the previous file because the file name format ignores the "seconds"

    This is not a major concern for my current application, but I can see it being bothersome in the future. Now that I have a "taste" of DataXport, I'm sure I'll come across an application later where I'll want to log more than one data table per minute.

     

     

  9.  It is oblivious to your template. 

    Joe T.

    That's exactly how it appeared when I was first attempting this., however, I downloaded the latest version of DataExport, and now it does indeed use my template. I was using version 3.1.9 and Excel 2013. I am now using 3.1.18. It works now with both .xlsx and .xls file formats, provided I have the appropriate extension(s) on my template(s).

     

    I have the data populating Sheet2 and my chart is on Sheet1, referencing the data area on Sheet2. When the client opens the file, they get a nice, fully coloured and documented chart of their cure cycle, with the back up data readily available for detailed review.

  10. I had to rearrange my logic a bit to get it to work with the positive transition triggerring the TCP/IP Connect function block. The attached code works perfectly and consistently......but only if I have both the laptop(with the DataExport running on it) and the V570 connected to office server.

    If I connect directly from my laptop to the V570, I cannot get it to work at all. ( I tried a standard cat5e cable and also a cross-over cat5e cable)

    If I connect everything to the office server (through a NetGear GS105 ethernet switch) it will work, even if I disconnect/reconnect the laptop.

    If I disconnect the server from the switch, connection and data transfer still works fine, until the laptop is disconnected/reconnected. Before I can get it to work again, the server must be reconnected AND my wireless adapter has to be toggled from either OFF-ON or ON-OFF.

    I don't think the issue is with the logic or settings in DataExport or in the V570. I think it is understanding the ip addressing/routing that is driving me nuts.

    This probably isn't the right place for this discussion, but, if anyone can shed some light on the physical connection method / addressing, I would greatly appreciate it.CommTest.vlp

  11. Hello.

    I tried to save a template that had a chart(on a separate sheet) that was linked to the exported data. I saved the template in "C:\Program Files (x86)\Unitronics\Unitronics DataXport\Excel Templates"

    when the data export takes place, the file is created, but without the sheet with the chart.

    Is what I am trying to do even possible? It would be really helpful if it was.

  12. OK....I have managed to get this working, however it is not consistent. I have attached the current logic. I am simply using a screen button to initialize the socket, then open the connection.

     

    Previously, I was using DataExport to set a bit that I used to close the socket connection once the data transfer was complete. That resulted in sucessful operation, but only once, after power up. I thought that the connection needed to be opened for data transfer and then closed once complete, but that doesn't seem to be the case.

     

    When I removed the TCP/IP Close instruction, and use the code attached, it works fairly well, but not 100% of the time. For example, if I press the button again, while the transfer is still taking place, the socket seems to "lock-up". Even if I wait until the transfer is complete, it doesnt always make the connection.

     

    I am wondering now if there is a "busy" bit that I should be making sure is OFF, before attempting to use the socket again.?

    CommTest.vlp

  13. Thanks for the response Alexander.

    I think I understand what you are getting at, however I can't seem to figure out how to establish the connection from the PLC ladder logic.

     

    Using Ethernet(Call) in the DataExport with TCP I have been able to sucessfully make the data transfer. In the PLC, I initialized the ethernet port using "TCP/IP CARD INIT" and initialized socket 0 to TCP, Slave.

     

    Then I set the DataExport to Ethernet(listen) and in the PLC, initialized socket 0 to TCP, Master. (with all the same port & IP settings as above). Then I try to open the connection through socket 0, with the "TCP/IP Connect", the socket 0 Status changes from "14 - Socket Initialized" to "0 - Connection Closed".

     

    Am I even supposed to be using the "TCP/IP Connect" FB to establish the connection?

    I have been struggling with this for a couple of days now and think I must be approaching it wrong.

     

    Any help you offer will be much appreciated.

     

    dave

  14. Nothing really important.....just fustrating that I have a V570 screen full of butttons with two lines of text on each one, but the one I need passworded, I can't figure out how to get two lines. Is there a special character to insert or a key combination that I am unaware of? I am using a numeric password object, but I've noticed the same for string password objects too.

    Dave

×
×
  • Create New...