Nx_Modbusrtuwrite - Omron NY532-5400 Reference Manual

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

Advertisement

2 Instruction Descriptions

NX_ModbusRtuWrite

The NX_ModbusRtuWrite instruction sends write 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-
Write Com-
tuWrite
mand
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
Write com-
WriteCmd
mand
WriteDat[]
Write data
(array)
Option
Option
Abort
Interruption
Interrup-
Command-
tion com-
Aborted
pletion
*1 If 0 is set, you can broadcast commands to Modbus-RTU slaves.
*2 If you omit an input parameter, the default value is not applied. A building error will occur.
2-1204
FB/
Graphic expression
FUN
NX_ModbusRtuWrite_instance
NX_ModbusRtuWrite
Execute
DevicePort
SlaveAdr
FB
WriteCmd
WriteDat
Option
Abort
I/O
Description
Object that represents a
device port
Address of Modbus-RTU
*1
slave
Write command
Input
Write data
Option
Interruption of instruction
execution
Output
Interruption completion
NX_ModbusRtuWrite_instance(
Done
Busy
CommandAborted
Error
ErrorID
ErrorIDEx
Valid range
---
0 to 247
---
Depends on data type.
---
Depends on data type.
Depends on data type.
NY-series Instructions Reference Manual (W560)
ST expression
Execute,
DevicePort,
SlaveAdr,
WriteCmd,
WriteDat,
Option,
Abort,
Done,
Busy,
CommandAborted,
Error,
ErrorID,
ErrorIDEx);
Unit
Default
---
---
---
1
*2
---
---
*2
---
---
---
FALSE
---
---

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents