主要内容

Mode

Modbus mode of operation

Since R2022a

Model Configuration Pane: Hardware Implementation

Description

Add-On Required: This feature requires the MATLAB Coder Support Package for NVIDIA Jetson and NVIDIA DRIVE Platforms add-on.

The Mode parameter specifies the Modbus® mode of operation for the Simulink® model. This parameter also determines the type of Modbus blocks the Simulink model can use.

Settings

Client (default) | Server
Client

Executes the model as a Modbus client. The model can use the Modbus TCP/IP Client Read and Modbus TCP/IP Client Write blocks.

Server

Executes the model as a Modbus server. The model can use the Modbus TCP/IP Server Read and Modbus TCP/IP Server Write blocks.

Programmatic Use

You cannot set this parameter from the MATLAB® command line.

Version History

Introduced in R2022a