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
To delay data transmission from the Controller to an NX-series Communications Interface Unit, set a
delay time in units of 0.01 s with the Option.SendDelay input variable. The data type of the Option input
variable is structure _sSERIAL_SEND_OPTION. The specifications are as follows:
Name
Option
SendDelay
An error occurs if this instruction is executed for Units other than NX-series Communications Interface
Units and Option Boards.
Operation of Start Code and End Code
Use SendCfg.StartTrig and SendCfg.EndTrig to specify the conditions of start and end codes that are
attached to the send data.
If you attach a start or end code to the send data, exclude it from the value set for the SendSize input
variable.
The operations of StartTrig and EndTrig are given below.
Value of StartTrig
_SERIAL_START_NONE
_SERIAL_START_STARTCODE1
_SERIAL_START_STARTCODE2
Value of EndTrig
_SERIAL_END_NONE
_SERIAL_END_ENDCODE1
_SERIAL_END_ENDCODE2
_SERIAL_END_TERMINATION_CHAR
_SERIAL_END_RCV_SIZE
Interruption of Instruction Execution
If Abort is changed to TRUE during instruction execution, the execution is interrupted.
When the instruction execution is interrupted, CommandAborted changes to TRUE. The instruction is
interrupted even when the data transmission is in progress.
If the change of Abort is too late to interrupt the execution, Done changes to TRUE and the instruction
ends normally.
If both Abort and Execute are changed to TRUE, CommandAborted changes to TRUE.
The interruption operation only finishes the Busy processing, and it does not clear the send buffer. To
clear the buffer, use the NX_SerialBufClear instruction.
2-1160
Meaning
Description
Option
Option
Send delay
Send delay time
time
---
SendDat is sent with start code attached to its beginning.
Example: STX
---
SendDat is sent with end code attached to its end.
Example: ETX
Error
Error
Data type
Valid range
_sSERI-
AL_SEND_OP-
---
TION
Depends on
UINT
data type.
Operation
Operation

NY-series Instructions Reference Manual (W560)

Unit
Default
---
---
0.01 s
0

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents