4 Using Protocol Macros
4-38
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, each area will be
reset (cleared) at the timing indicated in "Reset" in the above table.
Executed
Reception
Case No.
(Code)
*_P1_PmrRcvCaseN
oCodeSta
*_P2_PmrRcvCaseN
oCodeSta
Reception matrix case numbers 0 to 15 (0 to F
hex) for which reception is complete are
stored. The number is cleared when the
sequence execution starts, and at restarts.
The Executed Reception Case No. is stored
only when the reception matrix is set by using
the Recv or Send&Recv command. If a recep-
tion matrix is not set, the case number will be
set to 0 (cleared) when another command is
executed.
Controller
reset (*)
When
matrix is
received
When
sequence
starts
Executed
Reception
Case No.
Storage
Flag
*_P1_PmrRcvCaseN
oFlgSta
*_P2_PmrRcvCaseN
oFlgSta
The bits (00 to 15) which correspond to the
reception matrix case number No.0 to 15 are
set to TRUE. These flags are cleared when the
sequence is started, when restarted, and at
every step execution.
The Executed Reception Case No. Storage
Flag in the bit that corresponds to the stored
case number will be changed to TRUE only
when the reception matrix is set for the Recv or
Send&Recv command. If a reception matrix is
not set, or when other command is executed,
the case number will be set to FALSE
(cleared).
When
matrix is
received
When
sequence
starts
Executed
Step No.
Storage
Flag
*_P1_PmrStepNoFlg
Sta
*_P2_PmrStepNoFlg
Sta
The bits 00 to 15 which correspond to the exe-
cuted steps are changed to TRUE. Once a bit
has been set, it is held as TRUE during the
sequence and after the sequence is com-
pleted.
When
step is
executed
When
sequence
starts
Repeat
Counter
Setting
Value
*_P1_PmrSetRepCnt
Sta
*_P2_PmrSetRepCnt
Sta
The number of times a step is repeated is set.
When
step starts
When
sequence
starts
Repeat
Counter
Present
Value
*_P1_PmrCurRepCn
tSta
*_P2_PmrCurRepCn
tSta
The repeat counter variable N is set. The value
is cleared when the sequence execution starts,
and at restarts.
The present value N varies according to the
method used to specify the initial value.
•
Reset: The variable N is set to 0 when the
step starts, and the step is executed accord-
ing to the set number of times.
•
Hold: The variable N for the present value is
held when the step starts, and the step is
executed according to the set number of
times.
Note
If the Repeat Counter Setting Value is set
to read word R( ), and 0 is read, then 0
will be stored and this step will be
skipped (the next process setting will be
ignored), and the sequence will move to
the next step (+ 1). For details, refer to
the CX-Protocol Ver.1.9 OPERATION
MANUAL (Cat. No. W344).
When
repeat
counter is
refreshed
When
sequence
starts
Name
Device variable 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...