manjey73

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 396 total)
  • Author
    Posts
  • in reply to: Entering number from browser #10254
    manjey73
    Participant

    use Formula SetVal

    Look in the documentation how to use it correctly

    in reply to: Monitoring Panel #10071
    manjey73
    Participant

    Use Autologin for version 5

    in reply to: Sending Command Skipped #10064
    manjey73
    Participant

    I may be wrong, but in this case, the trigger should be set to the channel status and apply formulas that change the status.

    in reply to: Sending Command Skipped #10055
    manjey73
    Participant

    As far as I remember, if you have a trigger at 0 and when you restart the server you have 0 there, then the command will be skipped. You need to do 1 in the channel, and then 0, that is, changes must occur. This is done in order not to send commands when restarting the server.

    in reply to: Create channel number group (V6) #10023
    manjey73
    Participant

    As far as I know, in the current version of Gate, it is possible to have the same channels on remote servers if the same type of installations. And on the central server, you just clone channels, after setting up the first remote server, then when setting up the second remote server, you simply change the bindings in the Gate settings to the new channels of the central server. Example. You set up the first remote server with channel numbers 1-800 with transmission to the central one also at 1-800, then you clone channels on the central server 1-800 at 1001 – 1800 and when you start the second remote server, you set up communication 1-800 (remote server) at 1001-1800 central. And so on for subsequent servers. I don’t know how it will be in the 6th version, there should be identifiers of a different type and it may be easier.

    in reply to: How to read an array data of bool #9996
    manjey73
    Participant

    Most PLCs allow you to read data in the form of Int16, and only then remove the required registers in Scada.

    in reply to: Leading zeros #9991
    manjey73
    Participant

    For example, you can record the maintenance time of some equipment in the calculation channel and then compare it with the current one somewhere and create messages.

    myDT(2023, 5, 15, 10, 0)

    Year 2023, month 5, 15th, 10 am

    in reply to: Leading zeros #9990
    manjey73
    Participant

    You can make a general formula, for example, for applying a record in the maintenance time channel.

    double myDT(double year, double month, double day, double hours, doble minute) // Without seconds
    {
    int y = Convert.ToInt32(year);
    int mh = Convert.ToInt32(month);
    int d = Convert.ToInt32(day);
    int h = Convert.ToInt32(hours);
    int m = Convert.ToInt32(minute);
    return new DateTime(y, mh, d, h, m, 0).ToOADate();
    }

    Then it can be used for different purposes. But you will have to specify the year, month and day every time. For your case, it is simple to specify and set the Time channel format

    myDT(2022, 1, 1, Val(6311), Val(6312))

    in reply to: Leading zeros #9987
    manjey73
    Participant

    double myDT(double hours, doble minute)
    {
    DateTime ddt = DateTime.Now;
    return new DateTime(ddt.Year, ddt.Month, ddt.Day, Convert.ToInt32(hours), Convert.ToInt32(minute), 0).ToOADate();
    }

    in channel

    myDT(Val(6311), Val(6312))

    format channel – Time

    But it will show seconds, If you want without seconds, then it will be a text field converted from time, with an indication of the display format and subsequent translation from ASCII to an array of bytes, and the format of the ASCII Text cell

    • This reply was modified 4 months ago by manjey73.
    in reply to: Leading zeros #9986
    manjey73
    Participant

    It is impossible to make a year, month, day with zeros in this version, I just made a formula in the channel

    new DateTime(2022, 1, 1, 2, 3, 0).ToOADate()

    Where 2 and 3 are your channels of hours and minutes. Right in the channel they can be written like this

    new DateTime(2022, 1, 1, Convert.ToInt32(Val(6311)), Convert.ToInt32(Val(6312)), 0).ToOADate()

    in reply to: Leading zeros #9985
    manjey73
    Participant

    double Dt(double hours, doble minute)
    {
    return new DateTime(0, 0, 0, Convert.ToInt32(hours), Convert.ToInt32(minute), 0).ToOADate();
    }

    In channel formula Dt(Val(6311), Val(6312))

    Format channel – Time

    If you transmit only hours and minutes, then in theory this is how it should be

    in reply to: Leading zeros #9980
    manjey73
    Participant

    double dt = new DateTime(Year, Month, Day, Hours, Minute, Seconds).ToOADate()

    You need something like this, not sure if the formula is correct, not tested. Where, instead of hours and minutes, you should put your data, as far as I remember, by converting it to int

    Year, day, etc. can be specified 0

    • This reply was modified 4 months ago by manjey73.
    in reply to: Leading zeros #9979
    manjey73
    Participant

    I think you can, you need another calculated channel and use the formula to put it in time. If you are satisfied that it will show the time, but here you need to try with formulas depending on how you want to see the view. The simplest thing is to enter the data in DateTime and tell the channel to display only the time

    in reply to: Leading zeros #9976
    manjey73
    Participant

    They can be displayed as ASCII text by applying time formatting. It seems that there are corresponding formulas in C#.

    Show your example how you display time on a mnemonic circuit

    • This reply was modified 4 months ago by manjey73.
    in reply to: Date & Time Source and Display #9968
    manjey73
    Participant

    The formula in the channel – DateTime.Now.ToOADate()
    Format channel is Date, Time or Date and Time

Viewing 15 posts - 1 through 15 (of 396 total)