EasyManuals Logo

Omron CJ - INSTRUCTIONS User Manual

Omron CJ - INSTRUCTIONS
1308 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #1004 background imageLoading...
Page #1004 background image
3. Instructions
966
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Example Programming
In this example, EGATR(721) is used to read the general status of a DRT2 Slave (I/O Terminal).
When CIO 0.00 and A202.06 (the Communications Port
Enabled Flag for port 06) are ON, EGATR(721) reads the
general status of the DRT2 Slave (I/O Terminal). In this case,
the Total ON Time or Number of Contact Operations for input
3 are read.
Service Code = 0E hex, Class ID = 95 hex, Instance ID = 01
hex, and Attribute ID = 65 hex.
The general status is returned in 1 byte.
0.00
A202.06
S
D
C
@EGATR
D0
D100
D200
Communications Port
Enabled Flag (Port 6)
Attribute ID
Instance ID
Class ID
Service Code
0E 95 01 65
Explicit message command format
Destination node address
CS1W-DRM21 DeviceNet Unit
(CPU Bus Unit with unit number 2)
EGATR(721)
instruction
CPU
Unit
Unit address 12 hex (because
the unit number is 2)
Slave (I/O Terminal)
with node address 10
Explicit
message
S: D0 0 0 0 A
S+1: D1 0 0 9 5
S+2: D2 0 0 0 1
S+3: D3 0 0 6 5
C: D200 0 0 0 2
C+1: D201 8 6 1 2
C+2: D202 0 0 0 0
C+3: D203 0 0 0 0
Set 2 words = 0002 hex since there are 2 words in D to D+1.
Byte order = 8 hex (from rightmost byte), communications port = 6 hex (port 6),
and the DeviceNet Unit’s unit address = 12 hex
Response monitoring time = 0000 hex (2 s)
Explicit format type = 0000 hex (DeviceNet format)
Slave’s node address = 10 = 0A hex
Class ID = 95 hex
Instance ID = 01 hex
Attribute ID = 65 hex
D: D100 0 0 0 1
D+1: D101 0 0
4 8
76543210
D101
01001000
Basic Unit's I/O Power Status Flag
Expansion Unit's I/O Power Status Flag
Low Network Power Voltage Flag
Unit Maintenance Flag
Sensor Disconnected Flag
Sensor Power Shorted Flag
Operation Time Over Flag
Connected Device Maintenance Flag
D contains 0 hex for the 1 byte of data returned to the rightmost byte of D+1.
The Slave’s general status is returned to bits 00 to 07.
(The data is stored in bits 00 to 07 because the byte order setting in C+1 bits
12 to 15 was set to 8 hex (from rightmost byte).
General
status

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Omron CJ - INSTRUCTIONS and is the answer not in the manual?

Omron CJ - INSTRUCTIONS Specifications

General IconGeneral
BrandOmron
ModelCJ - INSTRUCTIONS
CategoryController
LanguageEnglish

Related product manuals