
(* at least 2 flyways (physical) - GetFlywaySerialNum, PMC_GetPMCSerialNum, PMC_GetPMCVersion *)
FUNCTION_BLOCK Example26_serialnumbers
	//read software version number of the PMC
	PMC_GetPMCVersion1(PM_Controller := PM_Controller,Execute := Execute);
	
	//read serial number of the PMC
	PMC_GetPMCSerialNum1(PM_Controller := PM_Controller,Execute := PMC_GetPMCVersion1.Done);
	
	//read serial number of flyway 1
	PMC_GetFlywaySerialNum1(PM_Controller := PM_Controller,Execute := PMC_GetPMCSerialNum1.Valid,FlywayID := 1);
	
	//read serial number of flyway 2
	PMC_GetFlywaySerialNum2(PM_Controller := PM_Controller,Execute := PMC_GetFlywaySerialNum1.Valid,FlywayID := 2);
	
	Done := PMC_GetFlywaySerialNum2.Valid;
END_FUNCTION_BLOCK
