powerlnk.typ 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. TYPE
  2. PLACTION_GET_DP_INFO_typ : STRUCT (*query PDO info of datapoint *)
  3. DeviceName : UDINT ; (*in: pointer to the name of the I/O module holding the data point, e.g. "SS1.IF2.ST3.SL7"*)
  4. ChannelName : UDINT ; (*in: pointer to the name of the data point, e.g. "AnalogInput01"*)
  5. DestNode : USINT ; (*out: Node number of destination *)
  6. SrcNode : USINT ; (*out: Node number of source *)
  7. MessageType : USINT ; (*out: Message Type on Powerlink (3 PReq, 4 PRes) *)
  8. MuxSlot : USINT ; (*out: multiplex slot (0 continous station) *)
  9. OffsetAbs : UINT ; (*out: Offset in net data of EPL frame counted in bits *)
  10. OffsetRel : UINT ; (*out: Offset relative to station net data in bits *)
  11. Length : UINT ; (*out: Length of data point counted in bits *)
  12. TypeId : UINT ; (*out: Type ident of datapoint EPL V2 (matches CANopen Specification) *)
  13. NodeInSize : UINT ; (*out: input net size of station (Pres) *)
  14. NodeOutSize : UINT ; (*out: output net size of station (normally Preq) *)
  15. Direction : USINT ; (*out: 1 Input, 2 Output relative to local node *)
  16. Node : USINT ; (*out: node of datapoint *)
  17. reserved : UINT ; (*res: reserved word for alignment *)
  18. ImageIndex : UDINT ; (*out: image index for inputs 0 for outputs *)
  19. ImageOffset : UDINT ; (*out: offset of datapoint in local image buffer (bytes) *)
  20. END_STRUCT;
  21. PLACTION_GET_PDO_INFO_typ : STRUCT (*query PDO info by index / subindex *)
  22. DeviceName : UDINT ; (*in: pointer to the name of the I/O module holding the data point, e.g. "SS1.IF2.ST3.SL7"*)
  23. ODIndex : UINT ; (*in: Index of object in Powerlink object dictionary *)
  24. ODSubindex : USINT ; (*in: Subindex of object in Powerlink object dictionay *)
  25. align : USINT ; (*res: reseved for alignment *)
  26. DestNode : USINT ; (*out: Node number of destination *)
  27. SrcNode : USINT ; (*out: Node number of source *)
  28. MessageType : USINT ; (*out: Message Type on Powerlink (3 PReq, 4 PRes) *)
  29. MuxSlot : USINT ; (*out: multiplex slot (0 continous station) *)
  30. OffsetAbs : UINT ; (*out: Offset in net data of EPL frame counted in bits *)
  31. OffsetRel : UINT ; (*out: Offset relative to station net data in bits *)
  32. Length : UINT ; (*out: Length of data point counted in bits *)
  33. TypeId : UINT ; (*out: Type ident of datapoint EPL V2 (matches CANopen Specification) *)
  34. NodeInSize : UINT ; (*out: input net size of station (Pres) *)
  35. NodeOutSize : UINT ; (*out: output net size of station (normally Preq) *)
  36. Direction : USINT ; (*out: 1 Input, 2 Output relative to local node *)
  37. Node : USINT ; (*out: node of datapoint *)
  38. reserved : UINT ; (*res: reserved word for alignment *)
  39. ImageIndex : UDINT ; (*out: image index for inputs 0 for outputs *)
  40. ImageOffset : UDINT ; (*out: offset of datapoint in local image buffer (bytes) *)
  41. END_STRUCT;
  42. PLACTION_GET_CROSSLINK_INFO_typ : STRUCT (*query position of I/O data points in the poll response frame to listen in on inputs from other CNs*)
  43. DeviceName : UDINT ; (*in: pointer to the name of the I/O module holding the data point, e.g. "SS1.IF2.ST3.SL7"*)
  44. ChannelName : UDINT ; (*in: pointer to the name of the data point, e.g. "AnalogInput01"*)
  45. NodeId : UINT ; (*out: node number of POWERLINK station*)
  46. Offset : UINT ; (*out: offset in the data range of the poll response frames in bits*)
  47. Length : UINT ; (*out: size of the data point in the poll response frame in bits*)
  48. TypeId : UINT ; (*out: data type ident of the data point according to the V2 specification*)
  49. END_STRUCT;
  50. PLACTION_DEVICE_TO_BUS_NR_typ : STRUCT (*determines the POWERLINK bus number from the device definition*)
  51. pDeviceString : UDINT ; (*in: string with the device definition in the form "SLx.SSy.IFz", e.g. "SL0.SS1.IF1", given as a pointer, *)
  52. busNumber : USINT ; (*out: after the function is called, the POWERLINK bus number is in this structure element*)
  53. END_STRUCT;
  54. PLACTION_SYNC_STATISTICS_typ : STRUCT (*reads the times of the synchronous task class*)
  55. act_usec : UINT ; (*out: execution period during the last measured cycle*)
  56. min_usec : UINT ; (*out: minimum execution period*)
  57. max_usec : UINT ; (*out: maximum execution period*)
  58. act_cycle : UINT ; (*out: cycle time during the last measured cycle*)
  59. min_cycle : UINT ; (*out: minimum cycle time*)
  60. max_cycle : UINT ; (*out: maximum cycle time*)
  61. END_STRUCT;
  62. PLSYSCONF_RS_typ : STRUCT (*this structure is only evaluated on SG3 targets*)
  63. size_x16 : USINT ; (*size of the configuration entry in 16 byte blocks*)
  64. bus : USINT ; (*bus number where the remote station is located*)
  65. station : USINT ; (*station number of the station*)
  66. flags : USINT ; (*parameter flags for the station: 16#00 normal station, 16#20 slow station*)
  67. hwVariant : UDINT ; (*hardware variant ID *)
  68. insize : INT ; (*input buffer size of the station*)
  69. outsize : INT ; (*output buffer size of the station*)
  70. RespTimeout : INT ; (*response timeout in µs*)
  71. MuxNetworkSlot : USINT ; (*ignored for normal stations, for multiplexed stations 1 to MuxPrescaler*)
  72. reserve2 : USINT ; (*reserved for future updates*)
  73. END_STRUCT;
  74. PLACTION_GET_IDENT_typ : STRUCT (*determines a station ID*)
  75. pName : UDINT ; (*string with the station description, e.g. "SL0.SS1.IF1", given as a pointer*)
  76. ident : UDINT ; (*after the function is called, the station ID is located in this structure element*)
  77. END_STRUCT;
  78. PLACTION_NET_QUALITY_typ : STRUCT (*reads statistic information regarding network quality*)
  79. nLineQualFreezeCnt : UDINT ; (*number of POWERLINK cycles in during the measurement period*)
  80. nLineQualFailCnt : UDINT ; (*number of failed POWERLINK cycles*)
  81. END_STRUCT;
  82. PLSYSCONF_IF_typ : STRUCT (*determines configured POWERLINK interface parameters*)
  83. station : USINT ; (*station number: 0 for manager, 1...253 for controllers*)
  84. slot : USINT ; (*slot of the POWERLINK interface card*)
  85. subslot : USINT ; (*subslot of the POWERLINK interface card*)
  86. interface : USINT ; (*interface number*)
  87. pl_cycle : UDINT ; (*cycle time of a POWERLINK network cycle*)
  88. pl_prescale : UDINT ; (*prescaler for synchronous task classes*)
  89. uptimeout : UDINT ; (*timeout defining how long the wait should be when booting the slave*)
  90. bus : USINT ; (*bus number for this interface*)
  91. MuxStationsPerCycle : USINT ; (*number of multiplexed stations per POWERLINK cycle*)
  92. MuxPrescaler : USINT ; (*number of POWERLINK cycles for one mux cycle 1 .. 253*)
  93. ATOCtaskclass : SINT ; (*taskclass triggering the Output-DMA, 0 ..triggered by System-Tick, plCE_CYCLIC_1 to plCE_CYCLIC_8 ..triggered by cyclic taskklass*)
  94. reservedlong : UDINT ; (*reserved*)
  95. END_STRUCT;
  96. PLSYSCONF_typ : STRUCT (*configuration structure which must be transferred to plConfig*)
  97. noIF : USINT ; (*number of interface cards*)
  98. takt_master : USINT ; (*specifies which interface card should trigger the synchronous timer2 task class*)
  99. reserve1 : UINT ; (*reserved for future use (should always be set to 0)*)
  100. pRemoteCfg : UDINT ; (*pointer to an array with remote station configurations*)
  101. interfaces : ARRAY[0..14] OF PLSYSCONF_IF_typ ; (*interface configurations*)
  102. END_STRUCT;
  103. END_TYPE