EasyManuals Logo

Omron NJ501-1500 User Manual

Omron NJ501-1500
990 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 #726 background imageLoading...
Page #726 background image
2 Instruction Descriptions
2-678
NJ-series Instructions Reference Manual (W502)
In this sample, the SendCmd instruction sends an explicit message via a DeviceNet Unit. This sample
reads the vendor ID from the slave with node address 16#0B through the DeviceNet Unit with unit
address 16#10.
The following communications specifications are used.
The contents of command array SendDat[] and response storage array RecvDat[] are as follows:
Command Array: BYTE array
Sample Programming
Item Description
Unit address of DeviceNet Unit 16#10
Slave node address 16#0B
Service code 16#0E
Class ID 1
Instance ID 1
Attribute ID 1
Timeout time 2.0 s
Retry count 2
Array element Item Content Value
SendDat[0]
Command code
The command code to send an
explicit message is 16#2801.
BYTE#16#28
SendDat[1] BYTE#16#01
SendDat[2] Slave node address The node address is 16#0B. BYTE#16#0B
SendDat[3] Service code The service code to read the value of
a specified attribute (Get Attribute
Single) is 16#0E.
BYTE#16#0E
SendDat[4]
Class ID
The class ID of the Identity object is
16#0001.
BYTE#16#00
SendDat[5] BYTE#16#01
SendDat[6]
Instance ID ---
BYTE#16#00
SendDat[7] BYTE#16#01
SendDat[8] Attribute ID The attribute ID of the vendor ID
(Vendor ID) is 16#01.
BYTE#16#01
DeviceNet Unit with
unit number 0 (unit address 16#10)
Explicit message
Slave with node address 16#0B

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

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

Omron NJ501-1500 Specifications

General IconGeneral
BrandOmron
ModelNJ501-1500
CategoryController
LanguageEnglish

Related product manuals