
4 Using Protocol Macros
4-30
CJ-series Serial Communications Units Operation Manual for NJ-series CPU Unit(W494)
* The flags will also be initialized at the following times: when the Controller is reset, when the operating mode is
changed between PROGRAM and RUN Modes, when the Unit is restarted, or when the communications port is
restarted. After the variable is set, the status area will be reset (cleared) at the timing indicated in "Reset" in the
above table for each area.
Additional Information
With the protocol macros, each port has a reception buffer that will hold 2.5 KB max. The Unit
can use the reception buffer to hold a large quantity of data when it is received at once, or when
the communications sequence is in Wait status.
If the Unit receives data when the reception buffer is full, the receive data will overwrite the
2.5 KB of previously received data in the buffer. Therefore, always use flow control when the Unit
receives a large amount of data in Protocol Macro Mode.
Hardware
Settings
*_P1_HwSetSt
a
*_P2_HwSetSt
a
The following are read in port setting sta-
tus:
1. The serial communications modes and
communications specifications set in
the Setup Area (*_P1_PortCfg and
*_P2_PortCfg)
2. The ports and the terminating resis-
tance hardware settings
3. System settings errors, and Port Oper-
ating/Stopped Flags
In Protocol Macro Mode, the port will be
stopped if a protocol data error occurs
while protocol data is transferred.
If there is no protocol data error after the
protocol data has been transferred, the
flag will be changed to TRUE.
Controller
reset (*)
When status
is read
When the
error is
cleared after
protocol data
is resent
Name
Device vari-
able for CJ-
series Unit
Meaning
Timing
Initialize
Set
Reset
Содержание 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...