Forum Replies Created
-
AuthorPosts
-
gabeirinhas
ParticipantOk, 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
gabeirinhas
ParticipantMy mistake,
It is still not working,
gabeirinhas
ParticipantI 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>
gabeirinhas
ParticipantHello,
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
gabeirinhas
ParticipantHi, 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
gabeirinhas
ParticipantHello, 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
gabeirinhas
ParticipantHi, 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.
gabeirinhas
ParticipantHello, 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.
gabeirinhas
ParticipantHello
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
gabeirinhas
ParticipantGood 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.
gabeirinhas
ParticipantMihail’s solution is perfect for me.
Thanks for the help
gabeirinhas
Participantit works
Thank you very much for the help
gabeirinhas
ParticipantBasically I need to know how to disable the bits without losing the rest of the byte values.
gabeirinhas
Participantwhen 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
gabeirinhas
ParticipantIt works
Thank you very much for the helpGreetings
-
This reply was modified 2 years, 10 months ago by
-
AuthorPosts