Omron CJ1W-SCU32 Operation Manual page 241

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.
Send Data Setting
Break the character string '@READ' into individual characters and store the character codes as array
elements in SendDat[].
In other words, BYTE#16#40(@) is stored in SendDat[0] and BYTE#16#52(R) in SendDat[1]. This pro-
cessing uses the StringToAry instruction.
STRING data type
'@READ'
LD
System-defined variable
Name
_Port_isAvailable
User-defined variables (To be defined before or when creating a program)
Name
OperatingEnd
Trigger
Operating
InPort
SendDat
RS_instance
SerialSend_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_NopS
erialSendExecSta
CJ-series Serial Communications Units Operation Manual for NJ-series CPU Unit(W494)
BYTE data type array
SendDat[0]
StringToAry
SendDat[1]
SendDat[2]
SendDat[3]
SendDat[4]
Data
Factory
type
setting
BOOL
---
Data type
BOOL
BOOL
BOOL
_sPORT
ARRAY[0..4] OF
BYTE
RS
SerialSend
Data
Factory
Allocated address
type
setting
BOOL
---
IOBus://rack#0/slot#
0/P2_NopSta/P2_N
opSerialSendExec-
Sta
BYTE#16#40
BYTE#16#52
BYTE#16#45
BYTE#16#41
BYTE#16#44
Comments
Network Communications
Instruction Enabled Flag
Allo-
cated
Factory setting
address
(AT)
False
---
False
---
False
---
(UnitNo:=_CBU_No0
---
0, PhysicPortNo:=0)
[5(16#0)]
---
---
---
---
---
Comments
(AT)
Port 2:
SerialSend Execut-
ing Flag
6 No-protocol Mode
Details
This flag is TRUE when there
are internal logical ports
available, FALSE when there
is no internal logical port
available.
Details
Process completed
Execution conditions
Processing
Port specification
Send data
---
---
Details
This flag is TRUE
while execution of
the instruction is in
progress.
6-13
6

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cj1w-scu22Cj1w-scu42

Table of Contents