-
Posts
1,179 -
Joined
-
Last visited
-
Days Won
116
Content Type
Profiles
Forums
Gallery
Events
Blogs
Downloads
Articles
Media Demo
Posts posted by Saragani
-
-
Currently, you have no way of defining an enum, or defining that a function-in is of type enum.
-
Hi, I have attacked the exe file of version 9.8.97
It should not ask you to upgrade your project is the changes between 9.8.97 and 9.8.96 are minor (and probably not even in the exe, but with the other DLLs that are in the installation directory), so you should be able to use it without any problem.
Please update me if it helped.
- 1
-
Are you sure that the visilogic.exe without the need to "run as admin" that you have is 9.8.96?
Who gave you that exe?
// Edit: I see that you've wrote that the support gave you the exe and it's of version 9.9, so off course it will ask for upgrade.
-
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)
-
Can you try with a different USB stick?
I've already encountered problems when the stick had corrupted sectors. I see that you already mentioned that you've tried 2 different sticks, but if both of them of the same brand, then maybe it doesn't like it.
@NoamM, your assistance will be welcome (Maybe debug it, or get a verbose log)
-
There is another DLL called Unitronics.DataTables.dll, which uses the .Net driver. It lets you write and read values from data tables.
- 1
-
It was added to the working plan. You should see this feature in one of the next versions (1.37 or 1.38).
-
It's not a class, it a delegate (a pointer to a function) where progressStatusChanged should be a function that returns void and gets RequestProgress requestProgress as parameter.
Looking at the code, I see that it can handle well progressStatusDelegate being null, so you can just pass null instead.
-
Yes, it's a known issue on version 1.35.227
The fix to this issue will be included in UniLogic 1.36
-
Use .Net communication driver.
If you create a PLC object then it has a Property called SD, which let you do some file actions with the SD Card.
Here is a code example, written long time ago, which has an SD Card explorer example, with its sources code.
-
No, it was not added.
I assume that you need it since you don't have an SD card in your PLC, right? -
Hi @ORSO2001
Thanks. I hope that your ticket has the project and also all the information (screen captures, or videos, or anything that can help R&D understand what is not working properly)
-
Please note, I have fixed this issue. On next UL release, you should be able to load that old retained tags hex file, while the new one that I sent you will not work.
-
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)
-
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.
-
Did you already download the project to the PLC?
If so, the retained tag should have their valid values before you've upgraded it. Is that the case?
If so, then there is no need to download the retained tags memory again, but I would upload the retained tags from the PLC again.
-
No, you can't write to the Username tag in the UAC struct.
-
45 minutes is a lot of time. What PLC model is it, USP or US5/7?
If it didn't finish after that time, then I think that something went wrong during the upgrade process, but you should be able to recover the PLC (Depending on the Model)
Please reply.
-
In the current UniLogic version it's not possible, but it can be done.
I'll open a feature request.
-
Months with 31 days are: 1, 3, 5, 7, 8, 10, 12
Months with 30 days are: 4, 6, 9, 11
If month == 2, then:
if (year % 4 == 0) { if (year % 100 == 0 && year % 400 != 0) { daysInMonth = 28; } else daysInMonth = 29; } else daysInMonth = 28;
That's what I remember...
-
Hi, I got confused about the Data Table to PDF. The conversion is actually Data Table to Excel.
(The PDF Conversion is of Data Sampler), so I'm sorry if I led you wrong.
However, you might print the Excel file into a PDF
-
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.
-
-
Please update me if you were able to solve the issue
how to access Unilog_tmp file
in UniLogic Software
Posted
No, it just changes the access credentials to the PLC (the program will continue running).
After you change it, then every person that will want to communicate with the PLC through UniLogic, will need to know the password.