Ny-Series Instructions Reference Manual (W560 - Omron NY532-5400 Reference Manual

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

Advertisement

Related System-defined Variables
Name
_PLC_OptBoardSta
_NXB_UnitIOActiveTbl
Additional Information
Refer to the MODBUS Application Protocol Specification for the specifications of the MODBUS commu-
nications protocol.
You can obtain MODBUS Application Protocol Specification from Modbus Organization, Inc.
http://www.modbus.org/
Precautions for Correct Use
• Execution of this instruction is continued until processing is completed even if the value of Execute
changes to FALSE or the execution time exceeds the task period. The value of Done changes to
TRUE when processing is completed. Use this to confirm normal completion of processing. If Abort is
changed to TRUE during instruction execution, CommandAborted or Done changes to TRUE.
• A compiling error will occur if you use this instruction in an event task. Do not use this instruction in
event tasks.
• "CIF Unit Initialized" may occur when the NX-series Communications Interface Unit is restarted. Send
or receive the data again, if necessary.
• If you use this instruction, do not assign device variables to any I/O ports that are indicated by "W"
under the R/W column on the I/O Map Tab Page in the Sysmac Studio for the applicable NX-series
Communications Interface Unit.
• Data may still remain in the buffer of the target device port in the following cases. To clear the buffer,
execute the NX_SerialBufClear instruction before executing the following instruction: NX_ModbusR-
tuCmd instruction, NX_ModbusRtuRead instruction, or NX_ModbusRtuWrite instruction.
• After the operation starts or when you change the operating mode to RUN mode.
• The retry was set (i.e., Option.Retry is not 0) in the previous instruction execution.
• The previous instruction execution is interrupted (i.e., the CommandAborted output variable is
TRUE).
• An error occurred (i.e., Error is TRUE) in the previous instruction execution.
• An error will occur in the following cases. Error will change to TRUE.
• A value that is out of range was set for SlaveAdr, WriteCmd.Fun, WriteCmd.WriteSize,
Option.Retry, DevicePort.DevicePortType, or DevicePort.PortNo.
• The variable specified with WriteDat is smaller than the size specified with WriteCmd.WriteSize.
• The Unit or port specified with DevicePort does not exist.
• The data type of DevicePort or WriteDat is invalid.
• If more than 32 instructions from the NX_SerialSend instruction, NX_SerialRcv instruction, NX_-
ModbusRtuCmd instruction, NX_ModbusRtuRead instruction, NX_ModbusRtuWrite instruction,
NX_SerialSigCtl instruction, NX_SerialSigRead instruction, NX_SerialStatusRead instruction,
NX_SerialBufClear instruction, NX_SerialStartMon instruction and NX_SerialStopMon instruction
are executed at the same time.

NY-series Instructions Reference Manual (W560)

Meaning
ARRAY[1..2] of
Option Board Status
_sOPTBOARD_
STA
NX Unit I/O Data Active
ARRAY[0..8] OF
Status
BOOL
2 Instruction Descriptions
Data type
• This stores the status of the Option
Board.
• This status tells the NX Units whether
I/O data communications can be pro-
cessed.
• The subscript of the array corre-
sponds to the NX Unit numbers. A
subscript of 0 means the NX bus
master.
Description
2-1211
2

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents