Omron EJ1 - 07-2008 Operation Manual page 134

Devicenet communications unit for ej1 temperature controllers
Table of Contents

Advertisement

Examples Using CompoWay/F Commands
Operation 2 (Reading
PV)
Explicit Messages Command
Destina-
Service
Class ID
tion node
code
address
00 hex
36 hex
0086 hex
Explicit Messages Response
No. of
Source
Service
bytes
node
code
received
address
0B hex
00 hex
B6 hex
A20011
000013
First Scan
Flag ON
000000
A20200
000020
Execution
Network
condition
Enabled
Flag
000001
A20200
000025
Execution
Network
condition
Enabled
Flag
000030
• Reads the PV for TC2 unit number 0, ch1.
FINS-mini command: Reads the PV of ch1. MRC = 01 hex, SRC = 01 hex
(Read from Variable Area), variable type 00 hex, and read start address =
0000 hex.
• The data is read using the EXPLICIT MESSAGE SEND command (2801).
• The command data is written in DM words starting from D01020 in the
CPU Unit's memory, and the response data is stored in DM words starting
from D01220.
• If the command does not end normally, the end code is stored in D01126
and the send command is re-executed.
Instance
Commu-
Sub-
ID
nica-
address
tions
Unit No.
0001 hex
00 hex
00 hex
Commu-
Sub-
End code
nica-
address
tions
Unit No.
00 hex
00 hex
00 hex
MOV(021)
# 0015
D1100
MOV(021)
# 000F
D1101
MOV(021)
# 0000
D1102
MOV(021)
# 3FFE
D1103
MOV(021)
# 0000
D1104
MOV(021)
# 0064
D1105
151100
CMND(490)
D1000
Online Flag
(Word n + 11,
D1200
bit00)
D1100
ASL(025)
0000
A21900
MOV(021)
A203
Network
Execution
D1106
Error Flag
ASR(026)
0000
END(001)
SID
FINS-mini command text
MRC
SRC
00 hex
01 hex
01 hex
FINS-mini command text
MRC
SRC
Re-
sponse
code
01 hex
01 hex
0000 hex
Section 6-3
Sets 0015 in D1100.
(No. of command data bytes =21)
Sets 000F in D1101.
(No. of response data bytes = 15)
Sets 0000 in D1102.
(Destination network address = 00)
Sets 3FFE in D1103.
(Destination node address = 3F,
destination unit address = FE)
Sets 0000 in D1104.
(Response required,
communications port No. = 0,
No. of retries = 0)
Sets 0064 in D1105.
(Response monitoring time = 10.0 s)
Sends 21 bytes of command data
starting from D1000 to destination
node address 00, and stores 16 bytes
of response data in D1200 of the local
node (D1100 or controller data)
Shifts the contents of CIO 0000 one
bit to the left. (Turns ON CIO
000001.)
Stores A203 (network communications
response code) in D1106.
Shifts the contents of CIO 0000 one
bit to the right, and retries in the next
cycle. (Turns ON CIO 000000.)
END
Variable
Address
Bit posi-
type
tion
84 hex
0000 hex
00 hex
Read data
(Example)
000240 hex
No. of
elements
0001 hex
115

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ej1 devicenet communications unit

Table of Contents