Omron CJ1W-SCU32 Operation Manual page 73

Machine automation controller, cj / nj-series, serial communications units, cpu unit
Table of Contents

Advertisement

Input
condition
If the Input condition is TRUE when the Protocol Macro Executing Flag (*_P2_PmrExecSta for
port 2) is FALSE and the Network Communications Instruction Enabled Flag (_Port_isAvailable)
is TRUE, communications sequence No. 100 registered in the Serial Communications Unit is
called, and data is sent and received via port 2 of the Serial Communications Unit.
Send data is sent starting from the second element of the SendData and its size (number of
words) is specified by the first element of "SendData".
SendData[0]:
SendData[1]:
The receive data is stored in consecutive words beginning with input parameter "RecvData[1]",
and the number of words actually stored in the input parameter is stored in "RecvData[0]".
RecvData[0]:
RecvData[1]:
d. Executing the ExecPMCR Instruction
4
Confirming operation. Refer to Section 12 Tracing and I/O Memory Monitoring in the CX-Proto-
col Ver.1.9 OPERATION MANUAL (Cat. No. W344).
• Transmission Line Tracing
The data in the send/receive messages flowing over the transmission line (RS-232C or RS-
422A/485) and the control codes are traced.
• I/O Memory Monitoring
Monitors send/receive data and the status of the various flags.
Serial Gateway Mode
• Sending commands from the Controller
Send commands by using the SendCmd instruction. For details, refer to 5-6 Communications
Frames.
• Sending commands from the PT
Execute the PT's SAP (Smart Active Parts).
CJ-series Serial Communications Units Operation Manual for NJ-series CPU Unit(W494)
Protocol Macro
Network Communications
Executing Flag
Instruction Enabled Flag
*_P2_PmrExecSta
_Port_isAvailable
InPort
UINT#100
SendData[0]
RecvData[0]
Number of words
Send data
Number of words
Receive data
ExecPMCR_instance
ExecPMCR
Execute
Done
Port
Busy
SeqNo
Error
SrcDat
ErrorID
DstDat
DstDat
ErrorIDEx
Size of effective words (including SendData[0])
Number of words
Size of effective words (including RecvData[0])
Number of words
1 Introduction
1
1-33

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cj1w-scu22Cj1w-scu42

Table of Contents