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]
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.
;) Thank you so much
Now I can clear the error.