manjey73

Forum Replies Created

Viewing 15 posts - 811 through 825 (of 921 total)
  • Author
    Posts
  • in reply to: Device 11 – Server Room error #4492
    manjey73
    Participant

    Because you don’t have such a device on the lines. Equipment settings are given in the database for an example of how to do it directly with your equipment.

    You need either real equipment and real experiments. Or find on the Internet emulators devices such as Modbus and set up communication with them. Everything is possible.

    http://raxp2.blogspot.com/2015/03/modbus.html

    The site is in Russian, but if you follow the links, there are English versions of simulators, including free.

    • This reply was modified 7 years, 5 months ago by manjey73.
    • This reply was modified 7 years, 5 months ago by manjey73.
    in reply to: OPC Values of String Tags not fully read #4450
    manjey73
    Participant

    The database is limited to 8 bytes in any case. And for the full name to appear in the Communicator window, the driver must know exactly what this text variable is. The OPC driver is a more universal thing and you just can’t tell it to display a fully text variable, as it does in the SNMP driver, for example.

    p.s. we have been asking for additional text databases for such things.

    in reply to: Users and passwords #4426
    manjey73
    Participant

    look this

    • This reply was modified 7 years, 6 months ago by manjey73.
    in reply to: Modbus TCP – One Element value gives 4 Digital Inputs, #4401
    manjey73
    Participant

    Twenty-five again…. (Russian expression.)

    You can make one channel number, for example 9, which will get the value from the device with the signal 9. And in the formula the estimated channels to write GetBit(9, 0), and so on ? there is no need to specify a signal in the calculation channel

    If you have a channel 20 receives a signal from the device 9, then in the formula of the calculation channel it is necessary to specify the 20th channel. Example GetBit (20, 3) >0 ? 0: 1

    • This reply was modified 7 years, 6 months ago by manjey73.
    in reply to: Modbus TCP – One Element value gives 4 Digital Inputs, #4393
    manjey73
    Participant

    bits in numbers start from zero. Do you want first or zero ?

    bits in numbers start from zero. Do you want first or zero ? And not only the signal 9 and the Number 9 (the channel number is used in the formula)

    GetBit (channel number, bit number) – you will get the same value as bit 0 or bit 1

    GetBit (channel number, bit number) > 0 ? 0: 1 – you will get the opposite value if bit=0 then you will get 1, if bit=1 then you will get 0

    in reply to: Modbus TCP – One Element value gives 4 Digital Inputs, #4385
    manjey73
    Participant

    GetBit (a,b)

    a – channel data number from which you want to check the required bit
    b – is the number of the bit to be checked from 0 to 64 considering that the database always has a double representation. But in fact, if you read one register, you can actually check only from 0 to 15 for example

    > 0 ? 0; 1 this entry you do the inversion if it is necessary

    Not quite boolen, all variables RapidScada converts to double, this is a feature of the database implementation. However sometimes it is a hindrance 🙂 your perception is, Yes, a boolean.

    Use C# help on MSDN

    • This reply was modified 7 years, 6 months ago by manjey73.
    • This reply was modified 7 years, 6 months ago by manjey73.
    • This reply was modified 7 years, 6 months ago by manjey73.
    in reply to: Modbus TCP – One Element value gives 4 Digital Inputs, #4381
    manjey73
    Participant

    Well, I told you why you had a mistake. You need to check how to call the formula.

    Getbit GetBit and it is a different name

    • This reply was modified 7 years, 6 months ago by manjey73.
    in reply to: Any questions about Rapid SCADA and Raspberry Pi #4376
    manjey73
    Participant

    The formula name must be entered correctly, as specified in the formula itself

    public double GetBit(double val, int n)
    {
        UInt64 uintVal = (UInt64)val;
        return (uintVal >> n) & 1;
    }

    GetBit

    And so it is necessary to write for all formulas

    • This reply was modified 7 years, 6 months ago by manjey73.
    in reply to: Decimal Places in Elastic Report #4368
    manjey73
    Participant

    D.D only for displaying numbers. The database gets the full number

    in reply to: Chart – samples on the timeline #4367
    manjey73
    Participant

    <Param name=”WriteMinPer” value=”60” descr=”Период записи минутных срезов, с” />

    See settings of this file ScadaServerSvcConfig.xml but in this way you will increase the database in size

    in reply to: Modbus TCP – One Element value gives 4 Digital Inputs, #4344
    manjey73
    Participant

    Read the channel as unsigned.
    Then add calculation channels and use the GetBit formula in them

    Read the register as HoldingRegisters and then apply the formula in virtual channels

    • This reply was modified 7 years, 6 months ago by manjey73.
    in reply to: Hysteresis on input channel… #4338
    manjey73
    Participant

    Sorry, all timer formulas still need Tiсks formula to work

    public static long Ticks()
    {
    DateTime now = DateTime.Now;
    long time = now.Ticks/10000;
    return time;
    }

    Without this formula, all timers will give an error, and since the formula timers are different, but use the same calculation of the difference, the Ticks made a separate formula

    • This reply was modified 7 years, 6 months ago by manjey73.
    • This reply was modified 7 years, 6 months ago by manjey73.
    in reply to: Slow communication speed #4326
    manjey73
    Participant

    Yes, the register should be read once and then on the basis of the input channel of this register to apply the formula GetBit in settlement channels. You really spend a lot of time on the same type of reading.

    in reply to: Slow communication speed #4319
    manjey73
    Participant

    Then it turns out that you have everything right. 480 parameters this is clearly more than Modbus can allow with a single request. Try to separate the query groups so that the parameters you change are often in separate groups. That is to make a logical separation.

    in reply to: Slow communication speed #4317
    manjey73
    Participant

    To set the settings property is an extraordinary interview after sending the command.

    Also change the poll method to group, where possible

Viewing 15 posts - 811 through 825 (of 921 total)