20-sim 4C 2.1.11

20-sim 4C 2.1.11 has been released. This build contains several bugfixes and a few improvements:

2.1.11 (9 October 2018, build 4567)

General Improvements:

  • Add 20-sim 4C version tokens
  • Add 20-sim 4C version information to the model configuration file (MCF)
  • Stored connections in the TXP rely on correct ordering in the TCF. Extra validation using the port name and component name added. Mismatched connection are deleted.
  • Bachmann: add 20-sim 4C version information to the compiled module
  • Bachmann: Do not always write the MCF on exit
  • Bachmann: Add checksum to the MCF. No/corrupt/invalid MCF? Don't start the task
  • Bachmann: Check MCF checksum before applying changes
  • Bachmann: Add a GUID to the MCF and the compiled module to make sure that the MCF and module belong to the same model version
  • Bachmann: Add extra log messages around MCF writing and I/O open/close to facilitate debugging
  • Bachmann: Use FTP for file upload if possible (faster uploading for large models)
  • Bachmann: Update our template based on the Solution Center V2.25 C-module template (gcc 2.95)

Bug fixes:

  • Fixed: Bachmann: Using the DI232 in 20-sim 4C 2.1.10 gave a compile error.
  • Fixed: Bachmann: Misleading status message "submodelname received RcpStop" during PLC boot.
  • Fixed: changing ip or hostname for an existing target did not result in an online status without closing/reopening the project.
  • Fixed: Memory free errors Bachmann (double free under certain fault conditions).
  • Fixed: Code generation with modified output directory in 20-sim results in a project at the wrong location.
  • Fixed: Bachmann: Update minixml code to v2.11 (bugfixes, memory allocation/deallocation fixes).
  • Changed: Allow collecting all I/O intialisation errors before aborting the task initialisation.
  • Changed: Bachmann: Module does not abort SVI variable registration anymore after the first error.
  • Changed: 20-sim 4C CHM help was always on top. This hides the 20-sim 4C window on small screens.

Download 20-sim 4C here.

20-sim 4C 2.1.10

20-sim 4C 2.1.10 has been released. This build contains several bugfixes and a few improvements:

2.1.10 (17 January 2017, build 4051)

General Improvements:

  • 20-sim 4C: Allow logging on a model without finish time without demanding a finish time
  • Bachmann: replace sprinf by snprinf to prevent potential buffer overflows
  • Bachmann: add support for reading the Time_us values, the Temperature and the Usage* values from the RES module

Bug fixes:

  • 20-sim: Code generation compile error on XXExponent2 and XXExponent10 due to missing xx_logarithm constants.
  • 20-sim: C-Code: Fixed: EulerAngles_EulYXZsFromRotationMatrix accidentally did a relative transformation
  • 20-sim: C-Code template: initialize memory on zero to make sure that there a no non-initialized inputs when not connecting them in 4C.
  • 20-sim 4C: TCF cache: don't copy the cached TCF to the cache trying to overwrite itself
  • 20-sim 4C: Fixed: Connections lost when switching to the TCF from the cache folder
  • Bachmann: Taskname "aMODELNAME (1)" => "aMODELNAME_log" (prevent double task names)
  • Bachmann: Improve Bachmann task timing; only listen to the MIO_SYNC_IN signal to prevent jitter on the start times
  • Bachmann: Stop a running model does not work when the connect and compile phase are not yet green
  • Bachmann: Stopping a model stores the end values in the MCF. Restarting the model should not restore all values from the MCF. Only parameters and initialvalues should be read from the MCF. All other values are calculated by the model.
  • TS-7300: Fixed TS-ADC16 usage resulted in a compiler warning

Download 20-sim 4C here.

20-sim 4C 2.1.9

20-sim 4C 2.1.9 has been released. This build contains several bugfixes and a few improvements:

2.1.9 (19 February 2016, build 3795)


  • Bachmann: include the information from the new 20-sim 4.6 model version fields in the Bachmann module info.

General Improvements:

  • 20-sim: Register 20-sim 4C 2.1 as code generation target in 20-sim 4.6.
  • 20-sim 4C: code generation of the connection code was very slow for larger models.
  • 20-sim 4C: the connection list is now also reachable when the model is running on the target.
  • 20-sim 4C: copy the selected TCF to 20-sim 4C project cache
  • 20-sim template: optimization of the Runge Kutta 4 algorithm (less divisions and increased accuracy).
  • Bachmann: prepare the templates for hosting dynamic HTML documentation on the M1.
  • Bachmann: reduce the module loading time on Bachmann for large models.
  • Bachmann: increase the time-out for starting models on the M1.
  • Bachmann: switch to a lower task priority when wrting the model configuration file (MCF).

Bug fixes:

  • 20-sim 4C: Checkbox to disable the "Finish time" was not stored in the 20-sim 4C project.
  • 20-sim template: generated code for matrix element-wise power was wrong
  • 20-sim template: fix compilation issue with XXMatrixPowElement
  • Bachmann: model upload fails with 'Module already exist and could not be removed'
  • Bachmann: fixed a memory leak in the MCF reader
  • Bachmann: module crash when an connected I/O was not found during startup
  • Bachmann: replacing a running model
  • Bachmann: don't enable the Discover button since it is not yet supported

Download 20-sim 4C here.

20-sim 4.6 and 20-sim 4C

Adding 20-sim 4C to 20-sim 4.6

20-sim 4C does not yet recognise 20-sim 4.6. As a consequence, 20-sim 4C does not appear in the list with C-code generation targets.

You can add 20-sim 4C 2.x manually to this list using the following steps:

  1. Start 20-sim 4.6
  2. Open from the menu: "Tools" -> "Options". This will show the "20-sim General Properties" window
  3. Select the "Folders" tab
  4. Click the "C-code Folders" button. this will show the "Folders" window.
  5. Click "Add"
  6. Browse to: "C:\Program Files (x86)\20-sim 4C 2.x\source\20-sim" (or C:\Program Files\20-sim 4C 2.x\source\20-sim on 32-bit systems) and click "Ok"

If everything went right, 20-sim 4C should now appear in the "Folders" list and in your C-code targets list. You can now close the "Folders" window and the "20-sim General Properties window".


You are here: Home Support News
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you agree with our cookie policy.
More information Ok