![background image](http://html1.mh-extra.com/html/omron/fh-1-series/fh-1-series_user-manual_742686714.webp)
WWW.NNC.IR
Macro Reference
712
Vision System FH/FZ5 Series
User’s Manual (Z340)
Example
Receives normal TCP communication data in the MEASUREPROC subroutine of the Unit Macro processing
unit.
Useable Modules
Scene Control Macro / Communication Command Macro / Unit Macro
Supported Versions
Version 4.20 or later
Related Items
Rem Prepare a buffer that can receive 12 bytes of data.
Dim BUFFER&(11)
IOMODULE$ = "TcpNormal"
Rem Set the polling state of the communication module to stopped in order to receive the data.
SetPollingState IOMODULE$, False
Rem Executing the initialization of the reception data size.
SIZE& = 0
Repeat the reception process until the data has been received.
Try
Do
Rem Attempting the data reception.
ReceiveData IOMODULE$, BUFFER&(), 12, SIZE&
Rem Once the data has been received, display the data size in the system status console window.
If(SIZE& > 0) Then
Print "Received data size = " + Str$(SIZE&)
Endif
Loop While SIZE& = 0
Rem Data has been received, so set the polling state of the communication module to running.
SetPollingState IOMODULE$, True
Catch
Rem Return the polling state of the stopped communication module to running.
If GetPollingState(IOMODULE$) = False Then
SetPollingState IOMODULE$, True
Endif
End Try
GetPollingState (Reference:
X
Details (p.540))
ReceiveData (Reference:
X
Details (p.651))
SendData (Reference:
X
Details (p.696))
SendString (Reference:
X
Details (p.698))
Содержание fh-1 series
Страница 8: ...WWW NNC IR 6 Vision System FH FZ5 Series User s Manual Z340...
Страница 14: ...WWW NNC IR 12 Vision System FH FZ5 Series User s Manual Z340 MEMO...
Страница 22: ...WWW NNC IR 20 Vision System FH FZ5 Series User s Manual Z340 MEMO...
Страница 48: ...WWW NNC IR Initializing the Controller 46 Vision System FH FZ5 Series User s Manual Z340 MEMO...
Страница 68: ...WWW NNC IR Editing Scene Groups 66 Vision System FH FZ5 Series User s Manual Z340 MEMO...
Страница 132: ...WWW NNC IR Useful Functions for Operation 130 Vision System FH FZ5 Series User s Manual Z340 MEMO...
Страница 172: ...WWW NNC IR Saving Scene Groups in External Memory 170 Vision System FH FZ5 Series User s Manual Z340 MEMO...
Страница 254: ...WWW NNC IR Basic Knowledge For Macro Customize Functions 252 Vision System FH FZ5 Series User s Manual Z340 MEMO...
Страница 650: ...WWW NNC IR Macro Reference 648 Vision System FH FZ5 Series User s Manual Z340 Related Items None...
Страница 881: ...WWW NNC IR...