Protocol Macros - Omron SYSMAC CS1W-SCB41-V1 Operation Manual

Sysmac cs series; sysmac cj series. serial communications boards and serial communications units
Table of Contents

Advertisement

Troubleshooting

11-3-5 Protocol Macros

Serial
Indicator
communi-
display
cations
mode
Serial com-
---
munica-
tions mode
is not set to
protocol
macro.
Serial com-
The SD@/
munica-
RD@ and
tions mode
COM@ indi-
is set to
cators do
protocol
not flash at
macro.
all. (Com-
munica-
tions has
not been
electrically
estab-
lished.)
Status
Words allocated in
information,
the CIO Area
etc.
---
Bits 12 to 15 of the
words allocated in
the CIO Area n+5/
n+15 are set to a
value other than 6
Hex.
The PMCR(260)
Bits 00 to 07 of the
instruction is
Communications
executed, but bit
Port Error Flags in
15 (Protocol
A219 are set to 1
Macro Execut-
(ON).
ing Flag) of the
As PMCR(260)
words allocated
instruction execution
in the CIO Area
conditions, bit 15
n+9/n+19 does
(Protocol Macro Exe-
not turn ON.
cuting Flag) of the
words allocated in
the CIO Area n+9/
n+19 is set as a NO
execution condition.
The ER Flag (one of
Condition Flags) is
set to ON.
The AER Flag (one
of the Conditions
Flags) is ON.
Bits 00 to 03 (Error
Code) of the words
allocated in the CIO
Area n+9/n+19 are
set to 2 Hex
(Sequence Number
Error).
Bits 00 to 03 (Error
Code) of the words
allocated in the CIO
Area n+9/n+19 are
set to 3 Hex (Data
Read/Write Range
Error).
Cause
Serial communications
mode is not set correctly.
The PMCR(260) instruc-
tion operand settings or
execution timing are
incorrect.
The program is incorrect. As PMCR(260) instruc-
The problem cause is
one of the following:
- The data range for the
PMCR(260) instruction
C1 operand is incorrect.
- The number of data
words in the S or D oper-
and exceeds 250.
- The Communications
Port Error Flag is set to
OFF.
An illegal address is
specified for the S or D
operands of the
PMCR(260) instruction.
The sequence number
specified in the
PMCR(260) instruction
C2 operand is a value
other than 000 Hex to
3E7 Hex (000 to 999 in
decimal notation).
The specified communi-
cations sequence num-
ber does not exist in the
protocol data.
The data range of the
specified area is
exceeded when data is
being written to or read
from the I/O memory of
the CPU Unit.
Section 11-3
Remedy
Set bits 11 to 08 (Serial
Communications Mode)
of the Allocation DM Area
m/m+10 to 6 Hex (Proto-
col Macro).
See note on page 342.
tion execution conditions,
set bit 15 (Protocol Macro
Executing Flag) of the
words allocated in the
CIO Area n+9/n+19 to a
NC execution condition.
Check the PMCR(260)
instruction C1, C2, C3, S,
and D operand settings
for errors.
Correct any mistakes in
the operands of
PMCR(260).
Set the PMCR(260)
instruction C2 operand to
a value between 000 Hex
and 03E7 Hex (between
000 and 999 in decimal
notation).
Check whether the com-
munications sequence
number is correct.
Specify another area, or
reduce the size of the
data to be sent or
received.
337

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents