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
Sample Programming
In this sample, an NX-series Communications Interface Unit (NX-CIF210) is connected to an EtherCAT
Coupler Unit (NX-ECC203).
The unit number of the NX-CIF210 is set to 1.
Built-in EtherCAT port
EtherCAT Coupler Unit
NX-ECC203
A no-protocol command is sent to the barcode reader that is connected to serial port 2 of the NX-
CIF210. The send command is the scene number acquisition command (@READ).
For the send command, the StringToAry instruction is used to separate the text string '@READ' into
individual characters and convert them to the character codes. The character codes are stored in the
array elements of SendDat[].
STRING data
'@READ'
There is no start code. End code is 16#OD (CR).
The settings of NX-CIF210 are given in the following table.
Port 2: Baud Rate
Port 2: Data Length
Port 2: Parity
Port 2: Stop Bits
Port 2: Flow Control
2-1164
NX-series
Communications
Interface Unit
NX-CIF210
BYTE array
SendDat[0]
BYTE#16#40
StringToAry
SendDat[1]
BYTE#16#52
SendDat[2]
BYTE#16#45
SendDat[3]
BYTE#16#41
SendDat[4]
BYTE#16#44
Item
38,400 bps
8 bits
None
1 bit
None
Set value

NY-series Instructions Reference Manual (W560)

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents