Simulation Core
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

CCommon.f90 1.3 KiB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. module CCommon
  2. use CCommonVariables
  3. implicit none
  4. public
  5. contains
  6. ! Input routines
  7. subroutine SetStandRack(v)
  8. implicit none
  9. integer, intent(in) :: v
  10. if(StandRack == v) return
  11. StandRack = v
  12. call OnStandRackChange%Run(v)
  13. #ifdef deb
  14. print*, 'StandRack=', StandRack
  15. #endif
  16. end subroutine
  17. subroutine SetStandRack_WN(v)
  18. !DEC$ ATTRIBUTES DLLEXPORT :: SetStandRack_WN
  19. !DEC$ ATTRIBUTES ALIAS: 'SetStandRack_WN' :: SetStandRack_WN
  20. implicit none
  21. integer, intent(in) :: v
  22. call SetStandRack(v)
  23. end subroutine
  24. ! Output routines
  25. logical function GetDrillWatchOperationMode()
  26. !DEC$ ATTRIBUTES DLLEXPORT :: GetDrillWatchOperationMode
  27. !DEC$ ATTRIBUTES ALIAS: 'GetDrillWatchOperationMode' :: GetDrillWatchOperationMode
  28. implicit none
  29. GetDrillWatchOperationMode = DrillWatchOperationMode
  30. end function
  31. integer function GetStandRack()
  32. implicit none
  33. GetStandRack = StandRack
  34. end function
  35. integer function GetStandRack_WN()
  36. !DEC$ ATTRIBUTES DLLEXPORT :: GetStandRack_WN
  37. !DEC$ ATTRIBUTES ALIAS: 'GetStandRack_WN' :: GetStandRack_WN
  38. implicit none
  39. GetStandRack_WN = StandRack
  40. end function
  41. end module CCommon