![background image](http://html.mh-extra.com/html/omron/v400-r2-series/v400-r2-series_connection-manual_741434052.webp)
9. Program
49
[Device variables for CJ-series Unit] (Serial Communications Unit)
Variable name
Data type
Explanation
J01_P2_PmrSta WORD
Protocol macro operation status
Bits 03 to 00: Protocol macro error code
J01_P2_PmrExecSta
BOOL
Protocol Macro Execution Flag
J01_P2_PmrSeqEndSta BOOL
Sequence End Completion Flag
J01_P2_PmrSeqAbtSta
BOOL
Sequence Abort Completion Flag
J01_P2_TransErrSta
WORD
Transmission error status
Additional Information
For details on the variables of the Serial Communications Unit, refer to
2-3 Device Variable
for CJ-series Unit
in the
CJ-series Serial Communications Units Operation Manual for
NJ-series CPU Unit
(Cat.No. W494).
[System-defined variable]
Variable name
Data type
Explanation
_Port_isAvailable BOOL
Communications Port Enabled Flag
TRUE: A port is available
FALSE: A port is not available
Additional Information
For information on the system-defined variables when the ExecPMCR instruction is used,
refer to
Related System-defined Variables
in
Serial Communications Instructions
(ExecPMCR)
in
Section 2 Instruction Descriptions
of the
NJ-series Instructions Reference
Manual
(Cat. No. W502).
●
Internal variables (Instance variables)
The following tables list the internal variables used to execute the function blocks in the
program. An internal variable is called an "instance". The name of the function block to use
is specified as the data type of the variable.
Variable name
Data type
Explanation
ExecPMCR_instance ExecPMCR
Requests execution of a communications sequence
(protocol data) registered in a Serial Communications Unit.
F_TRIG_instance F_TRIG
Outputs TRUE for one task period only when the input
signal changes to FALSE.
Additional Information
For information on the ExecPMCR instruction, refer to
Serial Communications Instructions
(ExecPMCR)
in
Section 2 Instruction Descriptions
of the
NJ-series Instructions Reference
Manual
(Cat. No. W502).
Additional Information
For information on the F_TRIG instruction, refer to
Sequence Input Instructions (F_TRIG)
in
Section 2
Instruction Descriptions
of the
NJ-series Instructions Reference Manual
(Cat. No. W502).