powerlnk.fun 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. {REDUND_CONTEXT} {REDUND_UNREPLICABLE} FUNCTION plAction : UINT (*triggers events and reads statistic information*)
  2. VAR_INPUT
  3. ident :UDINT; (*identifier for which the action should be triggered*)
  4. actionID :UDINT; (*ID number of the action which should be triggered*)
  5. pObject :UDINT; (*pointer to the structure in which the parameters and return values of the action are entered*)
  6. objectLen :UDINT; (*size of the structure which was specified with pObject*)
  7. END_VAR
  8. END_FUNCTION
  9. {REDUND_CONTEXT} {REDUND_UNREPLICABLE} FUNCTION plState : UINT (*queries status*)
  10. VAR_INPUT
  11. ident :UDINT; (*identifier of a data point, identifier of a non-cyclic channel or POWERLINK station identifier*)
  12. END_VAR
  13. END_FUNCTION
  14. {REDUND_CONTEXT} {REDUND_UNREPLICABLE} FUNCTION plAcycWrite : UINT (*submits data on a non-cyclic communication channel*)
  15. VAR_INPUT
  16. ident :UDINT; (*identifier returned from plAcycOpen*)
  17. bufferAdr :UDINT; (*pointer to the buffer which should be written*)
  18. bufferLen :UDINT; (*number of bytes which should be written*)
  19. pWrittenLen :REFERENCE TO UDINT; (*pointer to the number of actual written bytes*)
  20. END_VAR
  21. END_FUNCTION
  22. {REDUND_CONTEXT} {REDUND_UNREPLICABLE} FUNCTION plAcycInvite : UINT (*requests data on a non-cyclic communication channel*)
  23. VAR_INPUT
  24. ident :UDINT; (*identifier returned from plAcycOpen*)
  25. END_VAR
  26. END_FUNCTION
  27. {REDUND_CONTEXT} {REDUND_UNREPLICABLE} FUNCTION plAcycRead : UINT (*reads data on a non-cyclic communication channel*)
  28. VAR_INPUT
  29. ident :UDINT; (*identifier returned from plAcycOpen*)
  30. bufferAdr :UDINT; (*pointer to the buffer where reading should take place*)
  31. bufferLen :UDINT; (*maximum number of bytes which should be read*)
  32. pReadLen :REFERENCE TO UDINT; (*pointer to the number of actual read bytes*)
  33. END_VAR
  34. END_FUNCTION
  35. {REDUND_CONTEXT} {REDUND_UNREPLICABLE} FUNCTION plAcycClose : UINT (*closes a non-cyclic communication channel*)
  36. VAR_INPUT
  37. ident :UDINT; (*identifier returned from plAcycOpen()*)
  38. END_VAR
  39. END_FUNCTION
  40. {REDUND_CONTEXT} {REDUND_UNREPLICABLE} FUNCTION plAcycOpen : UINT (*opens a non-cyclic communication channel*)
  41. VAR_INPUT
  42. pName :STRING[80]; (*pointer to the station and channel name which should be written to or read from*)
  43. flags :UDINT; (*e.g. plOPEN_MODE_READ = read, plOPEN_MODE_WRITE = write, ...*)
  44. pIdent :REFERENCE TO UDINT; (*pointer to the ID of the opened channel*)
  45. END_VAR
  46. END_FUNCTION
  47. {REDUND_CONTEXT} {REDUND_UNREPLICABLE} FUNCTION plCEDelete : UINT (*deletes a cyclic copy instruction*)
  48. VAR_INPUT
  49. ident :UDINT; (*identifier returned from plCECreate*)
  50. END_VAR
  51. END_FUNCTION
  52. {REDUND_CONTEXT} {REDUND_UNREPLICABLE} FUNCTION plCECreate : UINT (*creates a cyclic copy instruction*)
  53. VAR_INPUT
  54. pDatapoint :STRING[80]; (*pointer to the string with a data point definition*)
  55. address :UDINT; (*pointer to the image from/to which the value of the IO data point should be copied*)
  56. taskclass :SINT; (*e.g. plCE_CYCLIC_1 = Cyclic #1, plCE_CYCLIC_2 = Cyclic #2, ...*)
  57. pIdent :REFERENCE TO UDINT; (*pointer to the ID where the created data point should be returned*)
  58. END_VAR
  59. END_FUNCTION
  60. {REDUND_CONTEXT} {REDUND_UNREPLICABLE} FUNCTION plConfig : UINT (*sets the POWERLINK configuration*)
  61. VAR_INPUT
  62. pConfigStruct :UDINT; (*pointer to the configuration structure*)
  63. END_VAR
  64. END_FUNCTION