961
3. Instructions
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Network Instructions
3
EXPLT
Example Programming
In this example, EXPLT(720) is used to read the total ON time or number of contact operations from a
DRT2 Slave (I/O Terminal).
When CIO 0.00 and A202.06 (the Communications Port
Enabled Flag for port 06) are ON, EXPLT(720) reads the
Total ON Time (s) or Number of Contact 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.
0.00
A202.06
S
D
C
@EXPLT
D0
D100
D200
Communications Port
Enabled Flag (Port 6)
0E 09 03 66
Attribute ID
Instance ID
Class ID
Service Code
Explicit message command format
Destination node address
CS1W-DRM21 DeviceNet Unit
(CPU Bus Unit with unit number 2)
EXPLT(720)
instruction
CPU
Unit
Unit address 12 hex (because
the unit number is 2)
Explicit
message
DRT2-OD16 Slave
with node address 45
S: D0 0 0 0 A
S+1: D1 0 0 2 D
S+2: D2 0 0 0 E
S+3: D3 0 0 0 9
S+4: D4 0 0 0 3
S+5: D5 0 0 6 6
D: D100 0 0 0 8
D+1: D101 0 0 2 D
D+2: D102 0 0 8 E
D+3: D103 2 7 F E
D+4: D104 2 9 0 0
C: D200 0 0 0 4
C+1: D201 0 6 1 2
C+2: D202 0 0 0 0
C+3: D203 0 0 0 0
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)