WWW.NNC.IR
Macro Reference
344
Vision System FH/FZ5 Series
User’s Manual (Z340)
Example
Receive data
A parameter of ReceiveData, the parameter size are unnecessary.
Send data
A parameter of SendData, the parameter size are unnecessary.
SerialNormal
Serial Interface Normal communication
IoModule identification name
SerialNormal
SerialNormal2 (Fxxx series method)
Overview
This is a module is for sending and receiving commands and data via the serial interface.
System data
Dim data&(256)
'Gets the five data.
ReceiveData "ParallelIo", data&(), 4*5, size&
Dim data&(256)
'Transmit the five data.
SendData "ParallelIo", data&(), 4*5
Identification Meaning Initial value
rsMode
Interface
0: RS-232C
1: RS-422
0
baudRate Baud rate [bps] 38400
byteSize
Data length [bit]
7 or 8
8
parity
Parity
0: None
1: Odd number
2: Even number
0
stopBits
Stop bits [bit]
0: 1
1: 2
0
softFlow
Flow control
0: None
1: Xon/Xoff
0
delimiter
Delimiter
0: CR
1: LF
2: CR + LF
0
timeout Timeout [s] 5