Jump to content

steliosliv

Members
  • Posts

    8
  • Joined

  • Last visited

Everything posted by steliosliv

  1. @Isakovic Yes that is correct, this way it works
  2. @ORSO2001 The problem is with the positive edge. I tried making a simple UDFB with a normal contact and it works fine
  3. @Ness That is because you inserted the positive edge outside of the UDFB1.
  4. I found that the problem was the positive edge of the frequency. I understand that if you call multiple functions which use the same positive edge only the first call will work.
  5. Hello everyone, I have a question regarding UDFBs. In my program I use a large function that has to be called multiple times. But when I run the program only the call that was first is successful the second call is never made. I tried a simple UDFB as shown below to test this, and I get the same problem. Is there a limit to call the same UDFB only one in the program or I am doing something wrong. Thanks
  6. Hello everyone I have a question regarding the cloud service. I have succeeded in accessing the PLC using the unitronics remote client VPN (connected to 127.0.0.1 through VPN Viewer). Also, I have connected to the PLC using VNC when connected to the same internet network. My question is if I can connect to the PLC directly from an outside connection? For example on a mobile phone (where the remote client program is not available) without the need of a VNC VIEWER. I thought that the WEB function would do just that but as I read in the help file it opens the web server of the program that is loaded to the PLC. Thank you
  7. Hello, Thank you so much for the fast and on point answers @ORSO2001. I will definitely use the millis counter method. It is a shame that some of the things are not available in the language. But each language is different. I will get used to it and try to implement other strategies. Cheers
  8. Hello everyone, Recently, I have started using the Unilogic program. I was familiar with TIA portal from siemens and I have some questions regarding the functions in Unilogic. 1) Is it possible to refer to the input or output of a function? For example, in TIA portal if the function is call calc the input is x and the output is y, you can use the variables directly by typing calc.x and calc.y. 2) Is there is a way to insert a contact or a series of contacts into the input of a function (as seen in the picture attached) without the need of an auxiliary coil? 3) If I call the same function multiple times is there a way to name each function call differently? For example in siemens if you called the function calc twice you could name the functions calc1 and calc2 and easily access the inputs outputs by typing calc1.input/output/local variable or calc2.input/output/local variable 4) Since you cannot insert a timer locally in a function you have to assign it globally. Let's say I want to call twice a function which uses a timer. Can I somehow use the same function in order to make two calls or I have to make two functions which are exactly the same except the timer. This is not a problem when you use the function a few times, but it is a waste of time when you have tens of calls to the same function. 5) I have read in the help file that there is a limit to the inputs/outputs of a function and that limit is 10. For the inputs this in not an obstacle since you can insert a struct as input containing as many variables as you desire. How can you overcome this problem with the outputs since you cannot assign a struct as an output in a function? If something needs further explaining please let me know. Thank you
×
×
  • Create New...