Omron CJ1W-SCU32 Operation Manual page 179

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

Advertisement

Send data Word data array
Variable
SendData[0]
SendData[1]
SendData[2]
SendData[3]
SendData[4]
Receive data Word data array
Variable
RecvData[0]
RecvData[1]
RecvData[2]
RecvData[3]
Operand Settings for the ExecPMCR Instruction
Reading and storing the present value of the node No. 03 E5@N.
ExecPMCR
Execute
InPort
Port
SeqNo
0
SendData[0]
SrcDat
RecvData[0]
DstDat
CJ-series Serial Communications Units Operation Manual for NJ-series CPU Unit(W494)
Item
Number of send data words
Node No.
Variable type + higher 1
byte of read start address
Lower 1 byte of read start
address + fixed value of
BYTE#16#00
Number of elements
Item
Number of receive data
words
Response code
Receive data
Input variable
Execute
The operation SendCmd is exe-
Done
cuted when 1 is set.
Busy
Port
The destination is specified by
Error
using the Unit number and serial
ErrorID
port number.
DstDat
ErrorIDEx
SeqNo
Communications sequence No.
SrcDat
The starting element of the
user-defined variable (array)
that store the command data to
be sent is specified.
DstDat
The starting element of the
user-defined variable (array)
that store the data to be
received is specified.
4 Using Protocol Macros
Description of this
example
Data of 5 words of Send-
Data[0] to SendData[4] are
sent.
Node No. 3.
In this Present Value Read,
the variable type is
BYTE#16#C0 and read start
address is WORD#16#00.
The number of element is 1.
Description of this
example
Data of 4 words of Recv-
Data[0] to RecvData[3] are
received.
WORD#16#0000 is returned
for normal end.
The lower 2 bytes of the
present values of the tem-
perature controller are
returned.
The higher 2 bytes of the
present values of the tem-
perature controller are
returned.
Function
Value
WORD#16#0005
WORD#16#0003
WORD#16#C000
WORD#16#0000
WORD#16#0001
Value
WORD#16#0004
---
---
---
Setting value
---
InPort.UnitNo =
_eUnitNo#_CBU_No02
InPort.PhysicPortNo =
USINT#1
0
SendData[0]
RecvData[0]
4-43
4

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cj1w-scu22Cj1w-scu42

Table of Contents