Jump to content

Swervomotor

Members
  • Posts

    95
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by Swervomotor

  1. Not really enough to tell what the problem is but it looks to me like you are using local tags in the function vs Global tags.  I wasn't aware of a limit but it makes sense there may be a limit to the number of local tags you can define per function.   I would check your Data Table name is in the global tags area. Outside of that I would contact support. 

    -Swervo

  2. To a .txt not that I know of, to a .csv which can be opened in a text editor, yes.  The way I've handled this in the past is to:

    FTP receive (go grab the original .csv file) 

    Convert CSV to UDTF

    Load DTI from file

    Make whatever changes in the data with PLC DTI functions

    Store DTI to file with .csv (Convert back to .csv)

    FTP send (send it back to the network folder)

    Also you can setup a Webserver on the PLC to edit table values and follow the same flow as above after making changes to update the (original) file on the network.  

    I usually have the PLC go grab the network file at Power on, and also have a button on the HMI and webserver to go grab the network file that way we can make changes to the data and re-fresh it on the PLC remotely. 

  3. Check the Panel IP address and program version number in UNI APPS by press and hold the top right corner of the HMI,  Make sure your IPV4 IP address under network settings on your laptop for the USB network adapter is on the same subnet eg( if HMI is 192.168.1.20, then you should be something like 192.168.1.30 with the same subnet mask eg 255.255.255.0)  Make sure you are using the same version of Unilogic that the project was downloaded with by confirming in UNI APPS the software version.  Lastly make sure you are on the same physical network, if you go through switches to get to the machine are they actually connected?

     

    -Swervomotor

  4. FTP is the way I do it,  I use filezilla but I'm sure you can use any of them. Just set up the FTP server on the PLC and use the credentials to go grab what you need. (Solutions explorer ->PLC communication -> protocols -> FTP-> FTP servers)  If you have a local server/NAS you can use the FTP function blocks pretty easy as well to do automatic send/receives. 

     

    -Swervomotor

  5. On 12/22/2020 at 11:11 PM, shane.platt said:

    I am a control engineer and was brought in on an existing project consisting of a Omron vision system and a Unitronics  USP-070-B10. I was tasked with adding additional measurement tools to the vision system. The vision system is utilizing an  10 indices array(float) nested inside a STRUCT. I am planning to add 50 more measurements to the vision system. I thought it would be easier to just increase the size of the existing array to accommodate the new measurements. After increasing the size of the existing array I compiled the project and oddly enough I had about 40 mismatches between the PC and the PLC including communication mismatches that were not there prior to the increase. I went ahead an downloaded the file to the plc. After the download was complete I could no longer connect to the vision system, nor could I connect to the collaborative robot that the Omron camera was mounted on. I generally only work with Beckhoff, Allen Bradley, or Siemens PLCs, so I am not very familiar with Unitronics. I know in the past 30 years of programming I have modified the index size of arrays on countless systems, and never had an issue. Has anyone ran across a similar issue when increasing the number of indices in an existing array?? I modified nothing else in the programming except for the number of indices in one array and literally nothing works.   Does this have something to do with the way the PLC is allocating the memory? I have never seen a option in any other PLC to "Reallocate Memory".  The documentation doesn' t mention "Reallocate memory" anywhere, so I have no idea when or why I would need to use that. Can anyone shed some light on that?? 

     

    Thanks,

    Shane

    I agree Support is going to be your best bet but I would start by looking at:

    How are they communicating? Ethernet/IP, Modbus?

    When adding vision "measurements" in the vision controller, does the communications struct that was previously running already have place holders for those bytes? Hard to put into words but if you made changes to the communication struct in the plc it would not match the output coming from the vision controller. In the picture attached if the input size changed (by adding components) unless your actual output coming from the Omron also changed size you would have a mismatch and it likely would not work. 

    -Swervomotor

    ip.png

  6. I realize this is not an answer to your issue but have you considered writing the Unilogic program to handle all the scenarios and use data tables for storing/accessing process specific data?

    I have done this where you separate all the different sub-routines then CALL them in order of the "process step" table for whatever part it's running.

    Then all you would need to do is send it the part name and do all your data/process loading inside the PLC. 

    -Swervomotor

  7. I've had 2 SD cards go bad this year. I think if you really need that 20 years of data you would find a redundant way to back it up.  A cheap NAS can easily be configured as FTP server and mounted remotely or locally. 

    The 32 limit is the default in Unilogic, you need to change that or it will start auto-deleting older files. 

    I'm not sure but I believe it also has difficulties with subfolders. 

  8. I would check the aspect ration of whatever "screen" (tablet with VNC viewer) and match that as close as possible to the screen. For instance I would go with the low cost Unistream 7" with a 16:9 aspect ratio and find a 10"ish tablet with that ratio. Scaling is done through the VNC viewer on the tablet. I use RealVNC as a VNC viewer and the scaling can be adjusted in the properties of the connection.

    On the Unitronics website I see:

    7" 16:9

    10.4" 4:3

    15.6" 16:9

    -Swervomotor

     

  9. You should be able to create a new file no problem, Do you need a new folder for each file? Or can you create a folder on the SD from a PC and store your files in that folder?

    Your method of backup you will need to change the SD file # limit from 32, but you might start getting issues with so many files on the SD card as time passes.

    We store them to the SD in a folder then use the FTP functions to send them to our local FTP server, then overwrite.   SD cards go bad.

  10. To be honest this could be easily accomplished with a micro controller (like arduino, ESP8266 or ESP32, or even a raspberryPi), power supply,  and a opto-isolated  relay board. >$100

    Unless you are trying to teach ladder logic or the unilogic environment it is quite overkill. IMO

    -Swervomotor

  11. I have not but am strongly considering a unistream 10.4 multi-touch for this purpose, or possibly a lower end model and VNC from a tablet.

    It has so many built in Coms I think they would be great.  I would need these questions answered (through research) before I decided to pull the trigger.

    Possible to interface with Mqtt? For voice control through voice assistant, cell phone app, and PLC control of existing networked smart "things".

    Power/cost study to determine if I can make the distances I would need to my entire property with centralized I/O or do I need networked distributed I/O w/local Power supply.

    To be honest I wish they made a POE arduino nano/micro/esp  for this purpose.

    I hate changing batteries so while something like a battery powered ESP32 would be great (2 cores, wifi, etc.) I need something that is POE or hardwired to central/distributed  I/O

     

    I'm sure you could do PC control for cheaper but I'm so familiar with the Unistream the cost difference is much less important then the learning curve and hardware/software troubleshooting.

    -Swervomotor

  12. I've had better luck (actually getting something done with IT) having IT setup an FTP Server on the network and giving me a client username and password.  I then setup the client on the unistream and FTP send to send the CSV on my end.  This way works better for me because then I can add a bunch of machines and don't have to have IT involved because I re-use the username and password. 

  13. I routinely find myself bouncing between 3-4 different revisions of unilogic depending on what version the program on the controller was created on.  I've only been able to do this by uninstall whatever version I have and re-install the version I need.  Is there a quicker way to somehow keep multiple versions on the same box without having to go through the uninstall- install process?

×
×
  • Create New...