Forum Replies Created
-
AuthorPosts
-
manjey73
Participant@rich-ex I have a driver for reading 1Wire temperature sensors on a Raspberry Pi. I didn’t manage to process 1Wire directly, so I had to write the value to txt through crontab and then process this txt from the driver. If this option is suitable, I can give you the source code of the driver.
manjey73
ParticipantIf the structure is completely identical, then you can do it according to the documentation by setting the offset of the mnemonic circuit channels
manjey73
ParticipantTake screenshots of the DTU settings preferably in English 🙂 and then it’s not clear what you want and what does the changing IP have to do with it when restarting the DTU, if it’s not important at all when using a TCP client on the DTU. Is only the IP address from the server side important, or do you have a Scada system located behind one of the DTUS?
manjey73
ParticipantThen why do you set the packet definition by IP in the line settings if you can just specify the General?
And then it won’t matter that the DTU’s IP address is changing.
manjey73
ParticipantI mean, can the DTU be a TCP client and not a server, and being a client connect to a Scada server, in which, in turn, the communication line is configured as a TCP server
manjey73
ParticipantCorrection – SetVal(201, Cmd) instead of Cmd, you can apply the current value of channel 201 by constantly inverting it. The possible types of formulas and commands are in the help, plus what you add yourself either directly to the formula or to the formula reference for calling
manjey73
ParticipantIn the output channels, the formula SetVal(201) in the input channel, the formula Val() or without the formula, you need to try
manjey73
ParticipantSo there is no need to specify the IP of the device, choose a different mode. The connection is Shared and specify only the port on the TCP server through which the 4G modem will be connected as a client.
manjey73
Participant4G DTU and if the device is used as a client, and the communication line is configured as a Server?
manjey73
ParticipantThis is normal, since you moved the current data folders to tempfs according to the installation, but if you exclude this data from tempfs, then you will kill the flash card very quickly. There are two solutions, find a virtual disk for Linux, which will dump everything to disk before the reboot command. Or upgrade the formula I once made for writing variables to the retain file.
manjey73
ParticipantWell, you just need to add +8 hours to display in another Scada. The Scada variable itself is stored in double format and it is more convenient to already have a DateTime structure in it
You can see how to add the clock directly to UTC time, it seems that everything is in seconds there. And add this addition to the formula above and only then convert to DateTime or store real UTC time in one cell and already perform conversions and show it in the pre-calculation one.
manjey73
Participantdouble dtFromUtc(double utcTime)
{
var epoch = new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc);
return epoch.AddSeconds(utcTime).ToOADate();
}Add to the Reference List of formulas that are not there. And in the input channel, use this formula with the Date, Time or Date and Time
I don’t know if I understood correctly what you need
-
This reply was modified 4 years ago by
manjey73.
manjey73
ParticipantThere are some problems with access rights. Configuration files are written from the system user, and you open the Web from a regular user
manjey73
ParticipantOfficially, you can’t. But the ways of the Lord are inscrutable 🙂
manjey73
ParticipantThe current data must be saved in the Windows environment. What OS are you using ?
-
This reply was modified 4 years ago by
-
AuthorPosts