Omron CJ1W-SCU32 Operation Manual page 247

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

Advertisement

ST
System-defined variable
Name
_Port_isAvailable
User-defined variables (To be defined before or when creating a program)
Name
Trigger
LastTrigger
OperatingStart
Operating
InPort
RecvDat
RecvSize
RecvStringDat
Code
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_NopRc
vCompleteSta
Program Example
//Detection of rising edge of trigger
IF ( (Trigger=TRUE) AND (LastTrigger=FALSE) AND (_Port_isAvailable=TRUE) AND (Barc
orde_P2_NopRcvCompleteSta =TRUE) AND (SerialRcv_instance.Busy=FALSE) ) THEN
OperatingStart:=TRUE;
Operating:=TRUE;
END_IF;
LastTrigger := Trigger;
//Communication parameters settings and SerialRcv instruction initialization
CJ-series Serial Communications Units Operation Manual for NJ-series CPU Unit(W494)
Data
Factory
type
setting
BOOL
---
Network Communications
Instruction Enabled Flag
Data type
BOOL
False
BOOL
False
BOOL
False
BOOL
False
_sPORT
(UnitNo:=_CBU_No0
0, PhysicPortNo:=0)
ARRAY [0..12] OF
[13(16#0)]
BYTE
UINT
0
STRING[255]
''
ULINT
0
SerialRcv
---
Fac-
Data
tory
Address
type
setting
BOOL
---
IOBus://rack#0/slot
#
0/P2_NopSta/P2_N
opRcvCompleteSta
Comments
This flag is TRUE when there
are internal logical ports
available, FALSE when there
is no internal logical port
available.
Allo-
cated
Factory setting
address
(AT)
---
---
---
---
---
---
---
---
---
---
Comments
Port 2: Reception
Completed Flag
6 No-protocol Mode
Details
Details
Execution conditions
Trigger value of previ-
ous task period
Start processing
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-19
6

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cj1w-scu22Cj1w-scu42

Table of Contents