2.5 KiB
2.5 KiB
| 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 | // (Added March 2001) |
| 13 | // New Test: |
| 14 | // |
| 15 | Analog Value Test,1,3,100,1,1000,%5 |
| 16 | // |
| 17 | // First Test: |
| 18 | // (DATA field consists of 32-bits and may be specified |
| 19 | // |
| 20 | Preset Multiple Coils,1,15,100,20,0xAAAAA,T |
| 21 | // |
| 22 | // |
| 23 | // Second Test: |
| 24 | // |
| 25 | Verify Coil Status,1,1,100,20,0xAAAAA,T |
| 26 | // |
| 27 | // Third Test: |
| 28 | // |
| 29 | Verify Input Status,1,2,100,100,0,D |
| 30 | // |
| 31 | // |
| 32 | // Forth Test: |
| 33 | // |
| 34 | Test Exception 2,1,3,100,1000,0,2 |
| 35 | // |
| 36 | // Fifth Test: |
| 37 | // |
| 38 | Invalid Request,1,1,100,1,0,C |
| 39 | // |
| 40 | // Sixth Test: |
| 41 | // |
| 42 | Query Device 73,73,1,1,1,0,R |
| 43 | // |
| 44 | // Seventh Test: |
| 45 | // (Each floating point number represents |
| 46 | // |
| 47 | Write Floats,1,16,100,6,1.00,\ |
| 48 | ,2.00,3.00,,,,T |
| 49 | // |
| 50 | // Eighth Test: |
| 51 | // |
| 52 | Read Floats,1,3,100,6,1.00,\ |
| 53 | ,2.00,3.00,,,,T |
| 54 | // |
| 55 | // END OF SCRIPT |
| 56 | end |