Jump to content

PeterFukt

Members
  • Posts

    45
  • Joined

  • Last visited

  • Days Won

    1

Posts 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.

    Iimage.thumb.png.f40ea43ac9c6e29900f46b8089c5cb94.png

    When I pressed OK I got error 440.

    image.png.b8812908bb40c36519b15a4874088e97.png

    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.

    image.png.f094a53f6c1e2fb294ec728ab31129b3.png

    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. 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).

    image.png.a340e42f044e1c7f2b5b88172b932e8a.png

    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

  4. 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. :)

  5. 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

    IMG_20180619_112726.jpg

  6. 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

     

    • Upvote 1
  7. 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

  8. 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.

    image.png.8cb601db5085c5a25149a0ecf262d300.png

  9. 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

     image.png.51333c825ec11dc23ef59727cf68195d.png

  10. 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

  11. 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.

  12. 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

     

  13. 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...