Jump to content


  • Content Count

  • Joined

  • Last visited

Community Reputation

2 Neutral

About Swervomotor

  • Rank
    Advanced Member

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. What are some ways to speed up screen changes in your project? I have a screen with 9 data tables (1 visible at a time based on the value from a combo box) and about 30 buttons (same only 3 visible based on combo box value) It takes about 5 seconds to load this screen. What are some ways to speed up screen changes and optimize HMI design?
  2. This ^^ I think this could be done in less than 10 rungs. One idea of process flow is: Function In: Last Row to read Local Variable: Value1 variable SumTotal = 0; RowIndex = 0 Do until RowIndex = last row to read Get Value from current row index (built in function block) and move it to local variable (store) sum (SumTotal + Value1) Index RowIndex Loop SumTotal = Function Out.
  3. Lifo table, you could pretty easy build a UDFB that took as a "function in" the # of rows that you wanted to SUM the specified data, then with the help of an increment run through each row and sum to a temp local variable, then move that to function out and reset the increment. You could then just change the # of rows (which would be at a fixed sample rate) to get your 24h, 7d, 1M Function Outs.
  4. My suggestion would be a Data Table Index to store you data. Then use a combo Box and give each "index" a title 0-50. (or however many you need) Use the selected index # in a "read row from DTI" and use the index # as the row number (parameter B). I would use the "tag selected" bit in the combo Box configuration to pass power to the "read row from DTI" then add the reset to the end. You can always add a data table to the HMI to view the raw data. If your program gets more sophisticated and you need to do some automatic table searching you can use the other DTI functions like "Find DTI Column Value" to get the row index #
  5. What I mean by hacking the firmware is just using their hardware but taking their server and software out of the equation off the device. Basically loading your own ESP8266 type firmware and running it off your own app/P2P/Mqtt backbone. I can't build a relay with ESP8266 for what I can buy one of these for. I have not tried it yet but it may come into play in future projects. Right now the work doesn't justify the end. As security is not really a concern on my light switches haha. If I was going to integrate these across more security sensitive applications I wouldn't as it stands.
  6. I use these around the house for lights and ceiling fans: https://www.itead.cc/sonoff-wifi-wireless-switch.html They can be had for less than $5/each, if you trim the ends off they fit in a US standard box and I wire them at the light switch in parallel so in the event they go offline I can still operate the lights via the switch. They work with alexa/google (through the vendors server) and the wife loves them. It's basically a 10a wifi relay. Would I trust them in an industrial machine? no. To turn on my light? yep. They are "hackable" in terms of loading your own firmware aswell. Seems like the IIot makes sense with one caveat. Only on a local network. With a central Server that hosts the control. I can see data being able to exit but control not being able to enter.
  7. Hopefully it will come in the next release fingers crossed. I understand, I was a Mod for a long time on a couple forums and usually we had a minimum # of approved posts to deter spam accounts. Seems like stuff around here gets approved pretty quickly so not really a big deal just wondering when my orange bar of shame would be lifted.
  8. This may seem trivial but is there a way to define the zoom setting in ladder editor so when you open it it starts at say 70% instead of 100%? I did not find anything in the Project-Options but was hoping it's somewhere else? I have 18 "modules" that I need to open and close regularly and when I re-open it, boom Gigantic. Additionally, to the mods: How many posts do you need before your comments and posts need to be approved?
  9. Thanks for the responses, the ole Copy-Paste-Delete all rungs was the only way I could get it done. I was hoping the labels were stored in a table somewhere that I could just re-order or drag-n-drop in ladder editor would be awesome. I will be more diligent with my planning next time. This project has ~ 50 regions so far.
  10. Sounds like you could create a UDFB to 1. "Find DTI Column Value" 2. Insert row data into a holding struct 3. "Write Row to DTI" Your Function IN could be a variable with the data type you are searching for in step 1 above. This would save you lots of code if you need this multiple times.
  11. Is there a way to re-order regions? in the ladder?
  12. Not sure but I get a Red X, when I tried to change it to C : it went away but I was connected to the drive as shown in the picture below. I ended up running into all kinds of problems trying to update the firmware. "identifying hardware" death loop when trying to connect over USB, "failed Update" when updating via DOC formatted to FAT32. I ended up giving up with trying to update and just downloaded the old version of the software then uploading, making the changes, and re-downloading. I just don't understand how you cannot even connect to a PLC with older firmware to grab the program off it. Using any of the connection methods PC-PLC communication etc.
  13. Why does Unilogic force me to update the firmware on the PLC even to just upload from the PLC? I'm trying to make a small change (ethernet IP scanner IP addresses) and when I try to open older version of unilogic it won't let me create a blank program to be able to go "online" and upload. So I go to newer version of Unilogic and create a blank program try to go "online" an it tells me I need to update the firmware on the PLC. So now I have to: 1. download the latest version of Unilogic onto a laptop 2. go find the PLC on the factory floor 3. OPEN THE CABINET 4. Connect USB drive or cable 5. Update Firmware 6. Hope the firmware update doesn't wipe the existing "upload" file Has anyone ever considered backwards compatibility??? This program was created less than 7 months ago.
  14. Unilogic on PC ----> PLC Setup "Panel Ethernet" Make sure PC is on same Subnet. example: PC IP PLC:, both same subnet You can do this from the PLC Uniapps screen or download from unilogic with USB cable. Connect ethernet cable from pc--->PLC either directly or through a switch. Then click "Online" put in the PLC Panel Ethernet IP address and click "Online" Unistream ---> sick Ethernet IP communication is through "CPU Ethernet" you need to set up device IP, Subnet, making sure both devices are on the same subnet. Connect ethernet cable from SICK--->PLC either directly or through a switch. You need to setup PLC Communications-->Protocols-->Ethernet-->Scanner---> add a scanner with the manufactures provided assemblies. You will have to build the input and output assemblies I recommend building structs then creating a global tag as "type" struct. If you want to access PLC screen from PC You can use a VNC viewer Or build webserver screens and access from any internet browser on the network.
  15. I think Unitronics is working on an EDS importer but for now we have to build them. I have structs for the SMC EX260 and it is just a few bit arrays. Maybe this will get you on the right path.
  • Create New...