CASE #Polling_Step OF
0:
IF #Polling_condition
THEN
##Polling_Step := 1;
END_IF;
1:
#S_MB_Communication.IN.MB_Pmr.MB_MODE := 0;
#S_MB_Communication.IN.MB_Pmr.MB_DATA_ADDR := 43000;
#S_MB_Communication.IN.MB_Pmr.MB_DATA_LEN := 11;
#S_MB_Communication.IN.REQ := true;
IF
#S_MB_Communication.OUT.Done
THEN
MOVE_BLK(IN := #S_MB_Communication.DATA.Mb_Data[0],
COUNT := 11,
OUT => #MB_Client.DATA.Data_Conversion.Local_Data.IN_1[0]);
#S_MB_Communication.IN.REQ := FALSE;
##Polling_Step := 2;
END_IF;
2:
#S_MB_Communication.IN.MB_Pmr.MB_MODE := 0;
#S_MB_Communication.IN.MB_Pmr.MB_DATA_ADDR := 43060;
#S_MB_Communication.IN.MB_Pmr.MB_DATA_LEN := 9;
#S_MB_Communication.IN.REQ := true;
IF
#S_MB_Communication.OUT.Done
THEN
MOVE_BLK(IN := #S_MB_Communication.DATA.Mb_Data[0],
COUNT := 9,
OUT => #MB_Client.DATA.Data_Conversion.Local_Data.IN_2[0]);
#S_MB_Communication.IN.REQ := FALSE;
##Polling_Step := 3;
END_IF;
3:
#S_MB_Communication.IN.MB_Pmr.MB_MODE := 0;
#S_MB_Communication.IN.MB_Pmr.MB_DATA_ADDR := 43197;
#S_MB_Communication.IN.MB_Pmr.MB_DATA_LEN := 3;
#S_MB_Communication.IN.REQ := true;
IF
#S_MB_Communication.OUT.Done
THEN
MOVE_BLK(IN := #S_MB_Communication.DATA.Mb_Data[0],
COUNT := 3,
OUT => #MB_Client.DATA.Data_Conversion.Local_Data.IN_3[0]);
#S_MB_Communication.IN.REQ := FALSE;
##Polling_Step := 4;
END_IF;
4:
#S_MB_Communication.IN.MB_Pmr.MB_MODE := 0;
#S_MB_Communication.IN.MB_Pmr.MB_DATA_ADDR := 43431;
#S_MB_Communication.IN.MB_Pmr.MB_DATA_LEN := 49;
#S_MB_Communication.IN.REQ := true;
IF
#S_MB_Communication.OUT.Done
THEN
MOVE_BLK(IN := #S_MB_Communication.DATA.Mb_Data[0],
COUNT := 49,
OUT => #MB_Client.DATA.Data_Conversion.Local_Data.IN_4[0]);
#S_MB_Communication.IN.REQ := FALSE;
##Polling_Step := 5;
END_IF;
5:
#S_MB_Communication.IN.MB_Pmr.MB_MODE := 2;
#S_MB_Communication.IN.MB_Pmr.MB_DATA_ADDR := 43060;
#S_MB_Communication.IN.MB_Pmr.MB_DATA_LEN := 11;
MOVE_BLK(IN := #MB_Client.DATA.Data_Conversion.Local_Data.OUT_1[0],
COUNT := 9,
OUT => #S_MB_Communication.DATA.Mb_Data[0]);
#S_MB_Communication.IN.REQ := true;
IF
#S_MB_Communication.OUT.Done
THEN
#S_MB_Communication.IN.REQ := FALSE;
##Polling_Step := 6;
END_IF;
6:
#S_MB_Communication.IN.MB_Pmr.MB_MODE := 2;
#S_MB_Communication.IN.MB_Pmr.MB_DATA_ADDR := 43198;
#S_MB_Communication.IN.MB_Pmr.MB_DATA_LEN := 2;
MOVE_BLK(IN := #MB_Client.DATA.Data_Conversion.Local_Data.OUT_2[0],
COUNT := 2,
OUT => #S_MB_Communication.DATA.Mb_Data[0]);
#S_MB_Communication.IN.REQ := true;
IF
#S_MB_Communication.OUT.Done
THEN
#S_MB_Communication.IN.REQ := FALSE;
##Polling_Step := 1;
END_IF;
END_CASE;