EasyManuals Logo
Home>Omron>Industrial Equipment>SYSMAC FH Series

Omron SYSMAC FH Series User Manual

Omron SYSMAC FH Series
882 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #714 background imageLoading...
Page #714 background image
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))

Table of Contents

Other manuals for Omron SYSMAC FH Series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Omron SYSMAC FH Series and is the answer not in the manual?

Omron SYSMAC FH Series Specifications

General IconGeneral
BrandOmron
ModelSYSMAC FH Series
CategoryIndustrial Equipment
LanguageEnglish

Related product manuals