Omron CJ1W-SCU32 Operation Manual page 70

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

Advertisement

1 Introduction
Protocol Macros
When a standard system protocol (provided in the Serial Communications Unit, and CX-Protocol) is
executed
Using Standard System Protocols
Unit
1
Creating the User-defined Variable to Store Send/Receive Data
Create a word-type array variable to be set as the input parameter in input variable SrcDat, and
in-out variable DstDat, of the ExecPMCR instruction. Reserve the number of array elements
(size) that are required.
2
Setting the Send Data
Refer to Send Data Allocation in R-1-1 Using Standard System Protocols and set the number of
send data words to the starting element of SrcDat and the send data to the second and subse-
quent elements.
3
Coding ExecPMCR Instruction
Example) The following example shows how to use a Serial Communications Unit to read and
store the present values of E5@N Temperature Controller by using the CompoWay/F Master
standard system protocol sequence No. 610: Variable Area Read.
Input
condition
If the Input condition is TRUE when the Protocol Macro Executing Flag (*_P2_PmrExecSta) is
FALSE and the Network Communications Instruction Enabled Flag (_Port_isAvailable) is TRUE,
communications sequence No. 610 of the standard system protocol in the Serial Communica-
tions Unit is called, and data is sent and received via port 2 of the Serial Communications Unit.
For the details of the above example, refer to Section 4-3-2 User Program Example.
1-30
Uses standard system protocol No. 600
ExecPMCR
CPU Unit
External device
Example: K3N Series
Protocol Macro
Network Communications
Executing Flag
Instruction Enabled Flag
*_P2_PmrExecSta
_Port_isAvailable
InPort
UINT#610
SendData[0]
RecvData[0]
CJ-series Serial Communications Units Operation Manual for NJ-series CPU Unit(W494)
Digital Panel Meter
ExecPMCR_instance
ExecPMCR
Execute
Done
Port
Busy
SeqNo
Error
SrcDat
ErrorID
DstDat
DstDat
ErrorIDEx

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cj1w-scu22Cj1w-scu42

Table of Contents