Jump to content

Saragani

Administrators
  • Posts

    1,179
  • Joined

  • Last visited

  • Days Won

    116

Posts posted by Saragani

  1. You are correct, there isn't a specific command for it in the .Net Driver, but looking at the source code of the ActiveX communication driver, then you can call plc.SendString("RS")

    I'm not sure what are the return values for each state (run and stop), but the code returns Mid(res, 3, 1), meaning 1 character at the 3rd position, for example, for ABCDEFG, it will return C.

     

    Please check and update me if it helped you, and what are the returns strings you get for Run and Stop mode (before and after the Mid / Substring)

     

     

     

  2. If I understand you correctly, you want to change the Initial Value of retained tags from the PLC, right?

    (Initial value of a retained tag is the value it gets when you download the program on the first time, or you call Init retained tags). In this case, the values are compiled into machine code, so it's not possible.

    If you want to just change values of retained tags, then you can create HMI screens for it, and maybe also edit the values from the UniApps (I need to check if it's possible, but even if can be done, then it's very uncomfortable because it was not meant for it)

  3. I'm not sure what your retained tags contain (Which tags and which structs). There is a chance that the upgrade caused the address of some retain tags to change (due to some retained tag that were of type of Reserved Structs that were changed from version 1.25 to 1.35), so in this case copying the values from the original project to original (old) address would be wrong, since the address is not correct.

     

    You can send me the original project (in version 1.25), and the Retained tags file, and I will look into it.

  4. Well, the digital signature verifier can be ran out side if UniLogic. The main Exe is referencing one dll, and that dll is referencing few 3rd party dlls

    You cannot create file as read-only, since it can always be edited in a computer. You can, as Ausman suggested, inserted into a zip, and that zip can have a password.


    For having the Digital signature verifier working, you need to copy:

    Unitronics Digital Signature Verifier.exe

    Unitronics.DigitalSignature.Verifier.dll

    System.ValueTuple.dll

    Newtonsoft.Json.dll

    BouncyCastle.Crypto.dll

     

    Then if you give those files to someone, then he should be able to run it. There might be dependencies like .Net 4.6.2, or 4.7.2 which might need to be installed, but must computers have them already, so the program should run without any issue.

    A clarification for Ausman: the file itself is not signed, but there is a signature file next to it (they go together). The idea behind it is to be able to sign textual files as well (like CSV).

    Modifying either of the files (signature file or the csv file, for example) will result signature validation failure.

     

    There are tools from Unitronics to convert  a Data Table file to a PDF (like Data Converter Suite), but they do not verify the signature of the input DT file, or sign the PDF. Signing a PDF is usually done using a certificate you buy, because anyone can sign a PDF, but you also want to assure that it was signed by someone you trust.

    Currently, the PLC does not generate a PDF file from the Data Table.

×
×
  • Create New...