Examples Of Cip Message Communications Instruction - Omron K6CM User Manual

Motor condition monitoring device
Hide thumbs Also See for K6CM:
Table of Contents

Advertisement

8-3-6

Examples of CIP Message Communications Instruction

An example of reading data in the K6CM using the CIP message communications is shown below.
Example: The following is an example of reading the measurement value of the K6CM using the CIP
message communications instruction of the NJ/NX-series Controller.
The CIPUCMMSend (Send Explicit Message UCMM) instruction is used a CIP message communica-
tions instruction.
Send the following CIP message.
• Service code: 16#0E (Get_Attribute_Single: read the value of the specified attribute)
• Class ID: 370 hex
• Instance ID: 01 hex
• Attribute ID: 6F hex (degradation level (present value))
The CIPUCMMSend instruction sends the command data "ServiceDat" as a UCMM message corre-
sponding to the service specified by the "ServiceCode".
The destination is specified by the route path "RoutePath". The request path is specified by "RqPath".
Execution condition
User-defined variable indicating Request path
User-defined variable to receive response data
Set the following value to the input variable of the above communications instruction.
Input variable
of the commu-
nications
instruction
RoutePath
Route path specifi-
cation
TimeOut
Timeout time spec-
ification
ServiceCode
Service code
K6CM Motor Condition Monitoring Device User's Manual (N219)
02\IP address
UINT#20 (when 2.0second)
BYTE#16#0E
Not used (dummy variable)
UINT#0 (fixed)
Value to pass to
Specification
input variable
02\IPaddress
UINT#20
BYTE#16#0E
8 Monitoring and Setting with the EtherNet/IP
Send Explicit Message UCMM instruction
CIPUCMMSend
Execute
RoutePath
TimeOut
ServiceCode
ErrorID
ErrorIDEx
RqPath
ServiceDat
RespSize
Size
RespServiceDat
"02" specifies the output from the NJ-series built-in EtherNet/IP
port or the NX-series ibuilt-in EtherNet/IP port 1.
The IP address specifies the IP address of Comprehensive cur-
rent diagnosis type (K6CM-CIM).
Timeout time is specified.
The integer "20" specifies 2.0 s as the timeout time. It is 0.1s
unit.
0EHex specifies "Service_Attribute_Single" as a service code
which reads the value of the specified attribute.
Done
Done
Busy
Busy
Error
Error
Error code
Expansion error code
Response data size
Meaning
8
8 - 23

Advertisement

Table of Contents
loading

Table of Contents