Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

S7-200 Smart 读取报错 #7

Open
cancelpj opened this issue Oct 14, 2022 · 2 comments
Open

S7-200 Smart 读取报错 #7

cancelpj opened this issue Oct 14, 2022 · 2 comments

Comments

@cancelpj
Copy link

["2022-10-14 09:44:38.224 +08:00","[INF]","COMM","", "sync_plc_nodes: [s7_200_smart] [q1.0] Error: System.InvalidOperationException: Could not execute method: plcReadBool(7b294fe3-1794-40d8-9acf-1d067cc6d15d, q1.0, NaN, CefSharp.Internals.JavascriptCallbackProxy) ---> System.ArgumentException: 类型“System.Double”的对象无法转换为类型“System.Int32”。 在 System.RuntimeType.TryChangeType(Object value, Binder binder, CultureInfo culture, Boolean needsSpecialCast) 在 System.Reflection.MethodBase.CheckArguments(Object[] parameters, Binder binder, BindingFlags invokeAttr, CultureInfo culture, Signature sig) 在 System.Reflection.RuntimeMethodInfo.InvokeArgumentsCheck(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) 在 System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) 在 System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters) 在 CefSharp.Internals.JavascriptObjectRepository.TryCallMethod(Int64 objectId, String name, Object[] parameters, Object& result, String& exception) 位置 c:\\projects\\cefsharp\\CefSharp\\Internals\\JavascriptObjectRepository.cs:行号 170 --- 内部异常堆栈跟踪的结尾 --- 在 CefSharp.Internals.JavascriptObjectRepository.TryCallMethod(Int64 objectId, String name, Object[] parameters, Object& result, String& exception) 位置 c:\\projects\\cefsharp\\CefSharp\\Internals\\JavascriptObjectRepository.cs:行号 194"],

@xeden3
Copy link
Owner

xeden3 commented Nov 5, 2022

你好,可能需要你提供下配置文件方便验证

@xeden3
Copy link
Owner

xeden3 commented Nov 7, 2022

微信图片_20221107115036

通过HSL来做测试,S7-200 Smart 是可用的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants