Omron CJ1W-SCU32 Operation Manual page 242

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

Advertisement

6 No-protocol Mode
Program Example
Determining the SerialSend instruction execution completion
SerialSend_instance.Done
SerialSend_instance.Error
Trigger reception
Trigger
_Port_isAvailable
Communications parameters settings
Operating
SerialSend instruction execution
Operating
InPort
SendDat[0]
UINT#5
Processing at normal end
Operating
SerialSend_instance.Done
Processing at error end
Operating
SerialSend_instance.Error
ST
System-defined variable
Name
_Port_isAvailable
6-14
OperatingEnd
Barcode_P2_NopSerialSendExecSta SerialSend_instance.Busy
Inline ST
1 StringToAry(In:='@READ',AryOut:=SendDat[0]);
2 InPort.UnitNo
:=_eUnitNo#_CBU_No00;
3 InPort.PhysicPortNo:=USINT#2;
SerialSend_instance
SerialSend
Execute
Done
Port
Busy
Error
SrcDat
SendSize
ErrorID
ErrorIDEx
Data
Factory
type
setting
BOOL
---
CJ-series Serial Communications Units Operation Manual for NJ-series CPU Unit(W494)
OperatingEnd
//Preparation of SendDat[]
//Serial Communications Unit, Unit number 0
//Serial port 2
Inline ST
1 //Processing at
normal end
2 ;
Inline ST
1 //Processing at
error end
2 ;
Comments
Network Communications
Instruction Enabled Flag
RS_instance
Operating
RS
Q1
Set
Reset1
Details
This flag is TRUE when there
are internal logical ports
available, FALSE when there
is no internal logical port
available.

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cj1w-scu22Cj1w-scu42

Table of Contents