
1-33
1 Introduction
CJ-series Serial Communications Units Operation Manual for NJ-series CPU Unit(W494)
1-8 B
asic Operating
P
roced
ure
1
1
-8-2
E
x
planation of Procedure
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".
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]".
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.
z
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).
Input
condition
Protocol Macro
Executing Flag
*_P2_PmrExecSta
Network Communications
Instruction Enabled Flag
_Port_isAvailable
InPort
Port
Execute
UINT#100
SeqNo
SendData[0]
SrcDat
DstDat
Busy
Done
Error
ErrorID
DstDat
ErrorIDEx
RecvData[0]
ExecPMCR
ExecPMCR_instance
Number of words
Size of effective words (including SendData[0])
Send data
Number of words
SendData[0]:
SendData[1]:
Receive data
Number of words
Size of effective words (including RecvData[0])
Number of words
RecvData[0]:
RecvData[1]:
Содержание CJ1W-SCU22
Страница 192: ...4 Using Protocol Macros 4 56 CJ series Serial Communications Units Operation Manual for NJ series CPU Unit W494...
Страница 250: ...6 No protocol Mode 6 22 CJ series Serial Communications Units Operation Manual for NJ series CPU Unit W494...
Страница 460: ...A Standard System Protocol R 126 CJ series Serial Communications Units Operation Manual for NJ series CPU Unit W494...
Страница 473: ...Index 1 CJ series Serial Communications Units Operation Manual for NJ series CPU Unit W494 I Index...