manjey73

Forum Replies Created

Viewing 15 posts - 496 through 510 (of 856 total)
  • Author
    Posts
  • in reply to: Com Ports ? #9642
    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.

    in reply to: Crate symbol factories in Rapid? #9611
    manjey73
    Participant

    If the structure is completely identical, then you can do it according to the documentation by setting the offset of the mnemonic circuit channels

    See CnlOffset

    in reply to: communicate device by 4G DTU #9605
    manjey73
    Participant

    Take 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?

    in reply to: communicate device by 4G DTU #9602
    manjey73
    Participant

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

    in reply to: communicate device by 4G DTU #9599
    manjey73
    Participant

    I 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

    in reply to: Togle button without device or line #9592
    manjey73
    Participant

    Correction – 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

    in reply to: Togle button without device or line #9591
    manjey73
    Participant

    In the output channels, the formula SetVal(201) in the input channel, the formula Val() or without the formula, you need to try

    in reply to: communicate device by 4G DTU #9590
    manjey73
    Participant

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

    in reply to: communicate device by 4G DTU #9581
    manjey73
    Participant

    4G DTU and if the device is used as a client, and the communication line is configured as a Server?

    in reply to: Lost current data after reboot #9549
    manjey73
    Participant

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

    in reply to: Time Zone oparating #9541
    manjey73
    Participant

    Well, 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.

    in reply to: Time Zone oparating #9535
    manjey73
    Participant

    double 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.
    in reply to: Migrate plugin license key? #9530
    manjey73
    Participant

    There are some problems with access rights. Configuration files are written from the system user, and you open the Web from a regular user

    in reply to: Migrate plugin license key? #9526
    manjey73
    Participant

    Officially, you can’t. But the ways of the Lord are inscrutable 🙂

    in reply to: Show last input value on restart #9456
    manjey73
    Participant

    The current data must be saved in the Windows environment. What OS are you using ?

Viewing 15 posts - 496 through 510 (of 856 total)