Forum Replies Created
-
AuthorPosts
-
manjey73Participant*View drivers and modules are installed in ScadaAdmin/Lib
All the forms that the View uses are added directly to the View code. With the exception of some pre-made windows from the Scada core. But they are configured and called anyway from the View code. For example, the Options window for the driver
For example, the SNMP (View) driver immediately calls the parameters window, or you can arrange to call this window through a button. Everything that changes in this window is included in the device polling parameters. There are other ready-made windows that can be called from the View of your driver or module.
-
This reply was modified 1 year, 7 months ago by
manjey73.
manjey73ParticipantYou can check the data type of the channel – integer or double (or null by default) and perform different transformations depending on this.
Something like this. where cnl.Values is my Cnl dictionary
if (cnl.Value.DataTypeID == 0 || cnl.Value.DataTypeID == null) // channel data type Double { ServerContext.WriteCurrentData(cnl.Value.CnlNum, new CnlData(valDouble, 1)); } else if (cnl.Value.DataTypeID == 1) // channel data type Int64 { long val = Convert.ToInt64(fieldObj); ServerContext.WriteCurrentData(cnl.Value.CnlNum, new CnlData(BitConverter.Int64BitsToDouble(val), 1)); }-
This reply was modified 1 year, 7 months ago by
manjey73.
manjey73ParticipantThere is another import driver from the database, but I don’t work with the database and I can’t tell how it works
manjey73ParticipantYes, the number of bits is limited for archives and events. But you can create the necessary ones yourself from the code, only the code should do checks when creating, since the code that you assume may be occupied by another or has already been created.
manjey73ParticipantFrankly, I do not know, I have never used this driver. You may have missed something in the settings or made them incorrectly.
manjey73ParticipantThere is not a single channel on image1 that would read the Communicator, otherwise you would have a table with data in the Device 1 log of this type
[2] Energomera_301 ------------------ Драйвер : DrvIEC61107 6.2.0.5 Статус : норма Время сеанса : 10.09.2024 14:58:00 Время команды : не определено Сеансы (всего / ошибок) : 739 / 0 Команды (всего / ошибок) : 0 / 0 Запросы (всего / ошибок) : 9607 / 0 Текущие данные +-------+----------+-----------------+-----------------+---------+ | Номер | Код | Наименование | Значение | Канал | +-------+----------+-----------------+-----------------+---------+ | ****************** Счетчик Энергомера CE301 ****************** | +-------+----------+-----------------+-----------------+---------+ | 1 | serial | Serial # | 008841163127043 | 201-202 | +-------+----------+-----------------+-----------------+---------+ | 2 | V_L1 | Voltage L1 | 231,241 | 203 | +-------+----------+-----------------+-----------------+---------+ | 3 | V_L2 | Voltage L2 | 233,418 | 204 | +-------+----------+-----------------+-----------------+---------+ | 4 | V_L3 | Voltage L3 | 213,466 | 205 | +-------+----------+-----------------+-----------------+---------+ | 5 | Cur_L1 | Current L1 | 26,860 | 206 | +-------+----------+-----------------+-----------------+---------+
manjey73ParticipantPerhaps this will help you when using LReal (long). Well, look at other methods of working with long, ulong in BitConverter
That is, first convert your string to long using TryParse and only then add it to the channel via BitConverter. At the same time specifying the Integer data type for example
manjey73ParticipantI only have one question, why are you using version 5? it is no longer developing.
manjey73ParticipantMake sure that your port 10002 is not occupied by another program. Well, check that the port is open (although it seems to be open on the local computer)
manjey73ParticipantOnce you have installed it on the disk, then you need to fix it there
manjey73Participant
manjey73ParticipantYou should get the open ports in ufw in the list
10000/tcp ALLOW Anywhere 10002/tcp ALLOW Anywhere 10008/tcp ALLOW Anywhere 10008 ALLOW Anywhere
manjey73ParticipantYou have a lot of ports on 1000x 🙂 What do you have installed there?
Check if UWF is installed and enabled? and if it is enabled, are these ports open in it?I’m sorry, it’s called ufw correctly
ufw status
manjey73Participantnetstat -ntulpor
ss -ntulpWhat does the command data show on the remote server? These are commands for ssh connection
manjey73ParticipantThe Agent’s log shows which port it is listening on.
1. check that this port is not occupied by other programs
2. Check the firewall to make sure that the port is open.
Ubuntu may have another firewall installed – UFW, or disable it for verification, or configure it to skip port 10002. On one remote VDS server, even with uwf mode configured, it periodically closes until I figured out how to win. -
This reply was modified 1 year, 7 months ago by
-
AuthorPosts
