Forum Replies Created
-
AuthorPosts
-
MikhailModeratorI didn’t know there was a binary display format
It was added in .NET8. I’ve never tried it before.
Chart Pro falls on the string variable – a white screen
It cannot display graph of a string.
MikhailModerator2024-07-29 13:30:51 [OPC-WINCC][OPC-WINCC$][ACT] Data source ScadaServer: Receive the configuration database 2024-07-29 13:30:53 [OPC-WINCC][OPCSrv][ACT] Data source ScadaServer: Connection state is Logged In
Looks like the ScadaComm6 service is not stopped. Users OPC-WINCC$ and OPCSrv are mixed in the log file.
MikhailModeratorJuly 29, 2024 at 9:32 am in reply to: “Service control command failed” When uploading configuration #15059
MikhailModeratorThe above post is not related to the topic. Please search for existing topics about Modbus. Probably, it’s already solved.
MikhailModeratorAlso hexadecimal format would be useful.
MikhailModeratorIn version 6 you can try creating a format to display value in binary form. Format code would be
B
MikhailModeratorOr
public double GetBits(double val, int n, int len) { ulong ulVal = (ulong)val; return (ulVal >> n) & (ulong)((1 << len) - 1); } public CnlData GetBits(CnlData cnlData, int n, int len) { return NewData(GetBits(cnlData.Val, n, len), cnlData.Stat); }
MikhailModeratorHi,
public double GetBits(double val, int start, int end) { UInt64 uintVal = (UInt64)val; int bitCnt = end - start + 1; int maskShift = 64 - bitCnt; return (uintVal >> start) & ((0xFFFFFFFFFFFFFFFF << maskShift) >> maskShift); }
MikhailModeratorCommunicator works as a service with the system account, while most of OPC clients work as an application.
Try the following:
1. Stop the ScadaComm6 service.
2. Open command line and execute ScadaCommWkr.exe
What will you get in ScadaComm.log and communication line log?
MikhailModeratorThank you for the solution.
MikhailModeratorCan you compare the received data (unspecified) with data collected by any other OPC client? For example, Prosys OPC UA Browser.
MikhailModeratorThe above is ScadaComm.log
But we need lineXXX.log
MikhailModeratorOption 1
Use enumeration format, for example, On-Off. The command sending form will show several buttons.Option 2
Put several buttons on a scheme (mimic diagram). In this case you need a channel of the output type for each button, because a button component sends value = 0.
MikhailModeratorHello,
Could copy a part of communication line log?
MikhailModeratorDo you need many buttons that send different command values via the same channel?
-
AuthorPosts