Jump to content

PeterFukt

Members
  • Posts

    45
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by PeterFukt

  1. Does anyone have a solution for this or a file that actually works and explains what changes must be done? I have tried to configure the gateway using the example file from https://support.unitronics.com/index.php?/selfhelp/view-article/bacnet-gateway-as-slave as a base, but it never works. We have customers that have bought this gateway believing they can communicate with BACnet just as easy as they can with Modbus. Unitronics help desk could not help, they just sent me the same sample files I already have. Any help is appreciated.
  2. This still seem to be an issue. I am having problems with UniDownloader 5.0.29. I am using Windows 10. I had an older version of Unidownloader on Windows 7 that worked but after an upgrade it did not work. Tried to run it in every compatibility mode without success. I wanted to communicate with the PLC with TCP/IP. When I clicked to choose a favorite I got a Run-time error. I When I pressed OK I got error 440. When I tried to enter com settings again I got this error and then I had to close the software to be able to open com settings again. After I saw this thread I followed the steps Ofir posted and after that the program worked fine. Some days later I once again had to rename the file because I got the same errors after I changed the PLC Name in com settings.
  3. Thank you for the reply. What I meant was how they can read the inputs and outputs. The customer nor I wish to make a change in the program so we are hoping they can somehow get the coil status from the 16 bit work somehow.
  4. Hello, a customer is trying to read inputs and outputs on a Samba PLC using Modbus RS485. They are using a Siemens Simantic S7 ET200 PLC to do so. But it can only read coils in range 0-9999. The Samba digital outputs start from 16384 (4000h) and the digital inputs from 24576 (6000h). The only thing they can read in the range above 9999 is 16 bit words with Modbus function 04. The question is, how can they get the coil status information they need from the 16 bit word? Does anyone have a clue how to solve this? Comment from the customer below. "That means we have to split the word with 16 bits into its individual bits and speculate if these individual bits contain the desired information that we need. Where is the start address? Let's start with the address as you specified at 24576 and read in a data length of 10, With the normal approach, this would be the addresses 24576-24585 as bit operands, i.e. 10 individual bits. Let's read it in as input words and start at 24576 with a length of 10, this would also be the addresses 24576-24585 as words with 10x16 single bits. The problem for us now is where exactly is the information we need? Can we assume that the first 10 bits of the first word from address 24576 onwards also correspond to the bits you specify or every first bit of each word is the bit that contains the information?" Any help would be appreciated. Best regards Peter
  5. 4 years has passed and the help file still isn't fixed, not even the online version. https://www.unitronicsplc.com/Download/SoftwareHelp/VisiLogic_Knowledgebase/Ladder/Functions/Vector_Functions/Vector__Get_Max.htm Just a reminder for you @Cara Bereck Levy I'm using Get Max in a project but got a bit confused about the vector length when reading the help file. A length of 10 should be from MI50 to MI59 as Flex pointed out 4 years ago.
  6. It's the same phenomenon with a SM35-J-TA22 straight out of the box when I enter Info mode. Firmware: 4.4 (28) Oct 16 2017 Boot: 2.2 (24) Oct 29 2014 Bin library 0-2.10 (04) After updating the PLC the issue was resolved. Firmware: 4.4 (31) Oct 19 2017 Boot: 2.2 (48) Sep 25 2016 Bin library 0-2.10 (04)
  7. Hello, with the latest batch of Samba SM35-J-T20 PLC's I've programmed, I have noticed that the buttons in the virtual keyboard stay pressed when you touch them once. I must touch them again to make the button appear unpressed. Is this a change in the firmware? It seems to work anyway. Just curious what is causing this. Buttons stay pressed with this PLC Firmware: 4.4 (28) Oct 16 2017 Bin library 0-2.10 (04) Buttons works normally with this PLC Firmware: 4.4 (09) Apr 5 2017 Bin library: 0-2.10 (03) Cheers, Peter
  8. According to tech support, there was a bug in Visilogic 9.8.31 with the Com FB that they fixed in 9.8.64. I got the explanation that it was not possible to choose RS485 in the older version but that it now is fixed. It seems as if the bug was present in 9.8.64. I tried the same thing with 9.8.65, and now it is again possible to choose RS485. Also programs made in version 64 that showed a grayed out RS232 com init setting, do show RS485 again in version 65. /Peter
  9. It is good to know that the same happened to you. So it must be a change or error in the newer version that Unitronics haven't told us.
  10. Hello Ausman, something has definitely changed. When I start a new project in Visilogic 9.8.31 I can choose between RS232 and RS485. In 9.8.64, it is RS232 only. When I saved the test program in 9.8.31 (RS485 in com init) and opened it in 9.8.64, com init said RS232 and it was grayed out. I'm stuck with 9.8.64 because all my recent programs are made in that version and can't be opened in an earlier version. It seems though as if the PLC recognise the com card as RS485 when I run the program in a PLC with an installed Modbus card. Can someone from the development team answer if there has been a change in the program that affect the com init block for Samba PLCs? Best regards Peter
  11. I see, break it up in like one separate Com init + modbus configuration per net? The Samba need a communication card for RS485 or for TCP/IP. But I want to prepare the program so it supports both. I just found it wierd that I can't choose RS485. If I choose Vision in HW configuration, I can choose between RS232 or RS485.
  12. Also, the code looks like this. I'm just wondering if it is okay to place the contacts like that. When I did an Online test, if I activate MB81 in the HMI, all com init FB's turns red. If I activate one below, all com init except the first one get red. Is that normal or is the ladder code not optimal?
  13. Hello, I have made programs for SAMBA PLC SM35-J-T20 and TA22 with Modbus configuration. In Com init help, it tell me to select RS232 or RS485. But the field is grayed out on RS232 and I can't select RS485. If I remember right, I could select RS485 when I did the program for the first time, but when I chech the Com Init settings, they all say RS232 and not RS485. Doesn't it matter if it say RS232? I had to change it to RS485 in Info mode to get communication to work, but if I loose power, it returns to RS232.
  14. 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
  15. 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.
  16. Is there an example of this somewhere? I want the unit to run normally even if Modbus is not used at all. //Peter
  17. 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
  18. 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.
  19. 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.
  20. 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
  21. 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?
  22. 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?
×
×
  • Create New...