Nirtec Studio Forum

General Category => EasyPLC v.5 => Topic started by: plcexperthelp on June 16, 2014, 05:56:26 PM

Title: Index was outside the bounds of the array.
Post by: plcexperthelp on June 16, 2014, 05:56:26 PM
I have some trouble to test my machine simulator.
Mesage "Virtual PLC Error" "Index was outside the bounds of the array."
always show when I change the virtual PLC to Run Mode.
I don't know the cause for this error. Could someone inform me how to clear this error?

Thank you.

[attachment deleted by admin]
Title: Re: Index was outside the bounds of the array.
Post by: EasyPLC_Master on June 17, 2014, 09:12:01 AM
The problem you have is in the analogic I/O delcaration (or Register Transfer Length). You have only declared two analogic input (for driver number #1) and two analogic output (for driver number #2).
But in the program you are using a Register transfer with a length of 32 bits to transfer the state from the analogic inputs to the analogic outputs, then or you declare 32 analogic I/O, or you change the length of the register to a User defined of 2 bits.

Regards.
Title: Re: Index was outside the bounds of the array.
Post by: plcexperthelp on June 18, 2014, 03:14:33 PM
 ;) Thank you so much
Now I can clear the error.