Omron CJ1W-SCU32 Operation Manual page 174

Machine automation controller, cj / nj-series, serial communications units, cpu unit
Table of Contents

Advertisement

4 Using Protocol Macros
Device variable for
Name
CJ-series Unit
Executed
*_P1_PmrRcvCaseN
Reception
oCodeSta
Case No.
*_P2_PmrRcvCaseN
(Code)
oCodeSta
Executed
*_P1_PmrRcvCaseN
Reception
oFlgSta
Case No.
*_P2_PmrRcvCaseN
Storage
oFlgSta
Flag
Executed
*_P1_PmrStepNoFlg
Step No.
Sta
Storage
*_P2_PmrStepNoFlg
Flag
Sta
Repeat
*_P1_PmrSetRepCnt
Counter
Sta
Setting
*_P2_PmrSetRepCnt
Value
Sta
Repeat
*_P1_PmrCurRepCn
Counter
tSta
Present
*_P2_PmrCurRepCn
Value
tSta
* 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.
4-38
Meaning
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.
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).
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.
The number of times a step is repeated is set.
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).
CJ-series Serial Communications Units Operation Manual for NJ-series CPU Unit(W494)
Timing
Initialize
Set
Reset
Controller
When
When
reset (*)
matrix is
sequence
received
starts
When
When
matrix is
sequence
received
starts
When
When
step is
sequence
executed
starts
When
When
step starts
sequence
starts
When
When
repeat
sequence
counter is
starts
refreshed

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cj1w-scu22Cj1w-scu42

Table of Contents