gabeirinhas

Forum Replies Created

Viewing 15 posts - 31 through 45 (of 54 total)
  • Author
    Posts
  • in reply to: Retain Variable #11239
    gabeirinhas
    Participant

    Ok, by listening to you, I have made the following formula for a discrete channel (890)

    Cnl > 0 ? Cnl: Val(890)

    When communication is lost, the value is saved and when restored, it continues to have the same value,

    The problem I have is that when I change again having communication, it persists the value it had before the disconnection and does not update the value,

    Can you help me,

    Thanks

    in reply to: Evenet Log #11227
    gabeirinhas
    Participant

    My mistake,

    It is still not working,

    in reply to: Evenet Log #11226
    gabeirinhas
    Participant

    I am sorry for the inconvenience,

    It was simple, I just wanted to merge the red and green event colours into one button,

    I modified the xml file as follows:

    <Button>
    <Label>Alarms[On/Off]</Label>

    <Colors>

    <Color>Red</Color>
    <Color>Green</Color>

    </Colors>

    in reply to: Retain Variable #11219
    gabeirinhas
    Participant

    Hello,

    Attached is a formula 1 case, where I need to hold the value of an offline alarm.

    https://drive.google.com/drive/folders/1eq1SSBFbwBZMmfHLElJGJAZVyXbyMaLO?usp=sharing

    Attached case formula 2, where I need to copy a value from another channel at a certain time.

    https://drive.google.com/drive/folders/1uxeylVigSNyvPkfSNe98R9woeF-XDsOp?usp=sharing

    Thank u, BR

    in reply to: Retain Variable #11210
    gabeirinhas
    Participant

    Hi, I need help with another formula,

    I would really appreciate your help,

    when a signal from a modbus device = 0,

    Cnl == 0,

    I copy the received value from another channel,

    something like this,

    Cnl == 0 ? Cnl: Val(743)

    For some reason it copies the value continuously, instead of only when this value = 0.

    Thanks in advance, best regards

    in reply to: Evenet Log #11209
    gabeirinhas
    Participant

    Hello, I am using the Event Log,

    I like it, it is very practical,

    I would like to know if there is a possibility to create a button that includes the colours green and red, instead of one that includes all the colours green and red.

    It would help me to separate types of events

    Thanks in advance, best regards

    in reply to: Retain Variable #11207
    gabeirinhas
    Participant

    Hi, I need help with the following,

    I am connecting to a modbus tcp ip device,

    At certain times the connection stops and after a while it is re-established,

    This connection sends me MW memory zones, where some bit by bit alarms are located,

    I use the automatic module so that when these alarms are triggered, it sends me an email.

    In the connection it is usual to have a couple of alarms that are constant, when the connection is interrupted and returns to its normal state, it sends the alarms every day.

    I want this state to be stored and persist until the connection reconnects.

    I also want it to log if the alarm is cleared after successful communication.

    I have tried the following formula without success,

    Cnl > 0 ? Cnl: GetBit (Val (188), 0)

    Thanks in advance, best regards

    • This reply was modified 2 years, 10 months ago by gabeirinhas.
    in reply to: ModDbExport Questions #10408
    gabeirinhas
    Participant

    Hello, I have selected the option “add archive data trigger”.

    And the data is not being dumped to the corresponding table.

    The “archive upload options” is also enabled.

    I don’t know if that’s what you meant, but it still doesn’t work.

    in reply to: ModDbExport Questions #10401
    gabeirinhas
    Participant

    Hello

    To get certain bits within a byte
    I use channel type = calculated discrete
    And I use the following formula GetBit (Val (xxxx), 0)

    When I export the data to sql.
    If I export the whole byte I have no problem. (discrete)

    If I export the channel type = caculated discrete
    The export does not work.

    Is there any kind of solution ?

    Thanks in advance, best regards

    in reply to: An error #10103
    gabeirinhas
    Participant

    Good morning

    A device randomly stops communicating with me.

    I recover connection by sending the restart line command.

    Is there any way to automate this process ? and not to do it manually.

    Any other suggestions.

    Thank you.

    in reply to: Send command button – change register bit #9948
    gabeirinhas
    Participant

    Mihail’s solution is perfect for me.

    Thanks for the help

    in reply to: Send command button – change register bit #9938
    gabeirinhas
    Participant

    it works

    Thank you very much for the help

    in reply to: Send command button – change register bit #9927
    gabeirinhas
    Participant

    Basically I need to know how to disable the bits without losing the rest of the byte values.

    in reply to: Send command button – change register bit #9926
    gabeirinhas
    Participant

    when I use this formula in the output channels.

    (ushort)Val(321) | ((Cmd > 0 ? 1 : 0) << 0)
    (ushort)Val(321) | ((Cmd > 0 ? 1 : 0) << 1)
    (ushort)Val(321) | ((Cmd > 0 ? 1 : 0) << 2)
    (ushort)Val(321) | ((Cmd > 0 ? 1 : 0) << 3)
    (ushort)Val(321) | ((Cmd > 0 ? 1 : 0) << 4)
    (ushort)Val(321) | ((Cmd > 0 ? 1 : 0) << 5)
    (ushort)Val(321) | ((Cmd > 0 ? 1 : 0) << 6)
    (ushort)Val(321) | ((Cmd > 0 ? 1 : 0) << 7)

    For 1 byte I get the activation of each of the channels without losing the value of the channel.

    I need to know how to do the same but to disable each of the bits.

    I use command type: standard

    I use command values: execute

    Is there any way to activate a specific bit of the byte with a formula or with off-on without losing the byte values.

    Thank you

    in reply to: ModDbExport Questions #9915
    gabeirinhas
    Participant

    It works
    Thank you very much for the help

    Greetings

Viewing 15 posts - 31 through 45 (of 54 total)