Omron SYSMAC CJ - REFERENCE MANUAL 01-2008 Reference Manual page 1113

Sysmac cs/cj/one nsj series programmable controllers
Table of Contents

Advertisement

Network Instructions
S:
S+1:
S+2:
S+3:
S+4:
S+5:
D:
D+1:
D+2:
D+3:
D+4:
C:
C+1:
C+2:
C+3:
1074
When CIO 000000 and A20206 (the Communications Port Enabled Flag for
port 06) are ON, EXPLT(720) reads the Total ON Time (s) or Number of Con-
tact Operations from a 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 = 09 hex, Instance ID = 03 hex, and Attribute
ID = 66 hex.
For example, a value of 2,752,039 s is returned as the response for the Total
ON Time.
D00000
0
0
0
A
D00001
0
0
2
D
D00002
0
0
0
E
D00003
0
0
0
9
D00004
0
0
0
3
D00005
0
0
6
6
D00100
0
0
0
8
D00101
0
0
2
D
D00102
0
0
8
E
D00103
2
7
F
E
D00104
2
9
0
0
D00200
0
0
0
4
D00201
0
6
1
2
D00202
0
0
0
0
D00203
0
0
0
0
Explicit message command format
0E
09
03
66
Class ID
Service Code
Destination node address
CS1W-DRM21 DeviceNet Unit
(CPU Bus Unit with unit number 2)
EXPLT(720)
CPU
instruction
Unit
Unit address 12 hex (because
the unit number is 2)
Explicit
DRM2-OD16 Slave
message
with node address 45
Number of bytes of data: S+1 to S+5 = 5 words = 10 bytes = 0A hex
Slave's node address = 45 = 2D hex
Service Code = 0E hex
Class ID = 09 hex
Instance ID = 03 hex (Input 3)
Attribute ID = 66 hex
Contains 08 hex for 8 bytes of received data in response frame.
Returns Slave's node address = 45 = 2D hex.
Service Code = 8E hex (normal completion)
Service Data = 0029FE27 hex (2,752,039 s decimal)
Set 5 words = 0005 hex since there are 5 words in D to D+5.
Byte order = 0 hex (from leftmost 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)
Section 3-25
Attribute ID
Instance ID

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents