Omron CJ1W-SCU32 Operation Manual page 245

Machine automation controller, cj / nj-series, serial communications units, cpu unit
Table of Contents

Advertisement

The default settings are Baud Rate: 9,600 bps, Start Bits: 1 bit, Data Length: 7 bits, Parity: Even parity
and Stop Bits: 2 bits.
Processing of receive data
The data stored in RecvDat[] is a bit string consisting of character codes that correspond to the individ-
ual character values of the bar code. One array element of RecvDat[] corresponds to one bar code
character. First, the characters are converted to the character string RecvStringDat by using the Ary-
ToString instruction. Next, RecvStringDat is converted to the ULINT integer code by using the
STRING_TO_ULINT instruction.
BYTE data type array
RecvDat[0] BYTE#16#34
RecvDat[1] BYTE#16#39
RecvDat[2] BYTE#16#30
RecvDat[3] BYTE#16#31
LD
System-defined variable
Name
_Port_isAvailable
User-defined variables (To be defined before or when creating a program)
Name
OperatingEnd
Trigger
Operating
InPort
RecvDat
RecvSize
RecvStringDat
Code
RS_instance
SerialRcv_instance
Device variables for CJ-series Unit (To be created on the I/O Map View
window after the unit configuration is created)
Name
Barcode_P2_Nop
RcvCompleteSta
CJ-series Serial Communications Units Operation Manual for NJ-series CPU Unit(W494)
STRING data type
AryToString
RecvStringDat
'4901
'
Data
Factory
type
setting
BOOL
---
Network Communications
Instruction Enabled Flag
Data type
Factory setting
BOOL
False
BOOL
False
BOOL
False
_sPORT
UnitNo:=_CBU_No00,
PhysicPortNo:=0)
ARRAY[0..12] OF
[13(16#0)]
BYTE
UINT
0
STRING[255]
''
ULINT
0
RS
SerialRcv
Fac-
Data
Allocated address
tory
type
setting
BOOL
---
IOBus://rack#0/slot
#
0/P2_NopSta/P2_N
opRcvCompleteSta
6 No-protocol Mode
STRING_TO_ULINT
Comments
This flag is TRUE when there
are internal logical ports
available, FALSE when there
is no internal logical port
available.
Allocated
address
(AT)
---
---
---
---
---
---
---
---
---
---
---
---
Comments
(AT)
Port 2: Reception
Completed Flag
ULINT type
Code
ULINT#4901
Details
Details
Process completed
Execution conditions
Processing
Port specification
Receive data
Receive data size
Bar code (string)
Bar code (integer)
---
---
Details
This flag is TRUE
when the receiving
is complete.
6-17
6

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cj1w-scu22Cj1w-scu42

Table of Contents