Forum Replies Created
-
AuthorPosts
-
January 11, 2024 at 4:23 pm in reply to: Cannot skip to the next one when the 1st element of Modbus RTU encounters error #13919
myscada
ParticipantSorry for the late reply.
Thanks Mikhail, according to your solution it works now.
July 24, 2023 at 1:21 am in reply to: Difference between current and previous data of same channel #13027myscada
ParticipantPls. try to change input channel 4051 (SOURCE) from “Calculated Real” to “Real”, and 4052 (AUX) from “Real” to “Calculated Real” (like what Mikhail said). It should be OK.
-
This reply was modified 1 year, 10 months ago by
myscada.
July 3, 2023 at 1:29 pm in reply to: Cannot skip to the next one when the 1st element of Modbus RTU encounters error #12935myscada
ParticipantIf I use a PLC (e.g. Siemens S7-200 Smart) as a Modbus master to access the above Modbus RTU device (a protocol converter). The master can jump to the next element if the 1st request fails. I had thought that Rapidscada would handle it in the same way.
-
This reply was modified 1 year, 10 months ago by
myscada.
July 3, 2023 at 1:04 pm in reply to: Cannot skip to the next one when the 1st element of Modbus RTU encounters error #12933myscada
ParticipantThanks for your replys. Actually these two elements represent two devices connected to a Modbus RTU device which transmits the private protocol of above two devices to Modbus. Sometimes the 1st element/device needs to be shut down for maintenance or repair which will cause the error of the 1st request.
myscada
ParticipantTHX. I will try automatic control module.
June 19, 2023 at 5:11 pm in reply to: Is it possible to display the hexadecimal characters of the input value? #12830myscada
ParticipantTHX. I got the same error when uploading configuration.
June 18, 2023 at 3:17 pm in reply to: Is it possible to display the hexadecimal characters of the input value? #12823myscada
Participantit works now.
test = String.Format("{0:X}", (int)decimal);
-
This reply was modified 1 year, 11 months ago by
myscada.
June 18, 2023 at 2:54 pm in reply to: Is it possible to display the hexadecimal characters of the input value? #12821myscada
ParticipantThe following formular doesn’t work.
public double HextoASCII(double decimal) { string test; test = String.Format("{0:X}", decimal); return ScadaUtils.EncodeAscii(test); }
-
This reply was modified 1 year, 11 months ago by
myscada.
myscada
ParticipantMy case is a little different. In the device properties, only one Modbus coil is mapped to both an input channel and an output channel. I need to send commands based on the value of the input channel (if the input value is 0, the send value is 1, if the input value is 1, the send value is 0).
So I use a toggle scheme to display the input values and send command. There is no formula for the output channel, it works.
June 12, 2023 at 1:10 pm in reply to: Change “Call number” in “Request Sequence” doesn’t work #12788myscada
ParticipantTHX, it works.
myscada
ParticipantThanks for your reply.
I made a mistake, the port name should be /dev/ttyS1 instead of com2. Now it’s OK
myscada
ParticipantI’ve also checked if the serial port (/dev/ttyS1) is occupied by another application by the command of “lsof | grep ttyS1” and it’s OK.
myscada
ParticipantHi Mikhail,
According to your post
LinkI creat my own unit in the Units table, and then an input channel (calculated real) with the format “Enum text” and my own unit. Now the string value of DayOfWeek is displayed perfectly on the web page. THX a lot.
-
This reply was modified 3 years, 4 months ago by
Mikhail.
myscada
ParticipantHi Mikhail,
I solved it based on your previous example. The return value 0-6 represents Sunday – Saturday. THX
int CheckDayOfWeek()
{
DateTime nowDT = DateTime.Now;
return (int)nowDT.DayOfWeek;
}myscada
ParticipantHi Mikhail,
Is it possible to display the DayOfWeek? I tried EncodeDate(DateTime.DayOfWeek) but it prompts “invalid argument”. It seems that enum constants cannot be converted to double ones.
-
This reply was modified 1 year, 10 months ago by
-
AuthorPosts