Hi Granto,
In the above provided model the preset is depending on the sample time (single step size) rather than the preset values defined in the IntFcn. This can be observed by setting the step size in model configuration to 2. On doing so the motor start/stop gets delayed by the same time. Response with sample time 2 :
This seems to be due to discrepancy in the initialization of the ‘delayer_Data’ and ‘delayerOFF_Data’ data store memory. The desired preset delay is observed in the original example file on replacing the start/stop blocks with the step block. Response of the updated model in original example with preset of 10000 for both start & stop:
Please find the implemented model attached for reference.