![background image](http://html1.mh-extra.com/html/omron/cj1w-scu22/cj1w-scu22_operation-manual_742498244.webp)
6 No-protocol Mode
6-16
CJ-series Serial Communications Units Operation Manual for NJ-series CPU Unit(W494)
SendSize := UINT#5 );
//Send data size
IF (SerialSend_instance.Done = TRUE) THEN
//Processing at normal end
Operating := FALSE;
END_IF;
IF (SerialSend_instance.Error = TRUE) THEN
//Processing at error end
Operating := FALSE;
END_IF;
END_IF;
Acquire the read result of the OMRON bar code reader V500-R521C2 connected to serial port 2 of the
Serial Communications Unit of the CJ Series (unit number 0, device name 'Barcode').
The receive data is stored in the array variable RecvDat[]. There is no start code and the end code is
16#OD (CR).
z
Unit Settings
* Make sure the settings match the corresponding settings at the destination.
Receiving by Controller from External Device
Name
Setting target
Setting
Unit Configuration
CPU/Expansion Racks in
Configuration and Setup
of Sysmac Studio
Mount CJ1W-SCU22 in
slot 0 of the CPU Rack.
Device name of this unit
Barcode
Unit number
Unit number switch and
Unit Configuration
(CPU/Expansion Racks in
Configuration and Setup
of Sysmac Studio)
Unit number: 0
Serial Communications
Mode
System Settings data
No-protocol Mode
Port setting
Default (*)
No-protocol End Code
D
No-protocol Start Code
inclusion
No
No-protocol End Code
inclusion
Yes (Specify a desired end
code.)
Serial Communications Unit
Unit number 0
Serial port 2
Acquisition of read result
Bar code reader