All Activity

This stream auto-updates   

  1. Today
  2. We have a Unistream HMi which is connected to a remote Modbus Slave (Prosoft PLX31 Modbus Gateway) I need to read the bits from particular words which hold the status of sensors mapped to the Gateway tables. On the holding register entry page, it does not allow for just reading 1 bit of a word. Is there a work-around or some example of plc logic that will take that register and read the bits into a bit-array? Thank you,
  3. Hey guys, I'm often needing to use advanced modbus features because ill need to have dynamically adddressed slave ID's, or changing registers etc, etc and i cant use the built in configuration to do so. Also - the Advanced modbus still require a good bit of logic to be built in order to achieve a good Tx and Rx. I built this UDFB to be used as a single operation which accepts 4 Function In parameters, and one Function out. Example Ladder Note how the function is called, Param 'D' must be reset immediately after the function call: Ladder Image Input A is a struct with 4 members (Note that only one Arr at a time will be filled with the result data, based on your input to parameter 'B') resultBits[0-50] resultInts[0-50] resultUInts[0-50] resultRaw[0-99] The results of your query are stored here, depending on what value you use for input 'B' 1 = result store in resultsBits 2= result stored in resultInts 3= result stored in resultUints 4= result stored in raw buffer( for parsing floating point values etc, etc) Input 'C' is your input parameters for the MB request - Don't worry about the Modbus request, and request descriptor - these are handled inside the function Input 'C' is a struct with the following members slaveId functionCode = Standard codes...holding register = 3, etc startReg = starting register in slave length = how many registers(Keep in mind length of buffers etc, you can always change this) Retries = how many times to retry read request Timeout = how long to wait for response(5000 = 5 seconds -- 3 retries at 5sec each would be 15 secs for a failed attempt) Input 'D' is the Enable bit for the function to run - make sure to reset this immediately after the function call.(See image above) Output 'A' is a number with the following values 1 = read successful 5 = timeout (timeout * retries) 255 = ladder Error Let me know if i made a glaring mistake, or if you have any improvements! I'm sure i didnt do this as effeciently as possible - but, it does work for my purposes. I may add some more error checking and things later. Let me know what you think! Thanks, Matt MBR.ulle
  4. I have seen ports fail if there's been an electrical surge in the system. If you have a programming cable you should be able to login via port 2 - the system will recognize the Visilogic request and change the port parameters. Joe T.
  5. Com2 Port stopped working after a long period of operation. How to check the efficiency of the port hardware? Vision V280. Thanks!
  6. Yesterday
  7. Yes to all of this, and you're not a curmudgeon, Joe. You are a person who has experienced all the things that life throws at you, and get rightly annoyed. Many of my much younger associates think that I'm old and grumpy. I counter that I have heaps more life experience that they will eventually catch up on, eventually realising the things they now see as normality are often really stupid. They'll eventually be annoyed at all the ridiculous things done by government, morons, losers, users, and all the other human failings/characters one encounters. One of my favourites is the client who whinges about annual maintenance fees of complex stuff. They don't understand my insistence that routine servicing is necessary and think my minor bills are high. It's essentially a big, complex machine running 24/7 and doesn't miss a beat because of my care. Yet these same complainers think absolutely nothing of the vastly larger annual service costs on their whizzy cars that maybe work 600 hours annually. When I bring this up it is "different". What garbage.....cars are just machines! There's nothing wrong with having a rant now and then! It lets steam out of the boiler. cheers, Aus
  8. Hi again, I haven't tried the latest versions so if this fails someone else or the creators will need to step in. That said, I would definitely try redoing all your various installs as run as Admin and do the copy bit for virgin copies, as you have done. Remove all the unitronics programs and perhaps even try a manual check of the registry to get rid of anything somehow left over. A registry cleaner would likely help here. Then start again with the different installs you need to have on your system, running all of them as Admin. I would use the latest swapper. This will be tedious doing all the previous version installs over again etc, but I think it is worth a try. I always run anything I get from Unitronics as Admin, both the install files and the program. Also, in case it helps, what Windows are you using? If you are on 10, can you try it on 7 on another PC, or setup your PC as dual boot? 10 continues to mightily annoy me with my "10 test" laptop. It forever does huge downloads of updates eating into my limited bandwidth, changes methodology, breaks working stuff, changes settings back to what Msoft wants, and those same changes make the laptop unusable for a while.....just when you need it to work quickly. cheers, Aus
  9. You should not be using Information Mode to make changes you want to keep. The PLC is just doing what you told it to. It's OK to have multiple Com Init blocks. Each time you call one from the program the port will immediately take on the personality of the last Com Init called. Joe T.
  10. The Alarm Config Utility may be overkill for what you're trying to do. An alarm here goes into the alarm manager with a time and date stamp and is shown on the Alarm Manager display, which must be called. Are you looking for this functionality or do you just want a red box to appear on the display when the alarm happens? It's always a good idea to post your code when you have a ladder question. Joe T.
  11. Hello, I just got informed about an issue with the program I have made for a Samba SM35 regarding Modbus settings. I use a Com Init block directly after a power-up bit that initializes factory com settings. If I enter Information Mode and change the serial settings for RS485 there, everything is fine until a power loss. The settings are overwritten at power-up. Is there a way to prevent the settings from getting restored to Com init settings after a power-loss or unit shut down?
  12. Hi All, I have a V430 and wish to implement a basic alarm system whenever a motor goes 'over torque'. I have set up the alarm in the 'Alarm Config Utility' but cannot get the alarm window to display. I have even tried to map the ladder function 'show alarm' to a push button on the HMI. When I monitor the ladder function I can see the push button energising and de-energising but the alarm window never shows on the HMI. The alarm trigger bit is also energised. Thanks in advance, Jon
  13. Thank you for your reply, this is perfect.
  14. Thanks Aus, i did not mention that i also copy Visilogi_C and rename it according to the latest installed version, as you suggested. Only thing i did not do, i did not run installation files as admin. I always use Swapper which is in latest installed Visilogic pack in Visilogic_C folder. Should i try to reinstall everything as an admin and which Swapper should i use? Thank you
  15. Last week
  16. Here are Andrew's schematics- On to the question. The TetraCon 325 is the actual conductivity sensor, which must be connected to a conditioner/amplifer. You have mentioned a WTW LF96 for this. Clicking the English flag for the link you posted reports that particular item is not available, so we'll move on. Page 4 of your schematic shows the analog inputs, which you currently have as two wire loop powered sensors. If whatever conductivity amplifier you choose has an analog output, it is most likely powered by the amplifier. So you connect the + of the analog output to AN4 and the - to COM on the module. Joe T. electro schematics.1.pdf
  17. Hi Ofir, Tnx, I will implement it like you proposed... Grtz, SRO
  18. @Joe Tauser please check your Email, I sent you a pdf with shematics. @Flex727 yes i did, thank you for info.
  19. Hi, You can do it as following: when sending data from UniStream you determine in your logic that the first integer will be message number. Each time you wish to send diferent data change the message number. Then when vision receives the data, check the value of the first integer and copy it to the right location. For example you wish to send 124 bytes: prepare 2 vectors of 62 each. When you wish to send the first 62 bytes set the first integer to 1 and copy it to the vector you defined in UniCAN node. Then when the vision receive the data check the integer value and copy it to the right vector. When you wish to send the next 62 bytes set the first integer to 2 and copy it to the vector you defined in UniCAN node. etc..
  20. So I answered a post yesterday where the user was concerned that the cost of the controller was over $500, implying that this amount was putting the project out of reach. This morning a few of the things we take for granted and never question came into my mind- Decent tires for my Jeep cost about $1,000 A new cell phone costs $600, but it's a "free upgrade" because it's rolled into your next 24 payments A trip to the grocery store for a week or so of food is $300 for a family of four My furnace/AC upgrade to a high efficiency unit was $7,000 Getting my car fixed by someone else is usually about $600, no matter what the problem is. Sometimes it's a lot more. Health insurance is >$700 / month And so on..... It seems like machine controls get the short end of the stick a LOT. Why is the perceived value of what we provide so small? Systems I've installed are still running fine after 20 years! I know not every customer feels this way, but it get this response frequently with people new to control systems. I'm afraid I'm not far from becoming a full-fledged curmudgeon. Joe T.
  21. Adding Modbus I/O to a Samba will quickly push the system price above a Vision. The Samba is not intended to be expanded. I, too, know my way around electronics. The Nuts and Volts magazine I subscribe to has proven time and time again the ingenuity of what can be done with a basic microcontroller, some external function-specific ICs, and some well designed circuitry to connect a 5 volt brain to a 24 or 120 volt world. PLCs have gotten ALOT cheaper since I started in the biz, but they are not in the same leaque as a controller like an Arduino or Raspberry Pi. You're paying for a canned system where someone else has figured out the interface circuity, professional finished appearance housings, and ease of programming. So many programmers I know do not value their own time. You are wise in not wanting to make a system you'll be married to. If your experience is with microcontrollers you're going to experience sticker shock with PLC hardware. But you can have a finished PLC control system in a couple of days, once you've learned ladder logic. Unitronics is by far the best bang for the buck in PLC land. I can't say I've programmed them all, but as a system integrator I've programmed many. Your own research has proven this. Figure on spending about $1,000 on hardware for a capable V350 system as you describe, which includes a three channel load cell interface module. You can shave a few hundred dollars off with a monochrome V130. The color touchscreen does look a lot better, though. Joe T.
  22. Hello, I'm new to the forum and to the world of PLC controllers. I've been in electronics for over 10 years (first hobby, then study and now work). A lot of hardware design and also software, but mainly C, java and vhdl. So i know my way around electronics, but not this kind of stuff. I hope you can help me with this. I want to automate a machine with a PLC. As tI won't be around the machine all the time i don't want to make custom, impossible to replace hardware for it. It's not completely sure yet, but at this time i have these needs for IO: 16 relay outputs 11 digital inputs 1 analog output (0-10v) maybe an analog input, but that's not certain I probably also have to read 3 loadcells, but i don't know yet what kind of unit (bare or with controller outputting a normal analog value). I'd like to use a nice touchscreen interface on the machine. Therefore i initially landed on the Samba system. But i now found out it doesn't support extra IO. Only via an expensive external controller option. Another option i found was the vision systems, but text based hmi's already hit the 500 dollar mark and i haven't even looked at the touchscreen versions. Therefore i slightly suspect it's an extremely overkill system. As for functionality i think i can make the sacrifice for a text based hmi with the buttons around it (like the v120). The functionality the moreimportant A third option i found was to use cheaper modbus IO module on a samba system. What do you guys think in terms of hardware? I'm a total noob on this type of systems. And as a part time worker, part time student, there is a concern for budget. As for the software, i'm driving a motor and a number of valves. The program wil largely consist of a number of states which will drive the motor and valves for certain times. On the hmi panel, some of the states are initiated and some of the timer values can be adjusted. Hope you guys can point me in the right direction. For the past days i've been searching across countless manufacturers and systems to no avail. Thanks in advance timberleek
  23. Hey all, Can someone point me in the right direction how to make a Unistream PLC send/receive more than 64 bytes in one scan cycle from/to a Vision Standard PLC (eg. V120-22-T2C)? Setup: - V120 equipped with 24 Analog In & 12 Analog OUT - 7" Unistream PLC without I/O - Both connected through UniCAN I know a Vision PLC is able to send/receive up to 512 MI's in one PLC scan cycle through UniCAN. And has no problem sending/receiving multiple messages to/from the same Node ID or multiple Node ID's. In my setup, I want to receive the status of the I/O of the V120 along with some other variables into the Unistream PLC. 24 analog inputs & 12 analog outputs already sums to a total of 36 MI's or 72 bytes to pass to the Unistream. But the Unilogic software gives me only the possibility to create just 1 configuration per Node ID and the tags for receiving/sending can only be as large as 64 bytes. Otherwise, a compile error will occur.. What is the preferred, correct way to accomplish this in the Unistream without having to use a EX-RC1? Grtz, SRO
  24. Yep, Honeywell's programmers have done it all for you on that one, including the fuzzying of the logic to learn your system's abilities. However, a V350 will certainly do what you want with some effort put into it. For now you could do the simple hourly verson quite easily and evolve the other versions over the months ahead. Good luck. Aus
  25. You've learned one of the PLC truths - they are a blank slate and their function is TOTALLY up to the programmer. There are no canned programs that fit everyone's needs, because at the end of the day a seemingly simple requirement has a little user twist - like your requirement for different temperatures on different days of the week. I don't know if you can adapt a commercial product, but I did a little searching on programmable thermostats and found a Honeywell RTH8500D that allows four setpoints on each of seven days- http://yourhome.honeywell.com/en/products/thermostat/7-day-programmable-thermostat-rth8500d It was definitely an interesting discussion! Joe T.
  26. You may be able to buy an off-the-shelf programmable thermostat that will meet your needs, but if you want a PLC to do this job, you will not find an easier or more straightforward programming environment than Unitronics VisiLogic. Best of luck to you.
  27. andrew39, have you uploaded files on this forum previously? If so, the upload limit is cumulative. Go and delete the files you previously uploaded and your upload limit will increase.
  1. Load more activity