Using Protocol Macros; Executing Communications Sequences - Omron CQM1H-SCB41 Operation Manual

Sysmac cqm1h series serial communications board
Hide thumbs Also See for CQM1H-SCB41:
Table of Contents

Advertisement

Using Protocol Macros

Word
Bits
IR 207
11
Port 1 Forced Abort Bit
Protocol processing will be aborted when this bit is turned
ON. (Processing may be completed if the bit is turned ON
too late.)
12
Port 2 Protocol Macro Executing Flag (instruction execu-
tion)
Same as IR 20708.
13
Port 2 Transfer Step Error Processing Flag
Same as IR 20709.
14
Port 2 Sequence END Completion Flag
Same as IR 20710.
15
Port 2 Forced Abort Bit
Same as IR 20711.
5-7

Using Protocol Macros

5-7-1

Executing Communications Sequences

PMCR( ) Instruction Specifications
84
Name and Function
Error Codes
The contents of the error codes are shown in the following table.
Code
0
No error
2
Sequence Number Error
The sequence number specified by the PMCR( )
instruction does not exist in the Board.
3
Receive Data/Write Area Exceeded Error
When data is written or read to the CPU Unit, the
specified area range was exceeded.
4
Protocol Data Syntax Error
A code that cannot be executed occurs while the
protocol macro was executed. (Example: A
header occurs after a terminator.)
5
Protocol Macro Execution Error During Port
Initialization
This error occurs when the PMCR instruction is
executed while the port is being initialized (i.e.,
while the serial communications port is being
restarted or while the serial communications
mode in the PC Setup of the Serial Communica-
tions Board is being modified using the STUP
instruction or the Programming Device).
Use the PMCR( ) instruction to execute communications sequences.
Classifi-
cation
Abort pro-
cessing
Protocol
macro sta-
tus
Step error
Sequence
status
Abort pro-
cessing
Error contents
Control data
First send word
First receive data storage word
Section 5-7
Set
Reset
User-set
User-set
At instruc-
At comple-
tion execu-
tion of exe-
tion
cution
At compare
Start of
error after
sequence
reception
End of
sequence
User-set
User-reset
Protocol macro
execution
Executed
Not executed
Execution stops after
the error occurs.
Execution stops after
the error occurs.

Advertisement

Table of Contents
loading

Table of Contents