
4-9
4 Using Protocol Macros
CJ-series Serial Communications Units Operation Manual for NJ-series CPU Unit(W494)
4-1
Over
vie
w
of t
h
e Pr
o
to
c
ol Mac
ro F
unc
tion
4
4-1-3 Protoco
l Str
ucture
The NJ-series PLCs provide standard system protocols to enable communications with OMRON com-
ponents without creating communications sequences. You can execute the sequences in the standard
system protocols merely executing ExecPMCR instruction after specifying the sequence number and
command data.
Processing for communications line problems during communications for the standard system protocols
are set to normal settings, as shown in the following table. If these settings are not suitable to the appli-
cation or if improvements are desired, use the CX-Protocol to modify the following settings in the
required sequences. For details on the use of the CX-Protocol, refer to the CX-Protocol Ver.1.9 OPER-
ATION MANUAL (Cat. No. W344). Refer to the standard protocol file that are included in the CX-Proto-
col for the settings in the standard system protocols.
Setting Device Variables for CJ-series Unit (For Use of Standard System
Protocol)
Device variable for CJ-series Unit
Type
R/W
Name and
function
Function
Port 1
Port 2
*_P1_PortCfg
*_P2_PortCfg
WORD
RW
Port Settings
Bit 15: Commu-
nications
parameters
Bits 08 to 11:
Serial commu-
nications mode
Bits 00 to 04:
Communica-
tions parame-
ters
Set serial communications
mode to Protocol Macro
Mode.
Set to match the parame-
ters of the external device.
*_P1_BaudrateCfg
*_P2_BaudrateCfg
USINT
RW
Baud Rate
Set to match the baud rate
of the external device.
*_P1_PmrTransTypCfg
*_P2_PmrTransTypCfg
BOOL
RW
Protocol macro
Transmission
method
Set to FALSE to specify
half-duplex.
TRUE: Full-duplex
FALSE: Half-duplex
(default)
*_P1_PmrMaxDatSzCfg
*_P2_PmrMaxDatSzCfg
UINT
RW
Maximum
Number of
Bytes in Proto-
col Macro
Send/Receive
Data
Set to 1,000 bytes.
Handling Communications Problems for Standard System Protocols
Содержание 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...