![background image](http://html1.mh-extra.com/html/omron/cj1w-scu22/cj1w-scu22_operation-manual_742498151.webp)
4-15
4 Using Protocol Macros
CJ-series Serial Communications Units Operation Manual for NJ-series CPU Unit(W494)
4-2 De
vic
e
V
ariab
les
fo
r CJ
-series Un
it and
Sys
tem-defined
V
ariables
(Pr
o
toco
l Macr
o Mo
de)
4
4-2-2 Area Descr
ipt
ions
* When the default settings are used, the Baud Rate, Start Bits, Data Length, Stop Bits, Parity Yes/No, and Parity
Even/Odd, settings are disabled. To specify settings for these items to the settings other than the default, apply
user settings.
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.
z
User-specified Setting Inclusion
The setting for the port settings determines if the default settings or user settings will be used for
port 1 and port 2. Be sure to use the same settings as the RS-232C port on the external devices
connected in Protocol Macro Mode.
FALSE: default, TRUE: user settings
If the default port settings are specified, the settings of bits 00 to 04 will be ignored.
The default settings used are as follows: Baud Rate: 9,600 bps, Start Bits: 1 bit, Data Length: 7 bits,
Parity: Even, and Stop Bits: 2 bits.
If user port settings are specified, set bits 00 to 04 and the baud rate.
z
Serial Communications Mode
Set the serial communications mode to 6 hex to use Protocol Macro Mode.
z
Start Bits, Data Length, Stop Bits, Parity, and Baud Rate
If user settings are specified for the port settings, the number of Start Bits, Data Length, number of
Stop Bits, Parity, and Baud Rate must be set. The Start Bits setting, however, will be ignored and 1
start bit will always be used.
z
Serial Gateway Response Timeout Monitoring Time
The response timeout condition is monitored when a command is converted to the specified protocol
and sent.
0: 5 (default), Setting range: 1 to 255 (0.1 to 25.5 s)
The response monitoring time is 5 s when this setting is set to default. Or, the user can specify it in
the range 0.1 to 25.5 s by setting between 1 and 255.
If a timeout occurs, the command end code (0205 hex (Response Timeout)) is returned to the com-
mand source. If a response is received after a timeout, however, the message is converted and
returned to the command source.
z
Serial Gateway Send Start Timeout Monitoring Time
When the Unit converts commands to the specified protocol and send them during execution of pro-
tocol macros, the timeout condition is monitored from when the command is received until the com-
mand starts to be sent in the specified protocol.
0: 5 (default), Setting range: 1 to 255 (0.1 to 25.5 s)
The send start monitoring time is 5 s when this setting is set to default. Or, the user can specify it in
the range 0.1 to 25.5 s by setting between 1 and 255.
*_P1_PmrMaxDatSzCfg
*_P2_PmrMaxDatSzCfg
UINT
RW
Maximum
Number of
Bytes in Proto-
col Macro
Send/Receive
Data
200 to 1,000 bytes
Set 1,000 bytes when
standard system protocol
is used.
4-2-2
Area Descriptions
Device variable for CJ-series Unit
Type
R/W
Name
Function
Port 1
Port 2
Содержание 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...