Jump to content

PeterFukt

Members
  • Content count

    31
  • Joined

  • Last visited

  • Days Won

    1

PeterFukt last won the day on August 19 2016

PeterFukt had the most liked content!

Community Reputation

2 Neutral

About PeterFukt

  • Rank
    Advanced Member
  1. Thanks for the help. I think I got it to work finally.
  2. Hello VisiLogic creators! I see that this function is still not implemented in the program. I have made a program that use several linearization blocks and for each one, I must use two compares and two store direct to prevent the output from getting false values when the input goes outside the X1-X2 range. It would be great if you could implement an option so that the Y value only stay within the Y1-Y2 range, even if the X input is larger or smaller than the X1-X2 range. Any plans of doing so in a future update? Best regards Peter
  3. Thanks Joe and Hotwires, I think I might figure it out. Some code would have been very helpful. To much to do but no time for extra thinking at the moment.
  4. Is there an example of this somewhere? I want the unit to run normally even if Modbus is not used at all. //Peter
  5. Hello, I'm trying to figure out how to make a watchdog function in a Samba SM35-TA22- The customer will use TCP/IP to mostly read values from the PLC. If the communication goes down, the unit should stop. But I have no idea how to make this. I was looking at SB147 which is Socket 0 connected but it is constantly changing when I disrupt the connection, I guess it is due to auto connect. Is it the best option to use SB147 with perhaps a timer so if it is on for 10 seconds, that means the communication is up and the unit can run, but if sb147 change, the timer reset and the unit is stopped. I just want some feedback if I'm all wrong here. Thanks! //Peter
  6. I like this thread also. I had to use a 3-point valve because I was an analogue output short. I think I got it to work pretty good. I programmed it so the valve closes for 20 sec extra (total runtime is 30 sec for the valve) every time PID output reaches zero and the virtual position is below 20. It worked almost smoother than a modulating valve. Thank for your advice.
  7. Hi, I made a solution like this to count runtime hours for a fan. In the HMI I can both read, edit and reset the ML4 value.
  8. I updated to the new version and opened a project made in the previous version. I noticed that the program was using more memory than before, when running the "projected memory map" action. Now it say " Exceeds the limit: Used 101 % of 100 %". Is that due to wider net or what could the reason be? It's giving me a headache needing to remove variables from the HMI before being able to add new ones. Cheers, Peter
  9. Does this application work with the Samba PLC as well?
  10. Hello, a customer is having problems with the remote operator software. They can run it on their laptops but when they try to run it on their SCADA PC (desktop) they get a "Run-time error 5: Invalid procedure call or argument" and the program crashes. Any ideas why that happens?
  11. Hi, I made many changes in a program today and created a project file for the customer to download it with Unidownloader. But after I saved it, I noticed that the project file saved itself with the same filename as the original program, including the .vlp format. So now I have a project file but no Visilogic program file. Is there anyway I can get the program back using the .vdf file or is the program code including half a day of work lost?
  12. The customer won't change their network so we must unfortunately make the PLC work for them. I make a few com inits and some buttons with a toggle function in the HMI to choose preset settings. One question remain: is Unit ID needed? When I tried the program, I could communicate with RS485 using the Modbus TCP/IP ID number. The Unit ID has always been the default 1. I tried to set Unit ID to 64, and use that in my Modbus master program but that did not work. When I used the Modbus ID number, it worked well. So I'm wondering since the 485 help file tells me I must set the Unit ID. Is it not needed on the Samba?
  13. Spot on, it is a German company that use the 9600,8,e,1 setting so it is "not acceptable" that we have other default settings that cannot be changed so that the change is saved at power loss. If the settings could be stored as MI's everything would be fine. I read somewhere that if the master has a lower baud rate setting than the slave, it still works, that the slave will communicate with this lower baud rate. Is that so? In that case, I could make a couple of com inits that have 8,n,1 and 8,e,1. 8 to choose from. 8 and 1 seem to be most common bit setting.
  14. The customer use 9600,8,E,1 in their network. After setting the PLC to those settings using Info mode, serial menu, the communication only works partly. Everything else in their network works. Also very strange, when they connect the Modbus, they can no longer push a button on the HMI to start the unit. It is being locked. It calls MB2 to start the unit. The customer also say that they can't trigger this function with modbus. When I tested it, I got it to read and write coils on address 2. With Modbus TCP I can use MIs to change TCP IP card settings. That is not possible with the com init. Our PLC program is supposed to be universal meaning we don't customize the program with specific com settings. It's also a PLC memory issue, I can't add much more to my HMI. What settings are essential for a master to communicate with a PLC slave? I need the least amount of possible com init combinations to select from a HMI page. If slave has 57600 and master 9600 or the other way around, does it still work? Is it more important that data bits, stop bits or parity is the same? Sorry for all the questions, but all of a sudden, I'm getting lots of messages from annoyed customers that do not use 57600,8,1,n.
  15. Another question on the RS-485 matter. A customer is getting very upset that they do not get communication to work properly. In the com init block, my program set 57600,8,n,1. If the customer use these settings, everything works. But their system use 9600,8,e,1 and when they change the PLC settings in info mode to their settings, the communication only works partly, all commands are not working for them. Any idea why this is? Also, must I make a com init block for each possible combination and a HMI page where the customer can choose one combination of RS-485 settings or how else is the problem with different com settings at the customers taken care of since info mode changes gets overwritten at power up? Maybe make the change in info mode and after that activate a button that prevents the com init block from running again?
×