External Mode Logging

With external mode logging, you can generate code from Simulink models with logging instrumentation to collect run-time data on PLC targets. You can enable this feature by using Generate logging code option in the configuration parameters or by using the PLC_GenerateLoggingCode command-line property. The PLC target IDEs must have support for inout variables. You can generate logging code for one of the following target PLC IDEs:

  • 3S-Smart Software Solutions CoDeSys Version 2.3

  • 3S-Smart Software Solutions CoDeSys Version 3.5

  • Rockwell Automation® RSLogix™ 5000

  • Rockwell Automation Studio 5000

  • Beckhoff® TwinCAT® 2.11

  • Beckhoff TwinCAT 3

  • Generic

  • PLCopen XML

  • Rexroth IndraWorks

  • OMRON® Sysmac® Studio

For Rockwell Automation targets, you can set up an Open Platform Communications (OPC) server and use the Simulation Data Inspector in Simulink® to visualize and monitor the logging data. The OPC Toolbox™ is required to run the external mode visualization.

Related Topics