Nx_Serialbufclear - Omron NY532-5400 Reference Manual

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

Advertisement

2 Instruction Descriptions

NX_SerialBufClear

The NX_SerialBufClear instruction clears the send or receive buffer.
Instruction
Name
NX_SerialBuf-
Clear Buffer
Clear
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
BufKind
Buffer type
Timeout
TimeOut
time
Bit strings
DevicePort
BufKind
Refer to Function for the enumerators of the enumerated type _eSERIAL_BUF_KIND.
TimeOut
Function
The NX_SerialBufClear clears data in a buffer according to the setting of type of the port and buffer.
The instruction ends normally when the clear processing is completed.
2-1224
FB/
Graphic expression
FUN
NX_SerialBufClear_instance
Execute
FB
DevicePort
BufKind
TimeOut
I/O
Description
Object that represents a
device port
Type (send or receive) of
Input
buffer
2.0 s when the timeout
time is set to 0
Refer to Function for details on the structure _sDEVICE_PORT.
OK
NX_SerialBufClear
Done
Busy
Error
ErrorID
Valid range
---
_BUF_SENDRCV
_BUF_SEND
_BUF_RCV
Depends on data type.
Integers
NY-series Instructions Reference Manual (W560)
ST expression
NX_SerialBufClear_instance(
Execute
DevicePort,
BufKind,
TimeOut,
Done,
Busy,
Error,
ErrorID);
Unit
Default
---
---
_BUF-
---
SEN-
DRCV
0.1 s
0
Times, durations,
dates, and text strings

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents