Page 1 of 1

Device number

Posted: Sat May 12, 2018 5:14 pm
by tiki77
My USB expancion devise number is 128. When I try to compile the script, I get error: number out of range.
How can I fix this.

-Tino-

Re: Device number

Posted: Sun May 13, 2018 10:09 am
by mvr1918
I guess you mean the USB device number is 128. The number you view in SiOC device window.

Thta is not the same as the IDX number, which is the number that links the script code to the hardware card.

I.e. if you want to use the USB Expansion card to control your OVH, the IDX should be 30, as this is the number(device number in the script code).

Find out more about this by right clicking the Modules and Operation windows in the OC4BAv4Config screen.

In the OC4BAv4.ini you will find all IDX numbers that are used in OC4BAv4 scripts.


The OC4BAv4 documentation also covers this in detail.

Re: Device number

Posted: Sun May 13, 2018 12:03 pm
by tiki77
No, I mean the device number Example IDX=30 USB-Expancion device=128.

The script compiler says it's not ok ; number out of range ----> 128

Re: Device number

Posted: Sun May 13, 2018 6:08 pm
by tiki77
I fixed this doing fresh install Win 10. Now my device numbers start at beginning and it's now 2 for Expancion card, 4 on MCP and 5 on servo card.
It seems like if your usb device number goes above 127, program wont accept number.