Mover Detection Setup (mover detection)

VAR
     arMoverDetectionSetup:ARRAY[0..4] OF ST_TcIoMoverDetectionSetup;
END_VAR
2: // Adapt mover detection setup
     // Set number of APM4330
     arMoverDetectionSetup[0].MoverType := XPlanarMoverType.APM4330;
     arMoverDetectionSetup[0].ExpectedCount := 4;
     // Set number of APM4220
     arMoverDetectionSetup[1].MoverType := XPlanarMoverType.APM4220;
     arMoverDetectionSetup[1].ExpectedCount := 0;
     // Set number of APM4221
     arMoverDetectionSetup[2].MoverType := XPlanarMoverType.APM4221;
     arMoverDetectionSetup[2].ExpectedCount := 0;
     // Set number of APM4550
     arMoverDetectionSetup[3].MoverType := XPlanarMoverType.APM4550;
     arMoverDetectionSetup[3].ExpectedCount := 0;

     ipXpu.SetMoverDetectionSetup(4,ADR(arMoverDetectionSetup));
     nState := nState - 1;