Forum Home › Forums › Understanding the Software › SCADA Client API Command not Working
Tagged: SCADA Client API
- This topic has 18 replies, 2 voices, and was last updated 7 hours, 7 minutes ago by
Mikhail.
-
AuthorPosts
-
June 19, 2026 at 4:48 pm #18062
prabhu.natarajan.n@gmail.com
ParticipantRapid SCADA Test Client
Server is ready = True
User is logged in = TrueConnected to localhost
Session ID = 682001045626589992
Server name = Server 6.2.2.1Select action:
0 – exit
1 – get status
2 – terminate session
*** File Operations ***
3 – get file info
4 – download file
5 – upload file
*** Access Archive ***
6 – get current data
7 – get trend
8 – get timestamps
9 – get slice
10 – get last write time
11 – write current data
12 – write historical data
*** Access Events ***
13 – get event by ID
14 – get events
15 – write event
16 – acknowledge event
*** Commands ***
17 – send command
18 – get command
17
Enter channel number: 104
Enter command value: 1
Command sent successfullySelect action:
0 – exit
1 – get status
2 – terminate session
*** File Operations ***
3 – get file info
4 – download file
5 – upload file
*** Access Archive ***
6 – get current data
7 – get trend
8 – get timestamps
9 – get slice
10 – get last write time
11 – write current data
12 – write historical data
*** Access Events ***
13 – get event by ID
14 – get events
15 – write event
16 – acknowledge event
*** Commands ***
17 – send command
18 – get command
6
Enter channel number: 104
Channel data = 0 (0)
Channel list ID = 7644628203401034737Select action:
0 – exit
1 – get status
2 – terminate session
*** File Operations ***
3 – get file info
4 – download file
5 – upload file
*** Access Archive ***
6 – get current data
7 – get trend
8 – get timestamps
9 – get slice
10 – get last write time
11 – write current data
12 – write historical data
*** Access Events ***
13 – get event by ID
14 – get events
15 – write event
16 – acknowledge event
*** Commands ***
17 – send command
18 – get commandSource Code :
https://drive.google.com/file/d/1fS5HAM9HH_c6ca1He9L2uYQ_ruhAhn0Z/view?usp=sharing
-
This topic was modified 1 month, 2 weeks ago by
Mikhail.
June 19, 2026 at 4:55 pm #18063prabhu.natarajan.n@gmail.com
ParticipantJune 19, 2026 at 4:56 pm #18064prabhu.natarajan.n@gmail.com
ParticipantExe Files
June 19, 2026 at 4:58 pm #18065prabhu.natarajan.n@gmail.com
ParticipantHi Team,
I am testing command write functionality using the Rapid SCADA Test Client.
Environment:
* Rapid SCADA Server Version: 6.2.2.1
* Connected successfully to localhost
* User login successfulTest performed:
1. Selected “Send Command” (Option 17)
2. Channel Number: 104
3. Command Value: 1Result:
* Test Client response: “Command sent successfully”
However, when I read the channel value afterward using “Get Current Data” (Option 6), the channel value remains 0 and the command does not appear to be executed by my driver.
Test Client Output:
* Channel: 104
* Command Value Sent: 1
* Response: Command sent successfully
* Current Channel Value after command: 0Could you please guide me on the following points?
1. How should an external application/API send commands to this driver?
2. Which Rapid SCADA server API should be used for command write operations?
3. Does the driver need to implement a specific command handling interface or method to receive commands?
4. Is there any configuration required in Communicator, Server, or Webstation to enable command forwarding?
5. How can I verify whether the command reaches the driver but is not processed?Any sample code or API documentation for writing commands from an external application would be greatly appreciated.
Regards,
Prabhu N
June 22, 2026 at 11:21 am #18068
MikhailModeratorHi,
You should check all steps how a command is transferred.
Check ScadaServer.log, then ScadaComm.log, then the communication line log.
Log files provide additional details that can help to resolve the issue.There is also a GUI client.
Does the driver need to implement a specific command handling interface or method to receive commands?
Is it your own custom driver or some of the existing drivers?
June 22, 2026 at 11:32 am #18069prabhu.natarajan.n@gmail.com
ParticipantIs it your own custom driver or some of the existing drivers?
Ans: it is simulated device and sample project from installation folder
June 22, 2026 at 1:02 pm #18071prabhu.natarajan.n@gmail.com
Participant2026-06-22 18:17:48 [ENGINEERING][ENGINEERING$][ACT] Delete outdated data from the Events archive older than 22/06/2025 2026-06-22 18:17:51 [ENGINEERING][ENGINEERING$][ACT] Session with ID 7890597929073407682 created 2026-06-22 18:17:51 [ENGINEERING][ENGINEERING$][ACT] Client 127.0.0.1 connected 2026-06-22 18:17:51 [ENGINEERING][ENGINEERING$][ACT] User ScadaComm is successfully authenticated 2026-06-22 18:17:53 [ENGINEERING][ENGINEERING$][ACT] Client 127.0.0.1 disconnected 2026-06-22 18:17:54 [ENGINEERING][ENGINEERING$][ACT] Session with ID -6828743871651050153 created 2026-06-22 18:17:54 [ENGINEERING][ENGINEERING$][ACT] Client 127.0.0.1 connected 2026-06-22 18:17:54 [ENGINEERING][ENGINEERING$][ACT] User ScadaComm is successfully authenticated 2026-06-22 18:18:22 [ENGINEERING][ENGINEERING$][ACT] Session with ID 1116548718686851889 created 2026-06-22 18:18:22 [ENGINEERING][ENGINEERING$][ACT] Client 127.0.0.1 connected 2026-06-22 18:18:22 [ENGINEERING][ENGINEERING$][ACT] User ScadaWeb is successfully authenticated 2026-06-22 18:18:23 [ENGINEERING][ENGINEERING$][ACT] Client 127.0.0.1 disconnected 2026-06-22 18:18:27 [ENGINEERING][ENGINEERING$][ACT] Session with ID -6790403651749003545 created 2026-06-22 18:18:27 [ENGINEERING][ENGINEERING$][ACT] Client 127.0.0.1 connected 2026-06-22 18:18:27 [ENGINEERING][ENGINEERING$][ACT] User ScadaWeb is successfully authenticated 2026-06-22 18:18:27 [ENGINEERING][ENGINEERING$][ACT] Checking username and password for user admin is successful 2026-06-22 18:18:30 [ENGINEERING][ENGINEERING$][ACT] Session with ID -1590437787900415357 created 2026-06-22 18:18:30 [ENGINEERING][ENGINEERING$][ACT] Client 127.0.0.1 connected 2026-06-22 18:18:30 [ENGINEERING][ENGINEERING$][ACT] User ScadaWeb is successfully authenticated 2026-06-22 18:18:38 [ENGINEERING][ENGINEERING$][ACT] Session with ID -2811313689489181496 created 2026-06-22 18:18:38 [ENGINEERING][ENGINEERING$][ACT] Client 127.0.0.1 connected 2026-06-22 18:18:38 [ENGINEERING][ENGINEERING$][ACT] User ScadaWeb is successfully authenticated 2026-06-22 18:18:43 [ENGINEERING][ENGINEERING$][ACT] Session with ID -7443385097074684453 created 2026-06-22 18:18:43 [ENGINEERING][ENGINEERING$][ACT] Client 127.0.0.1 connected 2026-06-22 18:18:43 [ENGINEERING][ENGINEERING$][ACT] User ScadaComm is successfully authenticated 2026-06-22 18:19:44 [ENGINEERING][ENGINEERING$][ACT] Client 127.0.0.1 disconnected 2026-06-22 18:19:48 [ENGINEERING][ENGINEERING$][ACT] Session with ID -1883278712925751425 created 2026-06-22 18:19:48 [ENGINEERING][ENGINEERING$][ACT] Client 127.0.0.1 connected 2026-06-22 18:19:49 [ENGINEERING][ENGINEERING$][ACT] User ScadaComm is successfully authenticated 2026-06-22 18:19:49 [ENGINEERING][ENGINEERING$][ACT] Command to channel 104 from user with ID 2 2026-06-22 18:19:49 [ENGINEERING][ENGINEERING$][ACT] Command is queued to be sent to clients 2026-06-22 18:20:47 [ENGINEERING][ENGINEERING$][ACT] Command to channel 104 from user with ID 2 2026-06-22 18:20:47 [ENGINEERING][ENGINEERING$][ACT] Command is queued to be sent to clients 2026-06-22 18:22:16 [ENGINEERING][ENGINEERING$][ACT] Client 127.0.0.1 disconnected 2026-06-22 18:24:41 [ENGINEERING][ENGINEERING$][ACT] Session with ID 5517713182009599264 created 2026-06-22 18:24:41 [ENGINEERING][ENGINEERING$][ACT] Client 127.0.0.1 connected 2026-06-22 18:24:41 [ENGINEERING][ENGINEERING$][ACT] User ScadaComm is successfully authenticated 2026-06-22 18:25:43 [ENGINEERING][ENGINEERING$][ACT] Client 127.0.0.1 disconnected 2026-06-22 18:29:38 [ENGINEERING][ENGINEERING$][ACT] Session with ID 9109001899454119379 created 2026-06-22 18:29:38 [ENGINEERING][ENGINEERING$][ACT] Client 127.0.0.1 connected 2026-06-22 18:29:38 [ENGINEERING][ENGINEERING$][ACT] User ScadaComm is successfully authenticated 2026-06-22 18:29:38 [ENGINEERING][ENGINEERING$][ACT] Command to channel 105 from user with ID 2 2026-06-22 18:29:38 [ENGINEERING][ENGINEERING$][ACT] Command is queued to be sent to clients 2026-06-22 18:30:49 [ENGINEERING][ENGINEERING$][ACT] Command to channel 105 from user with ID 2 2026-06-22 18:30:50 [ENGINEERING][ENGINEERING$][ACT] Command is queued to be sent to clients 2026-06-22 18:30:55 [ENGINEERING][ENGINEERING$][ACT] Command to channel 105 from user with ID 2 2026-06-22 18:30:55 [ENGINEERING][ENGINEERING$][ACT] Command is queued to be sent to clients
Not updated in SCADA Channel Value
-
This reply was modified 1 month, 2 weeks ago by
Mikhail.
June 23, 2026 at 3:58 pm #18074
MikhailModeratorHi,
Then check ScadaComm.log if a command registered there or not.June 23, 2026 at 4:03 pm #18076prabhu.natarajan.n@gmail.com
ParticipantHi Team,
I checked the logs and found that no command is being logged when the command is sent from the GUI.
However, the command is logged correctly when it is issued from the Web UI (http://127.0.0.1:10008).
Could you please check why GUI-generated commands are not being recorded in the command log?
Thanks,
PrabhuJune 24, 2026 at 12:10 pm #18080
MikhailModeratorHi,
If you mean commands sent from the Administrator application, you should find them in ScadaComm.logJune 24, 2026 at 12:12 pm #18081
MikhailModeratorMake sure that file commands are enabled in the Communicator options.
June 25, 2026 at 5:53 am #18082prabhu.natarajan.n@gmail.com
Participant<?xml version=”1.0″ encoding=”utf-8″?>
<ScadaCommConfig>
<GeneralOptions>
<IsBound>true</IsBound>
<SendModifiedData>true</SendModifiedData>
<SendAllDataPeriod>60</SendAllDataPeriod>
<EnableCommands>true</EnableCommands>
<EnableFileCommands>true</EnableFileCommands>
<StartLinesOnCommand>false</StartLinesOnCommand>
<StopWait>10</StopWait>
<MaxLogSize>1</MaxLogSize>
</GeneralOptions>
<ConnectionOptions>
<Name>Default Connection</Name>
<Host>localhost</Host>
<Port>10000</Port>
<Username>ScadaComm</Username>
<Password>B9D0F030265751578B00E9801C69320C</Password>
<Timeout>10000</Timeout>
<SecretKey>0E063D581B1DB27B8E984993DED65CE99284A706756C706C7F3B12C44BD55D4D</SecretKey>
</ConnectionOptions>
<DataSources>
<DataSource active=”true” code=”ScadaServer” name=”Server Data Source” driver=”DrvDsScadaServer”>
<Option name=”ClientLogEnabled” value=”false” />
<Option name=”Connection” value=”” />
<Option name=”DataLifetime” value=”3600″ />
<Option name=”DeviceFilter” value=”” />
<Option name=”MaxQueueSize” value=”1000″ />
<Option name=”ReadConfigDb” value=”true” />
<Option name=”UseDefaultConn” value=”true” />
</DataSource>
<DataSource active=”false” code=”OpcUaServer” name=”OPC UA Server” driver=”DrvDsOpcUaServer”>
<Option name=”AutoAccept” value=”false” />
<Option name=”ConfigFileName” value=”” />
<Option name=”DeviceFilter” value=”” />
<Option name=”Password” value=”B9D0F030265751578B00E9801C69320C” />
<Option name=”Username” value=”opc” />
</DataSource>
</DataSources>
<Lines>
<Line active=”true” isBound=”true” number=”1″ name=”My Line”>
<LineOptions>
<ReqRetries>3</ReqRetries>
<CycleDelay>0</CycleDelay>
<CmdEnabled>true</CmdEnabled>
<PollAfterCmd>true</PollAfterCmd>
<DetailedLog>true</DetailedLog>
</LineOptions>
<Channel type=”” driver=”” />
<CustomOptions />
<DevicePolling>
<Device active=”true” isBound=”true” number=”1″ name=”Simulator” driver=”DrvSimulator” numAddress=”0″ strAddress=”” pollOnCmd=”false” timeout=”0″ delay=”1000″ time=”00:00:00″ period=”00:00:00″ cmdLine=”” />
</DevicePolling>
</Line>
</Lines>
</ScadaCommConfig>June 25, 2026 at 5:54 am #18083prabhu.natarajan.n@gmail.com
ParticipantCould you please check
June 25, 2026 at 11:09 am #18086
MikhailModeratorIn the above config the EnableFileCommands parameter is true.
So you should see commands in ScadaComm.logAugust 5, 2026 at 1:20 pm #18240prabhu.natarajan.n@gmail.com
ParticipantHi Mikhail,
Thank you for checking.
Yes,
EnableFileCommandsis set totrue.Commands sent manually from the Rapid SCADA GUI are working correctly. However, I am still facing the same issue with GUI Tool.
Could you please check what could cause file commands not to be processed even though
EnableFileCommands=true, while the same commands work correctly when sent from the GUI?I will also check
ScadaComm.logwhile triggering the file command and share the relevant log entries.Thanks,
Prabhu -
This topic was modified 1 month, 2 weeks ago by
-
AuthorPosts
- You must be logged in to reply to this topic.