詹森

Forum Replies Created

Viewing 15 posts - 31 through 45 (of 51 total)
  • Author
    Posts
  • in reply to: CAN Driver #16073
    詹森
    Participant

    Now the device only supports CAN 2.0A/B protocol, I would like to ask how to implement it? The device does not support OPC

    in reply to: How do I send setup data to Modbus device #16064
    詹森
    Participant

    CmdData 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

    in reply to: How do I send setup data to Modbus device #16063
    詹森
    Participant

    https://github.com/njzsky/Public/blob/main/Command.png?raw=true

    In the figure, how do I implement the send command function in the script

    in reply to: How do I send setup data to Modbus device #16062
    詹森
    Participant

    SendCommand(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

    in reply to: Script use #16048
    詹森
    Participant

    我没有理解你的问题 不过我建议你去官网多看看自动控制如何使用

    in reply to: No sign-in #15964
    詹森
    Participant

    https://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

    in reply to: There is a problem with Import Table #15948
    詹森
    Participant

    The way I use it is not quite correct, now I know how to use it, thank you

    in reply to: No sign-in #15947
    詹森
    Participant

    https://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

    in reply to: How to know the network connection status of a device #15925
    詹森
    Participant

    I 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

    in reply to: use PrevTime() #15924
    詹森
    Participant

    Thank You

    in reply to: InitScripts() use #15922
    詹森
    Participant

    Okay, thank you. I thought this method would call itself, so I think I got it. Thank you

    in reply to: InitScripts() use #15911
    詹森
    Participant

    public 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.

    in reply to: InitScripts() use #15903
    詹森
    Participant

    How 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);
    }

    in reply to: InitScripts() use #15896
    詹森
    Participant

    Okay, thank you. That solved my problem, and I want to know more

    public override void InitScripts ()
    {

    }

    How to use this method? Thank you!

    in reply to: InitScripts() use #15893
    詹森
    Participant

    As if there is no call, or how to use it

Viewing 15 posts - 31 through 45 (of 51 total)