modbus
Add-On Required: This feature requires the MATLAB Coder Support Package for NVIDIA Jetson and NVIDIA DRIVE Platforms add-on.
Description
Use this object to create a Modbus® connection over TCP/IP and communicate with another MODBUS device on the
network, such as a PLC or temperature controller. You can use the 'Mode'
property to configure the NVIDIA DRIVE® or Jetson™ hardware as a Modbus client and read from a server or configure the NVIDIA® hardware as a Modbus server. To perform read, write, or configuration operations, use this object
with the functions listed in Object Functions.
Creation
Syntax
Description
m = modbus(
creates a hwObj
,deviceAddress
)Modbus
client object, m
and connects to
the Modbus server at the specified address using the TCP/IP port 502. Port number 502
is the reserved port for the Modbus protocol.
m = modbus(
optionally specifies the remote port to be used when connecting to the Modbus server.hwObj
,deviceAddress
,port
)
m = modbus(
configures
the NVIDIA hardware board as a Modbus server at the IP address of the hardware object and TCP/IP port 502. Port
number 502 is the reserved port for the Modbus protocol.hwObj
,Mode='server')
m = modbus(___,
specifies
additional options with one or more name-value pair arguments using one of the previous
syntaxes for the Modbus server. Name,Value
)
Input Arguments
Object Functions
Examples
Extended Capabilities
Version History
Introduced in R2022a