RtInstance.cs 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using Aitex.Core.RT.PLC;
  6. using Aitex.Core.RT.SCCore;
  7. namespace Aitex.Triton160.RT
  8. {
  9. public class RtInstance
  10. {
  11. public const string SystemName = "Triton160";
  12. public const string DbName = "triton160db";
  13. public const string DeviceModelFileName = "DeviceModel.Hz.xml";
  14. public const string LocalIoDefineFileName = "_ioDefineTriton160.xml";
  15. public const string LocalPlcIpAddress = "192.168.10.10";
  16. public const int LocalPlcIoBaseDi = 20;
  17. public const int LocalPlcIoBaseDo = 0;
  18. public const int LocalPlcIoBaseAi = 2000;
  19. public const int LocalPlcIoBaseAo = 1000;
  20. public const BlockType LocalPlcDiType = BlockType.WR;
  21. public const BlockType LocalPlcDoType = BlockType.WR;
  22. public const BlockType LocalPlcAiType = BlockType.D;
  23. public const BlockType LocalPlcAoType = BlockType.D;
  24. public const int LocalPlcDiBlockLength = 160;
  25. public const int LocalPlcDoBlockLength = 160;
  26. public const int LocalPlcAiBlockLength = 150;
  27. public const int LocalPlcAoBlockLength = 150;
  28. public const string RemoteIoDefineFileName = "";
  29. public const string RemotePlcIpAddress = "";
  30. public const int RemotePlcIoBaseDi = 0;
  31. public const int RemotePlcIoBaseDo = 0;
  32. public const int RemotePlcIoBaseAi = 0;
  33. public const int RemotePlcIoBaseAo = 0;
  34. public const BlockType RemotePlcDiType = BlockType.WR;
  35. public const BlockType RemotePlcDoType = BlockType.WR;
  36. public const string InterlockFileName = "Interlock.triton160.xml";
  37. public const string RecipeFormatFileName = "RecipeFormat.xml";
  38. public static void SetDefaultConfig()
  39. {
  40. }
  41. }
  42. }