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

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

Advertisement

2 Instruction Descriptions
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.
• For DevicePort.NxUnit and DevicePort.EcatSlave, specify the device variable that is assigned to the
IO-Link master unit in the I/O Map of the Sysmac Studio. Refer to the Sysmac Studio Version 1 Oper-
ation Manual (Cat. No. W504-E1-07 or later) for details on assigning device variables.
• The size of the variable specified for ReadDat must be larger than the size of the object that is actu-
ally read.
• If ReadDat is STRING data, specify a variable whose size is the sum of the actually read string and a
NULL character.
• If ReadDat is STRING data, the size that is output to ReadSize does not include the NULL character.
• Always use a variable for the parameter to pass to ReadDat. A building error will occur if a constant is
passed.
• You can execute only one instruction at a time for the IO-Link master unit regardless of its type (NX or
GX).
• You cannot use this instruction in an event task. A compiling error will occur.
• This instruction is executed when Execute changes to TRUE. The instruction is not executed when
Execute is always TRUE.
• You can use a maximum of 64 instances for the IOL_ReadObj and IOL_WriteObj instructions.
• An error will occur in the following cases.
• A value that is out of range was set for DevicePort.NxUnit or DevicePort.EcatSlave.
• The size of the IO-Link device object to read is larger than the size of ReadDat. If this error
occurs, the read data is not stored in ReadDat.
• An error response was received from the IO-Link device.
The upper eight bits represent ErrorCode, and lower eight bits represent AdditionalCode.
For ErrorCode and AdditionalCode, refer to the Error type specifications of the IO-Link Communi-
cation Specification. You can obtain the Error type specifications from the IO-Link Consortium.
http://www.io-link.com/
• The specified IO-Link master unit does not exist.
• The maximum number of messages that the IO-Link master can process is exceeded. Instruction
execution is not possible because the IO-Link master is processing the messages from other
applications.
• The specified IO-Link master unit is not in a condition to receive messages.
• More than 32 of the following instructions were executed at the same time: EC_CoESDOWrite,
EC_CoESDORead, EC_StartMon, EC_StopMon, EC_SaveMon, EC_CopyMon, EC_Disconnect-
Slave, EC_ConnectSlave, EC_ChangeEnableSetting, IOL_ReadObj, and IOL_WriteObj.
• A timeout occurred during communications.
• The specified port of the IO-Link master unit is not the IO-Link mode. The port is disabled or in the
SIO mode.
• The IO-Link device is not connected to the specified port on the IO-Link master unit.
• The IO power is not supplied to the specified port of the IO-Link master unit.
• The specified port of the IO-Link master unit had a verification error or communications error.
2-974

NY-series Instructions Reference Manual (W560)

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents