PROGRAM MAIN
 VAR_CONSTANT
  Set_value:INT:=K1000;
 END_VAR
 VAR
  Storage_register AT D12287:INT:;
  Analog_value AT D12286:INT:;
 END_VAR
 VAR_EXTERNAL
  PB1:BOOL:;
  PB2:BOOL:;
  Output_enable:BOOL:;
  DA_Convert_READY:BOOL:;
 END_VAR
 VAR_EXTERNAL_CONSTANT
  Head_No:INT:=H0;
 END_VAR
END_PROGRAM
