PduFuncType.cs 1.3 KB

1234567891011121314151617181920212223242526272829303132
  1. namespace Houdar.PLC.Driver.Simenss.Protocol.Common
  2. {
  3. public enum PduFuncType
  4. {
  5. // PDU Functions
  6. PduResponse = 0x02, // Response (when error)
  7. PduFuncRead = 0x04, // Read area
  8. PduFuncWrite = 0x05, // Write area
  9. PduNegotiate = 0xF0, // Negotiate PDU length
  10. PduStart = 0x28, // CPU start
  11. PduStop = 0x29, // CPU stop
  12. PduStartUpload = 0x1D, // Start Upload
  13. PduUpload = 0x1E, // Upload
  14. PduEndUpload = 0x1F, // EndUpload
  15. PduReqDownload = 0x1A, // Start Download request
  16. PduDownload = 0x1B, // Download request
  17. PduDownloadEnded = 0x1C, // Download end request
  18. PduControl = 0x28, // Control (insert/delete..)
  19. // PDU SubFunctions
  20. SFunListAll = 0x01, // List all blocks
  21. SFunListBoT = 0x02, // List Blocks of type
  22. SFunBlkInfo = 0x03, // Get Block info
  23. SFunReadSzl = 0x01, // Read SZL
  24. SFunReadClock = 0x01, // Read Clock (Date and Time)
  25. SFunSetClock = 0x02, // Set Clock (Date and Time)
  26. SFunEnterPwd = 0x01, // Enter password for this session
  27. SFunCancelPwd = 0x02, // Cancel password for this session
  28. SFunInsert = 0x50, // Insert block
  29. SFunDelete = 0x42, // Delete block
  30. }
  31. }