Jump to content

Joe Tauser

MVP 2023
  • Posts

    2,860
  • Joined

  • Last visited

  • Days Won

    308

Everything posted by Joe Tauser

  1. I really don't think using relay outputs at 9 Hz is a good idea. This is a transistor output application. I think what you're seeing is the latency of the relay module response trying to keep up with the scan time of the PLC. The specification of the relay module is 10 ms response with a 100K cycle lifetime at maximum load (3 amps). You did not specify your actual load current. If your load is inductive (a solenoid) you have to take into account the flyback pulse which will add to the relay contact point degradation. You didn't say what your duty cycle is, so I'll guess it's 50%. The ON time of a 9 Hz signal at 50% is 55 ms, for a 111 ms total cycle. So if you're cycling relays at this rate and you go 100,000 cycles then you have 11,100 seconds before you hit the "rated" life. That's 185 minutes or about 3 hours. Usually relays go longer that their rated life because of less load, but that can go out the window if you're pushing solenoids, contactors, or even other relays. So let's say you get 1 million cycles. So now we're at 30 hours of operation be things start failing. I speak from experience and I'll bet that module doesn't last more than three months. I always use transistor outputs with those 6mm individual TB-style relays now. It adds cost, but when one fails it's an easy and cheap fix. Joe T.
  2. Yes, this should not be a problem. The Vision Modbus Examples use the same code as the Samba. Joe T.
  3. Don't linearize into a float unless you really need to. Change your output to an integer type - in your case the maximum of 10,000 will fit into an INT16. Then you don't have to do any conversion for the compare function. Joe T.
  4. X is the raw A/D input. Y is the scaled output. It's not as simple as assigning 4 and 20 for the input. The UIS-WCB1 module contains Analog to Digital converters that read the electrical signal and convert it to a number that is passed to the PLC. The Specification guide is located here: https://myzone-kza3sadj.netdna-ssl.com/wp-content/uploads/2015/12/UIS-WCB1-SPEC-9-151.pdf You'll see under Analog Inputs that the resolution is 14 bits. This means that at 20 mA the module will return 2^14, or 16384. 4 ma represents 20% of this, or 3277. So here are the values you need: X1: 3277 Y1: 0 X2: 16384 Y2: 10000 Joe T.
  5. It sounds like your 0V reference is floating between the scale and the input module. Is the ground from the scale head tied to the ground of the panel? What type of scale head are you using? Joe T.
  6. MI 30 is showing "-1" because the incoming stream doesn't match the defined Protocol block message. You didn't post the details of the definition for variable 2, but it's probably choking on the "+" sign. I personally don't use the predefined Unitronics protocol variables for the reason that the incoming stream format has to match EXACTLY or the Protocol Scan block will kick it out. Try adding a second variable that is a Stream variable 20 characters long, and set up an entry on the Memory tab at the bottom of the screen so you can see what's received. Then you can use the String functions to parse out what you need. Posting your code would be helpful, too. Joe T.
  7. It was definitely looping if you were calling sub 1 from sub 2. The watchdog was timing out. It's best to call all subroutines from the Main in a simple program. Joe T.
  8. Translated: Hello has everything I bought a water treatment station with a unitronics automaton and training program. The company has to close. I have the instructions with the ps connection (terminal block of the station.) On this station there is pump1, pump 2, a neon uv. A clogging pressure switch, a bladder balloon pretossotat, a water meter, a disconnector tank with high probe , Medium, low, I can send you cordially schematic jerome So what is it we can do for you? Joe T.
  9. They are the same thing. I think the Creators thought "Navigation" was a better word than "Explorer" in the version changes document but that didn't get communicated to the the object namer guy on the software side. Anyway, there is indeed a new category called Static under the display object collection but you have to drop a static item (line, circle, box) to get it to appear: It makes it much easier to modify your display, especially in the case of lines. That particular object is a bear to re-select once it's been dropped. Joe T.
  10. Don't use a timer. Make your own. I posted a program in this thread that demonstrates this- You should be able to modify it to meet your needs. Joe T.
  11. Twisted pair wire. There is wire specifically made for RS485 but I've found Ethernet cable works, too. I looked through the UniLogic Help and there's really not much on hardware connections. I'd recommend downloading Visilogic and searching it's Help for RS485. The Visilogic Help is much more thorough on this topic. With that said, it's really not this forum's place to be a teacher of basics like RS485. We just use it as a means to an end. It's on you to at least Google the topic - there's much more complete information available on websites of companies that make their living selling communication hardware and converters. Joe T.
  12. I split this request off of this thread, which contained a lot of information regarding talking to a Danfoss drive from a Vision controller- It also had a post by me with detailed instructions on how to get started with the software and hardware tools needed to troubleshoot Modbus communications. Miguel - start by looking at the Example Programs in the U90 software. They're under the Help menu and there's one for Modbus Master. You'll have to figure out which registers in the FC51 you need to write to. If you do a little research and post what you find here we can help. Also, upload any PLC programs you've done with questions. Joe T.
  13. You're going to have to be more descriptive of the problem to get help. Please elaborate. What is the model of the Visiontek? Did this ever work or is it a new problem? Upload both your M90 and V230 programs. Joe T.
  14. Sorry I'm late to the party- As UNICO2 has discovered, you can't go directly from a Vision to a Samba. This is not published anywhere, but Visilogic will not allow it. I spent a bit of time trying to get a V570 program to go into a Samba 7 with the same results. Here's what I had to do: 1. Export each subroutine individually 2. Export descriptors 3. Export all displays individually 4. Open a new project in SambaLand 5. Import everything I had exported 6. Copy and paste the logic from the Main subroutine. Don't try to export and import this, as by default every Unitronics already has a Main overwriting it locks things up. Maybe the Creators have a better way or can update Visilogic to do this for us. It seems like this should be something that's not that hard to do. Joe T.
  15. I bricked one myself when the UniStream first came out - I was using a 2 GB stick. Now I use 16 GB - they're fairly cheap. Joe T.
  16. Worst case you could program one of the RC1's to read another RC1 and then read all the data from the "sub-master". Yes, I know this a hack. Hopefully you can do it all from the UniStream. But I don't know. Joe T.
  17. Modbus holding registers are indicated by the prefix "4", but it is not used in the actual address. Store "111" into SI 142. Joe T.
  18. Contact support at support@unitronics.com to get the files. Then you copy them to C:\Program Files(x86)\Unitronics\Unitronics Visilogic_C\Os\Vision\V120 In Visilogic, go to Connection->Commmunication & OS and select the fourth tab over - Install Operating System. The OS files you just copied should appear there. Joe T.
  19. Yes. If you haven't already, download the U90 software and search the Help for "Modbus". One thing to consider - you will need to add the RS232/485 COM port module. The added cost of this module puts the total cost of the Jazz close to the price of a V130, which has a COM port built in and a lot more power than a Jazz. Joe T.
  20. I'm always happy to help someone who's been trying and takes the time to show or post their work. Your blocks look like they're backwards and you don't have the proper control register. Remember that a Linear block makes a straight line that progresses from Y1 to Y2 as the input moves from X1 to X2. Here's what I'm guessing you want, based on an analog output ranging from 0-4095 counts, some of the numbers in your blocks, and what you asked for in your first post: 20% = 819 counts 80% = 3276 counts Analog output to valve in MI 5 1. Ramp 1: 0% -> 20% over seconds preset stored in ML 0 2. Wait for a while - stored in ML 1 3. Ramp 2: 20% -> 80% over seconds stored in ML 2 4. Ramp 3: 80% -> 0% over seconds stored in ML 3 I made a state machine that steps through this sequence. The pointer is in MI 0. Take a look at the attached program. This was written in 9.8.64 Joe T. Ramp valve example.vlp
  21. We need to see how the linear blocks are configured. Can you post your code? Joe T.
  22. The V130 COM port connection is documented in the Technical Library section- https://myzone-kza3sadj.netdna-ssl.com/wp-content/uploads/2015/12/Vxxx_J_B1_INSTAL_GUIDE_11-151.pdf Joe T.
  23. The cheapest way to go is an M91-2-R1 - $230 US. RS485 is built into the COM port. You could also go with a Jazz JZ20-R10 ($140 US) with a JZ-RS4 RS232/485 com port ($99 US). If you don't need any I/O it will be much easier to use a V130-B1 ($269 US) which will allow you to use VisiLogic. U90 software is rather cumbersome when it comes to communications. Joe T.
  24. A 500 ohm resistor is the way to go. Or a 470, which is easier to come by and not a huge loss of resolution. You'll be scaling it anyway. Joe T.
  25. Totally un-Unitronics comments- I'm still running RS Logix version 9 - last of the key disks. Works great. SLC 500 hardware is an eBay purchase. Joe T.
×
×
  • Create New...