Nx_Modbusrturead - Omron NY532-5400 Reference Manual

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

Advertisement

NX_ModbusRtuRead

The NX_ModbusRtuRead instruction sends read 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-
Read Com-
tuRead
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
Read com-
ReadCmd
mand
Option
Option
Abort
Interruption
ReadDat[]
Read data
(array)
Interrup-
Command-
tion com-
Aborted
pletion
Receive
ReadSize
size
*1 An error occurs if 0 is set.
*2 If you omit an input parameter, the default value is not applied. A building error will occur.
*3 If receive data is WORD data, the upper limit value is 125.
*4 The unit is the same as the unit of read data specified with ReadCmd.Fun.
NY-series Instructions Reference Manual (W560)
FB/
Graphic expression
FUN
NX_ModbusRtuRead_instance
NX_ModbusRtuRead
Execute
DevicePort
SlaveAdr
ReadCmd
FB
ReadDat
Option
Abort
I/O
Description
Object that represents a
device port
Address of Modbus-RTU
*1
slave
Input
Read command
Option
Interruption of instruction
execution
Variable that stores read
In-out
data
Interruption completion
Output
Receive data size
2 Instruction Descriptions
NX_ModbusRtuRead_instance(
Done
Busy
CommandAborted
Error
ReadDat
ErrorID
ErrorIDEx
ReadSize
Valid range
---
1 to 247
---
---
Depends on data type.
Depends on data type.
Depends on data type.
*3
1 to 2,000
ST expression
Execute,
DevicePort,
SlaveAdr,
ReadCmd,
ReadDat,
Option,
Abort,
Done,
Busy,
CommandAborted,
Error,
ErrorID,
ErrorIDEx,
ReadSize);
Unit
Default
---
---
---
1
*2
---
---
---
---
FALSE
---
---
---
---
*4
---
---
2-1193
2

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents