Jump to content

PeterFukt

Members
  • Content count

    26
  • 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
    Member
  1. 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.
  2. Accumulated timer for more than 99h

    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.
  3. Visilogic 9.8.64 - Go Get it!

    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
  4. Sample Email program by JTA

    Does this application work with the Samba PLC as well?
  5. 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?
  6. 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?
  7. 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?
  8. 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.
  9. 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.
  10. 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?
  11. I see. But if the Modbus master communicate with other baud rates, it can still communicate with the PLC right? What does the Unit ID that you can set in information mode do? The RS-485 documentation say that a Unit ID must be set to communicate with the PLC but when I try it with a Modbus master program, it seems to only use the Modbus ID. Can Unit ID be disregarded and kept on 1(Canbus) when using RS-485?
  12. 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?
  13. Analog input linearization problem

    IT would be nice if there could be a min max feature to the linz block in the future. I solved it using some compare blocks to store 0 or 100 % to the output when out of range. It seems like it works.
  14. Screen saver

    I think I solved it by doing like below.
  15. Screen saver

    The code I used from the example is that when the timer stops, I call an empty HMI. The empty HMI calls a subroutine "on load" that set backlight to 0. The empty HMI calls a subroutine "while displaying"that load last HMI on touch. The empty HMI calls a subroutine "on unload" that sets backlight to 100. But when I touch the screen, I can accidentally press a button on last showed HMI which can be bad for the process running. I need a solution for this if possible.
×
http:///