News:

SMF - Just Installed!

Main Menu

Index was outside the bounds of the array.

Started by plcexperthelp, June 16, 2014, 05:56:26 PM

Previous topic - Next topic

plcexperthelp

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]

EasyPLC_Master

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.

plcexperthelp

 ;) Thank you so much
Now I can clear the error.