-
Notifications
You must be signed in to change notification settings - Fork 17
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
BK9050 #116
Comments
For your information, I'm using an export of symbols:
I'm trying to subscribe to the symbole name and I got this error "Index out of range". So I tried to get raw value with groupIndex and offset but same error ! The result of a read is: (buffer is the value, USINT is the datatype from export ) 04-09-2023 20:15:58.997 > error > ads_24 > <Buffer 00> USINT
The issue seems coming from "convertFromRaw" |
Could you please show the Node.js code you are using with connection settings? Quickly looking the port could be also 300 (https://download.beckhoff.com/download/document/io/bus-terminals/bk9000_bk9050_bk9100en.pdf): Edit: And yes most probably these BK systems have no system manager so |
Thanks for your answer, this is my settings:
I don't receive Change / success! / failed! log. Just:
I am able to read the value but not decode it. Seems that i'm also able to subscribe to the symbol name, but still same error. However, I feel like I'm only receiving 00 Buffer or 00 00 depending the length. |
What happens when you try to read it using indexGroup and indexOffset with I'm not too familiar with BK9050 and I don't have any unit to test myself. |
I'm able to get the value: Buffer(00 00)
|
Is the value correct? Can you get a value that isn't 0? |
I will check it tonight and let you know, not at my desk, thanks for your support |
Hello again, I was able to decode value by adding this in ads-client.js line 6049:
values are correct |
But with that solutation, cannot read value with readSymbol because of this error and readRaw for BOOL type: I think that catching the decode error remove some properties needed for decoding value
Others types working fine, UINT etc... If you want to check a bit, I can give you access to the linux machine. We can pay for your support as well |
@ptorrent can you send me email. You can find the address from package.json details for example. |
…ength if answering with error code - This caused `RangeError: Index out of range` exception as there wasn't enough bytes received - See [issue #116](#116) - Bug fix: If using older Node.js versions such as 8.x, connection lost could have caused unhandled exception - Reason was `catch {}` which isn't supported in old versions - See [issue #116](#116) - Updated readme to include information about TypeScript types - Thanks to [Christian Rishøj](https://github.com/crishoj) - Updated readme with FAQ about TwinCAT 2 low-end devices - Updated readme about v2 development - Added option to run tests with usermode runtime AmsNetId (`192.168.4.1.1.1`) instead of localhost (`npm run test-um`)
## [1.14.3] - 23.09.2023 ### Changed - Bug fix: Some TwinCAT 2 devices (such as BK9050) do not send data length if answering with error code - This caused `RangeError: Index out of range` exception as there wasn't enough bytes received - See [issue #116](#116) - Bug fix: If using older Node.js versions such as 8.x, connection lost could have caused unhandled exception - Reason was `catch {}` which isn't supported in old versions - See [issue #116](#116) ### Added - Updated readme to include information about TypeScript types - Thanks to [Christian Rishøj](https://github.com/crishoj) - Updated readme with FAQ about TwinCAT 2 low-end devices - Updated readme about v2 development - Added option to run tests with usermode runtime AmsNetId (`192.168.4.1.1.1`) instead of localhost (`npm run test-um`)
Issues related to this are now fixed in 1.14.3 |
Hello,
I'm trying to connect to BK9050.
Without bareClient actived this is what I got during the connecting process:
By setting bareClient to true, it seems able to connect to the device but right after the connection, I got this error:
This is happending when I try to read this register: group:16416 offset:2 length:1
Do you know why I get this error ?
Thanks for your help !
The text was updated successfully, but these errors were encountered: