EXAMPLE1.CSV 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. //,,,,,,
  2. // Example Test Script for ModScan Application,,,,,,
  3. // ,,,,,,
  4. // Each Script entry consists of the following,,,,,,
  5. // comma delimited data fields:,,,,,,
  6. //,,,,,,
  7. // TEST NAME, NODE, FUNCTION, ADDRESS, LENGTH, DATA, CONTROL CODE
  8. //,,,,,,
  9. // Double slashes on the front of a line denote comments,,,,,,
  10. //,,,,,,
  11. // The following Control Codes may be used (i.e. last field on each line),,,,,,
  12. "// \ -- Continue DATA fields on next line",,,,,,
  13. "// C -- Generate Bad CRC message to slave",,,,,,
  14. "// D -- Check response data quantity only", (ignore actual data),,,,,
  15. "// 1 -- Expect Exception Response 01",,,,,,
  16. "// 2 -- Expect Exception Response 02",,,,,,
  17. "// 4 -- Expect Exception Response 04",,,,,,
  18. "// R -- Expect no Response",,,,,,
  19. "// T (default) -- Verify Response Data",,,,,,
  20. //,,,,,,
  21. //,,,,,,
  22. // First Test:,,,,,,
  23. "// Write 20 Coils to Node 1 starting at address 100",,,,,,
  24. "// Data is alternating pattern of ones & zeros",,,,,,
  25. // (DATA field consists of 32-bits and may be specified,,,,,,
  26. "// as a decimal", hex or floating-point value),,,,,
  27. //,,,,,,
  28. Preset Multiple Coils,1,15,100,20,0xAAAAA,T
  29. //,,,,,,
  30. //,,,,,,
  31. // Second Test:,,,,,,
  32. "// Verify results of first test by reading the pattern back",,,,,,
  33. //,,,,,,
  34. Verify Coil Status,1,1,100,20,0xAAAAA,T
  35. //,,,,,,
  36. // Third Test:,,,,,,
  37. "// Read 100 Input Status values",,,,,,
  38. "// ignore the data and only verify proper quantity returned",,,,,,
  39. //,,,,,,
  40. Verify Input Status,1,2,100,100,0,D
  41. //,,,,,,
  42. //,,,,,,
  43. // Forth Test:,,,,,,
  44. "// Check Slave Response to request for 1000 registers",,,,,,
  45. "// (Should probably generate an exception response)",,,,,,
  46. //,,,,,,
  47. Test Exception 2,1,3,100,1000,0,2
  48. //,,,,,,
  49. // Fifth Test:,,,,,,
  50. "// Check Slave Response to bad CRC",,,,,,
  51. //,,,,,,
  52. Invalid Request,1,1,100,1,0,C
  53. //,,,,,,
  54. // Sixth Test:,,,,,,
  55. "// Query an unknown device & expect no response",,,,,,
  56. //,,,,,,
  57. Query Device 73,73,1,1,1,0,R
  58. //,,,,,,
  59. // Seventh Test:,,,,,,
  60. "// Write 6 Holding Registers with data",,,,,,
  61. // (Each floating point number represents,,,,,,
  62. "// two registers -- The NAME field on the",,,,,,
  63. "// continuation line is ignored)",,,,,,
  64. //,,,,,,
  65. Write Floats,1,16,100,6,1,\
  66. ,2,3,,,,T
  67. //,,,,,,
  68. // Eighth Test:,,,,,,
  69. "// Verify Test Seven by reading back the Registers",,,,,,
  70. //,,,,,,
  71. Read Floats,1,3,100,6,1,\
  72. ,2,3,,,,T
  73. //,,,,,,
  74. // END OF SCRIPT,,,,,,
  75. end,,,,,,