Nx_Modbusrtucmd - Omron NY532-5400 Reference Manual

Ny-series
Hide thumbs Also See for NY532-5400:
Table of Contents

Advertisement

NX_ModbusRtuCmd

The NX_ModbusRtuCmd instruction sends general commands from a serial port on an NX-series Com-
munications Interface Unit or Option Board to Modbus-RTU slaves using Modbus-RTU protocol.
Instruction
Name
Send Mod-
bus RTU
NX_ModbusR-
tuCmd
General
Command
Version Information
A CPU Unit with unit version 1.11 or later and Sysmac Studio version 1.15 or higher are required
to use this instruction.
Variables
Name
Meaning
DevicePort
Device port
Slave
SlaveAdr
address
CmdDat[]
Command
(array)
data
Command
CmdSize
data size
Option
Option
Abort
Interruption
RespDat[]
Read data
(array)
Interrup-
Command-
tion com-
Aborted
pletion
Receive
RespSize
size
*1 If 0 is set, you can broadcast commands to Modbus-RTU slaves.
NY-series Instructions Reference Manual (W560)
FB/
Graphic expression
FUN
NX_ModbusRtuCmd_instance
NX_ModbusRtuCmd
Execute
DevicePort
SlaveAdr
CmdDat
FB
CmdSize
RespDat
Option
Abort
I/O
Description
Object that represents a
device port
Address of Modbus-RTU
*1
slave
Command data
Input
Command data size
Option
Interruption of instruction
execution
Variable that stores read
In-out
data
Interruption completion
Output
Receive data size
2 Instruction Descriptions
NX_ModbusRtuCmd_instance(
Done
Busy
CommandAborted
Error
ErrorID
RespDat
ErrorIDEx
RespSize
Valid range
---
0 to 247
Depends on data type.
1 to 253
---
Depends on data type.
Depends on data type.
Depends on data type.
1 to 253
ST expression
Execute,
DevicePort,
SlaveAdr,
CmdDat,
CmdSize,
RespDat,
Option,
Abort,
Done,
Busy,
CommandAborted,
Error,
ErrorID,
ErrorIDEx,
RespSize);
Unit
Default
---
---
---
1
*2
---
*2*3
Bytes
---
---
---
FALSE
---
---
---
---
*4
Bytes
2-1183
2

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents