
A-7
Appendices
CJ-series Serial Communications Units Operation Manual for NJ-series CPU Unit(W494)
A-1 D
iff
erenc
es in A
v
ailab
le F
unc
tion
s
Depe
ndin
g
on
the CPU
Un
it (N
J
o
r C
J
Series
)
App
A-1-2 Diff
erence
s
in Methods f
o
r Access from a User Prog
ra
m
The CIO Area defined individually for each Communications Mode
Words n+9 to n+14 and words n+19 to n+24
•
Protocol Macro Mode
n = CIO 1500 + 25
×
unit number (word)
* Names used in CJ-Series
CJ-series I/O memory Address
NJ-series device variable for CJ-series Unit
Word No.
Bit No.
Variable name
Meaning
Port 1
Port 2
Port 1
Port 2
n+9
n+19
15 to 00
*_P1_PmrSta
*_P2_PmrSta
Protocol Macro Operating Status
15
*_P1_PmrExecSta
*_P2_PmrExecSta
Protocol Macro Executing Flag
14
*_P1_PmrStepErr
*_P2_PmrStepErr
Step End Error (Step Error Process-
ing Executing Flag (*))
13
*_P1_PmrAbtSta
*_P2_PmrAbtSta
Abort Flag
12
*_P1_PmrTracingSta
*_P2_PmrTracingSta
Tracing Flag
11
*_P1_PmrSeqEndSta
*_P2_PmrSeqEndSta
Sequence End Completion Flag
10
*_P1_PmrSeqAbtSta
*_P2_PmrSeqAbtSta
Sequence Abort Completion Flag
09
*_P1_PmrSeqWaitSta
*_P2_PmrSeqWaitSta
Sequence Wait Flag
08
*_P1_PmrSgwProhSta *_P2_PmrSgwProhSta Serial Gateway Prohibited Flag (Pro-
tocol Macros)
07 to 04
---
---
Reserved
03 to 00
Bit 03 to 00 of
*_P1_PmrSta
Bit 03 to 00 of
*_P2_PmrSta
Protocol Macro Operating Status
n+10
n+20
15 to 00
*_P1_PmrCommSeqN
oSta
*_P2_PmrCommSeqN
oSta
Communications Sequence No.
n+11
n+21
15 to 00
*_P1_PmrExecNoSta
*_P2_PmrExecNoSta
Executed Step and Case No.
15 to 12
---
---
Reserved
11 to 08
*_P1_PmrStepNoCod
eSta
*_P2_PmrStepNoCod
eSta
Executed Step No. (Code)
07 to 04
---
---
Reserved
03 to 00
*_P1_PmrRcvCaseNo
CodeSta
*_P2_PmrRcvCaseNo
CodeSta
Executed Reception Case No.
(Code)
n+12
n+22
15 to 00
*_P1_PmrRcvCaseNo
FlgSta
*_P2_PmrRcvCaseNo
FlgSta
Executed Reception Case No. Stor-
age Flag
n+13
n+23
15 to 00
*_P1_PmrStepNoFlgS
ta
*_P2_PmrStepNoFlgS
ta
Executed Step No. Storage Flag
n+14
n+24
15 to 00
*_P1_PmrRepCntSta
*_P2_PmrRepCntSta
Repeat Counter
n+14
n+24
15 to 08
*_P1_PmrSetRepCntS
ta
*_P2_PmrSetRepCntS
ta
Repeat Counter Setting Value
n+14
n+24
07 to 00
*_P1_PmrCurRepCnt
Sta
*_P2_PmrCurRepCnt
Sta
Repeat Counter Present Value