4 Using Protocol Macros
4-2-6
Protocol Status
The information shown in the following table is input from the Unit to the Protocol Status Words in
the CPU Unit.
Device variable for CJ-series Unit
Port 1
*_P1_PmrSta
*_P1_PmrExecSta
*_P1_PmrStepErr
4-32
Port 2
*_P2_PmrSta
*_P2_PmrExecSta
*_P2_PmrStepErr
CJ-series Serial Communications Units Operation Manual for NJ-series CPU Unit(W494)
Type
R/W
Name
WORD
R
Protocol Macro
Operating Sta-
tus
BOOL
R
Protocol Macro
Executing Flag
BOOL
R
Step End Error
Function
Bit 15: Protocol Macro
Executing Flag
Bit 14: Step End Error
Bit 13: Abort Flag
Bit 12: Tracing Flag
Bit 11: Sequence End
Completion Flag
Bit 10: Sequence Abort
Completion Flag
Bit 09: Sequence Wait
Flag
Bit 08: Serial Gateway
Prohibited Flag (protocol
macros)
Bits 00 to 03: Protocol
Macro Error Code
This flag changes to
TRUE when a ExecP-
MCR instruction
(sequence) is executed.
The flag remains FALSE
when execution fails.
When the sequence is
completed and receive
data is written, the flag is
changed to FALSE after
all the receive data is writ-
ten to I/O memory.
This flag is changed to
FALSE when the
sequence is completed
(either when it is ended by
End, or when it is ended
by Abort).
This flag is changed to
TRUE when a step ended
abnormally.
It remains FALSE if the
step ends normally as a
result of a retry.
TRUE: Step ended abnor-
mally
FALSE: Step ended nor-
mally