-
Notifications
You must be signed in to change notification settings - Fork 21
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
multiWrite: Error: parameter size not correct #28
Comments
Did you try using 0 and 1 instead of false and true?JanOp 30 mei 2019 08:58 schreef w570955342 <[email protected]>:Hi @PLCHome ,
I was trying to use multiWrite to pass the array to the beckhoff machine.
But when I pass the array I got an exception of 'parameter size not correct'
Here is the handle that I pass through:
var myHandle = [{
symname: 'Main.b',
bytelength: ads.INT,
value: 200
}, {
symname: 'Main.c',
bytelength: ads.BOOL,
value: true
}]
Did I do something wrong?
—You are receiving this because you are subscribed to this thread.Reply to this email directly, view it on GitHub, or mute the thread.
|
Thanks for your answer.
|
I also run into the same issue. And exactly as you write, with only single handle in the array it works, with more it always fails... |
Hello @ALL there is a bug in the function multiWrite on line 384 to 386. I hope this helps! regards |
Hi @PLCHome ,
I was trying to use multiWrite to pass the array to the beckhoff machine.
But when I pass the array I got an exception of 'parameter size not correct'
Here is the handle that I pass through:
var myHandle = [{
symname: 'Main.b',
bytelength: ads.INT,
value: 200
}, {
symname: 'Main.c',
bytelength: ads.BOOL,
value: true
}]
Did I do something wrong?
The text was updated successfully, but these errors were encountered: