modbus
Create a Modbus object for NVIDIA boards
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(
optionally specifies the port used by the MODBUS server.hwObj
,port
,Mode='server')
m = modbus(___,
specifies
additional options with one or more name-value pair arguments using any of the previous
syntaxes for the MODBUS server. Name,Value
)