Forum Replies Created
-
AuthorPosts
-
詹森
ParticipantNow the device only supports CAN 2.0A/B protocol, I would like to ask how to implement it? The device does not support OPC
詹森
ParticipantCmdData byte[] Command data transmitted to Server
I tried to use this variable, I assigned it a value, and the result indicated that it is read-only, this I can’t find how to implement sending values directly from the script to the Modubs device, what to do? I need help. Thank you!
error CS0200: Property or indexer ‘CalcEngine. CmdData’ cannot be assigned to — it is read only
詹森
Participanthttps://github.com/njzsky/Public/blob/main/Command.png?raw=true
In the figure, how do I implement the send command function in the script
詹森
ParticipantSendCommand(cmd, EnableAll);
I tried to use this method, but it can’t be used directly in the script. Is there any way to call it directly, send the data to the Server, and the Server sends the data to the Modbus device? Thank you very much詹森
Participant我没有理解你的问题 不过我建议你去官网多看看自动控制如何使用
詹森
Participanthttps://github.com/njzsky/Public/blob/main/autoLogin.png?raw=true
I’m very sorry, there is something wrong with the link, I just uploaded it again. Again help me to see that I have carried out such a configuration (as shown), why is it still not possible to log in without it, thank you for your answer
詹森
ParticipantThe way I use it is not quite correct, now I know how to use it, thank you
詹森
Participanthttps://img1.lookpic.cn/2025/01/08/autoLogin.png
I have configured the user name and password for automatic login, but I still need to log in. Is the reason for the administrator account? And how to configure a log-in free account
January 7, 2025 at 2:10 am in reply to: How to know the network connection status of a device #15925詹森
ParticipantI also want to know how to get the Communication Lines State? I want to be in a state as to whether the device has failed to communicate
https://img1.lookpic.cn/2025/01/07/GetDevStateeddad1e4b5c090cf.png
How do I get the state in the picture and write it to the channel
詹森
ParticipantThank You
詹森
ParticipantOkay, thank you. I thought this method would call itself, so I think I got it. Thank you
詹森
Participantpublic override void InitScripts()
{
// Put your initialization code here
// Поместите сюда код инициализацииSetData(1153, 0, 1);
SetData(1154, 0, 1);
SetData(1155, 0, 1);
SetVal(1031, 0);
SetVal(1032, 1);
}hello, I now call SetVal(), but it doesn’t have any effect.
GetDefaultData(Val)
Judging that the state is 1, I will not initialize it again, and I need the channel to default to 0 every time I turn on, what else can I do? Thank you for your help.
詹森
ParticipantHow to achieve that the initial value of the channel is 0 every time the program service restarts (even if the value of the last run is not 0, it is reset to 0), and why does the default initial value of channel 11 not write?
public override void InitScripts()
{
SetData(11, 0, 1);
}詹森
ParticipantOkay, thank you. That solved my problem, and I want to know more
public override void InitScripts ()
{}
How to use this method? Thank you!
詹森
ParticipantAs if there is no call, or how to use it
-
AuthorPosts