diff --git a/Modbus-CAPL/include/CAPL/TestTheStack.can b/Modbus-CAPL/include/CAPL/TestTheStack.can index df6fa6a..5f96e10 100644 --- a/Modbus-CAPL/include/CAPL/TestTheStack.can +++ b/Modbus-CAPL/include/CAPL/TestTheStack.can @@ -1,6 +1,8 @@ /*@!Encoding:1252*/ // The state machine in this file will use all functions of the Modbus Client and check the results +// Use the SysVars to configure the test. + // The states are: // // 0: Get device information [ -> OnModbusReadRegistersSuccess ] @@ -130,13 +132,13 @@ void OnModbusReadBitsFailed(enum ModbusRequestError error, enum ModbusException case 130: writeDbg(MbError, "State %d. Reading %d output bits from 0x%04X did not work! Reason: %s", state, mbreq.Count, mbreq.Address, reason); break; - case 200: + case 900: if (error == FinalTimeout) { - writeDbg(MbError, "State %d. Packet timed out! Receive window size: %d", state, s90i-1); - state = 210; + writeDbg(MbInfo, "State %d. Packet timed out! Receive window size: %d", state, s90i-1); + state = 910; stop(); - break; + return; } else writeDbg(MbError, "State %d. Error while writing bit: %s", state, reason); @@ -332,7 +334,7 @@ void OnModbusReadRegistersSuccess(struct ModbusResReceiveRegisters mbres, struct case 150: writeDbg(MbDebug, "State %d. Successfully received three Read-Registers telegrams (as expected)", state); if (skipOutput) - state = 900; + state = 190; else { state = 160; diff --git a/Modbus-CAPL/include/SysVars/testthestack.vsysvar b/Modbus-CAPL/include/SysVars/testthestack.vsysvar index 7957d13..ef3ada9 100644 --- a/Modbus-CAPL/include/SysVars/testthestack.vsysvar +++ b/Modbus-CAPL/include/SysVars/testthestack.vsysvar @@ -3,24 +3,14 @@ - - - + + - - - - - - - - -