![background image](http://html1.mh-extra.com/html/omron/cj1w-scu22/cj1w-scu22_operation-manual_742498242.webp)
6 No-protocol Mode
6-14
CJ-series Serial Communications Units Operation Manual for NJ-series CPU Unit(W494)
Program Example
z
ST
System-defined variable
Name
Data
type
Factory
setting
Comments
Details
_Port_isAvailable
BOOL
---
Network Communications
Instruction Enabled Flag
This flag is TRUE when there
are internal logical ports
available, FALSE when there
is no internal logical port
available.
Determining the SerialSend instruction execution completion
SerialSend instruction execution
Processing at normal end
Trigger reception
Communications parameters settings
SerialSend_instance.Done
Trigger
Operating
SerialSend_instance
InPort
Port
Execute
SendDat[0]
SrcDat
UINT#5
SendSize
Busy
Done
Error
ErrorID
ErrorIDEx
_Port_isAvailable
Barcode_P2_NopSerialSendExecSta SerialSend_instance.Busy
Operating
Operating
RS_instance
OperatingEnd
RS
Set
Q1
Reset1
OperatingEnd
SerialSend_instance.Error
Operating
SerialSend_instance.Done
Inline ST
Inline ST
1 StringToAry(In:='@READ',AryOut:=SendDat[0]);
//Preparation of SendDat[]
2 InPort.UnitNo
:=_eUnitNo#_CBU_No00;
//Serial Communications Unit, Unit number 0
3 InPort.PhysicPortNo:=USINT#2;
//Serial port 2
1 //Processing at
normal
end
2 ;
Processing at error end
Operating
SerialSend_instance.Error
Inline ST
1 //Processing at
error
end
2 ;
SerialSend
Содержание CJ1W-SCU22
Страница 192: ...4 Using Protocol Macros 4 56 CJ series Serial Communications Units Operation Manual for NJ series CPU Unit W494...
Страница 250: ...6 No protocol Mode 6 22 CJ series Serial Communications Units Operation Manual for NJ series CPU Unit W494...
Страница 460: ...A Standard System Protocol R 126 CJ series Serial Communications Units Operation Manual for NJ series CPU Unit W494...
Страница 473: ...Index 1 CJ series Serial Communications Units Operation Manual for NJ series CPU Unit W494 I Index...