CR1000 OS 22
Updated: 04-26-2011

  1. Fixed initialization of scalar values declared as Long when the value is > 2^24. The value was getting loaded into a float then back to an integer, which caused lost resolution.
  2. Improved FieldCal when working with shared mode variables. FieldCal also modified so reps of zero disables operation with no error code. This provides the wizard another way to disable shared FieldCals.
  3. Increased timeout for OS download from 75 seconds to 100 seconds.
  4. Changed FTPClient to not use up file handles when ACTIVE mode is set but the server returns an error since it requires PASSIVE mode.
  5. Improved FTPClient to return a failure if the connection is successful but the file transfer in some way fails.
  6. Improved dialing so that bytes arriving immediately after dialing is successful are not thrown away.
  7. Changed FTP server to not allow HIDDEN files to be retrieved.
  8. Fixed http in the case that when memory has been depleted possible memory corruption occured.
  9. Improved TCP to enhance FTPClient success and lessen chances of a watchdog error.
  10. Extended minimum TCP retransmission from 1 second to 4 seconds.
  11. Fixed PakBus/TCP password.
  12. Improved SerialOpen and SerialClose to use a new flag so that SerialClose does not disturb PPP dialing if SerialOpen had not opened the comport.
  13. Added FTP client and server to the 'W' terminal mode to "sniff" on TCP commands.
  14. Fixed FTPClientso that it does not occasionally fail unnecessarily.
  15. Improved PPPOpen by adding a 30 second timeout to wait.
  16. Changed PPPClose to work better when called multiple times; changed SerialOpen and SerialClose to coordinate better with PPP.
  17. Changed PPP negotiation timeout to 6 seconds from 4 seconds to prevent PPP connection to a very slow server.
  18. Added PPP status information to IPINFO status.
  19. Improved TCP SerialIn. When using TCP serial in and out via CRBasic, flush the input buffer when TCP is closed.
  20. Fixed possible memory corruption using tablefile and web services JSON output when reading from a final storage string type. If the string length was greater than 64 characters the stack buffer space was not larger enough and memory was corrupted.
  21. Fixed JSON and XML format in the case there are no records.
  22. Improved FileUpload when the file cannot be opened or some other error happens that could lead to multiple uses of the same comms memory, possibly causing memory corruption and a watchdog.
  23. Improved FileUpload if an error is encountered in the middle of reading the file.
  24. Fixed possible problem uploading a file if a fragment needs to be resent .
  25. Changed PakBus file upload. When uploading a file that is associated with an active CardOut, the data will be flushed to the card prior to starting the upload. The program may continue storing during the upload, this may give unexpected results in the retrieved file after conversion.
  26. Improved reserving memory for Card Task to keep the memory locked up to the point where the task starts so another task does not get the memory. This problem was causing out of memory errors in a test suite program when TLS was enabled.
  27. Improved CardOut by pre-allocating memory for Card thread stack size and file information, to ensure there is enough memory available after locking Final Storage memory. This was causing some programs to fail compile after a power cycle with a CardOut instruction.
  28. Fixed ACPower Split Phase measurement.
  29. Fixed DNP3 so that the flags for all objects and variations are recorded correctly.
  30. Changed DNP3 so that by default there is no Confirm Link Data Request. Confirm Link Data Request is activated by setting the (optional) timeout parameter to non-zero, specifying the time in seconds to wait for the Data Link response.
  31. Changed DefaultSettings for BaudRateSDC to 115200.
  32. Changed calibration check to give a warning rather than error and force the gain range of bad cals to NAN.
  33. Improved Terminal 'W' "sniff" command to allow TCP sniffing on a TCP com port for all connections except the connection we are sniffing on.
  34. Changed 'W' terminal mode ASCII(Y)? so a carriage return will default to Y instead of exiting.
  35. Fixed PakBus Terminal mode 'P' and 'W' possible memory overwrite when sending small packets back.
  36. Changed TableFile when running in interval mode and the table is set up as non-interval, to not use the calculated approximate output file size in determining whether to delete old files. The approximate file size information is used to avoid attempting a write failing, then having to delete a file and try again. If the table is called or outputs conditionally, then the approximate file size can cause premature deletion of files and reduction of the number of files stored on the drive.
  37. Improved PortGet to allow ports 11 and 12, these return the state of pulse channel 1 and pulse channel 2, respectively. The CR3000 also allows port 13 for Pulse channel 3.
  38. Changed TimerIO to not be allowed outside Scan..NextScan, and don't crash compiler if it is.
  39. Enhanced TableFile to force a flush of all internal storage every time an SC115 is attached. This enhanced milking mode is enabled by setting the NumRecs parameter to 0 while the interval is -1. With the Interval -1 and the NumRecs > 0, NumRecs back from the current record will be stored to the file. Also changed the behavior when MaxFiles = 0. The filename will remain fixed with no number appended. The old file, if ones exists, will be overwritten at each output.
  40. Improved SDMIO16 to allow Longs in Dest/Source and Status parameters.
  41. Synchronized SDM and processing after setting time and before re-starting the task sequencer. NOTE: This had the potential of hanging programs using SDM devices when time was set.
  42. Enhanced pre-compiler with a new mode to process a program with conditional compiling (#if..#end, etc.) to store the program that results from evaluating the conditional compilation directives. This is accessed in CRBasic from the Compile
  43. Conditional Compile and Save menu item (version 3.3 or greater) or enabled from the pre-compiler command line by using -p . This allows a master file to be processed to generate desired "configurations".
  44. Improved HydraProbe instruction by adding LOAM soil type.
  45. Fixed float to long conversion problems in expressions with multiple AND, OR, XOR, =, IMP, <<, and >> operators.
  46. Fixed SDI12 terminal snooping ('W' command).
  47. Fixed Central Routers to stop a memory leak on CommsMemFree(2)
  48. Fixed a possible problem with the Files Manager setting when removing files with older serial numbers.
  49. Changed web service to return "Last-Modified-Date" of files and to return 304 "Not Modified" if the file has not been modified since. This allows the http client to use the cached file instead of retrieving the same file again.
  50. Changed FileList to guard against a file name that is larger than the string size, which was corrupting adjacent memory.
  51. Changed ArrayLength for variables of type String to return the number of Strings in the array instead of the total number of characters.
  52. Changed ConstTable editing to not append a each time a constant is modified.
  53. Improved FFT instruction by adding checking to make sure the source is as large as needed according to N and option parameters.
  54. Changed Move instruction to not use null pointer to field information when the source is an expression.
  55. Increased buffer size for keyboard/display buffers that receive the time information. With the null it can go beyond the previously allocated 21 characters.
  56. Removed warning for WorstCase table not being called.
  57. Changed to not allow CallTable to be used with WorstCase table.
  58. Changed loading OS from keyboard/display file menu to check for memory before allocating, so that a warning can notify the user to stop the running program and try again.
  59. Fixed sprintf problem with -0. We thought we had fixed this twice previously but found that the compiler was optimizing away our intended fix. The check for -0 was working as the value on the stack was changed but the compiler had already loaded the value in a register and did not detect that it needed to re-read the modified value. This allowed the -0 to pass into our optimized conversion routine causing a lock up.
  60. Changed EmailRecv so date, subject, etc. are only stored if the file is found.
  61. Fixed For loop with no index variable assigned to not crash compiler.
  62. Improved ModBusMaster and ModBusSlave to allow them to get and receive String Data (2 bytes per register, Null terminated.)
  63. Added UINT4 (Unsigned Integer) data type in DataTable fields
  64. Changed ConstTable editing to accommodate encrypted files.
  65. Improved USB to allow it to work with FileManage.
  66. Fixed subroutine error message for a subroutine name that begins with numeric, causing compiler to crash.